/* ==========================================================================
   Самолётик — tgsamolet.ru
   Дизайн-система: светлая тема Telegram, один синий акцент, тёплый —
   только для бейджа «Популярный» и ховера главной кнопки.
   ========================================================================== */

/* ---------- Шрифты (self-hosted, вариативные, ось wght) ----------
   Грузим подмножества (кириллица + латиница), собранные из исходных
   fonts/Unbounded.ttf и fonts/Manrope.ttf: 233 КБ вместо 943 КБ.
   Исходные файлы лежат рядом — если понадобится другой набор символов,
   пересобрать подмножество из них. */
@font-face {
  font-family: 'Unbounded';
  src: url('fonts/Unbounded-cyrlat.ttf') format('truetype');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope-cyrlat.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Токены ---------- */
:root {
  --blue: #2AABEE;
  --blue-deep: #229ED9;
  --blue-ink: #0B76AE;          /* контраст ≥ 4.5 на белом */
  --blue-fill: #1478A9;         /* заливка под белый текст */
  --blue-fill-2: #0B5D87;
  --blue-dark: #0A5C87;
  --blue-wash: #EAF6FD;
  --blue-wash-2: #D8EEFB;

  --warm: #FF8A3D;
  --warm-soft: #FFB067;
  --warm-ink: #3D1A00;

  --ink: #0D1B2A;
  --ink-2: #4C5E6E;
  --ink-3: #5F6E7C;

  --bg: #F4FAFE;
  --card: #FFFFFF;
  --line: #E2EDF6;
  --line-strong: #CFE3F2;

  --shadow-s: 0 2px 8px rgba(16, 92, 134, .06);
  --shadow-m: 0 10px 30px rgba(16, 92, 134, .10);
  --shadow-l: 0 24px 60px rgba(16, 92, 134, .16);
  --shadow-blue: 0 12px 28px rgba(34, 158, 217, .32);

  --r-s: 12px;
  --r-m: 18px;
  --r-l: 24px;
  --r-xl: 32px;

  --wrap: 1140px;
  --pad: 20px;

  --display: 'Unbounded', 'Trebuchet MS', system-ui, sans-serif;
  --text: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(28px, 6.6vw, 54px); letter-spacing: -0.035em; }
h2 { font-size: clamp(25px, 5.6vw, 40px); letter-spacing: -0.03em; }
h3 { font-size: clamp(18px, 3.4vw, 21px); font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: var(--ink); padding: 12px 18px;
  border-radius: 0 0 var(--r-s) 0; z-index: 100; font-weight: 700;
}
.skip:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

section { padding-block: clamp(21px, 3.2vw, 40px); scroll-margin-top: 78px; }

.eyebrow {
  font-family: var(--text);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-ink);
  margin: 0 0 12px;
}

.lead { font-size: clamp(16px, 3.6vw, 19px); color: var(--ink-2); max-width: 58ch; }

.section-head { margin-bottom: clamp(20px, 2.8vw, 32px); max-width: 44ch; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  font-family: var(--text);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn svg { flex: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--blue-fill) 0%, #10719F 60%, var(--blue-fill-2) 100%);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(255, 138, 61, .34), 0 6px 16px rgba(34, 158, 217, .28);
  background: linear-gradient(135deg, #1784B9 0%, #0F6D9A 55%, #C25E1B 200%);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: #fff;
  color: var(--blue-ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong), var(--shadow-s);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue); transform: translateY(-2px); }

.btn--soft {
  background: var(--blue-wash);
  color: var(--blue-ink);
  box-shadow: inset 0 0 0 1.5px var(--blue-wash-2);
}
.btn--soft:hover { background: var(--blue-wash-2); transform: translateY(-2px); }

