/* LUMOS · one header for every page (30.11.2026, Алёна: «как на главной»).
   The home page's .top bar, applied to the shared markup that layout.js writes (nav-wrap / nav / mobile-menu),
   so nav.js and the account's integrity hashes stay as they are. Linked inside the site-nav block, i.e. after
   nav.css and lumos-brand.css, and written with html:root body … so it wins over their dark strip.
   Always light: the bar is a white pill over any page, dark heroes included. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/home/fonts/manrope-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/home/fonts/manrope-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

html:root body .nav-wrap, html:root body .mobile-menu, html:root body .nav-spacer {
  --h-ink: #131209; --h-paper: #F4F4F2; --h-muted: #5c5c5c; --h-amber: #E8913A;
  --h-line: rgb(19 18 9 / .12); --h-gut: 80px; --h-ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
@media (max-width: 1023px) { html:root body .nav-wrap, html:root body .mobile-menu { --h-gut: 40px; } }
@media (max-width: 639px) { html:root body .nav-wrap, html:root body .mobile-menu { --h-gut: 16px; } }

/* ---------- the bar ---------- */
html:root body .nav-wrap {
  position: fixed; top: 12px; left: 0; right: 0; z-index: 50; padding: 0 var(--h-gut); pointer-events: none;
  font: 400 16px/24px "Manrope", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
html:root body .nav-wrap .nav {
  pointer-events: auto; box-sizing: border-box; width: 100%; max-width: 1200px; height: auto; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 24px;
  border: 1px solid var(--h-line); border-radius: 999px;
  background: rgb(255 255 255 / .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  color: var(--h-ink);
}
html:root body .nav-wrap .brand { display: inline-flex; align-items: center; flex: none; margin-right: 8px; padding: 0; border: 0; min-height: 0; }
html:root body .nav-wrap .brand svg { display: block; width: 104px; height: auto; overflow: visible; }
html:root body .nav-wrap .brand .mark-body { fill: var(--h-ink); }
html:root body .nav-wrap .brand .mark-star { fill: var(--h-amber); }

html:root body .nav-wrap .nav-links { display: flex; align-items: center; gap: 24px; margin: 0 auto; font-size: 14px; line-height: 20px; font-weight: 500; }
html:root body .nav-wrap .nav-links a {
  padding: 0; border: 0; border-radius: 0; min-height: 0; background: none; opacity: 1; color: inherit;
  text-decoration: none; white-space: nowrap; transition: color 300ms var(--h-ease);
}
html:root body .nav-wrap .nav-links a:hover { color: var(--h-amber); background: none; }
html:root body .nav-wrap .nav-links a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }

html:root body .nav-wrap .language-switch { display: inline-flex; align-items: center; gap: 4px; flex: none; margin: 0; font-size: 12px; line-height: 16px; color: var(--h-muted); }
html:root body .nav-wrap .language-switch [aria-current] { font-weight: 700; color: var(--h-ink); }
html:root body .nav-wrap .language-switch a { min-height: 0; color: inherit; text-decoration: underline; text-underline-offset: .22em; }
html:root body .nav-wrap .language-switch a:hover { color: var(--h-ink); }

html:root body .nav-wrap .nav a.nav-cart { display: grid; place-items: center; flex: none; width: 32px; height: 32px; min-width: 0; min-height: 0; margin: 0; padding: 0; border-radius: 999px; background: none; color: inherit; }
html:root body .nav-wrap .nav a.nav-cart:hover { background: rgb(19 18 9 / .06); }
html:root body .nav-wrap .nav-cart svg { width: 20px; height: 20px; }
html:root body .nav-wrap .nav-cart span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

html:root body .nav-wrap .nav .nav-cta {
  display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 40px; margin: 0; padding: 8px 16px;
  border: 1px solid transparent; border-radius: 999px; background: var(--h-ink); color: var(--h-paper);
  font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform 300ms var(--h-ease), background-color 300ms var(--h-ease);
}
html:root body .nav-wrap .nav .nav-cta:hover { background: #2a2820; transform: translateY(-2px); }
html:root body .nav-wrap .nav .nav-cta:active { transform: translateY(1px) scale(0.98); }

/* burger: the home page's round dark button with three lines */
html:root body .nav-wrap .nav .menu-toggle {
  display: none; position: relative; flex: none; width: 40px; height: 40px; min-height: 40px; margin: 0 0 0 auto; padding: 0;
  border: 0; border-radius: 999px; background: var(--h-ink); color: var(--h-paper); cursor: pointer;
}
html:root body .nav-wrap .menu-toggle span { position: absolute; left: 12px; right: 12px; width: auto; height: 1.5px; border-radius: 0; background: currentColor; transition: transform 500ms var(--h-ease), opacity 300ms var(--h-ease); }
html:root body .nav-wrap .menu-toggle span:nth-child(1) { top: 14px; }
html:root body .nav-wrap .menu-toggle span:nth-child(2) { top: 24px; }
html:root body .nav-wrap .menu-toggle span:nth-child(1)::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1.5px; background: currentColor; transition: opacity 300ms var(--h-ease); }
html:root.menu-open body .nav-wrap .menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
html:root.menu-open body .nav-wrap .menu-toggle span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }
html:root.menu-open body .nav-wrap .menu-toggle span:nth-child(1)::after { opacity: 0; }

