.lang-switcher {
  position: relative;
  z-index: 50;
  flex-shrink: 0;
}

.header .flex-bl > .lang-switcher {
  width: 100%;
  margin-left: 0;
  display: flex;
  justify-content: center;
}

.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.5rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(88, 70, 140, 0.25);
  border-radius: 8px;
  background: rgba(225, 232, 255, 0.5);
  color: #58468c;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.lang-switcher__btn:hover,
.lang-switcher__btn[aria-expanded="true"] {
  border-color: #5580ff;
  color: #5580ff;
}

.lang-switcher__chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.lang-switcher__btn[aria-expanded="true"] .lang-switcher__chevron {
  transform: rotate(180deg);
}

.lang-switcher__list {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  min-width: 10.5rem;
  margin: 0;
  padding: 3px 5px;
  list-style: none;
  border-radius: 8px;
  background: #e1e8ff;
  box-shadow: 0 8px 24px rgba(88, 70, 140, 0.12);
}

.lang-switcher__list[hidden] {
  display: none;
}

.lang-switcher__link {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: #181818;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-switcher__link:hover {
  background: rgba(85, 128, 255, 0.12);
  color: #5580ff;
}

.lang-switcher__item--active {
  background: rgba(85, 128, 255, 0.12);
  color: #5580ff;
  font-weight: 700;
  pointer-events: none;
}

@media only screen and (min-width: 991.98px) {
  .header .flex-bl > .lang-switcher {
    width: auto;
    order: 3;
    margin-left: 30px;
    display: block;
    justify-content: unset;
  }

  .lang-switcher__list {
    left: auto;
    right: 0;
    transform: none;
  }

  .lang-switcher__btn {
    font-size: 14px;
  }
}