.btn--lg { padding: 18px 34px; font-size: 17px; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 250, 254, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.header.is-stuck { border-bottom-color: var(--line); background: rgba(255, 255, 255, .9); }
.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo__mark {
  width: 38px; height: 38px; flex: none;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--blue), var(--blue-deep));
  box-shadow: 0 6px 14px rgba(34, 158, 217, .35);
  display: grid; place-items: center;
}
.logo__mark svg { width: 22px; height: 22px; }
.logo__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.03em;
}
.header .btn { padding: 12px 20px; font-size: 15px; }
.nav { display: flex; align-items: center; gap: 28px; margin: 0 auto; }
.nav a { color: var(--ink); font-weight: 500; font-size: 15px; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--blue-ink); text-decoration: none; border-bottom-color: var(--blue-ink); }
@media (max-width: 860px) { .nav { display: none; } }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  padding-block: clamp(14px, 2.2vw, 28px) clamp(21px, 3.2vw, 40px);
  overflow: hidden;
}
.hero__sky {
  position: absolute;
  inset: -140px 0 auto 0;
  height: 760px;
  pointer-events: none;
  background:
    radial-gradient(52% 48% at 78% 18%, rgba(42, 171, 238, .20) 0%, rgba(42, 171, 238, 0) 70%),
    radial-gradient(60% 50% at 8% 4%, rgba(34, 158, 217, .16) 0%, rgba(34, 158, 217, 0) 72%);
}
.hero__trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .9;
}
.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(24px, 3.4vw, 40px);
}
.hero__copy { max-width: 620px; }
.hero h1 { margin-bottom: 14px; }
.hero h1 .accent {
  background: linear-gradient(100deg, #1C93CB 10%, #147AAC 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub { font-size: clamp(16px, 4vw, 20px); color: var(--ink-2); max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.hero__note { font-size: 14px; color: var(--ink-3); margin: 0 0 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px 9px 11px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-s);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.chip svg { width: 18px; height: 18px; flex: none; color: var(--blue-deep); }

/* ---------- Бейдж MTProto и строка доверия ---------- */
.mtbadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--blue-wash);
  box-shadow: inset 0 0 0 1px var(--blue-wash-2);
  color: var(--blue-dark);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .01em;
}
.mtbadge svg { width: 17px; height: 17px; color: var(--blue-ink); flex: none; }

.hero__trust {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: 14px;
  color: var(--ink-2);
}
.hero__trust svg { width: 18px; height: 18px; flex: none; color: var(--blue-deep); margin-top: 2px; }

/* ---------- Форма оплаты ---------- */
.hero__checkout { display: flex; justify-content: center; }
.checkout {
  width: 100%;
  max-width: 440px;
  margin: 0;
  padding: 20px;
  border: 0;
  border-radius: var(--r-xl);
  background: var(--card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, var(--shadow-l);
}
.checkout__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.checkout__title {
  margin: 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.checkout__lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
  white-space: nowrap;
}
.checkout__lock svg { width: 15px; height: 15px; color: var(--blue-deep); }

.ptoggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.ptoggle__item { position: relative; display: block; cursor: pointer; }
.ptoggle__item input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.ptoggle__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  height: 100%;
  padding: 13px 6px 11px;
  border-radius: var(--r-m);
  background: #F7FBFE;
  box-shadow: inset 0 0 0 1.5px var(--line);
  text-align: center;
  transition: box-shadow .18s ease, background-color .18s ease, transform .18s ease;
}
.ptoggle__name { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.ptoggle__price { font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -.04em; }
.ptoggle__per { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.ptoggle__tag {
  position: absolute;
  top: -9px; left: 50%;
  transform: translateX(-50%);
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--warm-soft), var(--warm));
  color: var(--warm-ink);
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(255, 138, 61, .35);
}
.ptoggle__item:hover .ptoggle__box { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.ptoggle__item input:checked + .ptoggle__box {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--blue), 0 6px 16px rgba(34, 158, 217, .18);
}
.ptoggle__item input:checked + .ptoggle__box .ptoggle__name { color: var(--blue-ink); }
.ptoggle__item input:focus-visible + .ptoggle__box { outline: 3px solid var(--blue-deep); outline-offset: 2px; }

.field { margin: 0 0 14px; display: grid; gap: 6px; }
.field__label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field__input {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--r-m);
  background: #F7FBFE;
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-family: var(--text);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  transition: box-shadow .18s ease, background-color .18s ease;
}
.field__input::placeholder { color: #6E7A86; font-weight: 500; }
.field__input:hover { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.field__input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--blue-deep); }
.field__input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #D2691E; background: #FFF8F2; }
.field__hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }

