/* ─────────────────────────────────────────────────────────────
   Светлая палитра с фиолетовым подтоном. Выведена из светлой темы
   приложения (mobile/src/theme/colors.ts), акцент насыщеннее:
   на белом фоне #7C6CF0 из приложения бледнит.
   Страница одно-темовая по решению фаундера — цвета заданы явно.
   ───────────────────────────────────────────────────────────── */
/* Шрифты лежат у нас: Google Fonts блокировал отрисовку и передавал IP
   посетителей за границу. Оба шрифта переменные, один файл на все веса.
   Из latin-ext оставлены только знаки валют (₽), остальное не нужно. */
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/golos-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/golos-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/golos-currency.woff2) format('woff2'); unicode-range: U+20A0-20C4; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600 700; font-display: swap; src: url(/fonts/unbounded-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600 700; font-display: swap; src: url(/fonts/unbounded-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600 700; font-display: swap; src: url(/fonts/unbounded-currency.woff2) format('woff2'); unicode-range: U+20A0-20C4; }

:root {
  --ground:      #FBFAFF;
  --card:        #FFFFFF;
  --tint:        #F2EEFF;
  --tint-2:      #E7E0FF;
  --line:        #E8E4F5;

  --ink:         #14102B;
  --ink-2:       #4A4370;
  --ink-3:       #6D6789;
  --ink-4:       #A9A3C2;

  --accent:      #6C4DF6;
  --accent-2:    #8E48D1;
  --accent-grad: linear-gradient(135deg, #6C4DF6, #8E48D1);
  --on-accent:   #FFFFFF;

  --mint:        #0A7B55;
  --mint-tint:   #E2F7EF;
  --coral:       #C03C40;
  --coral-tint:  #FDEBEC;
  --amber:       #906300;
  --amber-tint:  #FDF3DC;
  --sky:         #186DB8;
  --sky-tint:    #E4F1FC;

  --night:       #150F32;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --maxw: 1200px;
  --shadow-sm: 0 2px 6px rgba(20,16,43,.05);
  --shadow-md: 0 12px 32px -12px rgba(20,16,43,.16);
  --shadow-lg: 0 40px 80px -32px rgba(20,16,43,.34);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Golos Text', -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

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

.display { font-family: 'Unbounded', 'Golos Text', sans-serif; font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; }
.num { font-variant-numeric: tabular-nums; }

.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ── Шапка ───────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251,250,255,.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { max-width: var(--maxw); margin: 0 auto; padding: 11px 28px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 38px; height: 38px; display: block; }

.topnav { display: flex; gap: 6px; margin-left: auto; }
.topnav a {
  position: relative;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  padding: 8px 14px; border-radius: 100px;
  transition: color .2s ease, background .2s ease;
}
.topnav a:hover { color: var(--accent); }
.topnav a.is-active { color: var(--accent); background: var(--tint); font-weight: 600; }

/* Меню на телефоне и планшете: кнопка в шапке и панель под ней (js/menu.js).
   На широком экране скрыто — там разделы стоят в шапке строкой. */
.mnav-btn { display: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--tint); color: var(--ink); place-items: center; cursor: pointer; flex: none; padding: 0; }
.mnav-btn svg { width: 22px; height: 22px; }
.mnav-btn .i-close, .mnav-btn.is-open .i-open { display: none; }
.mnav-btn.is-open .i-close { display: block; }
.mnav-btn.is-open { background: var(--accent); color: var(--on-accent); }
.mnav-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mnav { position: absolute; left: 0; right: 0; top: 100%; background: var(--card); box-shadow: var(--shadow-md); border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 8px 12px 14px; display: grid; gap: 2px; }
.mnav a { display: flex; justify-content: space-between; align-items: center; padding: 13px 12px; border-radius: 12px; font-size: 16.5px; font-weight: 500; color: var(--ink); }
.mnav a::after { content: "›"; color: var(--ink-3); font-size: 19px; line-height: 1; }
.mnav a.is-active { background: var(--tint); color: var(--accent); font-weight: 600; }
.mnav-dim { position: fixed; inset: 0; z-index: 39; background: rgba(20,16,43,.28); }
.mnav[hidden], .mnav-dim[hidden] { display: none; }

/* ── Кнопки ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--r-md);
  font-size: 16px; font-weight: 600; border: 0; cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent-grad); color: var(--on-accent); box-shadow: var(--shadow-md); }
.btn--primary:hover { box-shadow: 0 18px 34px -12px rgba(20,16,43,.24); }
.btn--ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink-4), var(--shadow-sm); }
.btn--onnight { background: #FFFFFF; color: var(--night); }
.btn--onnight:hover { background: #F2EEFF; }
.btn--sm { padding: 10px 18px; font-size: 15px; border-radius: var(--r-sm); }
.btn--wide { width: 100%; }

/* ── Общее для секций ────────────────────────────────────── */
.section { padding: 104px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); background: var(--tint); padding: 7px 14px; border-radius: 100px;
}
/* align-items: flex-start обязателен: в флекс-колонке дочерние элементы
   растягиваются на всю ширину, и капсула .eyebrow уезжала на пол-экрана. */
.head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 52px; max-width: 720px; }
.head__title { font-size: 46px; text-wrap: balance; }
.head__sub { font-size: 19px; color: var(--ink-2); max-width: 34em; }

