/* Static adaptation of the original incta.ru WordPress theme. */
html{scroll-behavior:smooth}body{overflow-x:hidden}.page-site{overflow:hidden}.page-site__head,.page-site__main,.site-main,.footer-site{position:relative;z-index:2}
.logo__link{display:block}.static-menu-btn{display:none;font:500 16px 'IBM Plex Sans',sans-serif;cursor:pointer}.site-nav__list a[aria-current=page]{color:#7b40ad}
.static-breadcrumb{font-size:13px;color:#8b96a4;margin-bottom:25px}.static-breadcrumb a{color:#6e8cc5}
.static-pages{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:35px 0}.static-pages a{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 11px;border-radius:6px;background:#f1f3f7;color:#6375ab;font-weight:600}.static-pages a.active,.static-pages a:hover{background:#7b40ad;color:white}
.static-article-actions{display:flex;gap:12px;flex-wrap:wrap;margin:30px 0}.static-share,.static-search-form button,.static-poll-send{padding:11px 20px;border-radius:7px;background:#7b40ad;color:#fff;cursor:pointer;font-weight:500}.static-share:hover,.static-search-form button:hover,.static-poll-send:hover{background:#6375ab}
.static-comment-note{background:#f1f3f7;border-radius:9px;margin:28px 0;padding:20px 25px;font-size:14px}.static-two-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px;align-items:start}.static-two-cols .static-col{min-width:0}.static-two-cols .static-col p:last-child{margin-bottom:0}
.static-poll{border:1px solid #e4d9f2;border-radius:12px;padding:20px 24px;margin:28px 0;background:#fcfaff}.static-poll legend{font-family:'Noto Serif',serif;font-size:21px;padding:0 8px}.static-poll-option{display:flex;align-items:flex-start;gap:10px;padding:8px 0;cursor:pointer;font-size:16px;line-height:1.4}.static-poll-option input{margin-top:5px;accent-color:#7b40ad}.static-poll-message{font-size:13px;color:#63738a;margin:8px 0!important}.static-poll-send{margin-top:12px}.static-plugin-note{font-size:13px;color:#6d7789;background:#f3f4f8;border-radius:6px;padding:12px;margin:20px 0}
.contents-wraps{border:1px solid #e0e7f0;border-radius:10px;padding:18px 22px;margin:30px 0;background:#f8fafe}.contents-wraps__title{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;cursor:pointer;font-family:'Noto Serif',serif;font-size:22px;color:#1e2640}.contents-wraps__show-hide{font-family:'IBM Plex Sans',sans-serif;font-size:13px;color:#6e8cc5}.contents-wraps .contents{margin:15px 0 0;padding-left:0;display:block}.contents-wraps .contents li{margin:7px 0;padding-left:18px}.contents-wraps .contents li:before{display:none}.contents-wraps .contents li.static-toc-h3{margin-left:17px;font-size:15px}.contents-wraps .contents a{font-weight:400}.contents-wraps.is-collapsed .contents{display:none}.static-caption{text-align:center;margin:26px 0;font-size:14px;color:#63738a}.static-caption img{display:block;margin:auto;max-width:100%}
.static-search-form{display:flex;gap:10px;margin:26px 0}.static-search-form input{border:1px solid #dae2f0;border-radius:7px;min-height:44px;padding:0 12px;flex:1;width:100%;min-width:0}.static-results{display:grid;gap:17px}.static-result{border:1px solid #e7e9ef;padding:20px;border-radius:10px}.static-result h2{font-family:'Noto Serif',serif;font-size:21px;line-height:1.4;margin-bottom:8px}.static-result p{font-size:15px;margin:7px 0}.static-result small{color:#7b8694}.static-service-page{display:grid;gap:16px;margin:30px 0}.static-service-page .item-service{padding:16px;border:1px solid #e9eaf1;border-radius:8px}.static-service-page .item-service__img{flex:0 0 68px}.static-service-page .item-service img{max-height:65px;object-fit:contain}
.static-more{text-align:center;margin-top:25px}.sovet-item__link{cursor:pointer}.item-update__img>a{display:block}.item-update__img img{width:100%;object-fit:cover;max-height:230px}.item-update__cat{font-size:13px}.item-update__title{overflow-wrap:anywhere}
.meta-author__ico{width:58px;height:58px;object-fit:cover;border-radius:50%}.blogger-item__img>img{object-fit:cover}.page-content__text.post p{overflow-wrap:break-word}.post img{max-width:100%;height:auto}.post iframe{max-width:100%}.post .static-poll-option:before{display:none}.post p:empty{display:none}
.static-lightbox{position:fixed;z-index:9999;inset:0;background:rgba(12,17,29,.92);display:none;place-items:center;padding:45px 20px}.static-lightbox.is-open{display:grid}.static-lightbox img{max-width:96vw;max-height:87vh;object-fit:contain}.static-lightbox button{position:absolute;right:20px;top:16px;color:#fff;font-size:30px;cursor:pointer}
@media(max-width:850px){.static-two-cols{grid-template-columns:1fr}.static-menu-btn{display:block;margin:10px 0;background:#f6f0fd;color:#5c388b;padding:9px 14px;border-radius:7px}.main-menu .site-nav__list{display:none!important}.main-menu.static-menu-open .site-nav__list{display:flex!important;flex-direction:column;align-items:stretch;gap:0;padding:10px 0}.main-menu.static-menu-open .site-nav__list li{margin:0}.main-menu.static-menu-open .site-nav__list li a{display:block;padding:12px 20px}.header-main__right .custom-link-icon{display:none}}
@media(max-width:640px){.static-search-form{flex-direction:column}.static-search-form button{align-self:flex-start}.static-breadcrumb{line-height:1.8}.static-poll{padding:14px}.contents-wraps{padding:15px}.static-result h2{font-size:19px}}

.static-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}


/* Final pass: predictable header/footer search alignment in any viewport. */
.header-main__top{display:flex;flex-wrap:nowrap;align-items:flex-start}
.header-main__logo{flex:0 1 60%;width:60%;min-width:0;padding-right:22px}
.header-main__right{flex:0 1 40%;width:40%;min-width:0}
.header-main__right .site-search{width:100%;max-width:100%;margin:20px 0}
.site-search,.site-search form{width:100%;max-width:100%;min-width:0}
.site-search .form-search{display:flex;flex-wrap:nowrap;position:relative;overflow:hidden;min-height:50px;border-radius:10px}
.site-search .form-search__input,.site-search input[type="search"]{display:block;box-sizing:border-box!important;flex:1 1 auto;width:100%!important;max-width:100%;min-width:0!important;height:50px;line-height:20px;padding:15px 56px 15px 16px;margin:0;border:0;background:#fff;font-size:14px}
.site-search .form-search__btn{position:absolute;right:0;top:0;display:block;flex:0 0 50px;width:50px;height:50px;padding:0;cursor:pointer;border:0;background-position:center}
.site-search:focus-within .form-search{box-shadow:0 0 0 2px rgba(123,64,173,.18),0 3px 22px rgba(101,121,165,.12)}
.footer-right{min-width:0}.footer-right .site-search{max-width:325px}
@media (max-width:900px){.header-main__logo,.header-main__right{flex:0 1 50%;width:50%}.header-main__logo{padding-right:18px}}
@media (max-width:520px){.header-main__top{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding-top:24px;padding-bottom:22px}.header-main__logo,.header-main__right{width:100%;max-width:100%;flex:none;padding-right:0}.header-main__right .site-search{margin:12px 0}.header-main__socials-flex{justify-content:flex-start}.header-main__socials-flex .socials-flex__text{margin-left:0;max-width:none;text-align:left}.footer-right .site-search{max-width:100%}}
@media (max-width:400px){.logo__name{font-size:52px;line-height:1.35}.logo_sub{font-size:23px}.header-main__right .site-search .form-search__input{font-size:13px;padding-left:13px}}
/* Restore the original theme's vertical logo layout. An earlier override
   displayed the two logo lines inline and pushed them over the search box. */
.header-main .logo__link{display:flex;flex-direction:column;align-items:flex-start;max-width:100%;min-width:0}
.header-main .logo_sub,.header-main .logo__name,.header-main .logo__desc{display:block;max-width:100%}
@media (max-width:520px){.header-main .logo__link{align-items:center;text-align:center}}
@media (max-width:400px){.header-main .logo__name{font-size:clamp(38px,12.5vw,52px);white-space:nowrap}}
.static-readers{margin:35px 0}.static-readers h2{font-family:'Noto Serif',serif;font-weight:400;font-size:25px;margin-bottom:20px}.static-reader-comment{background:#f6f9fa;border-radius:10px;padding:20px 24px}.static-reader-comment time{font-size:13px;color:#7b8694;margin-left:12px}.static-reader-comment p{margin-top:12px;white-space:normal;line-height:1.7}


/* Accessible mobile menu: grow with its links instead of covering page content. */
@media(max-width:850px){
  .page-site__head{position:relative;z-index:60}
  .main-menu.wrap-minsizes{position:relative;z-index:61;box-sizing:border-box;width:100%;height:auto;min-height:60px;padding:8px 12px}
  .main-menu .static-menu-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:9px 16px;touch-action:manipulation;position:relative;z-index:2}
  .main-menu .site-nav__list{display:none!important}
  .main-menu.static-menu-open .site-nav__list{display:flex!important;position:relative;z-index:2;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:0;margin:8px 0 0;padding:6px 0 8px;width:100%;box-sizing:border-box}
  .main-menu.static-menu-open .site-nav__list>li{display:block;width:100%;margin:0}
  .main-menu.static-menu-open .site-nav__list>li>a{position:relative;display:flex;align-items:center;box-sizing:border-box;width:100%;min-height:44px;padding:12px 16px;pointer-events:auto}
}
.item-service__img{flex:0 0 61px}
.item-service__img img{display:block;width:61px;height:61px;object-fit:contain;border-radius:12px}
.list-services-aside .item-service{width:100%}

/* Services first, advice second: consistent vertical layout across screen sizes. */
.page-site--index .services-flex{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:20px;
}
.page-site--index .services-flex__content{
  order:0;
  width:100%;
  max-width:none;
}
.page-site--index .services-flex__sidebar{
  order:1;
  box-sizing:border-box;
  width:100%;
  max-width:640px;
  margin:8px auto 20px;
}
