/* ==========================================================================
   NAV — стеклянная шапка
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 60px;
  background: rgba(6, 6, 10, 0.4);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, padding .3s ease;
}
.nav::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: 0;
  transition: opacity .35s ease;
}
.nav.scrolled {
  padding: 12px 60px;
  background: rgba(6, 6, 10, 0.72);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 1px 0 rgba(139, 92, 246, 0.08), 0 16px 44px rgba(0,0,0,0.35);
}
.nav.scrolled::after { opacity: 0.7; }

.logo-text {
  position: relative;
  display: inline-block;
  font-family: 'Dancing Script', cursive;
  font-size: 34px;
  font-weight: 700;
  background: var(--grad-neon);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  cursor: pointer; user-select: none;
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.45));
  transition: transform .25s var(--ease), filter .25s ease, background-position .6s ease;
}
.logo-text::after {
  content: '✦';
  position: absolute;
  top: -4px;
  right: -16px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--accent-2);
  -webkit-text-fill-color: var(--accent-2);
  opacity: .85;
}
.logo-text:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.7));
  background-position: 100% center;
}

.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  position: relative;
  display: inline-block;
  color: var(--text-dim); text-decoration: none;
  font-weight: 500; font-size: 15px; cursor: pointer;
  padding: 9px 16px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--text); background: var(--glass); }
.nav-links a.active {
  color: #fff;
  background: linear-gradient(120deg, rgba(139,92,246,0.35), rgba(91,124,255,0.28));
  box-shadow: inset 0 0 0 1px rgba(180, 150, 255, 0.35), 0 0 18px rgba(139, 92, 246, 0.25);
}
.nav-links .short { display: none; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* переключатель языка RU / EN */
.lang-switch {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(10px);
}
.lang-btn {
  padding: 6px 13px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all .2s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--grad-neon);
  color: #fff;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.45);
}

@media (max-width: 720px) {
  .nav, .nav.scrolled { padding: 12px 14px; flex-wrap: nowrap; }
  .nav-right { gap: 8px; flex-wrap: nowrap; }
  .nav-links { gap: 2px; }
  .nav-links a { font-size: 11px; padding: 7px 9px; white-space: nowrap; }
  .nav-links .full { display: none; }
  .nav-links .short { display: inline; }
  .lang-switch { gap: 3px; padding: 2px; }
  .lang-btn { padding: 4px 7px; font-size: 10px; }
  .logo-text { font-size: 20px; }
  .logo-text::after { display: none; }
}
@media (max-width: 380px) {
  .nav { padding: 10px 10px; }
  .nav-links { gap: 1px; }
  .nav-links a { font-size: 10px; padding: 6px 7px; }
  .logo-text { font-size: 17px; }
}
