.site-header {
  position: absolute;
  top: var(--header-offset);
  left: 0;
  right: 0;
  z-index: var(--z-header);
}

.site-header__inner {
  width: min(var(--container-width), calc(100% - (var(--container-padding) * 2)));
  margin-inline: auto;
  background-color: var(--color-header-green);
  border-radius: var(--radius-header);
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  gap: var(--space-4);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}

.site-header__logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  object-fit: contain;
}

.site-header__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
  min-width: 0;
}

.site-header__brand-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-header__brand-subtitle {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.92;
  margin-top: 2px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: clamp(12px, 1.55vw, 25px);
}

.site-header__nav-link {
  position: relative;
  color: var(--color-white);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  padding-bottom: 6px;
}

.site-header__nav-link--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background-color: var(--color-gold);
  border-radius: var(--radius-pill);
}

.site-header__nav-link--dropdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-header__language {
  position: relative;
}

.site-header__lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  color: var(--color-white);
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  padding: 4px;
}

.site-header__lang svg {
  width: 16px;
  height: 16px;
}

.site-header__lang .site-header__lang-chevron {
  width: 10px;
  height: 10px;
  transition: transform var(--transition-fast);
}

.site-header__lang[aria-expanded="true"] .site-header__lang-chevron {
  transform: rotate(180deg);
}

.site-header__language-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: calc(var(--z-header) + 1);
  width: 150px;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  color: var(--color-text-main);
}

.site-header__language-menu[hidden] {
  display: none;
}

.site-header__language-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.site-header__language-menu button:hover,
.site-header__language-menu button:focus-visible,
.site-header__language-menu button[aria-selected="true"] {
  outline: none;
  background: var(--color-light-mint);
  color: var(--color-primary-green);
}

.site-header__language-menu button span {
  font-size: var(--font-size-xs);
  font-weight: 800;
}

.site-header__report-btn {
  padding: 10px 18px;
  font-size: 11px;
}

.site-header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 0;
  color: var(--color-white);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.site-header__menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-mobile-menu);
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 24, 15, 0.45);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-menu.is-open .mobile-menu__overlay {
  opacity: 1;
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--color-white);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: var(--color-header-green);
  color: var(--color-white);
  gap: var(--space-3);
}

.mobile-menu__brand {
  flex: 1;
  min-width: 0;
}

.mobile-menu__brand .site-header__brand-title {
  font-size: 12px;
}

.mobile-menu__brand .site-header__brand-subtitle {
  font-size: 10px;
}

.mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 0;
  color: var(--color-white);
  cursor: pointer;
}

.mobile-menu__nav {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-menu__link {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--color-text-main);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.mobile-menu__link:hover,
.mobile-menu__link--active {
  background: var(--color-light-mint);
  color: var(--color-primary-green);
}

.mobile-menu__footer {
  margin-top: auto;
  padding: var(--space-5);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 1024px) {
  .site-header__nav {
    gap: 18px;
  }

  .site-header__nav-link {
    font-size: 10px;
  }
}

@media (max-width: 900px) {
  .site-header__nav,
  .site-header__actions .site-header__report-btn,
  .site-header__actions .site-header__lang-chevron {
    display: none;
  }

  .site-header__lang-label {
    display: inline;
  }

  .site-header__language-menu {
    top: calc(100% + 10px);
  }

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

  .site-header__actions {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .site-header {
    top: 10px;
  }

  .site-header__inner {
    min-height: 54px;
    padding: 7px 14px;
    border-radius: 28px;
    gap: var(--space-2);
  }

  .site-header__logo {
    width: 36px;
    height: 36px;
  }

  .site-header__brand {
    gap: 8px;
  }

  .site-header__brand-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
  }

  .site-header__brand-subtitle {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.9;
  }
}

@media (max-width: 480px) {
  .site-header__inner {
    min-height: 58px;
    max-height: 64px;
    padding: 8px 14px;
    border-radius: 30px;
  }

  .site-header__brand {
    gap: 10px;
    flex: 1;
    min-width: 0;
  }

  .site-header__logo {
    width: 38px;
    height: 38px;
  }

  .site-header__brand-text {
    line-height: 1.1;
  }

  .site-header__brand-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
    opacity: 1;
  }

  .site-header__brand-subtitle {
    font-size: 14px;
    font-weight: 800;
    opacity: 0.95;
    margin-top: 1px;
    letter-spacing: 0.03em;
  }

  .site-header__menu-toggle {
    width: 32px;
    height: 32px;
  }

  .site-header__menu-toggle svg {
    width: 28px;
    height: 28px;
  }

  .mobile-menu__brand .site-header__brand-title {
    font-size: 14px;
  }

  .mobile-menu__brand .site-header__brand-subtitle {
    font-size: 12px;
    font-weight: 800;
  }
}
