/* ============================================================================
   Тёмная тема в визуальном языке happ.info.
   Подключается после styles.css и только перекрашивает: сетка, отступы и
   поведение остаются в styles.css. Чтобы вернуть старый вид — убрать файл
   из <head>.

   Язык: графитовый фон, белый текст, оттенки — только прозрачностью белого.
   Карточки — плоские полупрозрачные плашки без теней и рамок. Montserrat:
   заголовки 600 с тонкими (300) акцентами, подзаголовки тонкие.
   ========================================================================= */

:root {
  --bg: #2b2b2b;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.64);
  --text-muted: rgba(255, 255, 255, 0.4);
  --card: rgba(255, 255, 255, 0.08);
  --card-hover: rgba(255, 255, 255, 0.14);
  --card-strong: rgba(255, 255, 255, 0.18);

  /* Старые токены — на тёмные значения */
  --paper: var(--bg);
  --paper-deep: var(--bg);
  --ink: var(--text);
  --ink-2: var(--text-soft);
  --ink-3: var(--text-muted);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.08);
  --accent: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --brand: #ffffff;
  --graphite: var(--card-hover);
  --glass: var(--card);
  --glass-strong: var(--card-hover);

  /* Зелёный остаётся только у «серверы доступны» и у выбора */
  --live: #3ccf86;
  --live-ink: #6fe0a6;
  --live-soft: rgba(60, 207, 134, 0.3);
  --error: #ff6b57;

  --shadow-soft: none;
  --shadow-lift: none;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 12px;
  --r-xl: 16px;

  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--text);
}

::selection {
  background: #ffffff;
  color: var(--bg);
}

.skip-link {
  background: #ffffff;
  color: var(--bg);
}

/* --- Фон: два крупных контура «H+» медленно плывут за содержимым ---------- */
.canvas {
  background: var(--bg);
  overflow: hidden;
}

.canvas::before,
.canvas::after {
  content: "";
  position: absolute;
  aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='white' stroke-width='1.2'%3E%3Cpath d='M30 40h22v48h46V40h22v120H98v-50H52v50H30z'/%3E%3Cpath d='M150 78h12v18h18v12h-18v18h-12v-18h-18V96h18z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  pointer-events: none;
}

.canvas::before {
  width: min(120vh, 110vw);
  left: -38%;
  top: 8%;
  opacity: 0.06;
  animation: canvas-drift 26s ease-in-out infinite alternate;
}

.canvas::after {
  width: min(70vh, 70vw);
  right: -18%;
  top: -14%;
  opacity: 0.04;
  animation: canvas-drift 32s ease-in-out -9s infinite alternate-reverse;
}

@keyframes canvas-drift {
  from {
    transform: translate3d(0, 0, 0) rotate(-4deg);
  }
  to {
    transform: translate3d(4%, -3%, 0) rotate(3deg);
  }
}

/* Старые косые полосы светлой темы в первом экране не нужны */
.hero::before {
  display: none;
}

