/* Общая шапка сайта. Одна на все витринные страницы.
   Разметку вписывает tools/build_chrome.py между метками <!-- chrome:header -->.
   Стили самодостаточны: не зависят от токенов страницы, поэтому одинаково
   живут и на тёмных страницах закона, и на светлой ветке SOLO (§12).
   Цвета — из §12.1: --dark #131211, --cream #F0EFEA, заливка кнопки #E85627. */

html{scroll-padding-top:72px}
/* Часть страниц режет горизонтальную прокрутку через overflow-x:hidden на html/body —
   это ломает прилипание шапки (kurs.html). clip режет так же, но не ломает sticky.
   Браузер без clip правило пропустит — останется как было. */
@supports (overflow:clip){html,body{overflow-x:clip}}

.gh{position:sticky;top:0;z-index:1000;background:#131211;color:#F0EFEA;
  border-bottom:1px solid rgba(240,239,234,.12);
  font-family:"Inter","Golos Text",system-ui,-apple-system,sans-serif;font-size:15px;line-height:1.2}
.gh *,.gh *::before,.gh *::after{box-sizing:border-box}
.gh__in{max-width:1200px;margin:0 auto;padding:0 clamp(16px,4vw,40px);height:60px;
  display:flex;align-items:center;gap:clamp(12px,2.4vw,32px)}

.gh__brand{display:flex;align-items:center;min-height:44px;color:#F0EFEA;text-decoration:none;white-space:nowrap;
  font-family:"RoadRadio",sans-serif;font-weight:700;text-transform:uppercase;font-size:1.02rem;letter-spacing:.03em}
.gh__brand span+span{margin-left:.32em}

.gh__nav{display:flex;gap:clamp(14px,2.2vw,30px);margin-left:auto}
.gh__nav a,.gh__drop a{color:rgba(240,239,234,.72);text-decoration:none;font-weight:500;white-space:nowrap;
  transition:color .15s cubic-bezier(.2,.7,.2,1)}
.gh__nav a{position:relative;display:flex;align-items:center;min-height:44px}
.gh__nav a:hover,.gh__drop a:hover,.gh__nav a[aria-current],.gh__drop a[aria-current]{color:#F0EFEA}
.gh__nav a[aria-current]::after{content:"";position:absolute;left:0;right:0;bottom:9px;height:2px;background:#E95628}

.gh__cta{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;
  background:#E85627;color:#151515;border-radius:12px;text-decoration:none;white-space:nowrap;
  font-weight:600;font-size:14px;transition:background-color .15s cubic-bezier(.2,.7,.2,1)}
.gh__cta:hover{background:#FA693C}
.gh__cta:active{background:#DC4F24}

.gh a:focus-visible,.gh summary:focus-visible{outline:2px solid #F0EFEA;outline-offset:2px;border-radius:6px}

/* Меню на телефоне и узком планшете — <details>, работает без скриптов */
.gh__menu{display:none;position:static}
.gh__menu summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;min-height:44px;min-width:44px;
  padding:0 4px;color:#F0EFEA;font-weight:600;font-size:14px}
.gh__menu summary::-webkit-details-marker{display:none}
.gh__bars{position:relative;width:18px;height:12px;border-top:2px solid currentColor;border-bottom:2px solid currentColor}
.gh__bars::after{content:"";position:absolute;left:0;right:0;top:3px;height:2px;background:currentColor}
.gh__menu[open] .gh__bars{border:0}
.gh__menu[open] .gh__bars::after{top:5px;transform:rotate(45deg)}
.gh__menu[open] .gh__bars::before{content:"";position:absolute;left:0;right:0;top:5px;height:2px;background:currentColor;transform:rotate(-45deg)}
.gh__drop{position:absolute;left:0;right:0;top:60px;background:#131211;border-bottom:1px solid rgba(240,239,234,.12);
  padding:8px clamp(16px,4vw,40px) 20px;display:grid;max-height:calc(100svh - 60px);overflow:auto}
.gh__drop a{display:flex;align-items:center;min-height:52px;font-size:17px;border-bottom:1px solid rgba(240,239,234,.08)}
.gh__drop a:last-child{border-bottom:0}
.gh__drop a[aria-current]{color:#E95628}

@media (max-width:860px){
  .gh__nav{display:none}
  .gh__menu{display:block;margin-left:0}
  .gh__cta{margin-left:auto}
}
@media (max-width:440px){
  .gh__in{gap:10px}
  .gh__brand{flex-direction:column;align-items:flex-start;justify-content:center;font-size:.82rem;line-height:1}
  .gh__brand span+span{margin-left:0}
  .gh__cta{padding:0 12px;font-size:13px}
  .gh__menu summary .gh__lbl{display:none}
}
@media (prefers-reduced-motion:reduce){.gh *{transition:none!important}}
@media print{.gh{display:none}}
