.header {
  position: sticky;
  top: 0;
  z-index: 100;
  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;
  min-height: var(--header-height);
}

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

.header__nav {
  display: none;
}

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

.header__nav-item {
  position: relative;
}

.header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.1rem;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-small);
  color: var(--color-text-body);
  transition: color var(--transition-base);
}

.header__nav-link:hover,
.header__nav-link:focus-visible,
.header__nav-link--active {
  color: var(--color-heading-gold);
}

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

.header__login,
.header__register {
  display: none;
  padding: 0.55rem 1rem;
  font-size: var(--font-size-small);
}

.header__flag {
  display: none;
  width: 26px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(
    to bottom,
    #ed2939 0%,
    #ed2939 33%,
    #ffffff 33%,
    #ffffff 66%,
    #ed2939 66%,
    #ed2939 100%
  );
}

.header__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-card);
}

.header__burger-line {
  width: 22px;
  height: 2px;
  background: var(--color-heading-gold);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.header__burger[aria-expanded="true"] .header__burger-line:nth-child(1) {
  transform: translateY(6px) 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(-6px) rotate(-45deg);
}

.header__mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem var(--space-container-padding) 1.5rem;
  background: var(--color-bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.header__mobile-list {
  display: grid;
  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-body);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__mobile-link--active,
.header__mobile-link:hover,
.header__mobile-link:focus-visible {
  color: var(--color-heading-gold);
}

.header__mobile-actions {
  display: grid;
  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,
  .header__mobile-menu {
    display: none;
  }
}
