header {
  background-color: var(--color-background);
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.header-back a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.header-back a:hover {
  opacity: 1;
}

header h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--color-primary);
}

.locale-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.locale-switcher a {
  text-decoration: none;
  font-size: 1.25rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.locale-switcher a:hover,
.locale-switcher a.active {
  opacity: 1;
}

.landing-locale-switcher {
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 1rem;
}

@media (min-width: 768px) {
  header {
    padding: 1rem 2rem;
  }

  header h1 {
    font-size: 2rem;
  }

  nav ul {
    gap: 2rem;
  }
}
