/* ============================================================
   AkulaStat — landing styles (mobile-first)
   Токены и компоненты — из лендинга Vikinord, адаптированы под SaaS.
   ============================================================ */

:root {
  --navy: #011F5F;
  --navy-2: #123B78;
  --ice: #E7ECFF;
  --soft: #DDE7FA;
  --white: #FFFFFF;
  --cyan: #1596B0;
  --dark: #101B2D;
  --muted: #4A5877;
  --line: rgba(1, 31, 95, .12);

  /* тона данных, как подсветка в РНП */
  --up: #12945A;
  --up-bg: rgba(18, 148, 90, .12);
  --down: #C8323C;
  --down-bg: rgba(200, 50, 60, .11);

  /* метки маркетплейсов */
  --ozon: #1A6BF0;
  --wb: #7B2B8F;

  --r-sm: 16px;
  --r-md: 24px;
  --r-lg: 32px;

  --shadow-sm: 0 2px 10px rgba(1, 31, 95, .06);
  --shadow: 0 12px 32px rgba(1, 31, 95, .08);
  --shadow-lg: 0 24px 60px rgba(1, 31, 95, .14);
  --shadow-cta: 0 10px 26px rgba(1, 31, 95, .3);

  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --header-h: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--dark);
  background-color: var(--ice);
  /* сетка как в таблице: тонкие линии строк и столбцов */
  background-image:
    linear-gradient(rgba(18, 59, 120, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 59, 120, .055) 1px, transparent 1px);
  background-size: 56px 40px;
  background-position: -1px -1px;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 18px; }

.section { position: relative; padding-block: 64px; }
.section--soft { background: linear-gradient(180deg, rgba(221, 231, 250, 0), rgba(221, 231, 250, .8) 14%, rgba(221, 231, 250, .8) 86%, rgba(221, 231, 250, 0)); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; }

.h2 {
  font-size: clamp(26px, 7vw, 46px);
  font-weight: 700; line-height: 1.12; letter-spacing: -.01em;
  color: var(--navy);
  text-wrap: balance;
}
.accent { color: var(--cyan); }
.h3 { font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--navy); }
.lead { font-size: 17px; color: var(--muted); max-width: 58ch; }

.section-head { display: grid; gap: 14px; margin-bottom: 36px; }
.section-head--center { justify-items: center; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

.note { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  border: 0; border-radius: 999px;
  font-size: 16px; font-weight: 700; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.btn--primary { background: linear-gradient(180deg, #123B78, var(--navy) 60%, #011647); color: var(--white); box-shadow: 0 6px 18px rgba(1, 31, 95, .22); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-cta); }
.btn--primary:active { transform: translateY(0); }
.btn--white { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost {
  background: var(--white); color: var(--navy);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-weight: 500;
}
.btn--ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(1, 31, 95, .25); }
.btn--outline-light { background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, .4); font-weight: 500; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }

/* ---------- Cards, badges ---------- */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(1, 31, 95, .06);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--navy); color: var(--white);
}
.badge--cyan { background: rgba(21, 150, 176, .12); color: var(--cyan); }
.badge--up { background: var(--up-bg); color: var(--up); }
.badge--light { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }

.mp { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--white); line-height: 1.5; }
.mp--ozon { background: var(--ozon); }
.mp--wb { background: var(--wb); }

.icon {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(145deg, var(--white), var(--soft));
  border: 1px solid rgba(1, 31, 95, .08);
  color: var(--navy);
}
.icon svg { width: 24px; height: 24px; }
.icon--cyan { color: var(--cyan); }
.icon--down { color: var(--down); }
.icon--up { color: var(--up); }