/* --- Типографика ---------------------------------------------------------- */
.hero__title {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.hero__brand {
  font-weight: 300;
}

.hero__sub {
  font-weight: 300;
  color: var(--text-soft);
}

.hero__sub b {
  font-weight: 600;
  color: var(--text);
}

.section__title,
.closing__title {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.16;
}

.section__lead,
.closing__lead {
  font-weight: 300;
  color: var(--text-soft);
}

/* --- Кнопки --------------------------------------------------------------- */
.btn--primary {
  --btn-bg: #ffffff;
  --btn-fg: var(--bg);
  box-shadow: none;
  font-weight: 600;
}

.btn--primary:hover {
  --btn-bg: rgba(255, 255, 255, 0.86);
}

.btn--lg {
  border-radius: 12px;
}

.btn--ghost {
  border-color: transparent;
}

/* --- Шапка ---------------------------------------------------------------- */
.topbar {
  background: rgba(43, 43, 43, 0.72);
}

.topbar.is-stuck {
  background: rgba(43, 43, 43, 0.9);
  border-bottom-color: var(--line-soft);
}

.topbar__link {
  padding: 8px 16px;
  font-weight: 500;
  background: var(--card);
  border-radius: 8px;
  color: var(--text);
  transition: background-color 0.2s ease;
}

.topbar__link:hover {
  background: var(--card-hover);
  color: var(--text);
}

/* --- Карточки сроков ------------------------------------------------------ */
.offer {
  background: var(--card);
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  box-shadow: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.offer:hover {
  background: var(--card-hover);
}

.offer:not(.is-selected):hover {
  border-color: transparent;
}

.offer:has(input:focus-visible) {
  outline: 2px solid rgba(255, 255, 255, 0.45);
}

.offer.is-selected,
.offer--popular.is-selected {
  border-color: #ffffff;
  box-shadow: 0 0 0 1px #ffffff;
}

.offer.is-selected::after {
  box-shadow: 0 0 0 3px var(--bg);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2b2b' stroke-width='3' stroke-linecap='square'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E")
      center / 16px no-repeat,
    #ffffff;
}

.offer--popular {
  background: var(--card-hover);
  border-color: transparent;
  box-shadow: none;
}

.offer--popular:hover {
  background: var(--card-strong);
}

.offer__badge {
  color: var(--bg);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.offer__badge::before {
  background: #ffffff;
  border: 0;
  border-radius: 6px;
  transform: none;
  box-shadow: none;
}

.offer__term {
  font-weight: 400;
  color: var(--text-soft);
}

.offer__price {
  font-weight: 600;
}

.offer__price small {
  font-weight: 300;
  color: var(--text-muted);
}

.offer__total {
  font-weight: 400;
  color: var(--text-soft);
}

/* --- Степпер устройств ---------------------------------------------------- */
.stepper {
  background: var(--card);
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}

.stepper__btn {
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
}

.stepper__btn:hover:not(:disabled) {
  background: #ffffff;
  color: var(--bg);
}

.stepper__value {
  color: var(--text-soft);
}

.stepper__value b {
  color: var(--text);
}

/* --- Поле почты ----------------------------------------------------------- */
.field__input {
  color: var(--text);
  background: var(--card);
  border: 1px solid transparent;
}

.hero__email .field__input {
  border-radius: 12px;
}

.field__input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.field__input:hover {
  background: var(--card-hover);
}

.field__input:focus {
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.field__input.is-invalid {
  border-color: var(--error);
}

.field__label {
  color: var(--text-soft);
}

/* --- Секции: плоские полупрозрачные плашки -------------------------------- */
.flow__step,
.geo__region,
.gear__list li,
.ask__list,
.summary {
  background: var(--card);
  border: 0;
  border-radius: var(--r-xl);
  box-shadow: none;
}

.flow__step,
.gear__list li {
  transition: background-color 0.2s ease;
}

.flow__step:hover,
.gear__list li:hover {
  background: var(--card-hover);
}

.flow__step h3,
.gear__list b {
  font-weight: 600;
}

.flow__step p {
  font-weight: 300;
}

.flow__num {
  color: var(--bg);
  font-weight: 700;
}

.flow__num::before {
  background: #ffffff;
  border-radius: 8px;
  transform: none;
}

.geo__region ul {
  font-weight: 500;
}

.geo__special li {
  background: var(--card-hover);
  border-radius: var(--r-xl);
}

.geo__special span {
  color: var(--text-soft);
}

.qa summary {
  font-weight: 500;
}

.qa__body {
  font-weight: 300;
}

.qa summary:hover {
  color: var(--text);
  opacity: 0.8;
}

.closing::before {
  background: radial-gradient(46vw 40vh at 50% 46%, rgba(255, 255, 255, 0.05), transparent 68%);
}

/* --- Подвал и липкая кнопка ----------------------------------------------- */
.footer {
  color: var(--text-muted);
}

.footer a:hover {
  color: var(--text);
}

.sticky {
  background: rgba(43, 43, 43, 0.9);
}

/* --- Окно оплаты: как модальные окна happ.info ---------------------------- */
.backdrop {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sheet {
  background: #333333;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: none;
}

.sheet__close {
  border-radius: 8px;
  background: var(--card);
}

.sheet__close:hover {
  background: var(--card-hover);
}

.sheet__grab {
  background: rgba(255, 255, 255, 0.24) !important;
}

.terms {
  background: rgba(255, 255, 255, 0.04);
  border-color: transparent;
}

.term:hover {
  background: var(--card);
}

.term.is-selected {
  background: #ffffff;
}

.term.is-selected .term__label {
  color: var(--bg);
}

.term.is-selected .term__save {
  color: rgba(43, 43, 43, 0.6);
}

.done__badge {
  background: #ffffff;
}

.done__badge svg {
  stroke: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  .canvas::before,
  .canvas::after {
    animation: none;
  }
}

/* ============================================================================
   01 · Первый экран: слева — что это, справа — панель заказа
   ========================================================================= */
.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  min-height: calc(100svh - 160px);
}

.hero__copy {
  display: grid;
  align-content: center;
  gap: 24px;
  text-align: left;
}

.hero__copy > * + * {
  margin-top: 0;
}

.hero__copy .hero__sub {
  justify-content: flex-start;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.4;
}

.hero__copy .status {
  margin-top: 0;
}

.hero__checks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 32px);
  white-space: nowrap;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-soft);
}

.hero__checks .check-short {
  display: none;
}

.hero__checks li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__checks li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E")
      center / 14px no-repeat,
    var(--card);
}