.checkout__error {
  margin: 0 0 12px;
  padding: 11px 14px;
  border-radius: var(--r-s);
  background: #FFF1E6;
  color: #8A3B00;
  font-size: 14px;
  font-weight: 600;
}
.checkout__submit { position: relative; gap: 10px; }
.checkout__sum {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(5, 48, 72, .32);
  font-size: 15px;
  font-weight: 800;
}
.checkout__submit[aria-busy="true"] { opacity: .75; cursor: progress; }
.checkout__notes { display: grid; gap: 7px; margin: 14px 0 0; font-size: 13px; color: var(--ink-2); }
.checkout__notes li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.checkout__notes svg { width: 17px; height: 17px; color: var(--blue-deep); margin-top: 1px; }

/* ---------- Макет телефона ---------- */
.how__grid { display: grid; gap: clamp(24px, 4vw, 36px); }
.hero__device { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(278px, 76vw);
  aspect-ratio: 300 / 610;
  border-radius: 44px;
  padding: 11px;
  background: linear-gradient(160deg, #EAF2F8 0%, #C9DCEA 42%, #8FA9BC 100%);
  box-shadow: var(--shadow-l), inset 0 0 0 1px rgba(255, 255, 255, .6);
  animation: float 7s ease-in-out infinite;
}
.phone::after {
  content: '';
  position: absolute;
  left: 50%; top: 20px;
  transform: translateX(-50%);
  width: 82px; height: 20px;
  background: #0D1B2A;
  border-radius: 999px;
  z-index: 3;
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.tgbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 46px 12px 9px;
  background: #fff;
  border-bottom: 1px solid #EDF1F4;
  flex: none;
}
.tgbar__back { width: 9px; height: 16px; flex: none; color: var(--blue-deep); }
.tgbar__ava {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, var(--blue), var(--blue-deep));
  display: grid; place-items: center;
}
.tgbar__ava svg { width: 17px; height: 17px; }
.tgbar__title { font-size: 12.5px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.tgbar__sub { font-size: 10.5px; color: #69757F; line-height: 1.2; }

.tgchat {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background:
    radial-gradient(120% 90% at 20% 0%, #EAF5FC 0%, #DDEDF8 45%, #D3E7F5 100%);
}
.bubble {
  max-width: 88%;
  background: #fff;
  border-radius: 14px 14px 14px 5px;
  padding: 9px 11px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #17222C;
  box-shadow: 0 1px 2px rgba(16, 92, 134, .12);
}
.bubble strong { font-weight: 800; }
.bubble--wide { max-width: 100%; }
.bubble__time { display: block; text-align: right; font-size: 9px; color: #6E7A86; margin-top: 2px; }
.tgbtn {
  margin-top: 8px;
  display: block;
  text-align: center;
  padding: 9px;
  border-radius: 10px;
  /* внутри макета телефона — фирменный светлый синий Telegram: это
     иллюстрация интерфейса мессенджера, у блока есть текстовое описание */
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
}
.tgbtn--second {
  background: #F0F6FA; color: var(--blue-ink); margin-top: 5px; font-weight: 700;
}

/* системный лист «Подключить прокси?» */
.sheet {
  position: absolute;
  left: 8px; right: 8px; bottom: 9px;
  z-index: 4;
  animation: sheet-in 900ms cubic-bezier(.2, .8, .25, 1) both 400ms;
}
.sheet__card {
  background: rgba(252, 253, 254, .97);
  border-radius: 14px;
  padding: 13px 14px 4px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(13, 27, 42, .22);
  backdrop-filter: blur(8px);
}
.sheet__title { font-size: 12.5px; font-weight: 800; margin: 0 0 4px; color: #17222C; }
.sheet__text { font-size: 10.5px; color: #55636F; margin: 0 0 11px; line-height: 1.45; }
.sheet__text b { color: #17222C; font-weight: 700; }
.sheet__row {
  margin: 0;
  display: flex; justify-content: space-between; gap: 8px;
  border-top: 1px solid #E8EDF1;
  padding: 9px 2px;
  font-size: 11.5px;
}
.sheet__row:first-of-type { border-top: 0; }
.sheet__row span:first-child { color: #69757F; }
.sheet__row span:last-child { font-weight: 700; color: #17222C; }
.sheet__acts { display: flex; border-top: 1px solid #E8EDF1; margin-top: 4px; }
.sheet__act {
  flex: 1; padding: 11px 4px; font-size: 12.5px; color: var(--blue-ink); font-weight: 600;
}
.sheet__act + .sheet__act { border-left: 1px solid #E8EDF1; font-weight: 800; position: relative; }
.sheet__act--go::after {
  content: '';
  position: absolute; inset: 4px 6px;
  border-radius: 9px;
  background: var(--blue);
  opacity: 0;
  animation: tap 3.4s ease-in-out infinite 1.6s;
}
.phone__caption {
  margin: 16px auto 0;
  max-width: 300px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-3);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-.5deg); }
}
@keyframes sheet-in {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes tap {
  0%, 82%, 100% { opacity: 0; transform: scale(1); }
  88% { opacity: .18; transform: scale(.97); }
  94% { opacity: 0; transform: scale(1); }
}

/* ---------- Тарифы ---------- */
.plans { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 12%, #fff 88%, rgba(255, 255, 255, 0) 100%); }
.plans__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 4vw, 38px);
}
.plans__head .section-head { margin-bottom: 0; }

.plan-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--r-l);
  padding: 24px 22px;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-s);
  transition: transform .2s ease, box-shadow .22s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-m); }
.plan__name { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.plan__price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -.045em;
  line-height: 1.05;
  margin: 10px 0 2px;
}
.plan__price small { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.plan__per { font-size: 13.5px; color: var(--ink-3); margin: 0 0 18px; min-height: 20px; }
.plan__list { display: grid; gap: 9px; margin: 0 0 22px; font-size: 14.5px; color: var(--ink-2); }
.plan__list li { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; }
.plan__list svg { width: 18px; height: 18px; margin-top: 2px; color: var(--blue-deep); }
.plan__list .muted { color: var(--ink-3); }
.plan__list .muted svg { color: #A9BDCC; }
.plan .btn { margin-top: auto; }

.plan--hot {
  box-shadow: inset 0 0 0 2px var(--blue), var(--shadow-m);
  background: linear-gradient(180deg, #F8FCFF 0%, #fff 30%);
}
.plan--hot:hover { box-shadow: inset 0 0 0 2px var(--blue), var(--shadow-l); }
.plan__badge {
  position: absolute;
  top: -12px; left: 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--warm-soft), var(--warm));
  color: var(--warm-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(255, 138, 61, .35);
}
.plan__save {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-wash);
  color: var(--blue-ink);
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 14px;
}
.plan__save--spacer { display: none; }   /* нужен только в сетке из колонок */

.plans__foot {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--r-m);
  background: var(--blue-wash);
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 600;
}
.plans__foot svg { width: 22px; height: 22px; flex: none; color: var(--blue-deep); margin-top: 1px; }
.plans__foot p { margin: 0; }

/* ---------- Как это работает ---------- */
.steps { display: grid; gap: 16px; }
.step {
  position: relative;
  background: var(--card);
  border-radius: var(--r-l);
  padding: 24px 22px;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-s);
  overflow: hidden;
}
.step__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  color: var(--blue-ink);
  letter-spacing: .1em;
}
.step__icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--blue-wash);
  display: grid; place-items: center;
  margin: 0 0 16px;
}
.step__icon svg { width: 30px; height: 30px; color: var(--blue-deep); }
.step h3 { margin: 6px 0 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }
.step__arrow {
  position: absolute;
  right: -18px; top: 50%;
  width: 46px;
  color: var(--line-strong);
  display: none;
}

