.header {
  position: sticky;
  top: 0;
  z-index: 500;
  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: 1.5rem;
}

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

.header__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.header__nav-item {
  position: relative;
}

.header__nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  transition: color var(--transition), background var(--transition);
}
.header__nav-link:hover,
.header__nav-link--active {
  color: var(--color-white);
  background: rgba(255,255,255,0.05);
}
.header__nav-link--active { color: var(--color-gold); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header__flag {
  font-size: 1.3rem;
  line-height: 1;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}
.header__burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.header__burger[aria-expanded="true"] .header__burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.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: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.header__mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-bg-primary);
  overflow-y: auto;
  padding: 1.5rem;
  z-index: 499;
  flex-direction: column;
  gap: 1rem;
}
.header__mobile-menu.open { display: flex; }

.header__mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.header__mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  transition: background var(--transition), color var(--transition);
}
.header__mobile-nav-link:hover,
.header__mobile-nav-link--active {
  background: rgba(255,255,255,0.05);
  color: var(--color-white);
}

.header__mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}
.header__mobile-actions .btn { width: 100%; justify-content: center; }

@media (max-width: 1023px) {
  .header__nav { display: none; }
  .header__actions .btn { display: none; }
  .header__flag { display: none; }
  .header__burger { display: flex; }
}

@media (min-width: 1024px) {
  .header__burger { display: none; }
}
