/* TASK-0991 — the site header, variant C «Липкая» chosen by the owner 20.10 (INBOX #208, TASK-0985).
   The C rules of docs/os/work/TASK-0977/header-variants.css as accepted by ux* (3bdf4cd8d) without the html.v-*
   prefix (tools/test_build_new.py: variant_c). Sticky header 64 px, logo left, menu right; below 860 px a «Menu»
   button opens the links under the header. The skip link sits above the header; html scroll-padding and
   header.js (focusin) keep a focused element out from under it. Owner's tokens only. Loaded last (on reviews
   toc.css follows: TASK-1069 — the review's «On this page» bar sticks under this header, its own .toc rule is gone). */
.menu-toggle { display: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: max(26px, calc((100% - var(--page-width)) / 2)); }
.site-header > .brand-line, .site-header > .site-nav { max-width: none; margin: 0; padding: 0; }
.brand-line { justify-content: flex-start; }
.brand { min-height: 44px; }
.brand-country { text-align: left; letter-spacing: .42em; }
.site-nav { justify-content: flex-end; min-height: 0; }
.skip:focus { z-index: 30; }
.site-header .nav-link:focus-visible { outline-offset: -4px; box-shadow: none; }
.site-header { position: sticky; top: 0; z-index: 20; min-height: 64px; transition: box-shadow 150ms; }
.scrolled .site-header { box-shadow: var(--shadow-stuck); }
.brand { gap: 9px; }
.brand-mark { width: 41.2px; height: 40px; }
.brand-name { font-size: 19.5px; letter-spacing: -.8px; }
.brand-country { font-size: 8.5px; margin: 3px 0 0 1px; }
.site-nav { gap: 26px; align-self: stretch; align-items: stretch; }
.site-header .nav-link { display: flex; align-items: center; font-size: 15px; padding: 0 2px; }
.nav-link[aria-current=page]::after { bottom: 0; height: 3px; border-radius: 3px 3px 0 0; }
.ranking { scroll-margin-top: 80px; }
html { scroll-padding-top: 80px; }
@media (max-width: 859px) {
  :root { --hdr-pad: 26px; }
  .site-header { flex-wrap: wrap; row-gap: 0; padding-inline: var(--hdr-pad); align-content: flex-start; }
  .site-header > .brand-line { display: flex; align-items: center; min-height: var(--hdr-row); }
  .menu-toggle { align-self: center; }
  :root { --hdr-row: 55px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 14px; margin-left: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 700; }
  .menu-toggle svg { width: 20px; height: 20px; flex: 0 0 auto; }
  .menu-toggle[aria-expanded=true] { background: var(--purple-soft); border-color: var(--purple-soft); color: var(--purple); }
  .site-nav { display: none; }
  .nav-open .site-nav { display: flex; flex-direction: column; align-items: stretch; flex: 0 0 calc(100% + 2 * var(--hdr-pad)); gap: 0; margin: 0 calc(-1 * var(--hdr-pad)); padding: 4px 0 8px; border-top: 1px solid var(--line); }
  .nav-open .nav-link { display: flex; align-items: center; min-height: 48px; padding: 0 16px; font-size: 16px; border-radius: 0; }
  .nav-open .nav-link[aria-current=page]::after { content: ''; top: 12px; bottom: 12px; left: 0; right: auto; width: 3px; height: auto; }
  .site-header { min-height: 56px; }
  .brand-mark { width: 33px; height: 32px; }
  .brand-name { font-size: 16.5px; letter-spacing: -.6px; }
  .brand-country { font-size: 7.5px; margin-top: 2px; }
  .site-nav { align-self: auto; }
  .ranking { scroll-margin-top: 68px; }
}
@media (max-width: 759px) {
  :root { --hdr-pad: 16px; }
}
@media (max-width: 359px) {
  .menu-toggle { padding: 0; width: 44px; }
  .menu-toggle .menu-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
}
@media print {
  .menu-toggle { display: none !important; }
}
