.site-header {
  --header-ink: #f8f8f8;
  --header-muted: rgb(221 221 221 / 68%);
  --header-accent: #b5b5b5;
  --header-border: rgb(194 194 194 / 16%);
  --header-surface: linear-gradient(180deg, rgb(26 26 26 / 88%), rgb(14 14 14 / 92%));
  --header-active: linear-gradient(180deg, #999999 0%, #6c6c6c 100%);
  --header-shadow: 0 10px 28px rgb(0 0 0 / 48%), inset 0 1px 0 rgb(255 255 255 / 7%);
  position: sticky;
  top: 0;
  z-index: 10;
  display: block;
  min-height: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 1376px);
  min-height: 80px;
  margin-inline: auto;
  padding-inline: max(24px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-right));
}

.site-header a {
  color: inherit;
  text-decoration: none;
}

.site-header a:focus-visible {
  outline: 2px solid var(--header-accent);
  outline-offset: 2px;
}

.site-header :is(.site-wordmark, .site-navigation, .site-account) {
  border: 1px solid var(--header-border);
  border-radius: 999px;
  background: var(--header-surface);
  background-clip: padding-box;
  box-shadow: var(--header-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header .site-wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 48px;
  margin-inline-end: auto;
  padding-inline: 22px;
  color: var(--header-ink);
  font: 600 19px/1.2 'Segoe UI', system-ui, sans-serif;
  letter-spacing: -.015em;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.site-header .site-wordmark:hover {
  border-color: rgb(181 181 181 / 38%);
  box-shadow: var(--header-shadow), 0 0 18px rgb(153 153 153 / 22%);
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  color: var(--header-muted);
}

.site-navigation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.site-navigation a:hover {
  background: rgb(194 194 194 / 10%);
  color: var(--header-ink);
}

.site-navigation a[aria-current] {
  background: var(--header-active);
  color: var(--header-ink);
  font-weight: 700;
  box-shadow: 0 0 20px rgb(153 153 153 / 48%), inset 0 1px 0 rgb(255 255 255 / 24%);
}

.site-header svg {
  width: 19px;
  height: 19px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-navigation svg { display: none; }

.site-header .site-account {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  color: var(--header-ink);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.site-header .site-account:hover {
  border-color: rgb(181 181 181 / 38%);
  background: linear-gradient(180deg, rgb(36 36 36 / 92%), rgb(17 17 17 / 95%));
  color: var(--header-ink);
  box-shadow: var(--header-shadow), 0 0 18px rgb(153 153 153 / 22%);
}

.site-header .site-account[aria-current] {
  border-color: rgb(194 194 194 / 35%);
  background: var(--header-active);
  color: var(--header-ink);
  box-shadow: 0 0 20px rgb(153 153 153 / 48%), inset 0 1px 0 rgb(255 255 255 / 24%);
}

.site-header ~ :is(.auth-page, .ticket-page, .faq-page) { margin-top: 36px; }

@media (max-width: 767px) {
  .site-header { position: relative; }
  .site-header-inner {
    min-height: 68px;
    padding-top: env(safe-area-inset-top);
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  }
  .site-navigation {
    position: fixed;
    inset: auto 0 max(10px, env(safe-area-inset-bottom));
    width: min(calc(100% - 20px), 430px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .site-navigation a {
    flex-direction: column;
    gap: 4px;
    min-height: 52px;
    padding: 4px 2px;
    font-size: 11px;
    white-space: nowrap;
  }
  .site-navigation svg { display: block; }
  .site-header ~ :is(.auth-page, .ticket-page, .faq-page) { margin-top: 24px; }
  .home-page .tariffs { scroll-margin-top: 16px; }
}