/* --- Панель заказа -------------------------------------------------------- */
.panel {
  display: grid;
  gap: 22px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.panel__block {
  display: grid;
  gap: 10px;
}

.panel__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.panel__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.panel__hint {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-soft);
}

.panel__hint b {
  font-weight: 600;
  color: var(--text);
}

/* Устройства: ползунок. Справа над ним — выбранное число крупно */
.panel__value {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-soft);
}

.panel__value b {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.range {
  --fill: 0%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 2px 0 0;
  background: transparent;
  cursor: pointer;
}

.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff var(--fill), rgba(255, 255, 255, 0.14) var(--fill));
}

.range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #ffffff;
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.2s ease;
}

.range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}

.range:hover::-webkit-slider-thumb,
.range:active::-webkit-slider-thumb {
  box-shadow: 0 0 0 9px rgba(255, 255, 255, 0.16);
}

.range:focus {
  outline: none;
}

.range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px rgba(255, 255, 255, 0.6);
}

.range:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px rgba(255, 255, 255, 0.6);
}

.range__ends {
  display: flex;
  justify-content: space-between;
  margin-top: -4px;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Сроки: строки-радиокнопки */
.term-rows {
  display: grid;
  gap: 6px;
  /* Место под строки до того, как их нарисует скрипт */
  min-height: 236px;
}

.term-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "dot term price"
    ".   total total";
  align-items: center;
  column-gap: 12px;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.term-row:hover {
  background: var(--card-hover);
}

.term-row input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.term-row:has(input:focus-visible) {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.term-row__dot {
  grid-area: dot;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.term-row__term {
  grid-area: term;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 15.5px;
  font-weight: 500;
}

.term-row__tag {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--card-hover);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.term-row__price {
  grid-area: price;
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.term-row__price small {
  margin-left: 2px;
  font-size: 12.5px;
  font-weight: 300;
  color: var(--text-muted);
}

/* Сумма за срок видна только у выбранной строки — она же на кнопке */
.term-row__total {
  grid-area: total;
  display: none;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.term-row.is-selected {
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.9);
}

.term-row.is-selected .term-row__dot {
  border-color: #ffffff;
  box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 9px #ffffff;
}

.term-row.is-selected .term-row__total {
  display: block;
}

.term-row.is-selected .term-row__tag {
  background: #ffffff;
  color: var(--bg);
}

/* Почта и кнопка */
.panel__form {
  display: grid;
  gap: 8px;
}

.panel__form .field__label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.panel__form .field__input {
  height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 16px;
}

.panel__form .field__note {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 300;
  color: var(--text-muted);
}

.panel__form .field__note.is-error {
  color: var(--error);
}

.panel__form .btn {
  min-height: 56px;
  font-size: 16.5px;
}

.panel__fine {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: -8px;
  font-size: 12.5px;
  font-weight: 300;
  color: var(--text-muted);
}

.panel__fine .icon-sbp {
  width: 16px;
  height: 16px;
}

/* --- Планшет и телефон: заголовок → панель → факты ------------------------ */
@media (max-width: 900px) {
  .hero__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    min-height: 0;
  }

  .hero__copy {
    display: contents;
  }

  .hero__title {
    order: 1;
  }

  .hero__copy .hero__sub {
    order: 2;
  }

  .hero__copy .status {
    order: 3;
  }

  .panel {
    order: 4;
    width: 100%;
    max-width: 520px;
  }

}

@media (max-width: 560px) {
  .panel {
    padding: 18px;
    border-radius: 20px;
  }

}

/* Телефон: факты по левому краю, статус в две строки — что работает и когда проверили */
@media (max-width: 560px) {
  .hero__copy .hero__sub {
    align-items: flex-start;
    font-size: clamp(15px, 4.4vw, 17px);
  }

  .hero__copy .status {
    margin-top: 0;
    white-space: normal;
    font-size: clamp(12.5px, 3.8vw, 14px);
  }

  .hero__copy .status__note {
    display: block;
  }
}

/* Заголовок первого экрана — ровно две строки: «Настоящая подписка» / «для Happ».
   Первая строка не переносится, кегль подобран так, чтобы она влезала в левую
   колонку от 901 px и в один столбец на телефоне от 360 px. */
.hero__copy .hero__title {
  font-size: clamp(28px, 3.6vw, 56px);
}

.hero__title-line,
.hero__copy .hero__brand {
  display: block;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero__copy .hero__title {
    font-size: clamp(28px, 7.6vw, 52px);
  }
}

/* Плашка «Популярный» — зелёная, тем же цветом, что «Все серверы доступны из России» */
.term-row__tag,
.term-row.is-selected .term-row__tag {
  background: var(--live-ink);
  color: var(--bg);
}

.offer__badge {
  color: var(--bg);
}

.offer__badge::before {
  background: var(--live-ink);
}

@media (max-width: 700px) {
  .hero__checks {
    gap: clamp(6px, 1.6vw, 12px);
    font-size: clamp(12px, 3.3vw, 14px);
  }

  .hero__checks .check-full,
  .hero__checks li:first-child::before {
    display: none;
  }

  .hero__checks .check-short {
    display: inline;
  }

  .hero__checks li {
    gap: inherit;
  }

  .hero__checks li::before {
    width: 3px;
    height: 3px;
    background: var(--text-muted);
  }
}

/* ============================================================================
   02 · Подключение за минуту: слева обещание, справа цепочка шагов
   ========================================================================= */
.how__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.how__head .section__lead {
  max-width: 34ch;
}

/* Плашка времени: крупная тонкая цифра и подпись в две строки */
.how__time {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 14px 22px 14px 18px;
  border-radius: 16px;
  background: var(--card);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.35;
  color: var(--text-soft);
}

.how__time-num {
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

/* Цепочка: кружки соединены линией, которая идёт только между шагами */
.how__steps {
  display: grid;
  gap: 10px;
}

.how__step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--card);
  transition: background-color 0.2s ease;
}

.how__step:hover {
  background: var(--card-hover);
}

.how__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(24px + 22px - 0.5px);
  top: calc(50% + 22px);
  height: calc(100% - 44px + 10px);
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
}

.how__node {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: var(--bg);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.how__step h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.how__step p {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-soft);
}

/* Последний шаг — результат: зелёный кружок с галочкой */
.how__step--done .how__node {
  border-color: var(--live-ink);
  background: var(--live-ink);
}

.how__step--done .how__node svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--bg);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .how__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .how__time {
    margin-top: 24px;
  }
}

