/* Scoped repair of narrow layouts and policy copy; existing design preserved. */
.t7-policy-copy{font-family:var(--font-body,sans-serif)!important;font-size:18px!important;line-height:1.6!important;letter-spacing:normal!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
@media(max-width:768px){
 h1,.page-h1{font-size:clamp(28px,7.5vw,34px)!important;line-height:1.18!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:manual}
 h2{overflow-wrap:normal!important;word-break:normal!important;hyphens:manual}
 footer a,.site-footer a{flex-shrink:0;overflow-wrap:normal!important;word-break:normal!important}
 footer .footer-bottom,.site-footer .footer-bottom{flex-wrap:wrap;gap:18px}
 footer .footer-bottom>div,.site-footer .footer-bottom>div{display:flex;flex-wrap:wrap;gap:12px 18px;max-width:100%}
 footer .footer-bottom>div>a,.site-footer .footer-bottom>div>a{display:inline-block;flex:0 0 auto}
}
@media(max-width:768px){footer div[style*="display:flex"],.site-footer div[style*="display:flex"]{flex-wrap:wrap;gap:12px 18px!important}footer a,.site-footer a{max-width:100%}}

/* Footer variants inherit a generic flex rule from older article templates. */
.site-footer{display:block!important}
.site-footer>.t7-cookie-settings{display:block;min-height:44px;height:auto;margin:24px auto 0;max-width:100%}
@media(max-width:768px){.price-tag{max-width:100%;min-width:0;flex-wrap:wrap;white-space:normal}.price-tag>*{min-width:0;max-width:100%;white-space:normal}}

/* Content navigation must not inherit the fixed site header. */
nav.toc,nav[aria-label="Хлебные крошки"],nav.breadcrumbs{position:static!important;inset:auto!important;display:block!important;height:auto!important;width:auto!important;z-index:auto!important;backdrop-filter:none!important}
nav[aria-label="Хлебные крошки"],nav.breadcrumbs{background:none!important;border-bottom:0!important}