html:root body .nav-wrap .nav-sep { display: none; }
html:root body .nav-wrap :focus-visible, html:root body .mobile-menu :focus-visible { outline: 2px solid var(--h-amber); outline-offset: 3px; border-radius: 4px; }

/* room under the fixed bar on pages that do not start with a full screen hero */
html:root body .nav-spacer { height: 84px; }

/* ---------- phones and tablets: logo + burger, everything else in the sheet ---------- */
@media (max-width: 1023px) {
  html:root body .nav-wrap .nav-links, html:root body .nav-wrap .nav > .language-switch,
  html:root body .nav-wrap .nav a.nav-cart, html:root body .nav-wrap .nav .nav-cta { display: none; }
  html:root body .nav-wrap .nav .menu-toggle { display: block; }
}

/* the sheet: white, full screen, under the bar (the home page's .sheet) */
html:root body .mobile-menu {
  position: fixed; inset: 0; z-index: 40; max-height: none; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overscroll-behavior: contain;
  padding: 96px var(--h-gut) 32px; border: 0; border-radius: 0; box-shadow: none;
  background: rgb(255 255 255 / .96); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); color: var(--h-ink);
  font: 400 16px/24px "Manrope", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  transform: none; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 300ms var(--h-ease), visibility 0s linear 300ms;
}
html:root.menu-open body .mobile-menu { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 300ms var(--h-ease); }
html:root body .mobile-menu .m-link {
  display: block; padding: 8px 0; border: 0; color: inherit; text-decoration: none;
  font-size: 30px; line-height: 36px; font-weight: 600;
}
html:root body .mobile-menu .m-link[aria-current="page"] { color: inherit; text-decoration: underline; text-underline-offset: 6px; }
html:root body .mobile-menu .m-item { opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--h-ease), transform 500ms var(--h-ease); }
html:root.menu-open body .mobile-menu .m-item { opacity: 1; transform: none; }
html:root body .mobile-menu .m-small { display: flex; align-items: center; gap: 24px; margin-top: 16px; font-size: 16px; line-height: 24px; font-weight: 500; }
html:root body .mobile-menu .m-small .m-cart { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: inherit; text-decoration: none; }
html:root body .mobile-menu .m-small .m-cart svg { width: 20px; height: 20px; }
html:root body .mobile-menu .language-switch { display: inline-flex; align-items: center; gap: 4px; color: var(--h-muted); }
html:root body .mobile-menu .language-switch [aria-current] { font-weight: 700; color: var(--h-ink); }
html:root body .mobile-menu .language-switch a { display: inline-flex; align-items: center; min-width: 32px; min-height: 44px; justify-content: center; color: inherit; }
html:root body .mobile-menu .btn {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 24px; min-height: 48px; padding: 12px 24px;
  border: 0; border-radius: 999px; background: var(--h-ink); color: var(--h-paper);
  font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none;
}
html:root body .mobile-menu .btn:hover { background: #2a2820; }
@media (min-width: 1024px) { html:root body .mobile-menu { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html:root body .nav-wrap *, html:root body .mobile-menu, html:root body .mobile-menu .m-item { transition: none; }
  html:root body .mobile-menu .m-item { transform: none; }
}