@media (max-width: 560px) {
  .how__step {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
  }

  .how__node {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .how__step:not(:last-child)::after {
    left: calc(18px + 19px - 0.5px);
    top: calc(50% + 19px);
    height: calc(100% - 38px + 10px);
  }

  .how__step h3 {
    font-size: 16.5px;
  }

  .how__step p {
    font-size: 14px;
  }

  .how__time-num {
    font-size: 34px;
  }
}

/* ============================================================================
   Страны: огромная тонкая цифра, регионы строками, страны чипами
   ========================================================================= */
.places__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
}

.places__count {
  font-size: clamp(110px, 16vw, 220px);
  font-weight: 200;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.places__head .section__lead {
  max-width: 40ch;
}

/* Регионы — строки одной плашки: название слева, страны справа */
.places__map {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid;
  padding: 8px 28px;
  border-radius: 24px;
  background: var(--card);
}

.places__map .geo__region {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  gap: 12px 24px;
  padding: 20px 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.places__map .geo__region + .geo__region {
  border-top: 1px solid var(--line-soft);
}

.places__map .geo__region h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-content: flex-start;
  padding: 8px 0 0;
  border: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
}

.places__map .geo__region h3 span {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
}

.places__map .geo__region ul,
.places__map .geo__region:first-child ul {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-template-columns: none;
}

.places__map .geo__region li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.places__map .geo__region li:hover {
  background: var(--card-hover);
}

.places__map .geo__flag {
  font-size: 1.1em;
}

/* Спецсерверы — подпись и три плашки с зелёной точкой «онлайн» */
.places__special {
  margin-top: 28px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px 32px;
}

.places__special-title {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-soft);
}

