/* ============================================================================
   supersub.click — лендинг подписки
   Оформление: графитовый фон, мятный акцент, Inter,
   плотный трекинг заголовков, списки на тонких линейках.
   Порядок: токены · база · кнопки · шапка · герой · секции · чекаут · motion
   ========================================================================= */

/* --- Токены --------------------------------------------------------------- */
:root {
  --bg: #151616;
  --bg-raise: #1b1d1d;
  --text: #eceeec;
  --white: #ffffff;
  --muted: color-mix(in srgb, var(--text) 70%, var(--bg));
  --faint: color-mix(in srgb, var(--text) 45%, var(--bg));
  --line: color-mix(in srgb, var(--text) 16%, var(--bg));
  --line-soft: color-mix(in srgb, var(--text) 9%, var(--bg));

  /* Мятный — единственный цвет на странице: кнопки, иконки, ссылки, метки */
  --accent: #34d399;
  --accent-hover: #4ee0aa;
  --accent-deep: #062318;
  --accent-soft: rgba(52, 211, 153, 0.12);

  --sale: #f2766b;
  --error: #f2766b;

  /* Вертикальный ритм первого экрана — три ступени, правятся здесь */
  --gap-pair: 12px;
  --gap-note: 18px;
  --gap-block: 30px;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;

  --font: "Inter", "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.7, 0.24, 1);
  --shell: 1440px;
  --gutter: clamp(20px, 4vw, 60px);
  color-scheme: dark;
}

/* --- База ----------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Шапка прижата к верху и перекрывает цель перехода — отступ для якорей */
  scroll-padding-top: 84px;
  /* Арки в герое шире экрана — обрезаем их, а не растим документ */
  overflow-x: clip;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* overflow-x здесь не ставить: он делает body контейнером прокрутки,
     и position: sticky у шапки перестаёт работать. */
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  text-wrap: balance;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.25em;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

::selection {
  background: var(--accent);
  color: var(--accent-deep);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-deep);
  border-radius: var(--r-sm);
  transition: top 0.2s var(--ease);
}

.skip-link:focus-visible {
  top: 12px;
}

/* --- Кнопки --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    transform 0.15s,
    opacity 0.15s;
}

.btn:active {
  transform: scale(0.96);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-deep);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn--lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 16.5px;
  font-weight: 500;
}

.btn__arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.btn--block {
  width: 100%;
  min-width: 0;
}

.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

/* --- Шапка ---------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  transition: box-shadow 0.2s var(--ease);
}

.topbar.is-stuck {
  box-shadow: 0 1px 0 var(--line-soft);
}

.topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.wordmark {
  width: fit-content;
  color: var(--white);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.topbar__nav a {
  font-size: 14px;
  font-weight: 300;
  transition: color 0.15s;
}

.topbar__nav a:hover {
  color: var(--accent);
}

.topbar__right {
  display: flex;
  justify-content: flex-end;
}

.topbar__link {
  padding: 12px 4px;
  font-size: 14px;
  color: var(--accent);
  cursor: pointer;
}

.topbar__link:hover {
  text-decoration: underline;
}

/* --- 01 · Герой ----------------------------------------------------------- */
.hero {
  overflow: hidden;
}

.hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(20px, 2.6vw, 40px);
}

.hero__title {
  max-width: 1000px;
  color: var(--white);
  font-size: clamp(32px, 4.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero__brand {
  color: var(--accent);
}

/* Факты строкой через точки. Факты сгруппированы парами: на узком экране
   каждая пара встаёт своей строкой, и точка не повисает в начале переноса. */
.hero__lead {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 0;
  max-width: 800px;
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 300;
  line-height: 1.5;
}

.hero__pair > span + span::before,
.hero__pair + .hero__pair::before {
  content: "·";
  margin: 0 10px;
  color: var(--faint);
}

.hero__lead b {
  font-weight: 600;
  color: var(--text);
}

/* Отметка свежести: мятная точка, белая строка, приглушённая дата */
.status {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 10px;
  margin-top: var(--gap-pair);
  font-size: 13.5px;
  color: var(--muted);
}

.status b {
  font-weight: 500;
  color: var(--accent);
}

.status__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.status__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.45;
  }
  80%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  max-width: 920px;
  margin-top: 20px;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--muted);
}

/* Пункт — обычная строка, не флекс: во флексе пробелы между <b> и текстом
   схлопываются в gap, и «2 устройства в подписке» разъезжается. */
.hero__meta li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--accent);
}

.hero__meta b {
  font-weight: 400;
  color: var(--text);
}

