/* Переключатель языков: лента из 4 слотов фиксированной ширины (128×38 окно = 2×64px). */

.lang-switcher {
  --lang-slot-w: 64px;

  box-sizing: border-box;
  position: relative;
  width: calc(var(--lang-slot-w) * 2);
  height: 38px;
  border-radius: 100px;
  overflow: hidden;
  border: 0;
  box-shadow: 0 0 0 1px rgb(15 23 42 / 14%);
  background: rgb(255 255 255 / 82%);
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: stretch;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--pp-black, #0f172a);
  transition:
    background-color 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

:root[data-theme='dark'] .lang-switcher {
  background: rgb(18 20 28 / 92%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 12%);
  color: var(--text, #e8ecf4);
}

.lang-switcher__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

/* Вертикальный разделитель между двумя языками; сверху и снизу запас 25% высоты */
.lang-switcher__viewport::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 25%;
  bottom: 25%;
  width: 1px;
  transform: translateX(-50%);
  background: rgb(15 23 42 / 16%);
  pointer-events: none;
  z-index: 1;
}

:root[data-theme='dark'] .lang-switcher__viewport::after {
  background: rgb(255 255 255 / 14%);
}

/* 4 слота × 64px = 256px; центровка через translateX(-25%) в i18n.js (= −64px). */
.lang-switcher__belt {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  height: 100%;
  width: calc(var(--lang-slot-w) * 4);
  transform: translateX(-25%);
  transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
  will-change: transform;
}

.lang-switcher.is-belt-busy .lang-switcher__belt {
  pointer-events: none;
}

.lang-switcher__slot {
  box-sizing: border-box;
  width: var(--lang-slot-w);
  height: 100%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 3px;
  margin: 0;
}

.lang-switcher__slot--ghost {
  pointer-events: none;
  user-select: none;
}

.lang-switcher__btn.lang-switcher__slot {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: 100px;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.lang-switcher__btn.lang-switcher__slot:focus-visible {
  outline: 2px solid rgb(var(--pp-red-rgb, 228 27 74) / 55%);
  outline-offset: 2px;
}

@media (width <= 880px) {
  .header__cta .lang-switcher {
    display: inline-flex;
  }
}

.mobile__contacts-wrap {
  margin-top: var(--space-3, 12px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: var(--space-3, 12px);
  border-top: 1px solid rgb(15 23 42 / 8%);
}

.mobile__contacts-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, rgb(15 23 42 / 60%));
}

.mobile__contacts {
  margin-top: 0;
}
