/*
 * WalletCounter — главная. Образ: «чек, который печатается сам».
 * Тёмные «сцены» (индиго ночи) чередуются с «бумажными» блоками с зубчатым краем, как у оторванного чека.
 * Суммы на бумаге — моноширинным, как на кассовой ленте; остальное — Onest.
 */
:root {
  --night: #120f2e;
  --night-2: #1b1742;
  --night-line: #2c2760;
  --night-text: #f3f1ff;
  --night-hint: #b2acd9;
  --paper: #fbf8f1;
  --paper-2: #f2ede1;
  --paper-ink: #1d1a33;
  --paper-hint: #5f5a74;
  --paper-line: #e3dccb;
  --violet: #5b4cf0;
  --violet-hi: #7a6dff;
  --violet-text: #4a39d6;
  --pig: #ff8a8a;
  --gold: #f5b83d;
  --gold-ink: #3b2a00;
  --mint: #34c27a;
  --radius: 24px;
  --tooth: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--night); color: var(--night-text);
  font: 17px/1.55 "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
/* Горизонтальную прокрутку режет html (overflow-x: clip): overflow на body ломал «залипание» телефона в «Как это работает». */
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 3px; border-radius: 10px; }
.mono { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }

/* ── Шапка ─────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; padding-top: env(safe-area-inset-top, 0px); transition: background 0.25s, box-shadow 0.25s; }
.nav.solid { background: rgba(18, 15, 46, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--night-line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 44px; height: 44px; border-radius: 14px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--night-hint); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--night-text); }

/* ── Кнопки ────────────────────────────────────────────── */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 18px; background: var(--violet); color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; transition: transform 0.15s, background 0.2s; }
.btn:hover { background: var(--violet-hi); }
.btn:active { transform: scale(0.98); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.small { min-height: 44px; padding: 0 18px; border-radius: 14px; font-size: 15px; }
.btn.gold { background: var(--gold); color: var(--gold-ink); }
.btn.gold:hover { background: #ffc85a; }
.btn.ghost { background: transparent; color: var(--paper-ink); box-shadow: inset 0 0 0 2px var(--paper-ink); }

/* ── Первая сцена ──────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 72px;
  background: linear-gradient(180deg, var(--night-2) 0%, var(--night) 70%); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(44px, 5.6vw, 82px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800; margin: 0 0 26px; text-wrap: balance; }
.hero h1 .typed { color: var(--gold); white-space: nowrap; }
.hero .lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--night-hint); max-width: 31em; margin: 0 0 36px; }
.hero .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero .cta-note { color: var(--night-hint); font-size: 15px; }
.hero .cta-note b { color: var(--night-text); font-weight: 600; }

/* Телефон с приложением и «вылетающие» сообщения */
.stage { position: relative; justify-self: center; width: min(100%, 360px); }
.phone { position: relative; width: 100%; aspect-ratio: 390 / 844; border-radius: 52px; padding: 11px; background: #0b0920;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.8), inset 0 0 0 2px #2f2a66, inset 0 0 0 5px #0b0920; }
.phone::before { content: ""; position: absolute; top: 21px; left: 50%; width: 96px; height: 28px; transform: translateX(-50%); background: #0b0920; border-radius: 20px; z-index: 3; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: #f3f1fb; }
.phone .screen > img { position: absolute; top: 46px; left: 0; width: 100%; height: calc(100% - 46px); object-fit: cover; object-position: top; }
.bubble { position: absolute; z-index: 4; padding: 12px 16px; border-radius: 20px; font-size: 15px; line-height: 1.35; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6); white-space: nowrap; }
.bubble.me { background: #dcd6ff; color: #1d1a33; border-bottom-right-radius: 6px; }
.bubble.bot { background: #fff; color: #1d1a33; border-bottom-left-radius: 6px; display: grid; gap: 4px; }
.bubble.bot b { font-weight: 700; }
.bubble.bot .ok { color: #12a150; font-weight: 700; }
.bubble.b1 { top: 16%; left: -38%; }
.bubble.b2 { top: 27%; left: -30%; }
.bubble.b3 { bottom: 20%; right: -24%; }
@media (prefers-reduced-motion: no-preference) {
  .bubble { animation: rise 0.6s cubic-bezier(.2, .9, .3, 1.15) both; }
  .bubble.b1 { animation-delay: 0.5s; }
  .bubble.b2 { animation-delay: 1.4s; }
  .bubble.b3 { animation-delay: 2.3s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: var(--night-hint); font-size: 13px; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scroll-hint span { width: 22px; height: 34px; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--night-line); position: relative; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--night-hint); }
@media (prefers-reduced-motion: no-preference) { .scroll-hint span::after { animation: wheel 1.8s infinite; } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ── Бумажные блоки: зубчатый край чека ────────────────── */
.paper { position: relative; background: var(--paper); color: var(--paper-ink); }
.paper::before, .paper::after { content: ""; position: absolute; left: 0; right: 0; height: var(--tooth); background: var(--paper);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%; }
.paper::before { top: calc(var(--tooth) * -1 + 1px); }
.paper::after { bottom: calc(var(--tooth) * -1 + 1px); transform: scaleY(-1); }

/* Заголовки секций */
.section { padding-block: clamp(80px, 10vw, 140px); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--violet-hi); margin-bottom: 14px; }
.paper .kicker { color: var(--violet-text); }
.h2 { font-size: clamp(34px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; margin: 0 0 18px; text-wrap: balance; max-width: 14em; }
.sub { font-size: 19px; color: var(--night-hint); max-width: 34em; margin: 0; }
.paper .sub { color: var(--paper-hint); }

/* ── Как это работает: телефон стоит, сцены сменяются ──── */
.how .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.how-phone { position: sticky; top: max(96px, calc(50vh - 330px)); align-self: start; width: min(100%, 320px); justify-self: center; }
.how-steps { display: grid; gap: 0; }
.how-head { padding-bottom: 40px; }
.step { min-height: 38vh; display: flex; flex-direction: column; justify-content: center; padding-block: 24px; transition: opacity 0.35s; }
.js .step { opacity: 0.5; } /* неактивные шаги приглушены, пока к ним не прокрутили; текст остаётся читаемым при наведении фокуса */
.js .step.on, .step:focus-within { opacity: 1; }
.step-no { font-size: 15px; font-weight: 700; color: var(--paper-hint); margin-bottom: 10px; }
.step h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 12px; font-weight: 800; }
.step p { color: var(--paper-hint); font-size: 18px; margin: 0; max-width: 28em; }
.step .say { display: inline-block; background: #dcd6ff; color: #1d1a33; padding: 2px 10px; border-radius: 10px 10px 4px 10px; font-weight: 600; white-space: nowrap; }
.step .inline-chat { display: none; }

/* Чат внутри телефона */
.chat { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 70px 14px 22px; font-size: 15px; color: #1d1a33;
  background: linear-gradient(180deg, #e9e5ff 0%, #f4f2fb 65%); opacity: 0; transition: opacity 0.4s; }
.chat.on { opacity: 1; }
.chat-title { position: absolute; top: 54px; left: 0; right: 0; text-align: center; font-weight: 700; font-size: 15px; }
.chat-title small { display: block; font-weight: 400; font-size: 12px; color: #6b6880; }
.msg { max-width: 86%; padding: 9px 13px; border-radius: 18px; line-height: 1.35; box-shadow: 0 1px 1px rgba(23, 19, 58, 0.06); }
.msg.me { align-self: flex-end; background: #dcd6ff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; width: 88%; }
.msg time { display: block; text-align: right; font-size: 11px; color: #6b6880; margin-top: 2px; }
.rec { display: flex; align-items: center; gap: 9px; padding: 6px 0; }
.rec + .rec { border-top: 1px solid #ece9f6; }
.rec .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; flex: none; }
.rec .what { flex: 1; min-width: 0; }
.rec .what b { font-weight: 600; }
.rec .what small { display: block; color: #6b6880; font-size: 12px; }
.rec .sum { font-weight: 700; white-space: nowrap; }
.voice { display: flex; align-items: center; gap: 10px; }
.voice .play { width: 32px; height: 32px; border-radius: 50%; background: var(--violet); display: grid; place-items: center; flex: none; }
.voice .play::after { content: ""; width: 10px; height: 12px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); margin-left: 3px; }
.voice .wave { display: flex; align-items: center; gap: 2px; height: 24px; }
.voice .wave i { width: 3px; border-radius: 2px; background: #6a5cf5; }
.voice small { display: block; font-size: 12px; color: #4f4a6b; margin-top: 4px; }
.photo-msg { width: 150px; padding: 6px; }
.mini-receipt { background: #fff; border-radius: 12px; padding: 10px 10px 12px; font-size: 9px; line-height: 1.5; color: #333; transform: rotate(-3deg); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.4); }
.mini-receipt b { display: block; text-align: center; font-size: 10px; margin-bottom: 4px; }
.mini-receipt div { display: flex; justify-content: space-between; }
.pill-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pill-row span { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: #ece9ff; color: #4a39d6; font-weight: 600; }

/* ── Чек: фото → позиции ───────────────────────────────── */
.receipt-scene .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.receipt-visual { position: relative; display: grid; grid-template-columns: 0.9fr 1fr; align-items: center; gap: 56px; }
.paper-receipt { position: relative; background: #fff; color: #222; padding: 26px 22px 30px; font-size: 13px; line-height: 1.7; transform: rotate(-4deg); box-shadow: 0 30px 50px -30px rgba(40, 30, 10, 0.5);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 51% repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 51% repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat; }
.paper-receipt .shop { text-align: center; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 4px; }
.paper-receipt .meta { text-align: center; color: #777; font-size: 11px; margin-bottom: 12px; }
.paper-receipt .row { display: flex; justify-content: space-between; gap: 10px; }
.paper-receipt .row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paper-receipt hr { border: 0; border-top: 1px dashed #bbb; margin: 10px 0; }
.paper-receipt .total { font-weight: 700; font-size: 15px; }
.receipt-visual .phone { max-width: 290px; justify-self: end; }
.arrow { position: absolute; left: 47.5%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--violet); display: grid; place-items: center; z-index: 5; box-shadow: 0 12px 30px -10px rgba(91, 76, 240, 0.7); }
.arrow svg { width: 28px; height: 28px; color: #fff; }
.benefits { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.benefits li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.benefits .bi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--night-2); font-size: 20px; }
.benefits b { display: block; font-weight: 700; color: var(--night-text); }
.benefits span { color: var(--night-hint); font-size: 16px; }

/* ── Поездка: кто кому ─────────────────────────────────── */
.trip .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.settle { margin-top: 36px; display: grid; gap: 12px; max-width: 460px; }
.debt { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: #fff; box-shadow: 0 1px 0 var(--paper-line), 0 14px 30px -24px rgba(40, 30, 10, 0.5); }
.debt .who { font-weight: 600; }
.ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; }
.debt .line { flex: 1; height: 2px; background: linear-gradient(90deg, var(--paper-line), var(--violet)); transform-origin: left; }
.debt .amt { font-weight: 800; font-size: 20px; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .trip .debt .line { transform: scaleX(0); transition: transform 0.9s cubic-bezier(.2, .8, .2, 1); }
  .trip.seen .debt .line { transform: scaleX(1); }
  .trip.seen .debt:nth-child(2) .line { transition-delay: 0.25s; }
}
.split-modes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.split-modes span { padding: 8px 14px; border-radius: 999px; background: var(--paper-2); color: var(--paper-ink); font-size: 15px; font-weight: 500; }
.trip .phone { max-width: 330px; justify-self: center; }

/* ── Всё под рукой: веер экранов ───────────────────────── */
.fan { display: flex; justify-content: center; align-items: flex-end; margin-top: 56px; height: clamp(420px, 46vw, 620px); }
.fan .phone { width: clamp(200px, 22vw, 290px); flex: none; }
.fan .phone:nth-child(1) { transform: translateX(28%) rotate(-8deg) translateY(30px); z-index: 1; }
.fan .phone:nth-child(2) { z-index: 2; }
.fan .phone:nth-child(3) { transform: translateX(-28%) rotate(8deg) translateY(30px); z-index: 1; }
.fan-caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.fan-caps div { border-top: 2px solid var(--night-line); padding-top: 14px; }
.fan-caps b { display: block; font-size: 19px; margin-bottom: 4px; }
.fan-caps span { color: var(--night-hint); font-size: 16px; }
.trust { padding-top: 0; }

/* ── Доверие ───────────────────────────────────────────── */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 48px; background: var(--night-line); border-radius: var(--radius); overflow: hidden; }
.trust-grid > div { background: var(--night); padding: 30px 28px; } /* «>»: значок .ti — тоже div, без фона и отступов карточки */
.trust-grid .ti { font-size: 26px; margin-bottom: 14px; }
.trust-grid b { display: block; font-size: 20px; margin-bottom: 6px; letter-spacing: -0.01em; }
.trust-grid span { color: var(--night-hint); font-size: 16px; }

/* ── Тарифы ────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; margin-top: 52px; align-items: stretch; }
.plan { border-radius: 28px; padding: 34px; background: #fff; box-shadow: 0 1px 0 var(--paper-line), 0 20px 40px -30px rgba(40, 30, 10, 0.35); display: flex; flex-direction: column; }
.plan.pro { background: var(--night); color: var(--night-text); position: relative; overflow: hidden; }
.plan h3 { margin: 0; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.plan .tag { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); }
.plan .price { font-size: clamp(48px, 5vw, 64px); font-weight: 800; letter-spacing: -0.04em; margin: 14px 0 0; line-height: 1; }
.plan .price small { font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--paper-hint); }
.plan.pro .price small { color: var(--night-hint); }
.plan .per { color: var(--paper-hint); margin: 8px 0 26px; font-size: 16px; }
.plan.pro .per { color: var(--night-hint); }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; }
.plan li svg { width: 22px; height: 22px; flex: none; color: #12a150; margin-top: 2px; }
.plan.pro li svg { color: var(--gold); }
.plan .push { margin-top: auto; }
.plan .push p { font-size: 14px; color: var(--paper-hint); margin: 12px 0 0; }
.plan.pro .push p { color: var(--night-hint); }
.plan .btn { width: 100%; }

/* ── Вопросы ───────────────────────────────────────────── */
.faq .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.faq details { border-bottom: 1px solid var(--night-line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; font-size: 20px; font-weight: 600; position: relative; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--night-hint); border-bottom: 2px solid var(--night-hint); transform: translateY(-70%) rotate(45deg); transition: transform 0.25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 24px; color: var(--night-hint); max-width: 36em; }
.faq .contact { margin-top: 28px; color: var(--night-hint); font-size: 16px; }
.faq .contact a { color: var(--night-text); }

/* ── Финал ─────────────────────────────────────────────── */
.final { text-align: center; padding-block: clamp(90px, 12vw, 160px) clamp(70px, 9vw, 120px); background: linear-gradient(0deg, var(--night-2), var(--night)); }
.final img { width: clamp(150px, 18vw, 220px); margin: 0 auto 30px; border-radius: 50%; }
.final .h2 { margin-inline: auto; }
.final .sub { margin: 0 auto 36px; }

/* ── Подвал ────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--night-line); padding-block: 36px 48px; color: var(--night-hint); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
.foot p { margin: 0 0 6px; }
.foot a { color: var(--night-text); }

/* Нижняя кнопка на телефоне — появляется, когда первая кнопка ушла с экрана */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left));
  background: rgba(18, 15, 46, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--night-line); display: none; transform: translateY(110%); transition: transform 0.3s; }
.dock.show { transform: none; }
.dock .btn { width: 100%; }

/* Появление при прокрутке — только если можно двигать */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s cubic-bezier(.2, .8, .2, 1); }
  .js .reveal.seen { opacity: 1; transform: none; }
}

/* ── 1024 ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .bubble.b1 { left: -22%; }
  .bubble.b2 { left: -16%; }
  .bubble.b3 { right: -12%; }
  .how .wrap, .receipt-scene .wrap, .trip .wrap { gap: 40px; }
}

/* ── 768: перестраиваем, а не сжимаем ──────────────────── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .btn.small { margin-left: auto; }
  .hero { padding: 104px 0 56px; min-height: auto; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .stage { width: min(78%, 320px); }
  .bubble.b1 { left: -26%; top: 10%; }
  .bubble.b2 { left: -20%; top: 21%; }
  .bubble.b3 { right: -18%; }
  .scroll-hint { display: none; }

  .how .wrap { grid-template-columns: 1fr; }
  .how-phone { display: none; }
  .step, .js .step { min-height: 0; opacity: 1; padding-block: 28px; }
  .step .inline-chat { display: block; position: relative; margin-top: 22px; border-radius: 28px; overflow: hidden; }
  .step .inline-chat .chat { position: relative; opacity: 1; padding: 22px 14px 18px; background: linear-gradient(180deg, #e9e5ff, #f4f2fb); }

  .receipt-scene .wrap, .trip .wrap, .faq .wrap { grid-template-columns: 1fr; gap: 48px; }
  .receipt-visual { max-width: 520px; }
  .trip .phone { order: -1; max-width: 280px; }

  .fan { height: auto; overflow-x: auto; justify-content: flex-start; gap: 16px; padding: 10px 24px 30px; margin-inline: -24px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .fan .phone, .fan .phone:nth-child(1), .fan .phone:nth-child(3) { transform: none; width: 240px; scroll-snap-align: center; }
  .fan-caps { grid-template-columns: 1fr; gap: 18px; }

  .trust-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan.pro { order: -1; }
  .dock { display: block; }
  .foot { padding-bottom: 96px; }
  /* Шапка на телефоне уезжает вместе со страницей: снизу и так есть кнопка — две плашки съедали экран */
  .nav { position: absolute; }
  .nav.solid { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
}

/* ── 390 / 360 ─────────────────────────────────────────── */
@media (max-width: 480px) {
  body { font-size: 16px; }
  /* Телефон: текст и отступы меньше — на 390px страница была в 14 экранов */
  .section { padding-block: 64px; }
  .h2 { font-size: clamp(30px, 8.6vw, 36px); margin-bottom: 14px; }
  .sub { font-size: 17px; line-height: 1.5; }
  .kicker { font-size: 14px; margin-bottom: 10px; }
  .step, .js .step { padding-block: 20px; }
  .hero { padding: 88px 0 48px; }
  .hero .wrap { gap: 44px; }
  .trust-grid { margin-top: 32px; }
  .trust-grid > div { padding: 22px 20px; }
  .trust-grid .ti { font-size: 24px; margin-bottom: 8px; }
  .trust-grid b { font-size: 18px; }
  .trust-grid span { font-size: 15px; }
  .fan { margin-top: 36px; }
  .fan-caps { margin-top: 28px; }
  .plans { margin-top: 36px; }
  .final { padding-block: 72px 56px; }
  .dock { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .dock .btn { min-height: 50px; font-size: 16px; border-radius: 16px; }
  .hero .lead { font-size: 17px; line-height: 1.5; margin-bottom: 28px; }
  .step h3 { font-size: 26px; }
  .step p { font-size: 16px; line-height: 1.5; }
  .fan-caps b { font-size: 17px; }
  .plan ul { gap: 10px; font-size: 16px; }
  .wrap { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
  .nav .wrap { height: 64px; }
  .brand img { width: 38px; height: 38px; }
  .brand { font-size: 16px; gap: 9px; }
  .nav .btn.small { padding: 0 14px; }
  .hero h1 { font-size: clamp(40px, 12vw, 52px); }
  .hero .cta-row .btn { width: 100%; }
  .stage { width: 66%; }
  .bubble { font-size: 13px; padding: 9px 12px; }
  .bubble.b1 { left: -20%; }
  .bubble.b2 { left: -16%; }
  .bubble.b3 { right: -14%; }
  .receipt-visual { grid-template-columns: 1fr; }
  .paper-receipt { max-width: 250px; }
  .receipt-visual .phone { display: none; }
  .arrow { display: none; }
  .plan { padding: 26px 22px; }
  .faq summary { font-size: 18px; }
  .fan .phone, .fan .phone:nth-child(1), .fan .phone:nth-child(3) { width: 210px; }
  .fan { margin-inline: -18px; padding-inline: 18px; }
}
