.language-switcher {
  position: fixed;
  z-index: 1050;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border: 1px solid rgba(9, 12, 17, 0.1);
  border-radius: 999px;
  background: rgba(250, 250, 248, 0.95);
  box-shadow: 0 7px 26px rgba(9, 12, 17, 0.1);
  opacity: 0;
  transform: translateY(-8px);
  animation: language-switcher-in 0.55s 1.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.language-switcher button {
  display: grid;
  min-width: 34px;
  height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #72757d;
  font-family: var(--body-font, Inter, ui-sans-serif, system-ui, sans-serif);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  place-items: center;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.language-switcher button:hover {
  color: #eb1d5a;
  transform: translateY(-1px);
}

.language-switcher button[aria-pressed="true"] {
  background: #eb1d5a;
  color: #fff;
}

.language-switcher__divider {
  width: 1px;
  height: 13px;
  background: rgba(9, 12, 17, 0.14);
}

@keyframes language-switcher-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 940px) {
  .language-switcher {
    top: 88px;
    right: 16px;
  }
}

@media (max-width: 768px) {
  .language-switcher {
    top: 82px;
    right: 12px;
    padding: 4px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .language-switcher button {
    min-width: 31px;
    height: 27px;
    padding: 0 7px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-switcher {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
