/* ==========================================================================
   ПЕРЕМИКАЧ МОВИ (UA / RU / EN) — адаптація під класичну шапку
   ========================================================================== */

.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 2px;
  gap: 2px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background-color: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-shrink: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 30px;
  padding: 0 7px;
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-switch__btn:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.14);
}

.lang-switch__btn.is-active {
  background-color: var(--primary-green);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(99, 175, 56, 0.35);
}

/* Біла скляна шапка при скролі та на підсторінках */
.header.is-scrolled .lang-switch,
.lang-switch--mobile {
  background-color: #F1F5F9;
  border-color: #CBD5E1;
  backdrop-filter: none;
}

.header.is-scrolled .lang-switch__btn,
.lang-switch--mobile .lang-switch__btn {
  color: #334155;
}

.header.is-scrolled .lang-switch__btn:hover,
.lang-switch--mobile .lang-switch__btn:hover {
  color: #0F172A;
  background-color: #E2E8F0;
}

.header.is-scrolled .lang-switch__btn.is-active,
.lang-switch--mobile .lang-switch__btn.is-active {
  background-color: var(--primary-green);
  color: #FFFFFF;
}

.lang-switch--mobile {
  width: 100%;
  height: 38px;
  margin-bottom: 4px;
}

.lang-switch--mobile .lang-switch__btn {
  flex: 1 1 0;
  font-size: 0.82rem;
}

@media (max-width: 1260px) and (min-width: 1025px) {
  .header__container {
    gap: 12px;
  }

  .nav__list {
    gap: 16px;
  }

  .nav__link {
    font-size: 0.88rem;
  }

  .header__actions,
  .header.is-scrolled .header__actions {
    gap: 10px !important;
  }

  .header__contacts {
    gap: 8px !important;
  }

  .header__phone {
    font-size: 0.92rem;
  }

  .header.is-scrolled .header__btn {
    padding: 9px 14px !important;
    font-size: 0.82rem !important;
  }
}

@media (max-width: 1024px) {
  .header__actions .lang-switch {
    display: none;
  }
}
