/* SPUTEK PV · Shared modern navigation · 2026-10-21 */
.site-header,
.site-header * { box-sizing: border-box; }

.site-header {
  --nav-text: #f5f5f7;
  --nav-muted: #c6c8d0;
  --nav-accent: #ef6861;
  position: fixed;
  z-index: 1000;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1280px, calc(100% - 48px));
  height: 72px;
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr) 144px;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: linear-gradient(115deg, rgba(22,24,31,.92), rgba(27,27,33,.88));
  box-shadow: 0 12px 32px rgba(8,12,20,.16), inset 0 1px 0 rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  backdrop-filter: blur(24px) saturate(135%);
  color: var(--nav-text);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  transition: height .2s ease, top .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled {
  top: 12px;
  height: 64px;
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 10px 28px rgba(8,12,20,.22), inset 0 1px 0 rgba(255,255,255,.07);
}
.site-header a { color: inherit; text-decoration: none; }
.site-header .site-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  width: 128px;
  max-width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.site-brand img {
  display: block;
  width: 128px;
  max-width: 100%;
  height: 36px;
  object-fit: cover;
}
.site-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.site-nav-group {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 4px;
  min-width: 0;
}
.site-nav-group > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 11px;
  color: var(--nav-muted);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.3;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.site-nav-group > a:hover {
  color: #fff;
  background: rgba(255,255,255,.055);
}
.site-nav-group > a[aria-current] {
  color: #fff;
  background: rgba(255,255,255,.065);
}
.site-nav-group > a[aria-current]::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: calc(50% - 8px);
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--nav-accent);
}
.site-nav-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
}
.site-nav-mark img {
  display: block;
  width: 28px;
  height: 30px;
  object-fit: contain;
  opacity: .92;
}
.site-header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.site-header .sputek-cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  background: linear-gradient(145deg, #cc3434, #ae252b);
  box-shadow: 0 4px 12px rgba(116,17,28,.16), inset 0 1px 0 rgba(255,255,255,.07);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.site-header .sputek-cart-link:hover {
  background: linear-gradient(145deg, #dc4140, #be2b30);
  border-color: rgba(255,255,255,.24);
  box-shadow: 0 6px 16px rgba(116,17,28,.24);
}
.site-header .sputek-cart-link:active {
  box-shadow: inset 0 2px 5px rgba(70,8,15,.18);
}
.site-cart-icon { display: flex; align-items: center; }
.site-cart-icon svg { display: block; width: 18px; height: 18px; }
.site-header .sputek-cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 8px;
  background: #fff;
  color: #a3232a;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.site-menu-toggle {
  display: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 13px;
  background: rgba(255,255,255,.045);
  align-content: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.site-menu-toggle:hover,
.site-menu-toggle[aria-expanded="true"] {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.25);
}
.site-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: #f5f5f7;
  transition: transform .18s ease;
}
.site-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.site-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.site-mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 12px;
  max-height: calc(100dvh - 110px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  background: #1b1e26;
  box-shadow: 0 18px 38px rgba(8,12,20,.22);
}
.site-mobile-menu[hidden] { display: none; }
.site-mobile-menu > a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 11px;
  color: var(--nav-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: background .18s ease, color .18s ease;
}
.site-mobile-menu > a:hover,
.site-mobile-menu > a[aria-current] { background: rgba(255,255,255,.065); color: #fff; }
.site-mobile-menu > a[aria-current]::before {
  content: "";
  width: 3px;
  height: 16px;
  position: absolute;
  left: 5px;
  top: calc(50% - 8px);
  border-radius: 3px;
  background: var(--nav-accent);
}
.site-header :focus-visible { outline: 3px solid #f4a59f; outline-offset: 3px; }
.panel-designer-page > .shell { padding-top: 145px; }
.payment-result-page { padding-top: 130px; }
.error-page { padding-top: 130px; }
html { scroll-padding-top: 112px; }

@media (min-width: 1100px) and (max-width: 1199px) {
  .site-header { width: calc(100% - 32px); padding: 0 18px; grid-template-columns: 128px minmax(0,1fr) 128px; gap: 12px; }
  .site-nav { gap: 8px; }
  .site-nav-group { gap: 2px; }
  .site-nav-group > a { padding: 0 8px; font-size: 12px; }
  .site-brand img { width: 120px; }
}
@media (max-width: 1099px) {
  .site-header { top: 12px; width: calc(100% - 32px); height: 68px; padding: 0 16px; grid-template-columns: minmax(0,1fr) auto; gap: 12px; border-radius: 20px; }
  .site-header.is-scrolled { top: 10px; height: 64px; }
  .site-nav { display: none; }
  .site-menu-toggle { display: grid; }
  .site-header .site-brand { width: 120px; }
  .site-brand img { width: 120px; height: 34px; }
  .panel-designer-page > .shell { padding-top: 120px; }
}
@media (max-width: 400px) {
  .site-header { width: calc(100% - 20px); padding: 0 12px; gap: 8px; }
  .site-header .site-brand { width: 106px; }
  .site-brand img { width: 106px; height: 32px; }
  .site-header .sputek-cart-word { display: none; }
  .site-header .sputek-cart-link { padding: 0 9px; gap: 6px; }
  .site-mobile-menu { grid-template-columns: 1fr; }
  .site-mobile-menu > a { padding: 11px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header * { transition: none !important; }
  html { scroll-behavior: auto; }
}