/* ---------- Почему стабильно ---------- */
.why { background: #fff; }
.why__grid { display: grid; gap: 16px; }
.why__net { display: grid; place-items: center; margin-bottom: 8px; }
.why__net svg { width: min(420px, 100%); height: auto; }
.reason {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px;
  border-radius: var(--r-m);
  background: #FBFDFF;
  box-shadow: inset 0 0 0 1px var(--line);
}
.reason__icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--blue-wash), #fff);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid; place-items: center;
}
.reason__icon svg { width: 24px; height: 24px; color: var(--blue-deep); }
.reason h3 { font-size: 16.5px; margin: 2px 0 4px; }
.reason p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- Устройства ---------- */
.devices__art { display: grid; place-items: center; margin-bottom: clamp(24px, 4vw, 40px); }
.devices__art svg { width: min(560px, 100%); height: auto; }
.devices__grid { display: grid; gap: 16px; }
.howto {
  background: var(--card);
  border-radius: var(--r-l);
  padding: 22px;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-s);
}
.howto h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.howto h3 svg { width: 24px; height: 24px; color: var(--blue-deep); flex: none; }
.howto ol { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; display: grid; gap: 7px; }
.howto ol::marker { font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { background: #fff; }
.faq__list { display: grid; gap: 10px; max-width: 840px; }
.qa {
  border-radius: var(--r-m);
  background: #FBFDFF;
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.qa[open] { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-s); background: #fff; }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  color: var(--ink);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '';
  width: 12px; height: 12px;
  flex: none;
  border-right: 2.5px solid var(--blue-deep);
  border-bottom: 2.5px solid var(--blue-deep);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .22s ease;
}
.qa[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.qa__body { padding: 0 20px 20px; color: var(--ink-2); font-size: 15px; }
.qa__body p:last-child { margin-bottom: 0; }

/* ---------- Финальный призыв ---------- */
.final { padding-block: clamp(8px, 1.4vw, 16px) clamp(28px, 3.6vw, 48px); }
.final__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(34px, 6vw, 64px) clamp(24px, 5vw, 56px);
  background: linear-gradient(135deg, #1478A9 0%, #106C9B 55%, #0B5D87 100%);
  color: #fff;
  box-shadow: var(--shadow-l);
}
.final__card h2 { color: #fff; max-width: 16ch; }
.final__card p { color: rgba(255, 255, 255, .96); max-width: 46ch; font-size: clamp(15px, 3.4vw, 18px); }
.final__card .btn--ghost { background: #fff; color: var(--blue-ink); box-shadow: 0 10px 26px rgba(6, 60, 90, .28); }
.final__card .btn--ghost:hover { box-shadow: 0 16px 32px rgba(6, 60, 90, .34); }
.final__acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.final__acts .muted { font-size: 14px; color: rgba(255, 255, 255, .95); font-weight: 600; }
.final__planes {
  position: absolute;
  right: -40px; top: -20px;
  width: 340px;
  opacity: .28;
  pointer-events: none;
}

/* ---------- Подвал ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); padding-block: 32px 36px; }
.footer__in { display: grid; gap: 22px; }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer p { margin: 0; font-size: 14px; color: var(--ink-3); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; font-weight: 600; }
.footer nav a { color: var(--ink-2); }
.footer nav a:hover { color: var(--blue-ink); }
.footer__legal { font-size: 13px; color: var(--ink-3); max-width: 70ch; }

/* ---------- Страница заказа /paid ---------- */
.page-order { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.page-order .order { flex: 1; display: flex; align-items: flex-start; }
.page-order .order__wrap { width: 100%; }
.order { padding-block: clamp(22px, 3.2vw, 40px) clamp(28px, 3.6vw, 48px); }
.order__wrap { max-width: 720px; }
.order h1 { font-size: clamp(24px, 5.4vw, 36px); margin-bottom: 10px; }
.order p { color: var(--ink-2); }
.order__muted { font-size: 14px; color: var(--ink-3); }
.order__muted--center { text-align: center; margin-top: 16px; }

.order__card {
  background: var(--card);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 34px);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-m);
}
.order__card--center { text-align: center; }
.order__card--center .btn { margin-top: 8px; }
.order__card + .order__card, .order__card + .cabinet { margin-top: 16px; }

.order__hero {
  text-align: center;
  padding: clamp(24px, 4vw, 36px) clamp(20px, 3vw, 32px) clamp(26px, 4vw, 34px);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, #F7FCFF 0%, #fff 60%);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-m);
  margin-bottom: 16px;
}
.order__plane { width: 92px; height: 92px; margin: 0 auto 14px; }
.order__until {
  display: inline-block;
  margin: 0 0 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--blue-wash);
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 700;
}
.order__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 14px; }
.order__slow { margin: 16px 0 0; }

/* инструкция приходит с сервера как HTML */
.order__card[data-instruction] h2 { font-size: clamp(19px, 3.4vw, 23px); margin-top: 0; }
.order__card[data-instruction] h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 16.5px; margin: 22px 0 8px;
}
.order__card[data-instruction] ol,
.order__card[data-instruction] ul { margin: 0 0 8px; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.order__card[data-instruction] ol { list-style: decimal; }
.order__card[data-instruction] ul { list-style: disc; }
.order__card[data-instruction] li { margin-bottom: 6px; }
.order__card[data-instruction] code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  background: var(--blue-wash);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--blue-dark);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.order__card[data-instruction] p { font-size: 15px; }

/* Привязка кабинета — обязательный шаг, его нельзя пропустить взглядом */
.cabinet {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  padding: clamp(24px, 4vw, 34px);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #1478A9 0%, #106C9B 55%, #0B5D87 100%);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 138, 61, .55), var(--shadow-l);
}
.cabinet::after {
  content: '';
  position: absolute;
  right: -70px; top: -70px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  pointer-events: none;
}
.cabinet__badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--warm-soft), var(--warm));
  color: var(--warm-ink);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(255, 138, 61, .35);
}
.cabinet__title { color: #fff; font-size: clamp(22px, 4.4vw, 30px); margin-bottom: 10px; }
.cabinet .cabinet__lead { color: #fff; font-size: clamp(15px, 2.6vw, 17px); margin-bottom: 16px; max-width: 52ch; }
.cabinet__list {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.cabinet__list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.cabinet__list svg { width: 19px; height: 19px; margin-top: 2px; color: #BFE6FA; }
.cabinet__btn {
  width: 100%;
  padding: 19px 20px;
  font-size: clamp(15px, 4vw, 17px);
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  background: #fff;
  color: var(--blue-dark);
  box-shadow: 0 12px 28px rgba(4, 44, 68, .35);
}
.cabinet__btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(4, 44, 68, .42); }
.cabinet__btn svg { color: var(--blue-deep); }
.cabinet .cabinet__note { margin: 12px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .95); }

/* спокойный индикатор ожидания */
.spinner { display: flex; justify-content: center; gap: 7px; margin-bottom: 18px; }
.spinner span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--blue-deep);
  animation: wait 1.4s ease-in-out infinite;
}
.spinner span:nth-child(2) { animation-delay: .18s; }
.spinner span:nth-child(3) { animation-delay: .36s; }
@keyframes wait {
  0%, 80%, 100% { opacity: .3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-5px); }
}

