.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem 0.5rem 2rem;
  position: relative;
}

.logo {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: inherit;
  text-decoration: none;
}

.nav {
  background: var(--nav-bg, #fff);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}

.lang-toggle {
  display: flex;
  gap: 0.5rem;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.lang-toggle button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.lang-toggle button:hover {
  opacity: 0.7;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  z-index: 1001;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  border-radius: 1px;
  transition: all 0.3s ease;
  background-color: currentColor;
}

.burger.active span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.main-content.blur {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.4s ease;
}

@media (max-width: 768px) {
  .header {
    padding: 0.5rem 1rem 0.5rem 1.5rem;
  }

  .burger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    flex-direction: column;
    display: flex;
    gap: 1rem;

    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
    align-items: center;
    z-index: 1000;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    margin-top: 1rem;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .lang-toggle,
  .theme-toggle {
    align-self: center;
  }

  .lang-toggle {
    flex-direction: row;
  }

  .theme-toggle {
    font-size: 1.4rem;
  }
}