.places__special ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.places__special li {
  display: grid;
  gap: 2px;
  padding: 16px 20px 16px 38px;
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: none;
}

.places__special li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 23px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
}

.places__special b {
  font-size: 15.5px;
  font-weight: 600;
}

.places__special span {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .places__map .geo__region {
    grid-template-columns: minmax(0, 1fr);
  }

  .places__map .geo__region h3 {
    padding-top: 0;
  }

  .places__special {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .places__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .places__count {
    font-size: 120px;
  }

  .places__map {
    padding: 4px 18px;
    border-radius: 20px;
  }

  .places__map .geo__region li {
    padding: 7px 12px;
    font-size: 14px;
  }

  .places__special ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================================================================
   Финальная покупка: та же панель, зеркально — панель слева, итог справа
   ========================================================================= */
.finale {
  padding-block: clamp(64px, 10vh, 120px);
}

.finale__layout {
  display: grid;
  grid-template-columns: minmax(360px, 440px) minmax(0, 1fr);
  grid-template-areas:
    "panel head"
    "panel side";
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 6vw, 96px);
  row-gap: 36px;
}

.finale__layout > .panel {
  grid-area: panel;
  align-self: start;
}

.finale__head {
  grid-area: head;
  align-self: end;
}

.finale__head .section__title {
  font-size: clamp(30px, 3.4vw, 48px);
}

.finale__thin {
  font-weight: 300;
}

.finale__side {
  grid-area: side;
  align-self: start;
  display: grid;
  gap: 28px;
}

.finale__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Что входит — 2 × 2, крупное значение и тонкая подпись */
.finale__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: -16px;
}

.finale__list li {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--card);
}

.finale__list b {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.finale__list span {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--text-soft);
}

/* Гарантия — зелёная: главное сомнение внизу страницы «а если не подойдёт» */
.finale__guarantee {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--live-ink) 45%, transparent);
  background: color-mix(in srgb, var(--live-ink) 8%, transparent);
}