/* ---------- Страница /paid ---------- */
.state {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  text-align: center;
}
.state__card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: clamp(28px, 6vw, 48px);
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-m);
}
.state__mark { width: 84px; height: 84px; margin: 0 auto 20px; }
.state h1 { font-size: clamp(24px, 6vw, 34px); }
.state p { color: var(--ink-2); }
.state .btn { margin-top: 12px; }
.state__hint { font-size: 14px; color: var(--ink-3); margin-top: 20px; }
.state__back { margin-top: 18px; font-size: 14px; }

/* ---------- Юридические страницы ---------- */
.doc { padding-block: 40px 72px; }
.doc__wrap { max-width: 800px; }
.doc h1 { font-size: clamp(25px, 5.4vw, 38px); margin-bottom: 8px; }
.doc__meta { color: var(--ink-3); font-size: 14px; margin-bottom: 32px; }
.doc h2 { font-size: clamp(19px, 3.6vw, 24px); margin-top: 38px; }
.doc p, .doc li { color: var(--ink-2); font-size: 15.5px; }
.doc ol, .doc ul { padding-left: 22px; margin: 0 0 16px; }
.doc ol { list-style: decimal; }
.doc ul { list-style: disc; }
.doc li { margin-bottom: 6px; }
.doc__note {
  background: var(--blue-wash);
  border-radius: var(--r-m);
  padding: 16px 20px;
  color: var(--blue-dark);
  font-size: 14.5px;
}
.doc__note code, .req {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  background: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--blue-dark);
}
.doc__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; font-weight: 700; }

