/* One navigation component; px keep its geometry independent of page rem scales. */
header.site {
  --header-paper: #fffdf8;
  --header-ink: #211b14;
  --header-ink-soft: #5a5044;
  --header-line: #e3dac8;
  --header-gold: #855e24;
  --header-glass: rgb(255 253 248 / 62%);
  --header-menu-glass: rgb(255 253 248 / 78%);
  position: fixed;
  inset: max(16px, env(safe-area-inset-top, 0px)) 0 auto;
  z-index: 80;
  color: var(--header-ink);
  font: 500 13.5px/1.6 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: none;
}
header.site *, header.site *::before { box-sizing: border-box; }
.site .site-header__wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 56px); }
.site .nav { position: relative; isolation: isolate; min-height: 80px; display: flex; align-items: center; gap: 20px; padding: 8px 16px 8px 21px; border: 1px solid var(--header-line); border-radius: 50px; pointer-events: auto; }
/* Blur on a sibling layer also lets the dropdown blur the page behind it. */
.site .nav::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--header-paper); pointer-events: none; }
.site a { text-decoration: none; }
.site .brand { display: flex; align-items: center; flex: none; margin-right: auto; }
.site .brand__logo { display: block; width: 138px; height: 66px; max-width: none; object-fit: contain; }
.site .menu { display: flex; align-items: center; gap: 2px; margin: 0 auto; padding: 0; list-style: none; }
.site .menu a, .site .menu .site-nav__catalog { display: flex; align-items: center; min-height: 44px; padding: 12px 11px; color: var(--header-ink-soft); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: color .2s; }
.site .menu .site-nav__catalog { flex-direction: column; justify-content: center; gap: 2px; padding-block: 6px; line-height: 1.4; cursor: default; }
.site .site-nav__status { color: var(--header-ink-soft); font-size: 10px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.site .menu a:hover, .site .menu [aria-current="page"] { color: var(--header-gold); }
.site .menu [aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.site .nav__phone { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; color: var(--header-ink); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.site .nav__phone-label { color: var(--header-ink-soft); font-size: 10px; font-weight: 500; letter-spacing: .06em; }
.site .nav__contact { display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 46px; padding: 14.5px 20px; border: 1px solid transparent; border-radius: 100px; background: #d0b273; color: #251c10; font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; transition: background .2s; }
.site .nav__contact:hover { background: #e0c58e; }
.site .burger { display: none; align-items: center; justify-content: center; flex: 0 0 46px; width: 46px; height: 46px; padding: 0; border: 1px solid var(--header-line); border-radius: 50%; background: transparent; color: var(--header-ink); cursor: pointer; }
.site .burger svg { width: 20px; height: 20px; }
.site .burger:hover, .site .burger[aria-expanded="true"] { border-color: var(--header-gold); }
.site :focus-visible { outline: 3px solid var(--header-gold); outline-offset: 4px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) header.site { --header-paper: #1d1712; --header-ink: #f3ecdd; --header-ink-soft: #c8bda9; --header-line: #44392c; --header-gold: #d9b466; --header-glass: rgb(29 23 18 / 64%); --header-menu-glass: rgb(29 23 18 / 82%); }
}
:root[data-theme="dark"] header.site, header.site.over-dark { --header-paper: #1d1712; --header-ink: #f3ecdd; --header-ink-soft: #c8bda9; --header-line: #44392c; --header-gold: #d9b466; --header-glass: rgb(29 23 18 / 64%); --header-menu-glass: rgb(29 23 18 / 82%); }
@media (min-width: 1161px) and (max-width: 1380px) {
  .site .nav__phone { display: none; }
  .site .nav { gap: 12px; }
  .site .menu a, .site .menu .site-nav__catalog { padding-inline: 8px; }
}
@media (max-width: 1160px) {
  .site .nav { flex-wrap: wrap; }
  .site .nav__phone { display: none; }
  .site .menu { order: 4; width: 100%; flex-wrap: wrap; justify-content: center; }
  :root:not(.site-header-ready):not(.site-header-pending) header.site { position: relative; margin-bottom: 32px; }
  :root:not(.site-header-ready):not(.site-header-pending) .shop-main { padding-top: 16px; }
  :is(.site-header-ready, .site-header-pending) .site .nav { flex-wrap: nowrap; }
  :is(.site-header-ready, .site-header-pending) .site .burger { display: flex; }
  :is(.site-header-ready, .site-header-pending) .site .menu { display: none; }
  .site-header-ready .site .menu.open { position: absolute; top: calc(100% + 10px); left: 0; right: 0; display: flex; width: auto; flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; gap: 0; margin: 0; padding: 12px 20px; border: 1px solid var(--header-line); border-radius: 20px; background: var(--header-paper); box-shadow: 0 12px 30px rgb(0 0 0 / 10%); max-height: calc(100dvh - 132px); overflow: auto; overscroll-behavior: contain; }
  .site .menu.open a, .site .menu.open .site-nav__catalog { padding: 14px 6px; font-size: 16px; }
  .site .menu.open .site-nav__catalog { align-items: flex-start; }
  .site .menu.open .site-nav__status { font-size: 11px; }
}
@supports ((backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px))) {
  .site .nav::before { background: var(--header-glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
  .site-header-ready .site .menu.open { background: var(--header-menu-glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
}
@media (max-width: 560px) {
  header.site { top: max(10px, env(safe-area-inset-top, 0px)); }
  .site .site-header__wrap { padding-inline: 12px; }
  .site .nav { min-height: 72px; gap: 8px; padding: 8px 10px 8px 14px; }
  .site .brand__logo { width: 115px; height: 55px; }
  .site .nav__contact { flex-shrink: 1; min-width: 0; min-height: 44px; padding: 13px 14.5px; font-size: 11.5px; white-space: normal; text-align: center; }
  .site .burger { width: 44px; height: 44px; flex-basis: 44px; }
}
@media (max-width: 360px) {
  .site .nav { gap: 4px; padding-left: 10px; }
  .site .brand__logo { width: 108.5px; height: 52px; }
  .site .nav__contact { padding-inline: 8px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .site * { transition: none !important; } }