.finale__guarantee svg {
  width: 44px;
  height: 44px;
  padding: 9px;
  border-radius: 12px;
  background: var(--live-ink);
  fill: none;
  stroke: var(--bg);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.finale__guarantee b {
  display: block;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--live-ink);
}

.finale__guarantee span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-soft);
}

.finale__guarantee b span {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

@media (max-width: 900px) {
  .finale__layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "panel"
      "side";
    grid-template-rows: auto;
    row-gap: 24px;
  }

  .finale__layout > .panel {
    max-width: 520px;
    width: 100%;
  }

  .finale__side {
    margin-top: 12px;
  }
}

@media (max-width: 560px) {
  .finale__list li {
    padding: 14px 16px;
  }

  .finale__list b {
    font-size: 16px;
  }

  .finale__list span {
    font-size: 12.5px;
  }

  .finale__guarantee {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 16px 18px;
  }

  .finale__guarantee svg {
    width: 40px;
    height: 40px;
    padding: 8px;
  }
}

/* Числа внутри заголовка пункта — как сам заголовок, а не как подпись */
.finale__list b span {
  font: inherit;
  color: inherit;
}

/* ============================================================================
   Устройства: заголовок по центру, плашка «1 ключ», от неё линии к платформам
   ========================================================================= */
.gadgets__head {
  display: grid;
  justify-items: center;
  text-align: center;
}

.gadgets__head .section__lead {
  max-width: 52ch;
}

.gadgets__thin {
  font-weight: 300;
}

.gadgets__hub {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: clamp(32px, 5vw, 48px);
  padding-bottom: 28px;
}

.gadgets__hub span {
  padding: 8px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Вертикаль от плашки вниз */
.gadgets__hub::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.4);
}

.gadgets__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding-top: 24px;
}

/* Горизонталь от центра первой плитки до центра последней */
.gadgets__list::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc((100% - 48px) / 10);
  right: calc((100% - 48px) / 10);
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.gadgets__list li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 26px 14px 22px;
  border-radius: 16px;
  background: var(--card);
  text-align: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.gadgets__list li:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
}

/* Короткая вертикаль от горизонтали к каждой плитке */
.gadgets__list li::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -24px;
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.4);
}

.gadgets__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.gadgets__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gadgets__list b {
  font-size: 16px;
  font-weight: 600;
}

.gadgets__list li > span:last-child {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-soft);
}

@media (max-width: 760px) {
  .gadgets__hub,
  .gadgets__list::before,
  .gadgets__list li::before {
    display: none;
  }

  .gadgets__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0;
    margin-top: 28px;
  }

  .gadgets__list li:last-child {
    grid-column: 1 / -1;
  }
}

/* ============================================================================
   Вопросы: слева заголовок и выход в поддержку, справа список
   ========================================================================= */
.faq2__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
}

.faq2__aside {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 0;
}

.faq2__help {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin-top: 32px;
  padding: 22px;
  border-radius: 16px;
  background: var(--card);
}

.faq2__help b {
  font-size: 16.5px;
  font-weight: 600;
}

.faq2__help span {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-soft);
}

.faq2__help-btn {
  margin-top: 10px;
  --btn-bg: #ffffff;
  --btn-fg: var(--bg);
  border-radius: 10px;
  font-weight: 600;
}

.faq2__help-btn:hover {
  --btn-bg: rgba(255, 255, 255, 0.86);
}

/* Каждый вопрос — своя плашка; открытый светлее */
.faq2__list {
  display: grid;
  gap: 8px;
}

.faq2__list .qa {
  border: 0;
  border-radius: 14px;
  background: var(--card);
  transition: background-color 0.2s ease;
}

.faq2__list .qa:hover,
.faq2__list .qa[open] {
  background: var(--card-hover);
}

.faq2__list .qa summary {
  padding: 20px 22px;
  font-size: 16px;
  font-weight: 500;
}

.faq2__list .qa summary:hover {
  opacity: 1;
}

.faq2__list .qa summary i::before,
.faq2__list .qa summary i::after {
  background: #ffffff;
}

