/* Переключатель вариантов 1 / 2 / 3 (вторая волна прототипов K1/K2/K3).
   Общий для трёх вариантов: каждый задаёт свои цвета через переменные.

   Разметка:
   <div class="proto-switch" role="group" aria-label="Варианты лендинга IMINERA Avatar">
     <a class="proto-switch__btn is-active" href="../k1-etalon/index.html" aria-current="page" aria-label="Вариант 1 — Эталон, текущая страница">1</a>
     <a class="proto-switch__btn" href="../k2-metr/index.html" aria-label="Вариант 2 — Последний метр">2</a>
     <a class="proto-switch__btn" href="../k3-sistema/index.html" aria-label="Вариант 3 — Размерная система">3</a>
   </div>

   Переменные (задаются в :root или на шапке варианта):
   --sw-bg, --sw-line, --sw-fg, --sw-fg-hover, --sw-active-bg, --sw-active-fg, --sw-font */

.proto-switch {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  background: var(--sw-bg, #f4f4f4);
  border: 1px solid var(--sw-line, #ddd);
  border-radius: 100px;
}
.proto-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 26px;
  padding-inline: 3px;
  border-radius: 100px;
  font-family: var(--sw-font, ui-monospace, monospace);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: var(--sw-fg, #666);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.proto-switch__btn:hover { color: var(--sw-fg-hover, #111); }
.proto-switch__btn:focus-visible {
  outline: 2px solid var(--sw-active-bg, #E91E63);
  outline-offset: 2px;
}
.proto-switch__btn.is-active {
  background: var(--sw-active-bg, #C2185B);
  color: var(--sw-active-fg, #fff);
}

@media (prefers-reduced-motion: reduce) {
  .proto-switch__btn { transition: none; }
}

/* Вариантов стало 8: на средних десктопах шапке не хватает места.
   Прячем текст телефона (иконка и ссылка остаются, номер есть в футере). */
@media (min-width: 1024px) and (max-width: 1599px) {
  .header-phone span { display: none; }
}

/* Мобильное меню: 8 кнопок не влезают в одну строку, переносим */
@media (max-width: 1023px) {
  .proto-switch {
    flex-wrap: wrap;
    max-width: 100%;
    border-radius: 22px;
  }
}
