.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

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

.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

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

/* Nav */
.header__nav {
  display: none;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.header__nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--color-text-main);
  font-weight: var(--font-weight-medium);
  font-size: 0.875rem;
  border-radius: var(--radius-btn);
  transition: color var(--transition-base), background var(--transition-base);
  white-space: nowrap;
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--color-heading-gold);
  background: rgba(247,200,121,0.08);
}

/* CTA buttons */
.header__cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.header__cta .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* Flag */
.header__flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* Burger button */
.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 6px;
  border-radius: var(--radius-btn);
  flex-shrink: 0;
}

.header__burger:focus-visible {
  outline: 2px solid var(--color-accent);
}

.header__burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-light);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.header__burger[aria-expanded="true"] .header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__burger[aria-expanded="true"] .header__burger-line:nth-child(2) {
  opacity: 0;
}
.header__burger[aria-expanded="true"] .header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.header__mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg-primary);
  overflow-y: auto;
  padding: 1.5rem var(--container-padding);
  z-index: calc(var(--z-header) - 1);
  border-top: 1px solid var(--color-border);
}

.header__mobile-menu.is-open {
  display: flex;
}

.header__mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.header__mobile-nav li {
  margin: 0;
  border-bottom: 1px solid var(--color-border);
}

.header__mobile-nav a {
  display: block;
  padding: 0.875rem 0;
  color: var(--color-text-light);
  font-weight: var(--font-weight-medium);
  font-size: 1rem;
  transition: color var(--transition-base);
}

.header__mobile-nav a:hover,
.header__mobile-nav a.active {
  color: var(--color-heading-gold);
}

.header__mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.header__mobile-cta .btn {
  width: 100%;
  justify-content: center;
}

/* Desktop breakpoint */
@media (min-width: 1024px) {
  .header__nav {
    display: flex;
    flex: 1;
    justify-content: center;
  }

  .header__cta {
    display: flex;
  }

  .header__burger {
    display: none;
  }
}
