/* FinModel: сайт. Палитра и типографика те же, что в программе, чтобы человек
   из рекламы узнавал продукт с первого экрана.

   Важное правило после первой версии: контент не имеет права остаться
   невидимым. Начальные состояния анимаций живут только под классом anim,
   который скрипт ставит до первой отрисовки. Нет скрипта, отключено движение
   в системе, случилась ошибка: страница просто показывает всё сразу. */

:root {
  --page: #fff;
  --band: #f4f6f9;
  --ink: #14171c;
  --ink-2: #4a5058;
  --muted: #848b95;
  --line: #e3e7ec;
  --line-soft: #edf0f4;

  --blue: #2a78d6;
  --blue-deep: #1a5cab;
  --blue-soft: #e9f1fc;
  --orange: #eb6834;
  --red: #d03b3b;

  --dark: #14171c;
  --dark-2: #1e232b;

  --sh-s: 0 1px 2px rgba(20, 23, 28, .04), 0 3px 12px rgba(20, 23, 28, .05);
  --sh-m: 0 2px 8px rgba(20, 23, 28, .06), 0 16px 40px rgba(20, 23, 28, .09);
  --sh-l: 0 10px 24px rgba(20, 23, 28, .10), 0 44px 90px rgba(20, 23, 28, .16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.14; letter-spacing: -0.022em; text-wrap: balance; }
h1 { font-size: clamp(33px, 3.4vw, 58px); letter-spacing: -0.028em; }
h2 { font-size: clamp(26px, 2.4vw, 41px); }
h3 { font-size: 19px; letter-spacing: -0.014em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 700; }

.wrap { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.wrap--mid { width: min(960px, calc(100% - 48px)); }

.pos { color: var(--blue-deep); }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

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

/* ══════════ Кнопки ══════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .06s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 26px; font-size: 16.5px; border-radius: 11px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }

.btn-outline { border-color: var(--line); background: #fff; }
.btn-outline:hover { border-color: #c9d1da; background: #fafbfc; }

.btn-quiet { color: var(--ink-2); }
.btn-quiet:hover { background: rgba(20, 23, 28, .05); }

.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #eef2f7; }

.btn-onDark { border-color: rgba(255, 255, 255, .26); color: #fff; }
.btn-onDark:hover { background: rgba(255, 255, 255, .1); }

.btn-onBlue { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-onBlue:hover { background: rgba(255, 255, 255, .14); }

/* ══════════ Шапка ══════════ */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.stuck { border-color: var(--line-soft); }
.nav-inner { display: flex; align-items: center; gap: 22px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.brand-mark.sm { width: 28px; height: 28px; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }

.nav-links { display: flex; gap: 24px; font-size: 15px; color: var(--ink-2); margin-left: 10px; }
.nav-links a:hover { color: var(--ink); }

.nav-cta { display: flex; gap: 8px; margin-left: auto; }

.burger { display: none; width: 42px; height: 42px; margin-left: auto; border: 0; background: none; cursor: pointer; }
.burger span { display: block; width: 20px; height: 1.8px; margin: 5px auto; background: var(--ink); transition: transform .2s; }
.nav.open .burger span:first-child { transform: translateY(3.4px) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(-3.4px) rotate(-45deg); }

/* ══════════ Главный экран ══════════ */

.hero { padding: clamp(44px, 6vw, 84px) 0 clamp(52px, 7vw, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 14px;
}
.eyebrow--light { color: #7fb3f0; }

.hero h1 { margin-bottom: 18px; }
.lead { font-size: clamp(16.5px, 1.35vw, 18.5px); color: var(--ink-2); max-width: 32em; }

/* кнопки держим в строке: перенос делал первый экран кривым */
.hero-actions { display: flex; gap: 10px; margin: 28px 0 22px; }
.hero-actions .btn { flex: 0 1 auto; min-width: 0; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--muted); }
.hero-facts li { position: relative; padding-left: 15px; }
.hero-facts li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue);
  opacity: .7;
}

/* Окно программы */
.shot { display: block; position: relative; }
.win {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: var(--sh-l);
  overflow: hidden;
  transition: transform .25s;
}
.shot:hover .win { transform: translateY(-3px); }

.win-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); background: #fcfdfe; }
.win-title { font-weight: 650; font-size: 14px; }
.win-tabs { display: flex; gap: 2px; margin-left: auto; background: var(--line-soft); border-radius: 8px; padding: 3px; }
.win-tabs i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 10px; border-radius: 6px; }
.win-tabs i.on { background: #fff; color: var(--blue-deep); box-shadow: 0 1px 2px rgba(20, 23, 28, .12); }
.win-body { padding: 14px; background: #f7f9fb; }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 10px; }
.kpi { background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 12px; min-width: 0; }
.kpi-l { display: block; font-size: 11px; font-weight: 650; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-top: 3px; font-variant-numeric: tabular-nums; }
.kpi-s { display: block; font-size: 10.5px; color: var(--ink-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.panel { background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.panel-title { font-size: 12.5px; font-weight: 650; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.legend i { width: 14px; height: 0; border-top: 2px solid var(--blue); border-radius: 2px; }
.legend i + i, .legend i.lg-bad { border-top-style: dashed; border-top-color: #eb6834; }
.legend i:not(:first-child) { margin-left: 6px; }
.axis { display: flex; justify-content: space-between; margin-top: 5px; font-size: 10.5px; color: #9aa3ae; }
.chart { width: 100%; height: 118px; display: block; }

.explain {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px;
  background: var(--dark);
  color: #fff;
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 12.5px;
  box-shadow: var(--sh-m);
}
.explain-dot { width: 6px; height: 6px; border-radius: 50%; background: #6fb0ff; flex-shrink: 0; }

.shot-cta {
  position: absolute;
  left: 50%; bottom: -14px;
  transform: translate(-50%, 6px);
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 640;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(42, 120, 214, .38);
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  white-space: nowrap;
}
.shot:hover .shot-cta { opacity: 1; transform: translate(-50%, 0); }

/* ══════════ Секции ══════════ */

.section { padding: clamp(52px, 6.5vw, 96px) 0; }
.band { background: var(--band); }

.head { max-width: 700px; margin-bottom: clamp(30px, 3.6vw, 48px); }
.head h2 { margin-bottom: 12px; }
.head .sub { color: var(--ink-2); font-size: 17px; }
.head--light h2 { color: #fff; }
.head--light .sub { color: #a8b2be; }

/* ══════════ Проблема ══════════ */

.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.pain { background: #fff; border-radius: 14px; padding: 20px; box-shadow: var(--sh-s); }
.pain h3 { margin: 18px 0 7px; }
.pain p { color: var(--ink-2); font-size: 15px; }

/* высота задана в пикселях: проценты внутри auto-высоты давали пустые блоки */
.pain-art {
  height: 108px;
  border-radius: 10px;
  background: #f7f9fb;
  border: 1px solid var(--line-soft);
  padding: 13px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.pain-art code {
  font-family: 'Cascadia Mono', Consolas, 'SF Mono', monospace;
  font-size: 12px;
  line-height: 1.75;
  color: #79818c;
  align-self: center;
  word-break: break-all;
}

.bars { display: flex; align-items: flex-end; gap: 7px; width: 100%; height: 100%; }
.bars span { flex: 1; height: var(--h); background: #c6d2e0; border-radius: 3px 3px 0 0; }
.bars span.bad { background: var(--red); }

.sheet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; align-self: center; }
.sheet span { height: 9px; border-radius: 2px; background: #dbe2ea; }
.sheet span:nth-child(3n) { background: #e8edf3; }
.sheet span:nth-child(5) { background: #cdd8e4; }
.sheet span:nth-child(8) { background: #cdd8e4; }

/* ══════════ Шаги ══════════ */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; align-items: stretch; }
.step { display: flex; flex-direction: column; gap: 16px; }
.step-text { min-height: 168px; }        /* выравнивает карточки: без этого визуалы висели вразнобой */
.step-n { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.step h3 { margin-bottom: 7px; }
.step p { color: var(--ink-2); font-size: 15px; }
/* карточки тянутся до общей высоты: строка пересчёта во втором шаге длиннее,
   и без этого ряд шёл ступеньками */
.step-art { flex: 1; background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 15px; box-shadow: var(--sh-s); }

.blk { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: #f7f9fb; margin-bottom: 7px; }
.blk:last-child { margin-bottom: 0; }
.blk.on { background: var(--blue-soft); color: var(--blue-deep); }
.blk .ico { width: 16px; height: 16px; flex-shrink: 0; }

.fl { display: block; font-size: 12.5px; font-weight: 620; color: var(--ink-2); margin-bottom: 5px; }
.fl em { font-style: normal; color: var(--muted); font-weight: 500; }
.fi { border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; font-size: 15px; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.fi.focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42, 120, 214, .13); margin-bottom: 10px; }
.fr { height: 4px; border-radius: 3px; background: var(--line); position: relative; margin-bottom: 10px; }
.fr span { position: absolute; left: 62%; top: 50%; width: 15px; height: 15px; border-radius: 50%; background: var(--blue); border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(20, 23, 28, .3); transform: translate(-50%, -50%); }
.fh { font-size: 12.5px; color: var(--muted); }

.rows { border: 1px solid var(--line-soft); border-radius: 9px; overflow: hidden; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 11px; font-size: 13px; font-variant-numeric: tabular-nums; }
.row + .row { border-top: 1px solid var(--line-soft); }
.row.hot { background: var(--blue-soft); box-shadow: inset 0 0 0 1.5px rgba(42, 120, 214, .4); font-weight: 700; }
.tip { margin-top: 11px; background: var(--dark); color: #fff; border-radius: 9px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; }

/* ══════════ Интерфейс (тёмная секция) ══════════ */

.dark { background: var(--dark); color: #fff; }

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

.card { margin: 0; background: var(--dark-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; }
.card-art { background: #fff; border-radius: 10px; padding: 14px; height: 186px; display: flex; }
.card figcaption { margin-top: 14px; font-size: 14px; color: #9aa4b1; line-height: 1.5; }
.card figcaption b { display: block; color: #fff; font-size: 16px; margin-bottom: 4px; letter-spacing: -0.01em; }

/* дашборд */
.mini { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mini-kpis i { height: 30px; border-radius: 6px; background: #f2f5f8; }
.mini-kpis i.hot { background: var(--blue-soft); }
.mini-chart { flex: 1; min-height: 0; border-radius: 6px; background: #f9fbfc; padding: 7px; }
.mini-chart svg { width: 100%; height: 100%; display: block; }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 38px; }
.mini-bars i { flex: 1; height: var(--h); background: #cddcee; border-radius: 3px 3px 0 0; }
.mini-bars i:nth-child(4), .mini-bars i:nth-child(6) { background: var(--blue); opacity: .8; }

/* цели */
.goal { display: flex; flex-direction: column; justify-content: center; gap: 3px; width: 100%; }
.goal-cap { font-size: 11.5px; color: #858d98; }
.goal-move { display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px; font-variant-numeric: tabular-nums; }
.goal-move:last-child { margin-bottom: 0; }
.goal-move s { color: #9aa3ae; font-size: 13px; }
.goal-move b { font-size: 17px; color: var(--blue-deep); }
.goal-move em { font-style: normal; font-size: 11px; font-weight: 640; color: var(--blue-deep); background: var(--blue-soft); padding: 2px 8px; border-radius: 999px; }

/* водопад */
.waterfall { display: flex; align-items: flex-end; gap: 8px; width: 100%; height: 100%; padding-bottom: 18px; }
.waterfall i { position: relative; flex: 1; height: var(--h); border-radius: 4px 4px 0 0; }
.waterfall i s { position: absolute; left: -6px; right: -6px; bottom: -16px; text-align: center; font-size: 10px; color: #858d98; text-decoration: none; white-space: nowrap; }
.wf-in { background: var(--blue); }
.wf-out { background: #f0a58a; }
.wf-res { background: #1baf7a; }

/* ══════════ Возможности ══════════ */

.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 24px; transition: box-shadow .2s, transform .2s; }
.feat:hover { box-shadow: var(--sh-m); transform: translateY(-2px); }
.feat h3 { margin-bottom: 8px; }
.feat p { color: var(--ink-2); font-size: 15px; }
.feat--hero { grid-column: span 2; background: var(--blue-soft); border-color: transparent; }
.feat--tall { grid-column: span 3; }

.warn { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; background: #fff; border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.warn .ico { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; margin-top: 1px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.chips i { font-style: normal; font-size: 12.5px; font-weight: 640; padding: 5px 11px; border-radius: 7px; background: #f4f6f9; color: var(--ink-2); }
.chips i.more { background: var(--blue-soft); color: var(--blue-deep); }

/* ══════════ Сравнение ══════════ */

.cmp { width: 100%; border-collapse: collapse; font-size: 15.5px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--sh-s); }
.cmp th { text-align: left; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 16px 18px 12px; }
.cmp th.us { color: var(--blue-deep); }
.cmp td { padding: 14px 18px; border-top: 1px solid var(--line-soft); color: var(--ink-2); vertical-align: top; }
.cmp td:first-child { font-weight: 640; color: var(--ink); width: 25%; }
.cmp td:last-child, .cmp th:last-child { background: rgba(233, 241, 252, .55); color: var(--ink); }

/* ══════════ Кому подойдёт ══════════ */

.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.who article { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 18px; }
.who b { display: block; font-size: 18px; letter-spacing: -0.012em; margin-bottom: 8px; }
.who p { color: var(--ink-2); font-size: 15px; margin: 0 0 16px; }

/* названия шаблонов внизу карточки: доказывают, что моделей действительно много */
.chips { margin: auto 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 12.5px; color: var(--blue-deep); background: var(--blue-soft); border-radius: 999px; padding: 4px 11px; white-space: nowrap; }
.who-note { margin: 22px 0 0; font-size: 14.5px; color: var(--muted); }

/* ══════════ Цена ══════════ */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; }
.plan.main { border-color: var(--blue); box-shadow: var(--sh-m); }
.badge { position: absolute; top: -11px; left: 26px; background: var(--blue); color: #fff; font-size: 11.5px; font-weight: 650; padding: 4px 11px; border-radius: 999px; }
.plan h3 { margin-bottom: 12px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price span { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price em { font-style: normal; font-size: 13.5px; color: var(--muted); }
.plan-sub { font-size: 14px; color: var(--ink-2); margin: 4px 0 18px; }
.plan ul { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.plan li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--ink-2); }
.plan li::before {
  content: '';
  position: absolute; left: 2px; top: 9px;
  width: 9px; height: 5px;
  border-left: 1.8px solid var(--blue);
  border-bottom: 1.8px solid var(--blue);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }
.note { margin-top: 20px; text-align: center; font-size: 14.5px; color: var(--muted); }

/* ══════════ Скачать ══════════ */

.dl { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; background: var(--dark); color: #fff; border-radius: 18px; padding: clamp(28px, 4vw, 44px); }
.dl h2 { margin-bottom: 11px; }
.dl-copy p { color: #aeb6c0; font-size: 16px; }
.dl-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.dl-meta { margin-top: 14px; font-size: 13.5px; color: #838c97; }
.dl-facts { display: flex; flex-direction: column; gap: 15px; justify-content: center; }
.dl-facts li { border-left: 2px solid rgba(255, 255, 255, .16); padding-left: 14px; }
.dl-facts b { display: block; font-size: 15px; }
.dl-facts span { font-size: 13.5px; color: #939ca7; }

/* ══════════ Вопросы ══════════ */

.faq { background: #fff; border-radius: 14px; box-shadow: var(--sh-s); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line-soft); }
.faq summary { list-style: none; cursor: pointer; padding: 19px 52px 19px 22px; font-size: 17px; font-weight: 620; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-deep); }
.faq summary::after, .faq summary::before { content: ''; position: absolute; right: 22px; top: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.faq summary::after { width: 13px; height: 1.8px; margin-top: -.9px; }
.faq summary::before { width: 1.8px; height: 13px; margin-top: -6.5px; right: 27.6px; }
.faq details[open] summary { color: var(--blue-deep); }
.faq details[open] summary::before { transform: rotate(90deg); }
.faq details[open] summary::after, .faq details[open] summary::before { background: var(--blue); }
.faq p { padding: 0 52px 20px 22px; color: var(--ink-2); font-size: 15.5px; }

/* ══════════ Финал ══════════ */

.final { background: linear-gradient(135deg, #2a78d6, #17509a); color: #fff; padding: clamp(56px, 7vw, 92px) 0; text-align: center; }
.final h2 { margin-bottom: 12px; }
.final p { color: rgba(255, 255, 255, .84); font-size: 17.5px; margin-bottom: 28px; }
.final-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ══════════ Подвал ══════════ */

.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand b { display: block; font-size: 15px; }
.foot-brand span { font-size: 13px; color: var(--muted); }

/* ══════════ Движение ══════════ */

/* Появление блоков. Начальное состояние только под .anim, показ включает
   скрипт за 200px до входа в кадр и страхует таймером на 2,5 секунды. */
.anim .reveal {
  opacity: 0;
  transform: translateY(18px);
  /* последняя линия обороны: если app.js не загрузился или упал, через три
     секунды блок покажет себя сам, без всякого скрипта */
  animation: reveal-safety 1ms linear 3s forwards;
}
.anim .reveal.in {
  animation: none;
  opacity: 1;
  transform: none;
  transition: opacity .45s ease, transform .55s cubic-bezier(.2, .75, .3, 1);
}
@keyframes reveal-safety { to { opacity: 1; transform: none; } }

/* Столбики вырастают снизу. Высота задана в процентах, поэтому анимируем
   именно её: transform растянул бы и подписи под столбцами. */
.anim .grow i { height: 0; }
.anim .grow.in i { height: var(--h); transition: height .65s cubic-bezier(.2, .8, .25, 1); }
.anim .grow.in i:nth-child(2) { transition-delay: .06s; }
.anim .grow.in i:nth-child(3) { transition-delay: .12s; }
.anim .grow.in i:nth-child(4) { transition-delay: .18s; }
.anim .grow.in i:nth-child(5) { transition-delay: .24s; }
.anim .grow.in i:nth-child(6) { transition-delay: .30s; }

/* Смена текста в мокапе: короткое затухание вместо рывка */
#dm-break, #dm-when { display: block; }
#dm-name, #dm-total, #dm-explain { display: inline-block; }
#dm-name, #dm-total, #dm-break, #dm-when, #dm-explain {
  transition: opacity .17s ease, transform .17s ease;
}
.swap { opacity: 0; transform: translateY(-4px); }

/* цифры не должны дёргать соседей, пока считаются */
.kpi b, .goal-move b, .fi, .fo b, .warn span { font-variant-numeric: tabular-nums; }
.fr span { transition: left .55s cubic-bezier(.2, .8, .25, 1); }

/* строка пересчёта под полем: видно, что правка сразу меняет итог */
.fo { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--muted); }
.fo b { font-size: 17px; color: var(--blue-deep); }

/* Лента блоков. Второй набор чипов это копия первого: когда лента уезжает
   на половину своей длины, кадр совпадает с началом и стык не виден. */
.ticker { display: flex; align-items: center; gap: 20px; padding: 15px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker-cap { flex: none; padding-left: max(24px, calc((100% - 1280px) / 2)); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ticker-view {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 90px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 90px), transparent);
}
.ticker-run { display: flex; width: max-content; }
.anim .ticker-run { animation: ticker-run 58s linear infinite; }
.ticker:hover .ticker-run { animation-play-state: paused; }
.ticker-set { display: flex; gap: 9px; padding-right: 9px; }
.ticker-set i { font-style: normal; white-space: nowrap; font-size: 13.5px; color: var(--ink-2); background: var(--band); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; }
@keyframes ticker-run { to { transform: translateX(-50%); } }

/* отклик на курсор: страница ощущается живой, а не картинкой */
.card, .who article, .plan, .cmp { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); }
.who article:hover { transform: translateY(-3px); box-shadow: var(--sh-s); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--sh-m); }
.chips li { transition: background .2s ease, color .2s ease; }
.who article:hover .chips li { background: #dfebfa; }

/* ══════════ Адаптив ══════════ */


/* ══════════ ИИ-помощник ══════════ */

.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.ai-points { display: flex; flex-direction: column; gap: 22px; }
.ai-point { display: flex; gap: 16px; }
.ai-num { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-deep); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ai-point h3 { margin-bottom: 6px; }
.ai-point p { color: var(--ink-2); font-size: 15.5px; }

.chat { background: var(--band); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sh-m); }
.chat-msg { font-size: 14.5px; line-height: 1.55; }
.chat-msg.me { align-self: flex-end; background: var(--blue-soft); border-radius: 14px 14px 4px 14px; padding: 9px 14px; max-width: 80%; }
.chat-msg.bot { background: #fff; border-radius: 14px; padding: 14px 16px; border: 1px solid var(--line-soft); }
.chat-msg.bot p { margin: 0 0 8px; }
.chat-src { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.chat-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fbfcfd; }
.chat-card-title { font-weight: 650; font-size: 14px; margin-bottom: 8px; }
.chat-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); padding: 2px 0; font-variant-numeric: tabular-nums; }
.chat-row b { color: var(--ink); }
.chat-row b.neg { color: var(--red); }
.chat-btns { display: flex; gap: 8px; margin-top: 10px; }
.chat-btns i { font-style: normal; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); }
.chat-btns i.primary { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ══════════ Переключатель периода оплаты ══════════ */

.bill-toggle { display: flex; justify-content: center; gap: 4px; margin: 0 auto 26px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; width: max-content; }
.bill-toggle button { font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink-2); background: none; border: 0; border-radius: 9px; padding: 8px 16px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.bill-toggle button.on { background: var(--blue-soft); color: var(--blue-deep); }
.bill-toggle span { font-size: 12px; background: #e3f6ec; color: #067d3f; border-radius: 6px; padding: 2px 7px; }
.note a { color: var(--blue-deep); }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .shot { max-width: 620px; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat--hero, .feat--tall { grid-column: span 2; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .card:last-child { grid-column: span 2; }
  /* иначе четвёртая карточка оставалась одна во втором ряду */
  .who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}

@media (max-width: 900px) {
  .ai-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    gap: 0;
    margin: 0;
    padding: 6px 17px 14px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-m);
  }
  .nav.open .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 16.5px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap, .wrap--mid { width: calc(100% - 34px); }

  /* на телефоне кнопки на всю ширину: так они не выглядят обрубками */
  .hero-actions { flex-direction: column; gap: 9px; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { gap: 6px 16px; font-size: 13.5px; }

  .win-tabs i:nth-child(n+3) { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis .kpi:last-child { display: none; }

  .step-text { min-height: 0; }
  .calc { grid-template-columns: minmax(0, 1fr); gap: 0; }

  /* подпись съедала половину узкого экрана: ставим её над лентой */
  .ticker { flex-direction: column; align-items: stretch; gap: 11px; }
  .ticker-cap { padding-left: 17px; }
  .feats, .gallery { grid-template-columns: minmax(0, 1fr); }
  .feat--hero, .feat--tall, .gallery .card:last-child { grid-column: span 1; }

  .cmp thead { display: none; }
  .cmp { box-shadow: none; background: none; }
  .cmp tbody tr { display: block; background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--sh-s); }
  .cmp td { display: block; border: 0; padding: 0; }
  .cmp td:first-child { width: auto; font-size: 16px; margin-bottom: 8px; }
  .cmp td:nth-child(2)::before { content: 'Spreadsheet: '; color: var(--muted); }
  html[lang="ru"] .cmp td:nth-child(2)::before { content: 'В таблице: '; }
  .cmp td:last-child { background: var(--blue-soft); margin-top: 8px; padding: 9px 12px; border-radius: 9px; }
  .cmp td:last-child::before { content: 'FinModel: '; color: var(--blue-deep); font-weight: 640; }
  html[lang="ru"] .cmp td:last-child::before { content: 'В FinModel: '; }

  .dl-actions .btn, .final-actions .btn { width: 100%; }
  .faq summary { font-size: 16px; padding-right: 46px; }
}

@media (max-width: 420px) {
  /* на узком экране подпись линий отъедала всю строку заголовка панели */
  .legend { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* класс anim при этой настройке не ставится, поэтому прятать уже нечего:
     остаётся выключить бегущую ленту и плавную прокрутку */
  html { scroll-behavior: auto; }
  .ticker-run { animation: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* вторая ссылка в строке под кнопкой: версия без установки */
.dl-alt { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.dl-alt:hover { color: #fff; }

/* ══════════ Что считает программа ══════════ */

.calc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 32px; }
.calc ul { margin: 0; padding: 0; list-style: none; }
.calc li {
  position: relative;
  padding: 9px 0 9px 26px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}
.calc li:last-child { border-bottom: 0; }
.calc li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 17px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

/* адаптив перечня расчётов стоит после базового правила, иначе оно его перебивает */
@media (max-width: 1080px) {
  .calc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .calc { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ══════════════════════════════════════════════════════════════════════
   Многостраничный сайт: внутренние страницы, статьи, тарифы, подвал.
   ══════════════════════════════════════════════════════════════════════ */

.nav-links a[aria-current="page"] { color: var(--blue-deep); font-weight: 600; }
.nav-mobile-cta { display: none; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 9px;
  border: 1px solid var(--line); border-radius: 9px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink-2);
}
.lang-switch:hover { border-color: #c9d1da; color: var(--ink); }

/* подсказка о версии на родном языке: не перенаправляем, а предлагаем */
.lang-hint { background: var(--blue-soft); color: var(--blue-deep); font-size: 14px; }
.lang-hint .wrap { display: flex; align-items: center; gap: 14px; min-height: 42px; }
.lang-hint a { font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.lang-hint button { margin-left: auto; border: 0; background: none; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 8px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 22px; font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--blue-deep); }
.crumbs i { font-style: normal; color: #c3c9d1; }
.crumbs span { color: var(--ink-2); }

.phero { padding: clamp(30px, 4.5vw, 64px) 0 clamp(36px, 5vw, 70px); }
.phero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.phero--split .phero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.phero-copy { max-width: 820px; }
.phero-copy.center, .center { text-align: center; margin-left: auto; margin-right: auto; }
.phero h1 { margin-bottom: 16px; font-size: clamp(31px, 3vw, 50px); }
.phero .lead a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.phero-copy.center .lead { margin: 0 auto; }
.center-actions { justify-content: center; }

.answer-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--sh-m); }
.answer-card > b { display: block; font-size: 16px; margin: 12px 0 10px; }
.answer-card .ticks { margin-bottom: 18px; }
.answer-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-deep); display: flex; align-items: center; justify-content: center; }
.answer-ico .ico { width: 24px; height: 24px; }

.section--tight { padding: clamp(28px, 3.5vw, 48px) 0; }
.head--center { margin-left: auto; margin-right: auto; text-align: center; }
.group-title { font-size: clamp(21px, 1.8vw, 27px); margin-bottom: 20px; }
.sub-p { color: var(--ink-2); margin: 10px 0 18px; }

.more-link { display: inline-flex; align-items: center; gap: 7px; color: var(--blue-deep); font-weight: 650; font-size: 15.5px; }
.more-link .ico { width: 17px; height: 17px; transition: transform .2s; }
.more-link:hover .ico { transform: translateX(3px); }
.center-link { text-align: center; margin-top: 30px; }

/* карточки-ссылки: решения, статьи, контакты */
.lcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lcards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lcards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lcard {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 46px 20px 20px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.band .lcard { border-color: transparent; box-shadow: var(--sh-s); }
.lcard:hover { border-color: #c4d6ee; box-shadow: var(--sh-m); transform: translateY(-2px); }
.lcard-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.lcard-ico .ico { width: 20px; height: 20px; }
.lcard-title { font-weight: 700; font-size: 16.5px; letter-spacing: -0.012em; }
.lcard-text { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.lcard-meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.lcard-go { position: absolute; right: 18px; top: 20px; color: #b3bcc7; transition: color .2s, transform .2s; }
.lcard-go .ico { width: 18px; height: 18px; }
.lcard:hover .lcard-go { color: var(--blue); transform: translateX(3px); }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: start; }
.two-col h2 { font-size: clamp(23px, 2vw, 31px); }
.two-col--ai { align-items: center; }

.ticks { display: flex; flex-direction: column; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: 7px; width: 10px; height: 5.5px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}
.ticks--lg li { font-size: 16px; padding-top: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
.ticks--lg li::before { top: 13px; }
.ticks--lg li:last-child { border-bottom: 0; }

.kv { margin: 18px 0 0; display: flex; flex-direction: column; gap: 12px; }
.kv div { background: var(--band); border-radius: 12px; padding: 14px 16px; }
.kv dt { font-weight: 700; margin-bottom: 3px; }
.kv dd { margin: 0; color: var(--ink-2); font-size: 15px; }
.pain h3:first-child { margin-top: 0; }

/* возможности */
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fcard { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 22px; }
.band .fcard { border-color: transparent; box-shadow: var(--sh-s); }
.fcard-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--blue-soft); color: var(--blue-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.fcard-ico .ico { width: 21px; height: 21px; }
.fcard h3 { margin-bottom: 7px; }
.fcard p { color: var(--ink-2); font-size: 15px; }

/* шаги помощника */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.flow li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.flow h3 { margin: 14px 0 6px; font-size: 17px; }
.flow p { color: var(--ink-2); font-size: 14.5px; }
.asks { display: flex; flex-wrap: wrap; gap: 10px; }
.asks span { background: var(--band); border: 1px solid var(--line); border-radius: 12px; padding: 10px 15px; font-size: 15px; color: var(--ink-2); }
.chat--sm { box-shadow: var(--sh-s); }

/* тарифы */
.price-controls { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.price-controls .bill-toggle { margin: 0; }
.cur-toggle { display: flex; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.cur-toggle button { font: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: .03em; color: var(--muted); background: none; border: 0; border-radius: 9px; padding: 8px 12px; cursor: pointer; }
.cur-toggle button.on { background: var(--blue-soft); color: var(--blue-deep); }
.plan-tag { font-size: 14px; color: var(--muted); margin: -6px 0 14px; }

.ptable { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--sh-s); font-size: 15px; }
.ptable th, .ptable td { padding: 13px 16px; text-align: center; border-top: 1px solid var(--line-soft); }
.ptable thead th { border-top: 0; font-size: 14px; font-weight: 700; }
.ptable th.us { color: var(--blue-deep); }
.ptable td:first-child, .ptable th:first-child { text-align: left; color: var(--ink); font-weight: 600; }
.ptable td { color: var(--ink-2); }
.ptable td:nth-child(3) { background: rgba(233, 241, 252, .5); }
.yes { color: var(--blue); display: inline-flex; }
.yes .ico { width: 18px; height: 18px; stroke-width: 2.4; }
.no { color: #c3c9d1; font-size: 22px; line-height: 1; }

.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pack { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.pack b { font-size: 28px; letter-spacing: -0.02em; }
.pack span { color: var(--muted); font-size: 14px; }
.pack em { font-style: normal; font-weight: 700; color: var(--blue-deep); font-size: 17px; margin-top: 8px; }

/* статьи */
.article-head { max-width: 860px; padding-top: clamp(20px, 3vw, 40px); padding-bottom: 10px; }
.article-head h1 { font-size: clamp(30px, 3vw, 48px); margin-bottom: 16px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 64px); padding-top: 26px; padding-bottom: clamp(48px, 6vw, 88px); align-items: start; }
.article-aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; }
.toc { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); padding-left: 16px; font-size: 14px; }
.toc b { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.toc a { color: var(--ink-2); padding: 3px 0; line-height: 1.4; }
.toc a:hover { color: var(--blue-deep); }
.aside-cta { background: var(--blue-soft); border-radius: 14px; padding: 18px; }
.aside-cta b { display: block; font-size: 16px; margin-bottom: 6px; }
.aside-cta p { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }

.prose { font-size: 17px; line-height: 1.72; color: var(--ink); max-width: 720px; }
.prose h2 { font-size: clamp(22px, 1.9vw, 28px); margin: 42px 0 12px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; color: #2c3138; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 7px; color: #2c3138; }
.prose li::marker { color: var(--blue); }
.prose a:not(.btn) { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose .btn { margin-top: 8px; }
.takeaways { background: var(--band); border-radius: 14px; padding: 18px 22px; margin-bottom: 32px; }
.takeaways b { display: block; margin-bottom: 8px; }
.takeaways ul { margin: 0; }
.callout { border-left: 3px solid var(--blue); background: #f7fafe; border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 18px 0; }
.callout p:last-child { margin: 0; }
.example { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 18px 0; background: #fff; }
.example > b { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-deep); margin-bottom: 8px; }
.example p:last-child { margin: 0; }

.legal h1 { font-size: clamp(28px, 2.6vw, 40px); margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin-top: 30px; }
.doc-meta { color: var(--muted) !important; font-size: 14.5px; }

.chips-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.chips-row i { font-style: normal; font-size: 12.5px; font-weight: 640; padding: 5px 11px; border-radius: 7px; background: #f4f6f9; color: var(--ink-2); }
.chips-row i.more { background: var(--blue-soft); color: var(--blue-deep); }
.ai-points .more-link { margin-top: 4px; }

/* подвал */
.foot { border-top: 1px solid var(--line-soft); padding: 46px 0 26px; background: #fbfcfd; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot-brand { align-items: flex-start; }
.foot-col { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.foot-col b { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 4px; }
.foot-col a { color: var(--ink-2); }
.foot-col a:hover { color: var(--blue-deep); }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--muted); }
.foot-bottom a:hover { color: var(--blue-deep); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.foot-lang { margin-left: auto; display: flex; gap: 14px; }
.foot-lang a[aria-current] { color: var(--ink); font-weight: 650; }

@media (max-width: 1080px) {
  .lcards, .lcards--3, .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; }
  .toc { display: none; }
  .phero--split .phero-grid { grid-template-columns: minmax(0, 1fr); }
  .answer-card { max-width: 520px; }
}

@media (max-width: 900px) {
  .nav.open .nav-mobile-cta { display: flex; gap: 8px; padding: 14px 0 4px; }
  .nav.open .nav-mobile-cta .btn { flex: 1; border-bottom: 0; padding: 11px 12px; font-size: 15px; }
  .nav-cta { display: flex; margin-left: auto; }
  .nav-cta .btn { display: none; }
  .burger { margin-left: 4px; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .lcards, .lcards--2, .lcards--3, .fgrid, .flow, .packs { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-lang { margin-left: 0; }
  .ptable th, .ptable td { padding: 11px 8px; font-size: 13.5px; }
  .price-controls { flex-direction: column; }
  .prose { font-size: 16.5px; }
}

/* ══════════════════════════════════════════════════════════════════════
   Глубина и движение: фон первого экрана, наклонное окно программы,
   плавающие карточки, калькулятор, живая переписка с помощником.
   ══════════════════════════════════════════════════════════════════════ */

:root { --aqua: #14a874; --violet: #6d5ce8; }

/* переключатель языка: та же высота и линия, что у кнопок рядом */
.nav-cta { align-items: center; }
.lang-switch {
  height: 40px; min-width: 0; padding: 0 12px; gap: 6px;
  border: 1px solid transparent; border-radius: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--ink-2);
}
.lang-switch .ico { width: 17px; height: 17px; }
.lang-switch:hover { background: rgba(20, 23, 28, .05); border-color: transparent; }

/* подсказка о другой версии: по центру и аккуратной плашкой */
.lang-hint { background: linear-gradient(90deg, #eef5ff, #f1fbf7); border-bottom: 1px solid var(--line-soft); }
.lang-hint .wrap { justify-content: center; position: relative; min-height: 40px; gap: 10px; font-size: 13.5px; }
.lang-hint a { text-decoration: none; background: #fff; border: 1px solid #cfe0f6; border-radius: 999px; padding: 3px 12px; }
.lang-hint a:hover { border-color: var(--blue); }
.lang-hint button { position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* ── фон первых экранов ── */
.hero, .phero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before, .phero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 480px at 82% 18%, rgba(42, 120, 214, .14), transparent 62%),
    radial-gradient(700px 420px at 8% 92%, rgba(20, 168, 116, .10), transparent 60%),
    radial-gradient(500px 300px at 55% 0%, rgba(109, 92, 232, .07), transparent 70%);
}
.hero::after, .phero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(20, 23, 28, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 23, 28, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 60% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 70% at 60% 35%, #000 20%, transparent 75%);
}
.hero { padding-top: clamp(48px, 6.5vw, 96px); }
.hero h1 { font-size: clamp(36px, 4vw, 66px); letter-spacing: -0.034em; }
.grad {
  background: linear-gradient(100deg, #1a5cab 10%, #2a78d6 45%, #14a874 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 14px 5px 6px; font-size: 13px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--sh-s);
}
.hero-badge b { background: var(--blue); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; letter-spacing: .04em; }

/* ── сцена с окном программы ── */
.stage { position: relative; perspective: 1600px; padding: 26px 10px 34px; }
.stage .shot { transform: rotateY(-9deg) rotateX(5deg) rotateZ(.4deg); transform-origin: 70% 50%; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.stage:hover .shot { transform: none; }
.phero-art .chat { box-shadow: 0 30px 70px -30px rgba(42, 120, 214, .45), var(--sh-m); }
.stage .win { box-shadow: 0 30px 60px -20px rgba(20, 40, 80, .35), 0 60px 120px -40px rgba(42, 120, 214, .35); border-color: #e6ebf2; }
.float-card {
  position: absolute; z-index: 3; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; box-shadow: var(--sh-m);
  font-size: 12.5px; line-height: 1.4; display: flex; gap: 10px; align-items: flex-start; max-width: 250px;
}
.float-card b { display: block; font-size: 13px; color: var(--ink); margin-bottom: 2px; }
.float-card span { color: var(--ink-2); }
.fc-ico { flex: none; width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; }
.fc-ai { left: -34px; top: -4px; }
.fc-ai .fc-ico { background: linear-gradient(135deg, #2a78d6, #6d5ce8); }
.fc-warn { right: -26px; bottom: 6px; }
.fc-warn .fc-ico { background: #fde9e9; color: var(--red); }
.fc-goal { right: -40px; top: 34%; }
.fc-goal .fc-ico { background: #e3f6ec; color: #067d3f; }
.fc-chip { display: inline-block; margin-top: 6px; background: var(--blue); color: #fff; border-radius: 7px; padding: 3px 9px; font-size: 11.5px; font-weight: 650; }
.anim .float-card { animation: float 7s ease-in-out infinite; }
.anim .fc-warn { animation-delay: -2.3s; }
.anim .fc-goal { animation-delay: -4.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ── цифры под первым экраном ── */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--sh-s); margin-top: clamp(28px, 4vw, 52px); }
.figures div { padding: 20px 24px; border-left: 1px solid var(--line-soft); }
.figures div:first-child { border-left: 0; }
.figures b { display: block; font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -0.03em; line-height: 1.1; }
.figures span { font-size: 13.5px; color: var(--muted); }

/* ── калькулятор на главной ── */
.calc-box { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-m); overflow: hidden; }
.calc-in { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px; }
.slider label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.slider label output { font-size: 17px; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.slider input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--blue) var(--p, 50%), #e3e8ef var(--p, 50%)); outline: none; }
.slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 2px 6px rgba(20, 40, 80, .25); cursor: pointer; }
.slider input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); cursor: pointer; }
.calc-out { background: linear-gradient(160deg, #10233f, #14171c 70%); color: #fff; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px; }
.calc-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.calc-kpis div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 14px 16px; }
.calc-kpis span { display: block; font-size: 12.5px; color: #9fb0c6; margin-bottom: 4px; }
.calc-kpis b { font-size: 24px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-kpis b.neg { color: #ff8b8b; }
.calc-kpis b.pos { color: #7be3b5; }
.calc-chart { flex: 1; min-height: 150px; }
.calc-chart svg { width: 100%; height: 160px; display: block; }
.calc-note { font-size: 13px; color: #9fb0c6; }
.calc-out .btn { align-self: flex-start; }

/* ── живая переписка с помощником ── */
.typing { display: inline-flex; gap: 4px; padding: 10px 14px; background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; width: max-content; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa6b4; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat .is-hidden { display: none; }
.chat .appear { animation: appear .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#ai .chat { box-shadow: 0 30px 70px -30px rgba(42, 120, 214, .45), var(--sh-m); }

/* ── сравнение цены ── */
.anchor { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 30px auto 0; max-width: 980px; }
.anchor div { border-radius: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); }
.anchor div.us { background: var(--blue-soft); border-color: #c4d8f3; }
.anchor span { display: block; font-size: 13px; color: var(--muted); }
.anchor b { font-size: 20px; letter-spacing: -0.02em; }
.anchor div.us b { color: var(--blue-deep); }
.anchor em { display: block; font-style: normal; font-size: 13px; color: var(--ink-2); margin-top: 2px; }

/* ── визуал справа на внутренних страницах ── */
.phero--split:has(.phero-art) .phero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.phero-art.stage { padding: 30px 20px 30px; }
.phero-art .fc-ai { left: -10px; top: 0; }
.phero-art .fc-warn { right: -6px; bottom: 0; }
.phero-art { position: relative; }
.art-stack { position: relative; height: 330px; }
.art-stack .win { position: absolute; width: 100%; max-width: 480px; right: 0; top: 0; }
.art-stack .float-card { position: absolute; }

/* финал: живой градиент */
.final { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(120deg, #1b4f96, #2a78d6 45%, #13a07a); background-size: 200% 200%; }
.anim .final { animation: shift 16s ease-in-out infinite; }
@keyframes shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); }

/* карточки тарифов чуть выразительнее */
.plan.main { background: linear-gradient(180deg, #f6faff, #fff 40%); box-shadow: 0 24px 60px -24px rgba(42, 120, 214, .45); }
.plan .pm { background: none; }

@media (max-width: 1080px) {
  .stage { padding: 30px 0 30px; max-width: 640px; }
  .fc-ai { left: 0; top: -12px; }
  .fc-goal { display: none; }
  .fc-warn { right: 0; bottom: -6px; }
  .calc-box { grid-template-columns: minmax(0, 1fr); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures div:nth-child(3) { border-left: 0; }
  .figures div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .art-stack { height: auto; }
  .art-stack .win { position: relative; }
  .art-stack .float-card { display: none; }
}

@media (max-width: 760px) {
  .stage .shot { transform: none; }
  .float-card { max-width: 210px; font-size: 12px; }
  .fc-warn { display: none; }
  .anchor { grid-template-columns: minmax(0, 1fr); }
  .lang-switch span { display: none; }
}
