.lang-switch {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 60;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
  transition: all 0.3s var(--timing);
}

.lang-switch:hover {
  background: rgba(0, 0, 0, .6);
  border-color: rgba(255, 255, 255, .2);
}

.lang-switch button {
  color: var(--text-soft);
  font-weight: 700;
  padding: .35rem .5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s var(--timing);
  font-size: 0.8rem;
  min-width: 32px;
  position: relative;
  overflow: hidden;
}

.lang-switch button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.lang-switch button:hover::before {
  left: 100%;
}

.lang-switch button:hover {
  border-color: rgba(255, 255, 255, .25);
  transform: translateY(-1px);
}

.lang-switch button.active { background: rgba(255,255,255,.92); color:#111; border-color: rgba(255,255,255,.8); font-weight:800; }

.lang-switch button.active:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.6);
}

/* Фокус для доступности */
.lang-switch button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* Адаптив */
@media (max-width: 820px) {
  .lang-switch{ left:50%; right:auto; transform:translateX(-50%); top:auto; bottom:10px; }
  .lang-switch button{ min-width:44px; min-height:44px; border-radius:999px; }
}

/* Анимация переключения языка */
@keyframes language-switch {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.lang-switch button.switching {
  animation: language-switch 0.3s ease-in-out;
}
