/* RUSSIA-ICAO-REVISION-3 — 2026-10-22 */
/* Navigation/content update. The Figma 1080/992/44 grid stays in desktop-figma.css. */
.site-header #navigation .nav-group-label{padding:calc(10 * var(--du)) calc(12 * var(--du)) calc(6 * var(--du));font-size:calc(11 * var(--du));font-weight:600;color:#77718c;letter-spacing:.03em}
.site-header #navigation .nav-section-start{border-top:calc(1 * var(--du)) solid #e4e1ed;margin-top:calc(6 * var(--du));padding-top:calc(6 * var(--du))}
@media(min-width:1080px){
 .site-header #navigation{flex:1;min-width:0;gap:20.8735px;font-size:11.5px;line-height:17.825px;justify-content:flex-end}
 .site-header #navigation>a,.site-header #navigation>details{white-space:normal;flex:0 1 auto;line-height:17.825px}
 .site-header #navigation>a{max-width:calc(126 * var(--du))}
 .site-header #navigation>details>summary{max-width:calc(100 * var(--du))}
 .site-header .site-wordmark{flex-basis:168px}
}
.topic-article{display:grid;gap:calc(36 * var(--du));max-width:none}
.topic-article p{max-width:calc(760 * var(--du));font-size:calc(16 * var(--du));line-height:1.75;margin:0}
.topic-article p+p{margin-top:calc(16 * var(--du))}
.topic-article .topic-lead{font-size:calc(19 * var(--du));line-height:1.6}
.topic-article section+section{padding-top:calc(32 * var(--du));border-top:calc(1 * var(--du)) solid #dedbe8}
.topic-article a{font-size:calc(14 * var(--du));text-decoration:underline;text-decoration-color:#c2bad5;text-underline-offset:.3em}
.topic-next{padding-top:calc(24 * var(--du));border-top:calc(1 * var(--du)) solid #d8c193}
.news-feed{display:grid;gap:0}
.news-entry{display:grid;grid-template-columns:calc(136 * var(--du)) minmax(0,1fr);gap:calc(32 * var(--du));padding:calc(32 * var(--du)) 0;border-top:calc(1 * var(--du)) solid #dedbe8;scroll-margin-top:calc(24 * var(--du))}
.news-feed .news-source{display:none}
.news-entry[tabindex="-1"]:focus{outline:none}
.news-entry time{font-size:calc(13 * var(--du));line-height:1.6;color:#77718c;padding-top:calc(5 * var(--du))}
.news-entry h2{font-size:calc(23 * var(--du));line-height:1.4;font-weight:500;margin:0 0 calc(16 * var(--du))}
.news-entry p{max-width:calc(760 * var(--du));font-size:calc(15 * var(--du));line-height:1.75;margin:0 0 calc(18 * var(--du))}
.news-source{font-size:calc(12 * var(--du));line-height:1.6;color:#77718c}
.news-source a{color:#1b1464;text-decoration:underline;text-decoration-color:#c2bad5;text-underline-offset:.25em}
.news-more{justify-self:start;border:calc(1 * var(--du)) solid #d8c193;background:white;color:#1b1464;font:500 calc(14 * var(--du))/1.5 Montserrat,Arial,sans-serif;padding:calc(12 * var(--du)) calc(24 * var(--du));cursor:pointer}
.news-count{color:#77718c;font-size:calc(12 * var(--du));margin-top:calc(12 * var(--du))}
.news-entry[hidden],.news-more[hidden]{display:none}
/* Keep the approved three-column footprint; images will be added separately. */
.text-news-grid{height:auto;min-height:calc(276.164 * var(--u))}
.text-news-grid .news-text{height:auto;min-height:calc(276.164 * var(--u));padding:calc(18 * var(--u));gap:calc(12 * var(--u))}
.text-news-grid .news-text time{position:static;font-size:calc(11 * var(--u));line-height:1.4;font-weight:500}
.text-news-grid .news-text h3{font-size:calc(14 * var(--u));line-height:1.4;font-weight:600;margin:0}
.text-news-grid .news-text p{font-size:calc(12 * var(--u));line-height:1.6;color:#69617e;margin:0}
.text-news-grid .news-text .news-source{margin-top:auto;font-size:calc(11 * var(--u));line-height:1.5}
.all-news-link{display:inline-block;margin:calc(16 * var(--u)) 0 calc(28 * var(--u));font-size:calc(13 * var(--u));text-decoration:underline;text-underline-offset:.3em}
@media(min-width:1080px){
 .feature h2{left:calc(20.25 * var(--u));right:calc(20 * var(--u));top:calc(23 * var(--u));line-height:1.3}
 .feature p{left:calc(20.25 * var(--u));top:calc(83 * var(--u));white-space:normal;right:calc(20 * var(--u));font-size:calc(13 * var(--u))}
}
@media(max-width:1079px){
 .news-entry{grid-template-columns:minmax(0,1fr);gap:12px;padding:24px 0}
 .news-entry h2{font-size:21px;line-height:1.4}
 .news-entry p{font-size:15px}
 .text-news-grid .news-text{min-height:0;padding:20px;gap:14px}
 .text-news-grid .news-text h3{font-size:18px}
 .text-news-grid .news-text p{font-size:14px}
 .text-news-grid .news-text time,.text-news-grid .news-text .news-source{font-size:12px}
 .all-news-link{font-size:14px;margin:20px 0 28px}
 .topic-article .topic-lead{font-size:18px}
}

@media(min-width:1080px){
 .site-header .site-header-inner{height:84px;min-height:84px;gap:18px}
 .site-header #navigation>details>summary{line-height:17.825px}
 .site-header .site-language{font-size:11.5px;line-height:17.825px}
}

@media(min-width:1080px){.site-header #navigation>a:first-child{white-space:nowrap;flex-shrink:0}}


/* 22.10.2026 — В десктопной навигации «Россия в ИКАО» в одну строку.
   Длинные названия других разделов при необходимости могут переноситься. */
@media (min-width:1080px) {
  .site-header #navigation {
    gap:clamp(8px,1.05vw,17px);
  }
  .site-header #navigation > details.nav-group {
    flex:0 0 auto;
  }
  .site-header #navigation > details.nav-group > summary {
    max-width:none;
    white-space:nowrap;
  }
}
@media (min-width:1080px) and (max-width:1199px) {
  .site-header #navigation {
    gap:8px;
    font-size:11px;
  }
}
@media (min-width:1320px) {
  .site-header #navigation > a[href$="environment.html"] {
    max-width:none;
    white-space:nowrap;
    flex:0 0 auto;
  }
}


/* Revision 3 — desktop heading and compact mobile chronological runway. */
@media (min-width:1080px) {
  .site-header #navigation > details.nav-group,
  .site-header #navigation > details.nav-group > summary {
    flex-shrink:0;
    max-width:none;
    white-space:nowrap;
  }
  .site-header #navigation { gap:clamp(8px,1.05vw,17px); }
  .representatives-page .page-content > h1 {
    font-size:clamp(26px,3vw,40px);
    line-height:1.2;
    white-space:nowrap;
    letter-spacing:-.015em;
  }
  .representatives-page .page-content > h1 br { display:none !important; }
}
.representatives-page .runway-timeline {
  background-image:none !important;
  position:relative;
}
.representatives-page .runway-timeline::before {
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:calc(247 * var(--du, 1px));
  width:12px;
  border:2px solid #1b1464;
  border-radius:6px;
  box-sizing:border-box;
  background: repeating-linear-gradient(to bottom, #fff 0 12px, #1b1464 12px 29px);
  pointer-events:none;
  z-index:0;
}
.representatives-page .runway-timeline li > * { position:relative; z-index:1; }
@media (max-width:1079px) {
  .representatives-page .runway-timeline::before {
    left:calc(123 * var(--du,1px));
    width:8px;
    border-width:1px;
  }
  .representatives-page .page-content > h1 {
    font-size:clamp(28px,7vw,34px);
    line-height:1.2;
    letter-spacing:-.012em;
  }
  .representatives-page .page-content > h1 br { display:none !important; }
}
@media (max-width:380px) {
  .representatives-page .runway-timeline::before { left:calc(105 * var(--du,1px)); }
}

/* Fully visible SVG in mobile modal; scale the OBJECT itself, not its inner viewport.
   In some SVGs without an accessible viewBox, simply shrinking object.width clips it. */
.structure-mobile-zoom { display:none; }
@media (max-width:1079px) {
  #structure-dialog.visual-dialog {
    position:fixed !important;
    inset:0 !important;
    width:100vw !important;
    height:100dvh !important;
    max-width:none !important;
    max-height:none !important;
    box-sizing:border-box !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    overflow:hidden !important;
    background:#fff;
  }
  #structure-dialog.visual-dialog[open] {
    display:flex !important;
    flex-direction:column;
  }
  #structure-dialog .visual-dialog-heading {
    position:relative !important;
    top:auto !important;
    margin:0 !important;
    padding:12px 58px 12px 16px !important;
    min-height:58px;
    flex:0 0 auto;
    display:flex;
    align-items:center;
    border-bottom:1px solid #e4e1ed;
  }
  #structure-dialog .visual-dialog-heading h2 {
    font-size:21px;
    line-height:1.25;
    font-weight:500;
  }
  #structure-dialog .visual-dialog-heading .close-dialog {
    position:absolute !important;
    top:6px !important;
    right:8px !important;
    width:46px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
  }
  #structure-dialog .structure-mobile-zoom {
    display:flex;
    flex:0 0 auto;
    flex-wrap:wrap;
    gap:8px;
    padding:10px 12px;
    align-items:center;
    background:#faf9fc;
    border-bottom:1px solid #e4e1ed;
  }
  #structure-dialog .structure-mobile-zoom button {
    font:500 13px/1.2 Montserrat,Arial,sans-serif;
    border:1px solid #c9c5df;
    color:#1b1464;
    background:#fff;
    border-radius:5px;
    padding:9px 11px;
    min-height:38px;
  }
  #structure-dialog .structure-mobile-zoom button[aria-pressed="true"] {
    color:white;
    background:#1b1464;
    border-color:#1b1464;
  }
  #structure-dialog .structure-mobile-zoom a {
    margin-left:auto;
    font:500 12px/1.3 Montserrat,Arial,sans-serif;
    text-decoration:underline;
  }
  #structure-dialog .visual-scroll {
    display:block !important;
    flex:1 1 auto;
    min-width:0;
    min-height:0;
    max-height:none !important;
    width:100%;
    height:auto !important;
    margin:0 !important;
    padding:12px;
    box-sizing:border-box;
    overflow:auto !important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  #structure-dialog .structure-stage { position:relative; }
  #structure-dialog .structure-stage > .large-structure {
    display:block;
    width:992px !important;
    height:700px !important;
    min-width:992px;
    max-width:none !important;
    max-height:none !important;
    aspect-ratio:auto !important;
    border:0;
    margin:0;
    transform-origin:top left;
  }
}