/* Арки: маска плавно растворяет края в фоне */
.hero__art {
  display: block;
  width: 100%;
  height: clamp(180px, 22vw, 340px);
  margin: -40px auto 0;
  -webkit-mask-image: linear-gradient(#0000, #000 14% 86%, #0000);
  mask-image: linear-gradient(#0000, #000 14% 86%, #0000);
}

.hero__cable {
  stroke-dasharray: 2400;
  stroke-dashoffset: 0;
}

.js .hero__cable {
  stroke-dashoffset: 2400;
}

.is-ready .hero__cable {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.2s var(--ease) 0.5s;
}

/* Полоса платформ под арками */
.platforms {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding-block: 28px;
}

.platforms a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
  font-size: 15px;
  transition: color 0.15s;
}

.platforms a:hover {
  color: var(--accent);
}

.platforms svg {
  width: 22px;
  height: 22px;
}

/* --- Секции --------------------------------------------------------------- */
.section {
  padding-block: 84px;
}

.features {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

/* Линия-разделитель — только над «Возможностями» и «Устройствами»,
   над первой и последней секциями. */
.devices {
  border-top: 1px solid var(--line);
}

.places,
.faq {
  padding-top: 16px;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 40px;
}

.section__title {
  max-width: 760px;
  color: var(--white);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section__lead {
  max-width: 340px;
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.6;
}

/* Раскрывающиеся строки — «Возможности» и FAQ */
.rows {
  border-top: 1px solid var(--line);
}

.row {
  border-bottom: 1px solid var(--line);
}

.row summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 21px 4px;
  list-style: none;
  cursor: pointer;
}

.row summary::-webkit-details-marker {
  display: none;
}

.row__icon {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.row h3 {
  flex: 1;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.025em;
  transition: color 0.15s;
}

.row summary:hover h3 {
  color: var(--white);
}

/* Плюс, который на раскрытой строке поворачивается в крестик */
.row__plus {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--muted);
  transition: transform 0.22s var(--ease);
}

.row__plus::before,
.row__plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.row__plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.row[open] .row__plus {
  transform: rotate(45deg);
}

.row__body {
  padding: 0 48px 26px;
}

.row__body p {
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
}

.row__body a {
  color: var(--accent);
  cursor: pointer;
}

.row__body a:hover {
  text-decoration: underline;
}

.row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--accent);
}

/* У вопросов нет иконки слева — текст тела не нужно сдвигать под неё */
.qa .row__body {
  padding-left: 4px;
}

/* 03 · Локации — сетка доступных серверов */
.places__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 32px;
}

/* Ячейка — обычный поток, не флекс: во флексе длинное название
   («Великобритания» на 390 px) уезжает строкой ниже флага. */
.places__list > li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.places__flag {
  margin-right: 10px;
  font-size: 19px;
  line-height: 1;
}

.places__list > li.is-special {
  color: var(--accent);
}

.places__list > li > b {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--muted);
}

/* 04 · Устройства — карточки загрузки */
.downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.download {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition:
    border-color 0.15s,
    background-color 0.15s;
}

.download:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.download__icon {
  flex: none;
  width: 28px;
  height: 28px;
}

.download > span {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.download b {
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.download small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 300;
}

.download__out {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.downloads__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

.downloads__note a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
}

.downloads__note a:hover {
  text-decoration: underline;
}

.downloads__note svg {
  width: 14px;
  height: 14px;
}

/* 05 · Покупка — три шага и факты */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
}

.steps > li {
  padding: 30px 0 34px;
  border-top: 1px solid var(--line);
}

.steps__num {
  display: block;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  color: var(--white);
  font-size: 20px;
  letter-spacing: -0.025em;
}

.steps p {
  max-width: 360px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.6;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.facts > li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: var(--bg-raise);
  border: 1px solid var(--line-soft);
}

.facts > li > b {
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
}

.facts > li > span {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.55;
}

.facts a {
  color: var(--accent);
  cursor: pointer;
}

.facts a:hover {
  text-decoration: underline;
}

/* 07 · Финальный CTA */
.closing {
  position: relative;
  padding-block: 96px 104px;
  border-top: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
}

/* Мятное свечение снизу — продолжение линии из первого экрана */
.closing::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -60%;
  width: min(1100px, 140%);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(52, 211, 153, 0.14), transparent);
  pointer-events: none;
}

.closing__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing__title {
  color: var(--white);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.closing__lead {
  max-width: 560px;
  margin: 20px 0 34px;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 18px);
  font-weight: 300;
  line-height: 1.5;
}

/* --- Подвал --------------------------------------------------------------- */
.footer {
  padding-block: 48px;
  border-top: 1px solid var(--line);
}

.footer__top,
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.footer__top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.footer__top nav a {
  cursor: pointer;
}

.footer__top nav a:hover {
  color: var(--accent);
}

.footer__bottom {
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
}

/* --- Липкая кнопка на мобильном ------------------------------------------- */
.sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(21, 22, 22, 0.86);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid var(--line);
  transform: translateY(120%);
  visibility: hidden;
  transition:
    transform 0.32s var(--ease),
    visibility 0s linear 0.32s;
}

