.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  width: 100%;
  min-height: 64px;
  background: rgba(250, 250, 250, 0.92);
  border-bottom: 1px solid #ebebeb;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-header.scrolled {
  background: rgba(250, 250, 250, 0.97);
  border-color: #e2e2e2;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1320px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.site-header__brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

.site-header__brand img {
  display: block;
  width: auto;
  height: 44px;
}

.site-header__desktop {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 30px);
}

.site-header__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #4d4d4d;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease;
}

.site-header__link:hover,
.site-header__link.is-current {
  color: #171717;
}

.site-header__link.is-current {
  font-weight: 500;
}

.site-header__link:focus-visible,
.site-header__brand:focus-visible,
.site-header__cta:focus-visible,
.site-header__menu-toggle:focus-visible,
.site-header__mobile-menu a:focus-visible {
  outline: 2px solid #0070f3;
  outline-offset: 4px;
}

.site-header__dropdown {
  position: relative;
}

.site-header__dropdown-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.site-header__dropdown.is-open .site-header__dropdown-toggle svg {
  transform: rotate(180deg);
}

.site-header__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(220px, 1.1fr);
  gap: 8px;
  width: min(500px, calc(100vw - 32px));
  padding: 10px;
  transform: translateX(-50%);
  border: 1px solid #ebebeb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.site-header__dropdown-menu[hidden],
.site-header__mobile-menu[hidden] {
  display: none !important;
}

.site-header__group {
  min-width: 0;
  padding: 3px;
}

.site-header__group + .site-header__group {
  padding-left: 11px;
  border-left: 1px solid #ebebeb;
}

.site-header__group-label,
.site-header__mobile-label {
  display: block;
  padding: 4px 10px 6px;
  color: #888;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-header__dropdown-item {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: #4d4d4d;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.site-header__dropdown-item:hover,
.site-header__dropdown-item.is-current {
  background: #fafafa;
  color: #171717;
}

.site-header__dropdown-item strong {
  display: block;
  margin-bottom: 2px;
  color: #171717;
  font-weight: 500;
}

.site-header__dropdown-item span {
  color: #888;
  font-size: 12px;
}

.site-header__dropdown-item.is-current strong {
  font-weight: 600;
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #171717;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

.site-header__cta:hover {
  transform: translateY(-1px);
  background: #000;
  color: #fff;
}

.site-header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #e2e2e2;
  border-radius: 50%;
  background: #fff;
  color: #171717;
  cursor: pointer;
}

.site-header__menu-toggle svg {
  display: block;
  width: 19px;
  height: 19px;
}

.site-header__close-icon {
  display: none !important;
}

.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-icon {
  display: none;
}

.site-header__menu-toggle[aria-expanded="true"] .site-header__close-icon {
  display: block !important;
}

.site-header__mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  padding: 12px 20px 20px;
  border-bottom: 1px solid #ebebeb;
  background: #fafafa;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.site-header__mobile-links {
  display: grid;
  gap: 2px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.site-header__mobile-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  color: #4d4d4d;
  font-size: 15px;
  text-decoration: none;
}

.site-header__mobile-menu a:hover,
.site-header__mobile-menu a.is-current {
  background: #fff;
  color: #171717;
}

.site-header__mobile-label {
  padding: 12px 14px 4px;
  font-size: 11px;
}

.site-header__mobile-subitem {
  padding-left: 26px !important;
}

.site-header__mobile-menu .site-header__cta {
  margin-top: 8px;
  background: #171717;
  color: #fff;
  text-align: center;
}

.site-header ~ .policy {
  padding-top: 144px;
}

@media (max-width: 900px) {
  .site-header__desktop,
  .site-header__cta--desktop {
    display: none;
  }

  .site-header__menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .site-header__inner {
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-header__brand img {
    height: 40px;
  }

  .site-header__mobile-menu {
    padding-right: 16px;
    padding-left: 16px;
  }

  .site-header ~ .policy {
    padding-top: 112px;
  }
}