.checkout.is-flash { animation: flash 900ms ease-out; }
@keyframes flash {
  0% { box-shadow: 0 0 0 0 rgba(42, 171, 238, .45), var(--shadow-l); }
  100% { box-shadow: 0 0 0 16px rgba(42, 171, 238, 0), var(--shadow-l); }
}

/* ---------- Анимации подключаемых элементов ---------- */
/* Скрываем только если JS точно работает — без него всё видно сразу. */
.js-reveal .reveal { opacity: 1; transform: none; }
.js-reveal .reveal.is-in { animation: reveal-in .6s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.dash { stroke-dasharray: 10 12; animation: dash 3.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -44; } }

.pulse-ring { transform-box: fill-box; transform-origin: center; animation: ring 3.4s ease-out infinite; }
.pulse-ring--b { animation-delay: 1.1s; }
.pulse-ring--c { animation-delay: 2.2s; }
@keyframes ring {
  0% { transform: scale(.35); opacity: .85; }
  70% { opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

.blink { animation: blink 2.6s ease-in-out infinite; }
.blink--b { animation-delay: .7s; }
.blink--c { animation-delay: 1.4s; }
.blink--d { animation-delay: 2.1s; }
@keyframes blink {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}

/* ---------- Узкие телефоны (360 px) ---------- */
@media (max-width: 419px) {
  :root { --pad: 16px; }
  .hide-xs { display: none; }
  .header .btn { padding: 11px 16px; font-size: 14.5px; gap: 8px; }
  .header__in { min-height: 62px; gap: 10px; }
  .logo__name { font-size: 17.5px; }
  .logo__mark { width: 34px; height: 34px; border-radius: 11px; }
  .hero__actions .btn { width: 100%; }
  .chips { gap: 7px; }
  .chip { font-size: 13px; padding: 8px 12px 8px 9px; gap: 6px; }
  .chip svg { width: 16px; height: 16px; }
}

/* ---------- Телефон и планшет: форма сразу под кнопкой ----------
   .hero__copy растворяется в сетке, чтобы форма встала между кнопками
   и бейджами, а на десктопе вернулась в правую колонку. */
@media (max-width: 979px) {
  .hero__grid { gap: 0; justify-items: start; }
  .hero__copy { display: contents; }
  .mtbadge { order: 1; }
  .hero h1 { order: 2; justify-self: stretch; }
  .hero__sub { order: 3; max-width: 46ch; justify-self: stretch; }
  .hero__actions { order: 4; margin: 20px 0 0; justify-self: stretch; }
  .hero__checkout { order: 5; margin: 16px 0 18px; justify-self: stretch; }
  .hero__checkout .checkout { margin-inline: 0; }
  .chips { order: 6; justify-self: stretch; }
  .hero__trust { order: 7; }
}

/* ---------- Планшет ---------- */
@media (min-width: 680px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .devices__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__in { grid-template-columns: 1fr auto; align-items: center; }
  .footer nav { justify-content: flex-end; }
  .footer__legal { grid-column: 1 / -1; }
}

/* ---------- Три тарифа в ряд ---------- */
@media (min-width: 700px) {
  .plan__save--spacer { display: inline-block; visibility: hidden; }
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* на планшете три карточки помещаются только в компактной вёрстке */
@media (min-width: 700px) and (max-width: 979px) {
  .plan { padding: 20px 16px; }
  .plan .btn { padding: 14px 10px; font-size: 15px; white-space: normal; }
  .plan__list { font-size: 14px; }
}

/* ---------- Десктоп ---------- */
@media (min-width: 980px) {
  :root { --pad: 32px; }
  .hero__grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); align-items: center; }
  .hero__checkout { justify-content: flex-end; }
  .hero__device { justify-content: flex-end; }
  .phone { width: 290px; }
  .how__grid { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; }
  /* рядом с макетом телефона шаги идут столбиком — так они не сжимаются */
  .how__grid .steps { grid-template-columns: 1fr; gap: 12px; }
  .how__grid .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; align-items: start; padding: 18px 20px; }
  .how__grid .step__icon { margin: 0; }
  .how__grid .step__num { grid-column: 2; margin: 0; }
  .how__grid .step h3 { grid-column: 2; margin: 2px 0 4px; }
  .how__grid .step p { grid-column: 2; }
  .how__grid .step__arrow { display: none; }
  .checkout { padding: 24px; }

  .step__arrow { display: block; }
  .step:last-child .step__arrow { display: none; }
  .why__grid { grid-template-columns: repeat(3, 1fr); }
  .why__net { margin-bottom: 20px; }
  .why__layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 48px; align-items: center; }
  .why__layout .why__grid { grid-template-columns: repeat(2, 1fr); }
  .final__card h2 { font-size: 40px; }
  .cabinet__btn { width: auto; }
}

/* ---------- Уважение к настройкам движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .phone, .sheet { animation: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ---------- Печать ---------- */
@media print {
  .header, .final, .hero__trail, .hero__sky { display: none; }
  body { background: #fff; }
}
