.language-switch {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
}

.language-switch button {
  min-width: 34px;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #c4d2d7;
  font: 500 10px/1 "Greente Roboto", Arial, sans-serif;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease;
}

.language-switch button:hover,
.language-switch button:focus-visible {
  color: #fff;
}

.language-switch button:focus-visible {
  outline: 2px solid #72d84b;
  outline-offset: 2px;
}

.language-switch button[aria-pressed="true"] {
  background: #72d84b;
  color: #071c26;
}

.site-header .language-switch {
  order: 4;
}

.language-switch-floating {
  position: fixed;
  z-index: 120;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  border-color: rgba(255, 255, 255, .24);
  background: rgba(7, 28, 38, .94);
  box-shadow: 0 10px 28px rgba(7, 28, 38, .18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mobile-app-header .language-switch {
  margin-left: auto;
}

.portal-top-actions .language-switch {
  border-color: rgba(255, 255, 255, .2);
}

html[lang="kk"] .system-missing .system-field::after {
  content: "Жүйені таңдаңыз";
}

@media (max-width: 1080px) {
  .site-header .nav {
    gap: 10px;
  }

  .site-header .language-switch {
    margin-left: auto;
  }

  .site-header .menu-btn {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .site-header .nav {
    gap: 7px;
  }

  .site-header .brand {
    width: min(38vw, 144px);
  }

  .site-header .language-switch {
    padding: 2px;
  }

  .site-header .language-switch button {
    min-width: 32px;
    min-height: 40px;
    padding: 0 6px;
    font-size: 9px;
  }

  .mobile-app-header-inner {
    gap: 8px;
  }

  .mobile-app-header .language-switch button {
    min-width: 32px;
    min-height: 40px;
    padding: 0 6px;
  }
}

@media (max-width: 390px) {
  .site-header .brand {
    width: 122px;
  }

  .site-header .nav-account,
  .site-header .menu-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-switch button {
    transition: none;
  }
}