.sticky.is-visible {
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}

.sticky__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sticky__price {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 861px) {
  .sticky {
    display: none;
  }
}

/* --- Чекаут --------------------------------------------------------------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 6, 6, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.26s var(--ease);
}

.backdrop.is-open {
  opacity: 1;
}

.sheet {
  position: relative;
  width: min(480px, 100%);
  max-height: min(88svh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 26px 26px 22px;
  border-radius: 22px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
  transform: translateY(14px) scale(0.975);
  opacity: 0;
  transition:
    transform 0.34s var(--ease),
    opacity 0.24s var(--ease);
}

.backdrop.is-open .sheet {
  transform: none;
  opacity: 1;
}

.sheet__grab {
  display: none;
}

.sheet__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(236, 238, 236, 0.06);
  cursor: pointer;
  transition: background-color 0.18s var(--ease);
}

.sheet__close:hover {
  background: rgba(236, 238, 236, 0.12);
}

.sheet__close svg {
  width: 13px;
  height: 13px;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  fill: none;
}

/* Видимого заголовка у окна нет, но разметке он нужен для aria-labelledby */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Форма заказа: первый экран и окно -------------------------------------- */
.hero__order {
  width: 100%;
  max-width: 1040px;
  margin-top: var(--gap-block);
  text-align: left;
}

.hero__fallback {
  text-align: center;
  font-size: 20px;
  color: var(--white);
}

/* Устройства: подпись и «−  1 устройство  +» в одну строку по центру */
.stepper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 20px;
}

.stepper__label {
  font-size: 15px;
  color: var(--muted);
}

.stepper__control {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raise);
}

.stepper__btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--line-soft);
  color: var(--text);
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s,
    transform 0.15s;
}

.stepper__btn:hover {
  background: var(--accent);
  color: var(--accent-deep);
}

.stepper__btn:active {
  transform: scale(0.92);
}

.stepper__btn[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

.stepper__btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.stepper__value {
  min-width: 132px;
  text-align: center;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Сроки: четыре плитки в ряд, на телефоне — 2×2 */
/* Число колонок — по числу сроков: витрина может прислать не четыре */
.terms {
  display: grid;
  grid-template-columns: repeat(var(--terms, 4), minmax(0, 1fr));
  gap: 12px;
}

.term {
  position: relative;
  display: block;
  padding: 22px 12px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-raise);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.18s var(--ease),
    background-color 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.term input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.term__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.term__label {
  font-size: 14.5px;
  color: var(--muted);
}

.term__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.term__total {
  color: var(--white);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.term__per {
  font-size: 13px;
  color: var(--faint);
}

.term__month {
  font-size: 13.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.term__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.term:hover {
  border-color: color-mix(in srgb, var(--text) 32%, var(--bg));
}

.term.is-selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-raise));
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16);
}

.term:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Переход к оформлению после выбора срока и устройств. */
.order {
  display: grid;
  gap: 8px 12px;
  margin-top: 20px;
}

.order--redirect {
  width: min(100%, 400px);
  margin-inline: auto;
  gap: 12px;
  text-align: center;
}

.order__summary {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.order--row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  max-width: 780px;
  margin-inline: auto;
}

.order--row .field__note {
  grid-column: 1 / -1;
}

.field__label {
  display: block;
  margin: 0 0 7px 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.field__input {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.field__input::placeholder {
  color: var(--faint);
}

.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}

.field__input.is-invalid {
  border-color: var(--error);
}

.field__note {
  margin-left: 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--faint);
}

.field__note.is-error {
  color: var(--error);
}

.pay-btn {
  white-space: nowrap;
}

.pay-btn [data-pay-label] {
  font-variant-numeric: tabular-nums;
  transition:
    opacity 0.14s var(--ease),
    transform 0.14s var(--ease);
}

.pay-btn [data-pay-label].is-changing {
  opacity: 0;
  transform: translateY(-4px);
}

