.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-bg-primary);
  border-bottom: 1px solid rgba(255, 211, 41, 0.12);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.header__logo img {
  height: 44px;
  width: auto;
}

.header__nav {
  display: none;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.4vw, 1.5rem);
}

.header__nav-link {
  color: var(--c-text);
  font-weight: var(--fw-medium);
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--c-accent-light);
}

.header__nav-link--active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--c-accent-light);
  border-radius: 2px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header__cta {
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
}

.header__flag svg {
  border-radius: 3px;
  display: block;
}

/* Burger — after CTAs on mobile (right edge) */
.header__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: var(--radius-card);
  background: var(--c-card);
}

.header__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.header__burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.header__burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer: nav + CTA buttons open together */
@media (max-width: 991px) {
  .header__nav {
    position: fixed;
    inset: 68px 0 auto 0;
    display: block;
    background: var(--c-bg-dark);
    border-bottom: 1px solid rgba(255, 211, 41, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .header.is-open .header__nav {
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
  }

  .header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
  }

  .header__nav-item {
    border-bottom: 1px solid rgba(185, 169, 196, 0.1);
  }

  .header__nav-link {
    display: block;
    padding: 1rem clamp(1rem, 4vw, 2.5rem);
    font-size: 1.05rem;
  }

  /* CTA buttons hidden in top bar on mobile, shown inside drawer */
  .header__actions .header__cta {
    display: none;
  }

  .header.is-open .header__nav-list::after {
    content: '';
  }

  .header__mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem clamp(1rem, 4vw, 2.5rem) 1.5rem;
  }
}

@media (min-width: 992px) {
  .header__nav {
    display: block;
  }
  .header__burger {
    display: none;
  }
  .header__mobile-cta {
    display: none;
  }
}
