.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 25, 30, 0.46);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 18%,
    rgba(127, 191, 159, 0.08) 50%,
    transparent 82%
  );
  pointer-events: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.logo img {
  height: 2.1em;
  width: auto;
  display: block;
}

.logo span {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-light);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 26px;
  align-items: center;
  z-index: 1;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-light);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.language-switch {
  display: flex;
  gap: 10px;
  z-index: 1;
}

.lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 8px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.lang-btn:hover,
.lang-btn.active {
  transform: translateY(-1px);
  background: rgba(127, 191, 159, 0.14);
  border-color: rgba(199, 228, 213, 0.28);
}

@media (max-width: 768px) {
  .navbar {
    width: 100%;
    border-radius: 0;
  }
}