.tick-list { display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 28px; font-size: 16px; color: var(--dark); }
.tick-list li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--up-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312945A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.tick-list b { color: var(--navy); font-weight: 700; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ============================================================
   Browser-mockup frame + placeholders
   ============================================================ */
.shot {
  position: relative; overflow: hidden; width: 100%;
  border-radius: 14px; background: var(--white);
  border: 1px solid rgba(1, 31, 95, .1);
  box-shadow: var(--shadow-lg);
}
.shot__bar {
  display: flex; align-items: center; gap: 6px; height: 28px; padding-inline: 12px;
  background: linear-gradient(180deg, #F4F7FE, #E8EEFB);
  border-bottom: 1px solid var(--line);
}
.shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: #C9D3EA; }
.shot__bar i:nth-child(1) { background: #F2958F; }
.shot__bar i:nth-child(2) { background: #F3CC6E; }
.shot__bar i:nth-child(3) { background: #8FD4A1; }
.shot__bar span { margin-left: 10px; flex: 1; max-width: 220px; height: 14px; border-radius: 7px; background: rgba(255, 255, 255, .9); }
.shot__body { position: relative; aspect-ratio: 16 / 10; background: #F6F8FE; overflow: hidden; }
.shot__body::before {
  /* заглушка «таблица», пока нет настоящего скрина */
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent 0 22%, rgba(18, 59, 120, .07) 22% calc(22% + 1px), transparent 0) 0 0 / 100% 100%,
    repeating-linear-gradient(180deg, transparent 0 26px, rgba(18, 59, 120, .09) 26px 27px),
    linear-gradient(180deg, rgba(18, 59, 120, .07) 0 30px, transparent 30px);
}
.shot__body::after {
  content: attr(data-label); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 8px 16px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.shot__body img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot__body img.is-broken { display: none; }
.shot--phone { max-width: 270px; margin-inline: auto; border-radius: 34px; border: 8px solid var(--navy); box-shadow: var(--shadow-lg); }
.shot--phone .shot__bar { display: none; }
.shot--phone .shot__body { aspect-ratio: 9 / 18; }
.shot--tg .shot__body { aspect-ratio: 9 / 15; }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.header.is-stuck {
  background: rgba(231, 236, 255, .88);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(1, 31, 95, .05);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1; color: var(--navy); }
.logo img { width: 34px; height: 34px; }
.logo__text { display: flex; flex-direction: column; }
.logo__name { font-size: 20px; font-weight: 900; letter-spacing: .14em; }
.logo__sub { margin-top: 3px; font-size: 10px; font-weight: 500; letter-spacing: .18em; color: var(--cyan); text-transform: uppercase; }

.nav {
  position: fixed; inset: var(--header-h) 0 auto; z-index: 49;
  display: grid; gap: 4px; padding: 16px 18px 24px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--r-md) var(--r-md);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.nav.is-open { opacity: 1; transform: none; visibility: visible; }
.nav a {
  padding: 12px 8px; border-bottom: 1px solid var(--line);
  font-size: 17px; font-weight: 500; color: var(--navy); text-decoration: none;
}
.nav .btn { margin-top: 12px; border-bottom: 0; color: var(--white); }
.nav .btn--ghost { color: var(--navy); border: 1px solid var(--line); }

.header__actions { display: none; align-items: center; gap: 8px; }

.burger {
  position: relative; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: var(--white); box-shadow: var(--shadow-sm); cursor: pointer;
}
.burger span, .burger::before, .burger::after {
  content: ''; position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px;
  background: var(--navy); transition: transform .25s var(--ease), opacity .2s;
}
.burger::before { top: 15px; }
.burger span { top: 21px; }
.burger::after { top: 27px; }
.burger.is-open::before { transform: translateY(6px) rotate(45deg); }
.burger.is-open span { opacity: 0; }
.burger.is-open::after { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   1. Hero
   ============================================================ */
.hero { position: relative; padding-top: calc(var(--header-h) + 28px); padding-bottom: 56px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 80% 40%, rgba(255, 255, 255, .85), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(221, 231, 250, .9), transparent 70%);
}
.hero__content { display: grid; gap: 18px; max-width: 760px; }
.hero__title {
  font-size: clamp(34px, 9.4vw, 68px);
  font-weight: 900; line-height: 1.04; letter-spacing: -.025em;
  color: var(--navy); text-wrap: balance;
}
.hero__title span { color: var(--cyan); }
.hero__sub { font-size: clamp(17px, 4.4vw, 21px); line-height: 1.4; color: var(--muted); max-width: 58ch; }
.hero__cta { display: grid; gap: 12px; margin-top: 6px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 500; color: var(--navy); white-space: nowrap;
}
.hero__trial { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.hero__trial svg { width: 18px; height: 18px; color: var(--up); flex: none; }

.hero__visual { position: relative; margin-top: 36px; }

/* демо-таблица в hero: чистый HTML */
.demo { background: var(--white); }
.demo__top { display: grid; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #FBFCFF, #F3F6FD); }
.demo__tabs { display: flex; gap: 6px; overflow: hidden; }
.demo__tabs span { padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 500; color: var(--muted); background: var(--white); border: 1px solid var(--line); white-space: nowrap; }
.demo__tabs span.on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.demo__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 8px 10px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
.stat small { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat b { display: block; font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.stat i { display: block; height: 4px; margin-top: 5px; border-radius: 2px; background: rgba(18, 59, 120, .1); overflow: hidden; }
.stat i::after { content: ''; display: block; height: 100%; width: var(--w, 60%); background: var(--up); border-radius: 2px; }
.stat--warn i::after { background: var(--down); }

.demo table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 11px; font-variant-numeric: tabular-nums; }
.demo th, .demo td { padding: 7px 6px; text-align: right; border-bottom: 1px solid rgba(1, 31, 95, .07); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo th { font-weight: 500; color: var(--muted); background: #F6F8FE; font-size: 10px; }
.demo th:first-child, .demo td:first-child { text-align: left; width: 36%; padding-left: 12px; }
.demo td:first-child { color: var(--navy); font-weight: 500; }
.demo tr.grp td { background: #EEF2FC; font-weight: 700; color: var(--navy); }
.demo tr.grp td:first-child { width: auto; }
.demo tr.grp .mp { margin-right: 6px; }
.demo .up { color: var(--up); background: var(--up-bg); font-weight: 500; }
.demo .down { color: var(--down); background: var(--down-bg); font-weight: 500; }
.demo .col-total { font-weight: 700; color: var(--navy); background: #F6F8FE; }
.demo .hide-s { display: none; }

/* ============================================================
   2. Problem
   ============================================================ */
.problem__grid { display: grid; gap: 14px; }
.problem__point { display: flex; align-items: flex-start; gap: 14px; padding: 20px; }
.problem__point h3 { font-size: 17px; margin-bottom: 4px; }
.problem__point p { color: var(--muted); font-size: 15px; }
.problem__after { margin-top: 28px; text-align: center; font-size: 18px; font-weight: 500; color: var(--navy); }

/* ============================================================
   3-6. Product blocks
   ============================================================ */
.module { display: grid; gap: 28px; align-items: center; }
.module + .module { margin-top: 64px; }
.module__text { display: grid; gap: 14px; align-content: center; }
.module__text .h3 { font-size: clamp(22px, 5.4vw, 30px); line-height: 1.18; }
.module__text > p { color: var(--muted); }
.module__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* вопрос -> ответ */
.qa { display: grid; gap: 10px; }
.qa__row { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.qa__q { font-size: 15px; font-weight: 700; color: var(--navy); }
.qa__a { font-size: 14px; color: var(--muted); }
.qa__a b.up { color: var(--up); }
.qa__a b.down { color: var(--down); }

/* ============================================================
   7. Extension
   ============================================================ */
.ext { display: grid; gap: 28px; align-items: center; padding: 22px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-lg); border: 1px solid rgba(1, 31, 95, .06); }
.ext__status { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   8. Telegram
   ============================================================ */
.tg { display: grid; gap: 28px; align-items: center; }
.notes { display: grid; gap: 10px; }
.note-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; }
.note-card p { font-size: 15px; color: var(--dark); }
.note-card b { color: var(--navy); }

/* ============================================================
   9. Comfort
   ============================================================ */
.comfort { display: grid; gap: 14px; }
.feature { display: grid; gap: 12px; padding: 22px; align-content: start; }
.feature h3 { font-size: 18px; }
.feature p { font-size: 15px; color: var(--muted); }
.comfort__mobile { margin-top: 36px; }

/* ============================================================
   10. Steps
   ============================================================ */
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.step__num {
  font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px var(--navy-2);
}
.step h3 { font-size: 18px; }
.step p { font-size: 15px; color: var(--muted); }

/* ============================================================
   11. Tariffs
   ============================================================ */
.trial {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin: 0 auto 24px; padding: 12px 18px; max-width: 640px;
  border-radius: var(--r-sm); background: var(--white); border: 1px dashed rgba(18, 148, 90, .5);
  text-align: center; font-size: 15px; font-weight: 500; color: var(--navy);
}
.period { display: flex; justify-content: center; margin-bottom: 28px; }
.period__list { display: inline-grid; grid-template-columns: repeat(4, auto); gap: 4px; padding: 5px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm); border: 1px solid var(--line); max-width: 100%; }
.period button {
  position: relative; padding: 10px 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--navy); transition: background-color .2s, color .2s;
}
.period button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.period button small { display: block; font-size: 11px; font-weight: 700; color: var(--up); line-height: 1.1; }
.period button[aria-pressed="true"] small { color: #8FE0B6; }
.period button small:empty::before { content: '\00a0'; }

.plans { display: grid; gap: 16px; }
.plan { position: relative; display: grid; gap: 18px; padding: 24px 22px; align-content: start; }
.plan--hit { border-color: rgba(21, 150, 176, .6); box-shadow: 0 18px 44px rgba(21, 150, 176, .18); background: linear-gradient(160deg, var(--white) 40%, #EAF6F9); }
.plan__flag { position: absolute; top: -12px; left: 22px; }
.plan__name { font-size: 22px; font-weight: 900; color: var(--navy); letter-spacing: -.01em; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; min-height: 44px; }
.plan__price b { font-size: 34px; font-weight: 900; line-height: 1; color: var(--navy); letter-spacing: -.02em; white-space: nowrap; }
.plan__price span { font-size: 14px; color: var(--muted); }
.plan__old { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.plan__disc { font-size: 12px; font-weight: 700; color: var(--up); background: var(--up-bg); padding: 2px 8px; border-radius: 99px; }
.plan__total { font-size: 13px; color: var(--muted); min-height: 20px; margin-top: -10px; }
.plan__limits { display: grid; gap: 0; font-size: 15px; }
.plan__limits li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.plan__limits li:last-child { border-bottom: 0; }
.plan__limits b { color: var(--navy); font-weight: 700; text-align: right; }
.plans__note { margin-top: 24px; text-align: center; }

/* ============================================================
   12. FAQ
   ============================================================ */
.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--white); border: 1px solid rgba(1, 31, 95, .06); border-radius: var(--r-sm); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 700; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 20px 18px; font-size: 15px; color: var(--muted); }

/* ============================================================
   13. Final CTA + Footer
   ============================================================ */
.final {
  position: relative; overflow: hidden; isolation: isolate;
  margin-inline: 10px; border-radius: var(--r-lg);
  padding-block: 56px;
  background:
    radial-gradient(70% 60% at 85% 30%, rgba(21, 150, 176, .28), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(18, 59, 120, .9), transparent 70%),
    linear-gradient(150deg, #0A2C73, var(--navy) 55%, #011647);
  color: var(--white);
}
.final::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .7;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 40px;
}
.final__inner { display: grid; gap: 16px; justify-items: center; text-align: center; max-width: 720px; margin-inline: auto; }
.final .h2 { color: var(--white); }
.final__sub { font-size: 17px; color: rgba(255, 255, 255, .8); }
.final__cta { display: grid; gap: 12px; width: 100%; max-width: 420px; margin-top: 8px; }

.footer { margin-top: 12px; padding-block: 48px 110px; background: var(--navy); color: rgba(255, 255, 255, .78); font-size: 14px; }
.footer__grid { display: grid; gap: 28px; }
.footer .logo { color: var(--white); }
.footer .logo__sub { color: #8FD7E3; }
.footer__about { margin-top: 12px; max-width: 38ch; }
.footer h4 { margin-bottom: 12px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: rgba(255, 255, 255, .85); font-size: 15px; text-decoration: none; }
.footer__links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: rgba(255, 255, 255, .55); }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(231, 236, 255, 0), rgba(231, 236, 255, .94) 35%);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { width: 100%; box-shadow: var(--shadow-cta); }

/* ---------- Legal pages ---------- */
.legal { padding-block: calc(var(--header-h) + 32px) 64px; }
.legal__box { max-width: 820px; margin-inline: auto; padding: 24px 20px; }
.legal h1 { font-size: clamp(26px, 6vw, 38px); font-weight: 900; color: var(--navy); line-height: 1.15; margin-bottom: 8px; }
.legal h2 { font-size: 20px; color: var(--navy); margin: 28px 0 8px; }
.legal p, .legal li { font-size: 15px; color: var(--dark); margin-bottom: 8px; }
.legal ul { list-style: disc; padding-left: 20px; }
.legal__toc { margin: 16px 0 24px; padding: 16px 20px; border-radius: 12px; background: var(--bg, #F3F5FF); border: 1px solid rgba(0, 0, 0, .06); }
.legal__toc b { display: block; margin-bottom: 8px; color: var(--navy); }
.legal__toc ol { margin: 0; padding-left: 22px; columns: 1; }
.legal__toc li { margin-bottom: 4px; }
.legal__toc a { color: var(--navy); text-underline-offset: 3px; }
.legal__box { line-height: 1.65; overflow-wrap: anywhere; }
.legal h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.legal ol.legal__list { padding-left: 22px; }
.legal mark, .todo { display: inline; padding: 1px 6px; border-radius: 6px; background: #FFF3CD; border: 1px dashed #C9A227; color: #7A5B00; font-weight: 500; }
.todo-old { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #FFF3CD; border: 1px dashed #C9A227; color: #7A5B00; font-size: 13px; font-weight: 500; }

/* ============================================================
   Tablet >= 768
   ============================================================ */
@media (min-width: 768px) {
  .container { padding-inline: 32px; }
  .section { padding-block: 88px; }
  .section-head { margin-bottom: 48px; }

  .hero { padding-bottom: 80px; }
  .hero__cta { grid-template-columns: auto auto; justify-content: start; }
  .hero__visual { margin-top: 48px; }
  .demo table { font-size: 12.5px; }
  .demo th { font-size: 11px; }
  .demo th, .demo td { padding: 9px 10px; }
  .demo .hide-s { display: table-cell; }
  .demo__top { padding: 14px 16px; }
  .stat b { font-size: 18px; }

  .problem__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .problem__point { flex-direction: column; padding: 26px; }

  .module { grid-template-columns: 1fr 1fr; gap: 48px; }
  .module--rev .module__text { order: 2; }
  .module + .module { margin-top: 88px; }

  .ext { grid-template-columns: .9fr 1.1fr; gap: 40px; padding: 36px; }
  .tg { grid-template-columns: 1fr 1fr; gap: 48px; }

  .comfort { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .step { padding: 28px; }

  .plans { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .period button { padding: 10px 22px; font-size: 15px; }

  .final { margin-inline: 24px; padding-block: 80px; }
  .final__cta { grid-template-columns: 1fr; max-width: 360px; }

  .footer { padding-bottom: 48px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }

  .sticky-cta { display: none; }
  .legal__box { padding: 40px; }
}

/* ============================================================
   Desktop >= 1024
   ============================================================ */
@media (min-width: 1024px) {
  :root { --header-h: 76px; }

  .nav {
    position: static; display: flex; align-items: center; gap: 4px; padding: 0;
    background: none; box-shadow: none; border-radius: 0;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav a { padding: 8px 12px; border: 0; border-radius: 99px; font-size: 15px; color: var(--navy-2); transition: color .2s, background-color .2s; }
  .nav a:hover { color: var(--navy); background: rgba(255, 255, 255, .7); }
  .nav .btn, .nav .nav__mobile { display: none; }
  .header__actions { display: flex; }
  .burger { display: none; }

  .hero { padding-bottom: 96px; }
  .hero__content { max-width: 860px; }

  .comfort { grid-template-columns: repeat(3, 1fr); }

  .plans { grid-template-columns: repeat(4, 1fr); }
  .plan { padding: 26px 20px; }
  .plan__price b { font-size: 30px; }

  .card--glass {
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
            backdrop-filter: blur(16px) saturate(1.2);
    border-color: rgba(255, 255, 255, .9);
  }
}

@media (min-width: 1280px) {
  .section { padding-block: 112px; }
  .final { max-width: 1320px; margin-inline: auto; }
  .module { gap: 72px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
