/* Shared header/footer geometry for the main page and every inner page. */
:root{--ink:var(--surface-dark)}
/* Постоянная вертикальная область прокрутки предотвращает скачок шапки
   на коротких страницах (блог, документы и т.п.). */
html{overflow-y:scroll;scrollbar-gutter:auto}
body.site-shared{min-height:100vh;display:flex;flex-direction:column}
body.site-shared>main{flex:1 0 auto;min-width:0}
body.site-shared .header-inner,body.site-shared .site-footer>.shell{width:calc(100% - clamp(20px,5.5vw,88px)*2);max-width:1480px}
body.site-shared .header-inner{min-height:88px}
body.site-shared .header .brand{width:180px}
body.site-shared .desktop-nav a{font-size:14px}
body.site-shared .site-footer{padding-top:64px}
body.site-shared .footer-identity{margin-bottom:48px;padding-bottom:40px;align-items:flex-end}
body.site-shared .footer-identity .brand{width:clamp(180px,18vw,280px)}
body.site-shared .footer-contact-details{font-size:14px;flex-direction:column;gap:8px}
body.site-shared .footer-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}
body.site-shared .footer-directory>.menu-column{margin:0;min-width:0;grid-column:auto}
body.site-shared .footer-directory h2{font-size:32px}
body.site-shared .footer-directory a{font-size:14px;white-space:normal!important;min-height:44px!important;max-width:100%}
body.site-shared .footer-bottom{display:flex;justify-content:center;text-align:center}
@media(min-width:960px){body.site-shared .footer-directory{display:flex;width:100%;justify-content:space-between;align-items:flex-start;gap:32px}body.site-shared .footer-directory>.menu-column{flex:0 1 auto;width:max-content;max-width:32%}}
@media(min-width:960px){body.site-shared .footer-contact-details{flex-direction:row;align-items:center;gap:28px}}
@media(max-width:639px){body.site-shared .header-inner{min-height:80px}body.site-shared .header .brand{width:140px}body.site-shared .header .menu-toggle{width:100px;min-width:100px;flex-basis:100px;gap:8px}body.site-shared .menu-toggle .menu-caption{width:64px;flex-basis:64px}body.site-shared .footer-identity{align-items:flex-start}}
@media(max-width:599px){body.site-shared .footer-directory{grid-template-columns:minmax(0,1fr);gap:32px}}

/* Menu navigation follows the four-column footer distribution. */
body.site-shared .site-menu .menu-content{width:calc(100% - clamp(20px,5.5vw,88px)*2);max-width:1480px}
body.site-shared .site-menu .menu-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
body.site-shared .site-menu .menu-directory>.menu-column{grid-column:auto;margin:0;min-width:0}
body.site-shared .site-menu .menu-directory h2{font-size:32px;line-height:1.1;margin:0 0 20px}
@media(min-width:960px){
 body.site-shared .site-menu .menu-directory{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-items:flex-start;width:100%;gap:32px}
 body.site-shared .site-menu .menu-directory>.menu-column{flex:0 1 auto;width:max-content;max-width:32%}
}
@media(max-width:599px){body.site-shared .site-menu .menu-directory{grid-template-columns:minmax(0,1fr)}}
.article-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border:0;margin-top:32px;background:transparent}
.article-list article{background:var(--paper);padding:24px;min-height:220px;display:flex;flex-direction:column;align-items:flex-start}
.article-list h3{font-size:24px;line-height:1.15;margin:0 0 16px}
.article-list p{font-size:15px;line-height:1.5;margin:0 0 20px}
.article-list .text-link{margin-top:auto}
.article-list .text-link{display:inline-flex;align-items:center;gap:12px;min-height:44px;padding:0 18px;background:var(--accent);border:0;text-decoration:none!important;font-size:14px;font-weight:700;color:var(--ink);transition:background 180ms ease,transform 180ms ease}
.article-list .text-link::after{content:'↗';font-size:18px}
.article-list .text-link:hover{background:var(--ink);color:var(--white);transform:translateY(-2px)}
.inner-page main.legal-page{width:calc(100% - clamp(20px,5.5vw,88px)*2);max-width:1480px}
.article-page{padding-top:64px;padding-bottom:120px}
.article-page h1{max-width:18ch;font-size:clamp(48px,6vw,96px);line-height:.98;letter-spacing:-.015em;margin-bottom:28px}
.article-page .page-lead{max-width:52ch;font-size:clamp(20px,2vw,30px);line-height:1.35;padding-bottom:40px;border-bottom:1px solid var(--line)}
.article-page h2{margin-top:64px;max-width:24ch;font-size:clamp(30px,3.2vw,52px);line-height:1.05}
.article-page p,.article-page li{max-width:72ch}
.article-page p:not(.page-lead),.article-page li{font-size:18px;line-height:1.7}
.article-page ul{padding-left:24px;margin:16px 0 28px}
.article-page .button{margin-top:28px;text-decoration:none}
@media(max-width:639px){.inner-page main.legal-page{width:calc(100% - clamp(20px,5.5vw,88px)*2)}.article-page{padding-top:40px}.article-page h1{font-size:clamp(42px,12vw,64px)}.article-page h2{margin-top:44px}.article-page p:not(.page-lead),.article-page li{font-size:16px}}
@media(max-width:760px){.article-list{grid-template-columns:minmax(0,1fr)}}