/* В окне всё компактнее: плитки 2×2, кнопка во всю ширину */
.sheet__title {
  margin: 2px 40px 18px 0;
  color: var(--white);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.sheet .stepper {
  justify-content: space-between;
  margin-bottom: 22px;
}

.sheet .terms {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 10px;
}

.sheet .term {
  padding: 18px 10px 14px;
}

.sheet .term__total {
  font-size: 26px;
}

.sheet .pay-btn {
  width: 100%;
}

/* --- Адаптив -------------------------------------------------------------- */
@media (max-width: 1100px) {
  .places__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar__inner {
    grid-template-columns: 1fr auto;
    height: 72px;
  }

  .topbar__nav {
    display: none;
  }

  .section {
    padding-block: 68px;
  }

  .places,
  .faq {
    padding-top: 8px;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 36px;
  }

  .section__lead {
    max-width: 560px;
  }

  .platforms {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 8px;
  }

  .downloads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps,
  .facts {
    grid-template-columns: 1fr;
  }

  .steps > li {
    padding: 24px 0;
  }

  .steps__num {
    margin-bottom: 10px;
  }

  .facts {
    margin-top: 16px;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  :root {
    --gap-block: 26px;
  }

  .topbar__inner {
    height: 64px;
  }

  .wordmark {
    font-size: 24px;
  }

  .hero__lead {
    margin-top: 10px;
    font-size: 14.5px;
  }

  .hero__lead {
    flex-direction: column;
    align-items: center;
  }

  .hero__pair > span + span::before {
    margin: 0 7px;
  }

  .hero__pair + .hero__pair::before {
    display: none;
  }

  .status {
    margin-top: 8px;
    font-size: 12.5px;
  }

  /* Форма в первом экране на телефоне: всё плотнее, чтобы почта и кнопка
     поместились в экран вместе с выбором */
  .hero__order {
    margin-top: 20px;
  }

  .stepper {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
  }

  .stepper__label {
    font-size: 14px;
  }

  .stepper__btn {
    width: 34px;
    height: 34px;
  }

  .stepper__value {
    min-width: 100px;
    font-size: 15px;
  }

  .terms,
  .sheet .terms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 8px;
  }

  .term,
  .sheet .term {
    padding: 14px 6px 11px;
    border-radius: var(--r-md);
  }

  .term__body {
    gap: 3px;
  }

  .term__label {
    font-size: 13px;
  }

  .term__total,
  .sheet .term__total {
    font-size: 24px;
  }

  .term__month {
    font-size: 12px;
  }

  .term__badge {
    font-size: 9.5px;
    padding: 2px 8px;
  }

  .order {
    margin-top: 14px;
  }

  .order--row {
    grid-template-columns: 1fr;
  }

  .field__label {
    display: none;
  }

  .field__input {
    height: 50px;
  }

  .pay-btn {
    width: 100%;
    min-height: 50px;
  }

  .hero__meta {
    gap: 6px 16px;
    font-size: 13px;
  }

  .hero__art {
    margin-top: -8px;
  }

  .platforms {
    padding-block: 20px;
  }

  .platforms a {
    justify-content: flex-start;
    gap: 12px;
    font-size: 14px;
  }

  .platforms svg {
    width: 22px;
    height: 22px;
  }

  .features {
    margin-top: 8px;
  }

  .section {
    padding-block: 64px;
  }

  .row summary {
    gap: 16px;
    padding: 22px 0;
  }

  .row h3 {
    font-size: 19px;
  }

  .row__body {
    padding: 0 0 26px 40px;
  }

  .qa .row__body {
    padding-left: 0;
  }

  .row__body p {
    font-size: 16px;
  }

  .places__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }

  .places__list > li {
    padding: 20px 0;
    font-size: 17px;
  }

  .places__flag {
    margin-right: 8px;
    font-size: 18px;
  }

  .downloads {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .download {
    min-height: 88px;
    padding: 20px;
  }

  .closing {
    padding-block: 88px 96px;
  }

  .footer__top,
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer__bottom {
    margin-top: 28px;
    gap: 6px;
  }

  /* Чекаут на телефоне — шторка снизу */
  .backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .sheet {
    width: 100%;
    max-height: 92svh;
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
    padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.36s var(--ease);
  }

  .backdrop.is-open .sheet {
    transform: translateY(0);
  }

  .sheet__grab {
    display: block;
    width: 38px;
    height: 4px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: var(--line);
  }

  .sheet__close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 359px) {
  .term__total,
  .sheet .term__total {
    font-size: 21px;
  }

  .stepper__label {
    font-size: 13px;
  }

  .stepper__value {
    min-width: 92px;
    font-size: 14px;
  }

  .stepper__btn {
    width: 30px;
    height: 30px;
  }

  .places__list > li {
    font-size: 15px;
  }
}

/* --- Motion --------------------------------------------------------------- */
.js .anim {
  opacity: 0;
  transform: translateY(12px);
}

.is-ready .anim {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .anim,
  .reveal {
    opacity: 1;
    transform: none;
  }

  .js .hero__cable {
    stroke-dashoffset: 0;
  }

  .sticky {
    transition: none;
  }
}

/* Neutral edition: same dark layout, no application branding or download links. */
.topbar__inner { grid-template-columns: 1fr auto; }
.hero__title { max-width: 1100px; font-size: clamp(32px, 4.2vw, 56px); text-wrap: balance; }
.downloads .download { cursor: default; }
.downloads .download:hover { background: var(--bg-raise); transform: none; }
.footer__top { justify-content: flex-end; }
.stepper__btn { min-width: 44px; min-height: 44px; }
@media (max-width: 900px) { .topbar__inner { display: flex; justify-content: flex-end; } }