/* 26.10.2026 — One active navigation line, including wrapped labels. */
.site-header #navigation > a[aria-current="page"],
.site-header #navigation > .nav-group-current > summary {
  position:relative;
  text-decoration:none;
}
.site-header #navigation > a[aria-current="page"]::before,
.site-header #navigation > .nav-group-current > summary::before {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-4px;
  height:2px;
  border-radius:1px;
  background:#d8c193;
  pointer-events:none;
}
.site-header #navigation .nav-dropdown a[aria-current="page"] {
  text-decoration:none;
}
@media (max-width:1079px) {
  .site-header #navigation > a[aria-current="page"]::before,
  .site-header #navigation > .nav-group-current > summary::before {
    left:4px;
    right:4px;
    bottom:4px;
  }
}

/* Keep short sections at least as tall as the viewport, with the footer below. */
body.environment-page,
body.aviation-heritage-page {
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
}
body.environment-page > .page-content,
body.aviation-heritage-page > .page-content {
  flex:1 0 auto;
}
body.environment-page > .site-header,
body.environment-page > .breadcrumb,
body.environment-page > .page-footer,
body.aviation-heritage-page > .site-header,
body.aviation-heritage-page > .breadcrumb,
body.aviation-heritage-page > .page-footer {
  flex:0 0 auto;
}

