.language-switcher {
  position: relative;
  display: inline-flex;
  margin-right: 12px;
  font-family: inherit;
}

.language-switcher .lang-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
  line-height: 1;
}

.language-switcher .lang-current:hover,
.language-switcher.is-open .lang-current {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

.language-switcher .lang-flag {
  font-size: 16px;
  line-height: 1;
}

.language-switcher .lang-caret {
  transition: transform 160ms ease;
  opacity: 0.8;
}

.language-switcher.is-open .lang-caret {
  transform: rotate(180deg);
}

.language-switcher .lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #111318;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  z-index: 1000;
}

.language-switcher .lang-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #e9ebf0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.language-switcher .lang-menu li:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.language-switcher .lang-menu li.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.language-switcher .lang-menu li .lang-flag {
  font-size: 16px;
}

@media (max-width: 991px) {
  .language-switcher {
    margin-right: 8px;
  }
  .language-switcher .lang-current {
    padding: 7px 12px;
    font-size: 12px;
  }
  .language-switcher .lang-menu {
    right: auto;
    left: 0;
  }
}
