.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--color-bg-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.875rem;
}

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

.header__nav { display: none; }

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.header__nav-link {
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-main);
  padding-block: 0.5rem;
  transition: color var(--transition-base);
}
.header__nav-link:hover,
.header__nav-link--active {
  color: var(--color-heading-gold);
}

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

.header__flag { display: none; font-size: 1.25rem; }

.header__login, .header__register { display: none; padding: 0.6rem 1.25rem; font-size: 0.85rem; }

.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
}
.header__burger-line {
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: var(--radius-pill);
  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); }

.header__mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--color-bg-dark);
  padding: 1.25rem var(--container-padding-inline) 1.75rem;
}
.header__mobile-menu.is-open { display: flex; }

.header__mobile-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.header__mobile-link {
  display: block;
  padding: 0.75rem 0.25rem;
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header__mobile-link--active, .header__mobile-link:hover { color: var(--color-heading-gold); }

.header__mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .header__flag { display: block; }
}

@media (min-width: 1024px) {
  .header__nav { display: block; }
  .header__login, .header__register { display: inline-flex; }
  .header__burger { display: none; }
  .header__mobile-menu { display: none !important; }
}