/* Keep the header aligned on short pages without a vertical scrollbar. */
html{overflow-y:scroll}

/* Shared header geometry matches the homepage at every breakpoint. */
.site-header{--du:1px}
.site-header .site-header-inner{width:calc(100% - 88px);max-width:none;min-height:84px;gap:18px;border-bottom:1px solid #1b1464}
.site-header .site-wordmark{flex:0 0 168px;width:168px}
.site-header .site-wordmark-text{display:block;font:500 12px/16px Montserrat,Arial,sans-serif;color:#1b1464}
.site-header #navigation{flex:1;justify-content:space-between;gap:18px;font:400 11.5px/17.825px Montserrat,Arial,sans-serif}
.site-header #navigation>a[href$="aviation-heritage.html"]{max-width:132px;white-space:normal}
.site-header .site-language{flex:none;order:3;margin:0}
.site-header #navigation>a[aria-current="page"],
.site-header #navigation>.nav-group-current>summary{font-weight:400}
@media(min-width:1080px) and (max-width:1279px){
 .site-header #navigation{gap:12px;font-size:10.5px}
 .site-header .site-wordmark{flex-basis:155px;width:155px}
 .site-header .site-header-inner{gap:12px}
}
@media(max-width:1079px){
 .site-header .site-header-inner{width:calc(100% - 40px);min-height:87px;gap:12px;border-bottom:0}
 .site-header .site-wordmark{flex:1;width:auto;min-width:0}
 .site-header .site-wordmark-text{font-size:12px;line-height:17px}
 .site-header .site-language{order:2}
 .site-header .menu-toggle{order:3;font:400 12px/17px Montserrat,Arial,sans-serif;gap:12px}
 .site-header .menu-toggle>span{font-size:20px}
 .site-header #navigation{display:none;font-size:15px;gap:0}
 .site-header #navigation.open{display:flex}
 .site-header #navigation>a[href$="aviation-heritage.html"]{max-width:none}
}
@media(max-width:374px){
 .site-header .site-wordmark-text{font-size:10px;line-height:15px}
}