/* ── Герой ───────────────────────────────────────────────── */
.hero { padding: 72px 0 84px; }
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 62px; margin: 22px 0 24px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: 20px; color: var(--ink-2); max-width: 28em; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.trust { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 30px; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
.trust svg { color: var(--mint); flex: none; }

.scene { position: relative; display: flex; justify-content: center; }
.scene__glow { position: absolute; inset: 6% 4% 14%; background: var(--accent); border-radius: 44px; opacity: .13; transform: rotate(-4deg); }
.phone { position: relative; width: 296px; background: #060411; border-radius: 40px; padding: 9px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(20,16,43,.08); }
.phone__shot { display: block; width: 100%; height: auto; border-radius: 32px; background: #000; }

.float { position: absolute; max-width: 224px; background: var(--card); border-radius: var(--r-md); padding: 12px 15px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 11px; }
.float--goal { top: 14%; left: -30px; }
.float--quiz { bottom: 17%; right: -30px; }
.float__ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.float__ico--mint { background: var(--mint-tint); color: var(--mint); }
.float__ico--amber { background: var(--amber-tint); color: var(--amber); }
.float__t { font-size: 13px; font-weight: 600; line-height: 1.25; display: block; }
.float__m { font-size: 11px; color: var(--ink-3); display: block; }
.float__bar { width: 68px; height: 5px; border-radius: 3px; background: var(--tint-2); margin-top: 5px; overflow: hidden; display: block; }
.float__bar i { display: block; height: 100%; width: 72%; background: var(--mint); border-radius: 3px; }

/* ── Так это выглядит: лента кадров ──────────────────────── */
/* Классы с префиксом screens__: .shot и .art в этом файле уже заняты
   другими разделами, столкновение имён здесь уже случалось. */
.screens__strip {
  display: flex; gap: 20px; overflow-x: auto; padding: 4px 0 18px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.screens__item { margin: 0; flex: none; width: 214px; scroll-snap-align: start; }
.screens__item img {
  display: block; width: 100%; height: auto; border-radius: 22px; background: #0A0816;
  box-shadow: var(--shadow-md);
}
.screens__item figcaption { display: flex; flex-direction: column; gap: 3px; margin-top: 14px; }
.screens__item b { font-size: 16px; }
.screens__item span { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 720px) {
  .screens__item { width: 176px; }
}

/* ── Знакомая ситуация ───────────────────────────────────── */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain { background: var(--card); border-radius: var(--r-lg); padding: 28px 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; }
.pain { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; align-content: start; }
.pain > * { grid-column: 1 / -1; }
.pain > .pain__ico { grid-column: 1; }
.pain > .pain__t { grid-column: 2; align-self: start; }
.pain__ico { display: flex; align-self: start; margin-top: 4px; color: var(--coral); }
.pain__t { font-size: 18px; font-weight: 700; letter-spacing: -.012em; }
.pain__d { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.bridge { margin-top: 34px; font-size: 21px; color: var(--ink-2); max-width: 32em; text-wrap: balance; }
.bridge b { color: var(--ink); font-weight: 700; }

/* ── Бенто возможностей ──────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cell {
  background: var(--card); border-radius: var(--r-xl); padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cell--w2 { grid-column: span 2; }
.cell--w3 { grid-column: span 3; flex-direction: row; align-items: center; gap: 40px; }
.cell--w3 .cell__text { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.cell--w3 .cell__viz { margin: 0; padding: 0; width: 46%; flex: none; }
.cell:not(.cell--w3), .cell--w3 .cell__text { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; align-items: center; column-gap: 10px; }
.cell:not(.cell--w3) > *, .cell__text > * { grid-column: 1 / -1; }
.cell > .cell__badge, .cell__text > .cell__badge { grid-column: 1; }
.cell > .cell__name, .cell__text > .cell__name { grid-column: 2; align-self: start; }
.cell:not(.cell--w3) > .cell__viz { align-self: end; }
.cell__badge { display: flex; align-self: start; margin-top: 6px; }
.b-accent { color: var(--accent); }
.b-mint   { color: var(--mint); }
.b-coral  { color: var(--coral); }
.b-amber  { color: var(--amber); }
.b-sky    { color: var(--sky); }
.cell__name { font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.cell__desc { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.cell__viz { margin-top: auto; padding-top: 22px; }

.chart { display: flex; align-items: flex-end; gap: 9px; height: 116px; }
.chart i { flex: 1; border-radius: 7px 7px 3px 3px; background: var(--tint-2); display: block; }
.chart i.hi { background: var(--accent); }
.chart__x { display: flex; gap: 9px; margin-top: 9px; font-size: 11px; color: var(--ink-3); }
.chart__x span { flex: 1; text-align: center; }

.bars { display: flex; flex-direction: column; gap: 13px; }
.bar__top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.bar__top b { font-weight: 600; }
.bar__track { height: 8px; border-radius: 4px; background: var(--tint); overflow: hidden; }
.bar__track i { display: block; height: 100%; border-radius: 4px; }

.ring { display: flex; align-items: center; gap: 18px; }
.ring__disc { width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--accent) 0 68%, var(--tint) 68% 100%); display: grid; place-items: center; flex: none; }
.ring__hole { width: 70px; height: 70px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 18px; font-weight: 700; }
.ring__meta { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

.receipt { background: var(--ground); border-radius: var(--r-md); padding: 15px 17px; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.receipt__row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); padding: 5px 0; }
.receipt__row + .receipt__row { border-top: 1px dashed var(--line); }
.receipt__row.tot { font-weight: 700; color: var(--ink); }
.receipt__scan { position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); box-shadow: 0 0 14px 2px rgba(108,77,246,.6); animation: scan 2.8s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 8%; } 50% { top: 88%; } }

.mini { display: flex; flex-direction: column; gap: 8px; }
.mini__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--ground); border-radius: var(--r-sm); padding: 11px 14px; font-size: 14px; }
.mini__row span { color: var(--ink-2); }

/* ── Ларник ──────────────────────────────────────────────── */

/* Ларник стоит на плашке, а не висит в воздухе: фигура несимметрична сама
   по себе (монета в правой руке), и без опоры блок выглядел заваленным. */

/* ── Знания ──────────────────────────────────────────────── */
.knowledge { background: var(--tint); border-radius: 36px; margin: 0 20px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { font-size: 14px; font-weight: 500; padding: 8px 15px; border-radius: 100px; background: var(--card); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.chip--on { background: var(--accent); color: #fff; box-shadow: none; font-weight: 600; }
.arts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.art { background: var(--card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .22s ease, box-shadow .22s ease; }
.art:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.art__top { height: 6px; display: block; }
.art__in { padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.art__cat { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.art__title { font-size: 19px; font-weight: 700; line-height: 1.28; letter-spacing: -.012em; text-wrap: balance; }
.art__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--ink-3); }
.art__quiz { display: inline-flex; align-items: center; gap: 6px; color: var(--amber); font-weight: 600; }
.knowledge__foot { margin-top: 34px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.knowledge__hint { font-size: 15px; color: var(--ink-3); }

/* ── Premium ─────────────────────────────────────────────── */
.premium { background: var(--card); border-radius: 36px; padding: 64px 60px; box-shadow: var(--shadow-md); }
.premium__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 44px; }
.premium__title { font-size: 42px; text-wrap: balance; max-width: 16em; }
.premium__sub { font-size: 18px; color: var(--ink-2); max-width: 36em; }
.premium__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }

/* Обе колонки — карточки одной высоты. Таблица сама по себе короче
   карточки цены, поэтому её обёртка растягивается, а сноска прижата к низу. */
.compare-wrap { background: var(--tint); border-radius: var(--r-xl); padding: 30px 32px; display: flex; flex-direction: column; }
.compare-note { margin-top: auto; padding-top: 20px; font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { text-align: left; padding: 13px 10px; font-size: 15px; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 10px; }
.compare tbody th { font-weight: 500; color: var(--ink); }
.compare td { text-align: center; width: 118px; color: var(--ink-3); }
.compare td.yes, .compare td.free { color: var(--mint); font-weight: 600; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

.pricebox {
  background: var(--night); color: #F4F2FF; border-radius: var(--r-xl);
  padding: 38px 36px; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.pricebox::after { content: ''; position: absolute; inset: 0; background: radial-gradient(100% 70% at 100% 0%, rgba(150,100,255,.5) 0%, rgba(150,100,255,0) 60%); }
.pricebox > * { position: relative; z-index: 1; }
.pricebox__tag { display: inline-flex; align-self: flex-start; background: #55EFC4; color: #0B3F2E; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 100px; margin-bottom: 20px; }
.pricebox__trial { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 30px; letter-spacing: -.03em; line-height: 1.12; }
.pricebox__then { font-size: 15px; color: #C9C2E8; margin-top: 8px; }
.pricebox__price { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 52px; letter-spacing: -.045em; line-height: 1; margin-top: 22px; }
.pricebox__per { font-size: 16px; color: #C9C2E8; margin-top: 6px; }
.pricebox__list { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; gap: 11px; }
.pricebox__list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: #E6E2F8; }
.pricebox__list svg { flex: none; margin-top: 4px; color: #55EFC4; }
.pricealt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.pricealt__item { background: rgba(255,255,255,.08); border-radius: 14px; padding: 12px 14px; }
.pricealt__name { display: block; font-size: 13px; color: #C9C2E8; }
.pricealt__sum { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.03em; margin-top: 2px; }
.pricebox__alt { font-size: 14px; color: #A09BB8; margin-top: 16px; line-height: 1.5; }
.pricebox__cta { margin-top: auto; padding-top: 26px; }
.pricebox__fine { font-size: 13px; color: #A09BB8; text-align: center; margin-top: 12px; line-height: 1.45; }
.pay { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pay span { font-size: 11px; font-weight: 600; letter-spacing: .03em; color: #C9C2E8; background: rgba(255,255,255,.1); padding: 5px 10px; border-radius: 6px; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.qa { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.qa summary { list-style: none; cursor: pointer; padding: 20px 24px; font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; font-size: 24px; font-weight: 400; color: var(--accent); line-height: 1; flex: none; transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa__body { padding: 0 24px 22px; font-size: 16px; color: var(--ink-2); line-height: 1.6; }

/* ── Финальный CTA ───────────────────────────────────────── */
.final { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: 96px 0; }
.final__title { font-size: 50px; max-width: 14em; text-wrap: balance; }
.final__sub { font-size: 19px; color: var(--ink-2); max-width: 32em; }

/* ── Подвал ──────────────────────────────────────────────── */
.footer { background: var(--card); border-top: 1px solid var(--line); padding: 60px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h3 { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.footer li { margin-bottom: 10px; font-size: 15px; color: var(--ink-2); }
.footer li a:hover { color: var(--accent); }
.footer__req { font-size: 14px; color: var(--ink-3); line-height: 1.75; margin-top: 18px; }
.footer__bottom { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
/* Общий подвал (tools/footer.html): пять колонок, оговорка — отдельной строкой */
.footer__grid--5 { grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.footer__disc { flex-basis: 100%; }

/* ── Появление ───────────────────────────────────────────── */
/* Прячем блоки только если скрипт действительно работает: класс .js ставится
   инлайновым скриптом в <head>. Иначе при любой осечке JS (ошибка, блокировщик,
   краулер без исполнения скриптов) страница осталась бы пустой. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .receipt__scan { animation: none; top: 50%; }
}

@media (max-width: 1340px) {
  .hero h1 { font-size: 50px; }
  .head__title, .premium__title { font-size: 38px; }
  .final__title { font-size: 42px; }
}
@media (max-width: 1080px) {
  .topnav a { padding: 8px 11px; font-size: 14px; }
}
@media (max-width: 1000px) {
  .hero h1 { font-size: 46px; }
  .hero__grid { grid-template-columns: 1fr; gap: 60px; }
  .pains, .bento, .arts { grid-template-columns: repeat(2, 1fr); }
  .pain:last-child { grid-column: span 2; }
  .cell--w2, .cell--w3 { grid-column: span 2; }
  .cell--w3 { flex-direction: column; align-items: stretch; gap: 0; }
  .cell--w3 .cell__viz { width: 100%; padding-top: 22px; }
  /* minmax(0, 1fr): у простого 1fr нижняя граница — ширина содержимого,
     и таблица сравнения раздвигала колонку шире экрана телефона. */
  .premium__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .topnav { display: none; }
  .topbar__in { gap: 10px; }
  .topbar__in > .btn { margin-left: auto; }
  .mnav-btn { display: grid; }
}
@media (min-width: 1001px) { .mnav, .mnav-dim { display: none !important; } }
/* Карточка викторины на первом экране выступала за колонку и давала 2 px
   горизонтального скролла на ширинах до 1160 px */
@media (max-width: 1180px) { .float--quiz { right: -12px; } }
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .shell { padding: 0 20px; }
  .hero { padding: 44px 0 60px; }
  .hero h1 { font-size: 35px; }
  .hero__lead, .head__sub { font-size: 17px; }
  .head__title, .premium__title { font-size: 30px; }
  .final__title { font-size: 32px; }
  .bridge { font-size: 18px; }
  .pains, .bento, .arts, .footer__grid { grid-template-columns: 1fr; }
  .pain:last-child, .cell--w2, .cell--w3 { grid-column: span 1; }
  .premium, .knowledge { padding-left: 24px; padding-right: 24px; border-radius: 24px; }
  .premium { padding-top: 44px; padding-bottom: 44px; }
  .knowledge { margin: 0 14px; }
  .pricebox { padding: 30px 24px; }
  .compare-wrap { padding: 22px 16px; }
  .compare th, .compare td { padding: 12px 5px; font-size: 14px; }
  .compare td { width: 70px; }
  .compare thead th { letter-spacing: .03em; font-size: 11px; }
  /* Только крупные кнопки-призывы: мелкая кнопка в шапке должна остаться
     по размеру текста, иначе она занимает всю строку рядом с логотипом. */
  .btn:not(.btn--sm) { width: 100%; }
  .float--goal { left: -4px; top: 10%; }
  .float--quiz { right: -4px; }
}

/* ─────────────────────────────────────────────────────────────
   Внутренние страницы: «Знания», справочники, калькуляторы.
   Один шаблон на все (макет design/portal/site_template_2026-10-12.html):
   белая полоса под меню (без цветной линии — фаундер отклонил 12.10) → крошки → капсула раздела → заголовок → лид;
   заголовки разделов — как .head главной: капсула + Unbounded, мельче.
   Иконки — только внутри карточек, у заголовков их нет.
   ───────────────────────────────────────────────────────────── */
.band { background: var(--card); border-bottom: 1px solid var(--line); }
.band__in { max-width: 1100px; margin: 0 auto; padding: 24px clamp(18px, 4vw, 40px) 36px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: end; }
.band__in--aside { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.band h1 { font-family: 'Unbounded', 'Golos Text', sans-serif; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-size: clamp(26px, 3.6vw, 40px); text-wrap: balance; margin-top: 14px; }
.band__lead { color: var(--ink-2); font-size: 17px; line-height: 1.6; margin-top: 12px; max-width: 58ch; }
.band__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); margin-top: 16px; }
.band .eyebrow { padding: 6px 13px; font-size: 12.5px; }
a.eyebrow:hover { background: var(--tint-2); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--accent); }

.shead { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 760px; }
.shead h2 { font-family: 'Unbounded', 'Golos Text', sans-serif; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; font-size: clamp(22px, 2.8vw, 32px); text-wrap: balance; }
.shead h2 a:hover { color: var(--accent); }
.shead p { color: var(--ink-2); font-size: 16.5px; max-width: 70ch; }
.shead--row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; max-width: none; }
.shead--row > div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.shead__more { font-size: 15px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.shead__more:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .band__in--aside { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1000px) { .footer__grid--5 > :first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer__grid--5 { grid-template-columns: 1fr 1fr; } }
