/* Persistent routes, with a compact mobile disclosure. */
html{scroll-padding-top:145px}
.site-navigation{position:sticky;top:0;z-index:40;background:var(--paper);box-shadow:0 2px 10px #12334e08}
.site-navigation .header{position:relative}
.mobile-brand,.header .mobile-bar,.header .all-sections{display:none}
.header .desktop-nav a{min-height:44px;display:flex;align-items:center}
@media(max-width:1000px){
 html{scroll-padding-top:82px}
 .mobile-brand{display:block;width:calc(100% - 36px);margin:0 auto;padding:12px 0 17px}
 .mobile-brand .brand{font-size:26px;letter-spacing:-.6px}
 .mobile-brand .brand span{font-size:12px;letter-spacing:1px}
 .site-navigation .header{width:100%;padding:0;gap:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:block}
 .site-navigation .header>.brand,.header .desktop-nav{display:none}
 .header .mobile-bar{display:grid;grid-template-columns:1fr 1.25fr 1fr;gap:0;width:100%;padding:0 9px;align-items:stretch}
 .mobile-bar>a,.mobile-bar .menu-toggle{display:flex;align-items:center;justify-content:center;gap:7px;min-height:58px;padding:12px 3px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;font-size:clamp(14px,3.65vw,16px);line-height:1.35;font-weight:650;color:var(--ink);text-align:center;white-space:normal}
 .mobile-bar>a[aria-current],.mobile-bar .menu-toggle[aria-expanded=true]{border-bottom-color:var(--blue);color:var(--blue)}
 .menu-symbol{font-size:19px;font-weight:400}
 .header .all-sections:not([hidden]){display:flex;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;margin:0;padding:15px 24px 23px;background:var(--paper);border-bottom:1px solid var(--line);box-shadow:0 16px 24px #12334e1c;max-height:calc(100dvh - 65px);overflow-y:auto;overscroll-behavior:contain}
 .menu-heading{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:1.6px;margin:0;padding:2px 0 9px}
 .header .all-sections a{font-size:20px;line-height:1.35;min-height:47px;padding:10px 0;border-bottom:1px solid #e3e6e2;white-space:normal;display:flex;align-items:center;justify-content:space-between;gap:10px}
 .header .all-sections .sub-link{font-size:17px;padding-left:18px;border-bottom:0}
 .header .all-sections a[aria-current]{color:var(--blue);font-weight:700}
 .header .all-sections a[aria-current]::after{content:'Вы здесь';font-size:12px;font-weight:400;white-space:nowrap}
 .mobile-bar>a:focus-visible,.mobile-bar button:focus-visible{outline-offset:-5px}
}

/* Align all section names, with icons in their own column. */
.header .desktop-nav a{gap:8px}
.breadcrumb{align-items:baseline;line-height:1.6}
.breadcrumb a{padding:0;border:0;text-underline-offset:4px}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb>[aria-current]{min-width:0;overflow-wrap:anywhere}
@media(max-width:1000px){
 .header .all-sections a{display:grid;grid-template-columns:24px minmax(0,1fr) auto;justify-content:initial;column-gap:10px}
 .header .all-sections a>.drawn-icon{grid-column:1;grid-row:1;width:24px;height:24px;margin:0}
 .header .all-sections a>.nav-label{grid-column:2;grid-row:1;min-width:0;text-align:left}
 .header .all-sections a[aria-current]::after{grid-column:3;grid-row:1;margin-left:auto}
 .header .all-sections .sub-link{padding-left:18px}
}

@media(min-width:1001px) and (max-width:1200px){.header .desktop-nav{gap:12px}.header .desktop-nav a{gap:5px}.header .desktop-nav .drawn-icon{flex-shrink:0;margin-right:0}}

@media(max-width:1000px){.mobile-bar>a>.drawn-icon{display:block;flex:0 0 18px;width:18px;height:18px;margin:0}.mobile-bar>a{gap:4px}}
@media(max-width:360px){.mobile-bar>a,.mobile-bar .menu-toggle{font-size:13px}.mobile-bar>a>.drawn-icon{flex-basis:16px;width:16px;height:16px}.header .mobile-bar{padding-inline:4px}}
/* Breadcrumbs are a compact path, not the collapsible mobile menu. */
@media(max-width:760px){
 #main>nav.breadcrumb{display:flex;flex-direction:row;align-items:baseline;justify-content:flex-start;flex-wrap:wrap;gap:4px 8px;font-size:12px;line-height:1.6;margin:16px 0 0;padding:0;width:100%}
 #main>nav.breadcrumb>a{padding:0;white-space:nowrap}
 #main>nav.breadcrumb>.breadcrumb-separator{flex:none}
 #main>nav.breadcrumb>[aria-current]{min-width:0;max-width:100%;overflow-wrap:anywhere}
}

/* One consistent, scrollable panel for compact navigation. */
@media(max-width:1000px){
 html.menu-open{overflow:hidden}
 .header .all-sections:not([hidden]){position:fixed;top:var(--menu-top,60px);bottom:0;left:0;right:0;height:auto;max-height:none;padding:18px 24px max(24px,env(safe-area-inset-bottom));box-shadow:none;border-bottom:0}
 .header .all-sections a{grid-template-columns:24px minmax(0,1fr);min-height:50px;flex-shrink:0;font-size:20px;column-gap:10px}
 .header .all-sections a[aria-current]::after{content:none;display:none}
 .header .all-sections .menu-heading{flex-shrink:0}
}
@media(max-width:1000px){.header .mobile-bar{position:relative;z-index:1;background:var(--paper)}}