.faq2__list .qa__body {
  padding: 0 56px 20px 22px;
  font-size: 15px;
  line-height: 1.6;
}

.faq2__list .qa__body a {
  color: #ffffff;
}

@media (max-width: 900px) {
  .faq2__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .faq2__aside {
    position: static;
  }

  /* На телефоне поддержка — после вопросов: сначала ответы, потом выход */
  .faq2__aside {
    display: contents;
  }

  .faq2__aside .section__title {
    order: 1;
  }

  .faq2__aside .section__lead {
    order: 2;
    margin-top: -16px;
  }

  .faq2__list {
    order: 3;
  }

  .faq2__help {
    order: 4;
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .faq2__list .qa summary {
    padding: 17px 18px;
    font-size: 15px;
  }

  .faq2__list .qa__body {
    padding: 0 18px 18px;
    font-size: 14px;
  }
}

/* Масштаб страницы для компактной и широкой раскладки. */
html {
  zoom: 1.05;
}

@media (min-width: 901px) {
  html {
    zoom: 0.9;
  }
}

/* Невысокий экран ноутбука: панель заказа плотнее, чтобы кнопка «Оплатить»
   была видна без прокрутки */
@media (min-width: 901px) and (max-height: 820px) {
  .hero {
    padding-top: 12px;
    padding-bottom: 32px;
  }

  .hero__layout {
    min-height: 0;
  }

  .panel {
    gap: 16px;
    padding: 20px 22px;
  }

  .term-rows {
    gap: 5px;
    min-height: 0;
  }

  .term-row {
    padding: 10px 14px;
  }

  .panel__form .field__input {
    height: 46px;
  }

  .panel__form .btn {
    min-height: 50px;
  }

  .panel__form .field__note {
    margin-bottom: 2px;
  }
}

/* Выбор подписки в первом и заключительном экранах. */
.subscription-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(26px, 3.2vw, 44px);
  text-align: center;
}

.subscription-heading {
  max-width: 100%;
}

.subscription-heading .hero__title-line {
  display: inline;
  white-space: normal;
}

.subscription-heading .hero__title,
.subscription-heading .section__title {
  max-width: 100%;
  margin: 0;
}

.subscription-heading .hero__sub {
  justify-content: center;
  margin-top: 15px;
  font-size: clamp(15px, 1.6vw, 20px);
}

.subscription-heading .status {
  display: inline-block;
  max-width: 100%;
  margin-top: 12px;
  white-space: normal;
}

.subscription-options {
  display: grid;
  justify-items: center;
  gap: 25px;
  width: min(100%, 1180px);
  min-width: 0;
}

.subscription-options .offers {
  max-width: none;
  min-height: 0;
  padding-top: 7px;
}

.subscription-options .offer {
  justify-content: center;
  min-width: 0;
  min-height: 158px;
  padding: 28px 12px 22px;
}

.subscription-options .offer__price {
  font-size: clamp(28px, 3.1vw, 44px);
}

.subscription-options .offer--popular,
.subscription-options .offer--popular:hover {
  background: linear-gradient(130deg, #39473f, #303d36 58%, #333836);
}

.subscription-options .offer__total {
  white-space: normal;
}

.subscription-options .btn {
  min-width: min(275px, 100%);
}

.subscription-layout > .finale__side {
  align-self: center;
  width: min(100%, 770px);
  margin-top: 4px;
  text-align: left;
}

@media (max-width: 680px) {
  .subscription-options .offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .subscription-options .offer {
    min-height: 118px;
    padding: 18px 6px 14px;
  }

  .subscription-options .offer__price {
    font-size: clamp(24px, 6.8vw, 32px);
  }

  .subscription-options .offer__total {
    margin-top: 8px;
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .subscription-heading .hero__title {
    font-size: clamp(30px, 8vw, 42px);
  }

  .subscription-heading .status__note {
    display: block;
  }

  .subscription-options {
    gap: 19px;
  }

  .subscription-options .btn {
    width: min(100%, 340px);
  }
}
