/* ==========================================================================
   Mente — сайт. Один файл стилей, без фреймворков.
   Порядок: токены → база → типографика → компоненты → секции → макет приложения
   ========================================================================== */

:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --paper-2: #f3f1ea;
  --ink: #0d1a26;
  --ink-2: #33414f;
  --muted: #5d6874;
  --line: #e3dfd4;
  --gold: #d8c49a;
  --gold-deep: #8a6a24;
  --good: #1f7a55;
  --warn: #b4532a;

  /* полоса продукта: цвета шагов, от зелёного к малиновому */
  --band-1: #0b6650;
  --band-2: #0a6375;
  --band-3: #1d4aa8;
  --band-4: #4b2fae;
  --band-5: #8f2a70;

  --radius: 20px;
  --radius-lg: 28px;
  --wrap: 1200px;
  --gutter: 24px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
}

/* --- база ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  font-feature-settings: 'tnum' 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- типографика --------------------------------------------------------- */
.h-display {
  font-weight: 300;
  font-size: clamp(40px, 6.2vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.025em;
}
.h-section {
  font-weight: 300;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.h-block { font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.012em; }
.h-soft { color: var(--muted); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.kicker { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 18px; }
.fine { font-size: 14px; color: var(--muted); line-height: 1.5; }
.prose p + p { margin-top: 1em; }
.prose p, .prose li { color: var(--ink-2); }

/* --- кнопки и ссылки ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 500; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #1d3042; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #e6d5b0; }
.btn--line { border: 1px solid currentColor; color: var(--ink); }
.btn--line:hover { background: rgba(13, 26, 38, .05); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #f1efe9; }
.btn--ghost-light { border: 1px solid rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .1); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
.link-arrow::after { content: '→'; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* --- шапка --------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 50; padding: 12px var(--gutter) 0; pointer-events: none; }
.topbar__inner {
  pointer-events: auto;
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  background: var(--ink); color: #fff;
  border-radius: 999px; padding: 8px 8px 8px 20px;
  transition: box-shadow .3s;
}
.topbar.is-scrolled .topbar__inner { box-shadow: 0 10px 30px -12px rgba(13, 26, 38, .45); }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--gold); --logo-ink: var(--ink); }
.logo__word { color: #fff; font-weight: 500; font-size: 19px; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; flex: 1; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  font-size: 15px; text-decoration: none; color: rgba(255, 255, 255, .78);
  transition: color .2s, background-color .2s;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__link[aria-current="page"] { color: #fff; }
.nav__trigger svg { transition: transform .2s; }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__group { position: relative; }
.menu {
  position: absolute; top: calc(100% + 14px); left: -12px; width: 380px;
  background: #fff; color: var(--ink); border-radius: var(--radius);
  padding: 10px; box-shadow: 0 24px 60px -20px rgba(13, 26, 38, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.nav__group.is-open .menu { opacity: 1; visibility: visible; transform: none; }
.menu__item { display: block; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
.menu__item:hover, .menu__item[aria-current="page"] { background: var(--paper-2); }
.menu__item b { display: block; font-weight: 500; font-size: 15px; }
.menu__item span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.menu__item--all { font-size: 14px; font-weight: 500; color: var(--gold-deep); border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; margin-top: 4px; padding-top: 12px; }
.topbar__cta { margin-left: auto; }
.burger { display: none; width: 40px; height: 40px; border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; transition: transform .25s var(--ease), top .25s; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .topbar__cta { margin-left: auto; }
  .nav {
    position: absolute; top: calc(100% + 8px); left: var(--gutter); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    background: var(--ink); border-radius: var(--radius); padding: 10px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { font-size: 17px; padding: 12px 14px; justify-content: space-between; }
  .menu { position: static; width: auto; box-shadow: none; transform: none; display: none; opacity: 1; visibility: visible; margin: 4px 0 8px; }
  .nav__group.is-open .menu { display: block; }
}
@media (max-width: 480px) {
  .topbar__cta { padding: 0 12px; font-size: 13px; }
  .logo__word { font-size: 17px; }
  .topbar__inner { gap: 10px; padding-left: 14px; }
}

/* --- появление при прокрутке (только крупные блоки) ----------------------- */
[data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(28px); }

/* --- главный экран ------------------------------------------------------- */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero h1 { max-width: 11em; }
.hero .lead { margin-top: 28px; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero__art { position: relative; aspect-ratio: 1 / 1; max-width: 560px; justify-self: end; width: 100%; }
.guilloche { position: absolute; inset: 0; width: 100%; height: 100%; color: #4a7a68; }
.guilloche g { transform-origin: 50% 50%; animation: spin 260s linear infinite; }
.guilloche g + g { animation-direction: reverse; animation-duration: 340s; color: var(--gold-deep); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__card {
  position: absolute; width: min(300px, 70%);
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 16px; box-shadow: 0 20px 50px -24px rgba(13, 26, 38, .35);
  font-size: 14px; line-height: 1.4;
}
.hero__card b { display: block; font-weight: 500; }
.hero__card span { color: var(--muted); }
.hero__card small { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 500; color: var(--gold-deep); }
.hero__card--a { left: 2%; top: 22%; }
.hero__card--b { right: 0; bottom: 18%; }
@media (max-width: 900px) {
  .hero { padding: 56px 0 40px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { justify-self: center; max-width: 440px; margin-top: 8px; }
}

/* строка площадок под главным экраном */
.works { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.works__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 40px; padding: 22px var(--gutter); }
.works__label { font-size: 14px; color: var(--muted); }
.works__list { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2); }

/* --- полоса продукта: липкий телефон + шаги ------------------------------ */
.band {
  --band: var(--band-1);
  position: relative; color: #fff;
  background-color: var(--band);
  transition: background-color 1s var(--ease);
}
.band::before, .band::after {
  content: ''; position: absolute; left: 0; right: 0; height: 180px; pointer-events: none;
}
.band::before { top: 0; background: linear-gradient(var(--paper), transparent); }
.band::after { bottom: 0; background: linear-gradient(transparent, var(--paper)); }
.band__shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .10), transparent 40%, rgba(0, 0, 0, .12));
}
.story { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; position: relative; padding: 140px var(--gutter); max-width: var(--wrap); margin: 0 auto; }
.story__steps { display: flex; flex-direction: column; }
.story__step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; max-width: 520px; padding: 40px 0; }
.story__step:first-child { min-height: 60vh; }
.story__n { font-size: 14px; font-weight: 500; opacity: .75; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.story__step h2 { margin-bottom: 20px; }
.story__step p { font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, .88); }
.story__step .link-arrow { margin-top: 28px; align-self: flex-start; }
.story__phone { position: sticky; top: calc(50vh - 330px); height: 660px; display: flex; align-items: center; justify-content: center; }
.story__step .phone { display: none; }
.story__phone .app { position: absolute; inset: 0; opacity: 0; transform: scale(.98); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.story__phone .app.is-active { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; padding: 120px var(--gutter) 140px; gap: 0; }
  .story__phone { display: none; }
  .story__step, .story__step:first-child { min-height: 0; padding: 48px 0; max-width: none; }
  .story__step .phone { display: block; margin: 36px auto 0; }
}

/* --- телефон ------------------------------------------------------------- */
.phone {
  position: relative; width: 300px; height: 620px; flex: none;
  border-radius: 46px; padding: 10px;
  background: #0a0b0d;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset, 0 40px 80px -30px rgba(0, 0, 0, .55);
}
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #111214; }
.phone__screen::before { content: ''; position: absolute; z-index: 2; top: 9px; left: 50%; width: 86px; height: 24px; margin-left: -43px; border-radius: 20px; background: #000; }
@media (max-width: 360px) { .phone { transform: scale(.9); transform-origin: top center; margin-bottom: -60px !important; } }

/* --- макет приложения Mente (тема «Стекло») ------------------------------ */
.app {
  --a-bg: #111214; --a-card: rgba(255, 255, 255, .055); --a-line: rgba(255, 255, 255, .08);
  --a-text: #f2efe8; --a-muted: #8e8b84; --a-gold: #d8c49a; --a-good: #7fc8a0; --a-warn: #e8a27c;
  height: 100%; display: flex; flex-direction: column; gap: 8px;
  padding: 44px 14px 0; background: radial-gradient(120% 60% at 50% 0%, #1c1d21 0%, var(--a-bg) 60%);
  color: var(--a-text); font-size: 11.5px; line-height: 1.35; text-align: left;
}
.app b { font-weight: 500; }
.app__status { position: absolute; top: 12px; left: 26px; right: 22px; display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; }
.app__status-r { display: flex; gap: 3px; align-items: center; }
.app__status-r i { width: 4px; height: 7px; background: var(--a-text); border-radius: 1px; }
.app__status-r i:nth-child(2) { height: 9px; }
.app__status-r i:nth-child(3) { width: 16px; height: 8px; border-radius: 2px; }
.app__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 6px; font-size: 14px; }
.app__head--left { justify-content: flex-start; gap: 10px; font-size: 16px; }
.app__arrow { color: var(--a-muted); font-size: 16px; }
.app__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app__card { background: var(--a-card); border: 1px solid var(--a-line); border-radius: 14px; padding: 10px 11px; display: flex; flex-direction: column; gap: 2px; }
.app__label { color: var(--a-muted); font-size: 10.5px; }
.app__num { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.app__num--xl { font-size: 24px; }
.app__delta { font-size: 10.5px; color: var(--a-muted); }
.app__delta--good { color: var(--a-good); }
.app__spark svg { width: 100%; height: 44px; margin-top: 4px; }
.app__spark-line { fill: none; stroke: var(--a-gold); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.app__spark-area { fill: rgba(216, 196, 154, .12); }
.app__title { font-size: 12.5px; font-weight: 500; margin-top: 4px; padding: 0 2px; }
.app__event { display: flex; align-items: center; gap: 8px; justify-content: space-between; background: var(--a-card); border: 1px solid var(--a-line); border-radius: 12px; padding: 8px 10px; }
.app__event div { display: flex; flex-direction: column; }
.app__event span { color: var(--a-muted); font-size: 10.5px; }
.app__event--warn { border-color: rgba(232, 162, 124, .35); }
.app__event--warn b { color: var(--a-warn); }
.app__chip { font-style: normal; font-size: 10px; font-weight: 500; color: #111; background: var(--a-gold); border-radius: 999px; padding: 4px 8px; white-space: nowrap; }
.app__tabbar { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 0 22px; border-top: 1px solid var(--a-line); margin-left: -14px; margin-right: -14px; background: rgba(17, 18, 20, .9); }
.app__tabbar span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9px; color: var(--a-muted); }
.app__tabbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.app[data-tab="home"] [data-t="home"], .app[data-tab="chat"] [data-t="chat"], .app[data-tab="save"] [data-t="save"], .app[data-tab="more"] [data-t="more"] { color: var(--a-gold); }
.app__total { padding: 12px; }
.app__list { background: var(--a-card); border: 1px solid var(--a-line); border-radius: 14px; overflow: hidden; }
.app__row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 9px; padding: 8px 10px; }
.app__row + .app__row { border-top: 1px solid var(--a-line); }
.app__row div { display: flex; flex-direction: column; }
.app__row span { color: var(--a-muted); font-size: 10.5px; }
.app__row strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.app__row--warn span { color: var(--a-warn); }
.app__ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 600; background: rgba(216, 196, 154, .14); color: var(--a-gold); }
.app__plus { color: var(--a-good); }
.app__note { background: rgba(216, 196, 154, .1); border: 1px solid rgba(216, 196, 154, .25); border-radius: 12px; padding: 9px 11px; }
.app__note b { color: var(--a-gold); }
.app__note--dim { background: none; border-style: dashed; color: var(--a-muted); text-align: center; }
.app__search { display: flex; align-items: center; gap: 8px; background: var(--a-card); border: 1px solid var(--a-line); border-radius: 12px; padding: 10px 11px; font-size: 12.5px; }
.app__search svg { width: 15px; height: 15px; fill: none; stroke: var(--a-muted); stroke-width: 1.6; }
.app__meta { color: var(--a-muted); font-size: 10.5px; padding: 0 2px; }
.app__best { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; background: linear-gradient(160deg, rgba(216, 196, 154, .2), rgba(216, 196, 154, .05)); border: 1px solid rgba(216, 196, 154, .35); }
.app__tag { align-self: flex-start; font-size: 9.5px; font-weight: 600; color: #111; background: var(--a-gold); border-radius: 6px; padding: 2px 6px; margin-bottom: 4px; }
.app__tabs { display: flex; gap: 6px; }
.app__tabs span { padding: 5px 10px; border-radius: 999px; background: var(--a-card); color: var(--a-muted); font-size: 10.5px; }
.app__tabs .is-on { background: var(--a-text); color: #111; }
.app__deal { background: var(--a-card); border: 1px solid var(--a-line); border-radius: 14px; padding: 10px 11px; display: flex; flex-direction: column; gap: 3px; }
.app__deal-top { display: flex; justify-content: space-between; color: var(--a-muted); font-size: 10.5px; }
.app__deal-top em { font-style: normal; color: var(--a-gold); font-weight: 600; }
.app__price { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.app__price s { font-size: 11px; color: var(--a-muted); font-weight: 400; margin-left: 4px; }
.app__code { align-self: flex-start; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; letter-spacing: .06em; border: 1px dashed rgba(216, 196, 154, .6); color: var(--a-gold); border-radius: 8px; padding: 4px 8px; }
.app__code small { font-family: var(--font); letter-spacing: 0; color: var(--a-muted); font-size: 9.5px; margin-left: 4px; }
.app__src { color: var(--a-muted); font-size: 10px; }
.app__ok { flex-direction: row; align-items: center; gap: 10px; }
.app__ok div { display: flex; flex-direction: column; }
.app__ok span:not(.app__dot) { color: var(--a-muted); font-size: 10.5px; }
.app__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a-good); box-shadow: 0 0 0 4px rgba(127, 200, 160, .15); flex: none; }
.app__chat { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.app__msg { max-width: 86%; background: var(--a-card); border: 1px solid var(--a-line); border-radius: 14px 14px 14px 4px; padding: 8px 10px; }
.app__msg--me { align-self: flex-end; background: var(--a-gold); color: #151515; border: 0; border-radius: 14px 14px 4px 14px; }
.app__msg-btn { display: block; margin-top: 7px; text-align: center; border-radius: 8px; padding: 5px; background: rgba(216, 196, 154, .16); color: var(--a-gold); font-weight: 500; font-size: 10.5px; }
.app__input { margin-top: auto; border: 1px solid var(--a-line); border-radius: 999px; padding: 9px 12px; color: var(--a-muted); margin-bottom: 4px; }
.app__input + .app__tabbar { margin-top: 8px; }

/* --- «уведомления» и честные цифры -------------------------------------- */
.signals { padding: 120px 0 110px; }
.signals__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.signals__chips { position: relative; height: 460px; }
.chip {
  position: absolute; display: flex; gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 16px 12px 12px; box-shadow: 0 16px 40px -24px rgba(13, 26, 38, .4);
  font-size: 14px; line-height: 1.35; max-width: 300px;
}
.chip i { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: 14px; }
.chip b { display: block; font-weight: 500; }
.chip span { color: var(--muted); font-size: 13px; }
.chip:nth-child(1) { top: 0; left: 4%; }
.chip:nth-child(1) i { background: #fbe9df; color: var(--warn); }
.chip:nth-child(2) { top: 26%; left: 34%; }
.chip:nth-child(2) i { background: #f3ecdc; color: var(--gold-deep); }
.chip:nth-child(3) { top: 52%; left: 0; }
.chip:nth-child(3) i { background: #e2f1e9; color: var(--good); }
.chip:nth-child(4) { top: 78%; left: 26%; }
.chip:nth-child(4) i { background: #e5ebf7; color: var(--band-3); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; margin-top: 48px; }
.fact { border-top: 1px solid var(--line); padding-top: 16px; }
.fact b { display: block; font-weight: 300; font-size: clamp(38px, 4vw, 54px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fact b small { font-size: .45em; letter-spacing: 0; margin-left: 4px; }
.fact span { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); line-height: 1.45; }
@media (max-width: 900px) {
  .signals { padding: 72px 0; }
  .signals__grid { grid-template-columns: 1fr; gap: 40px; }
  .signals__chips { height: auto; display: flex; flex-direction: column; gap: 10px; order: 2; }
  .chip { position: static; max-width: none; }
  .chip:nth-child(even) { margin-left: 24px; }
}

/* --- тёмный блок бота ---------------------------------------------------- */
.dark { padding: 0 var(--gutter); }
.dark__card {
  max-width: var(--wrap); margin: 0 auto; border-radius: 36px;
  background: radial-gradient(90% 120% at 100% 0%, #1b2b5a 0%, var(--ink) 55%);
  color: #fff; padding: 88px 72px; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; align-items: center;
}
.dark__card .lead { color: rgba(255, 255, 255, .8); margin-top: 24px; }
.dark__list { margin-top: 28px; display: grid; gap: 12px; color: rgba(255, 255, 255, .85); }
.dark__list li { padding-left: 22px; position: relative; }
.dark__list li::before { content: ''; position: absolute; left: 0; top: .65em; width: 10px; height: 1.5px; background: var(--gold); }
@media (max-width: 900px) {
  .dark__card { grid-template-columns: 1fr; padding: 56px 24px; border-radius: 28px; gap: 44px; }
}

/* переписка в Telegram */
.tg { background: #17212b; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); font-size: 14.5px; line-height: 1.45; }
.tg__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #1f2c38; }
.tg__head div { display: flex; flex-direction: column; line-height: 1.25; }
.tg__head span { font-size: 12.5px; color: #7f91a4; }
.tg__ava { color: var(--gold); --logo-ink: #17212b; }
.tg__ava .logo__word { display: none; }
.tg__ava svg { width: 36px; height: 36px; }
.tg__body { padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 12px; background: #0e1621; }
.tg__msg { align-self: flex-start; max-width: 92%; background: #182533; border-radius: 16px 16px 16px 6px; padding: 10px 12px 8px; position: relative; }
.tg__msg p { color: #e9eef3; }
.tg__msg b { font-weight: 600; }
.tg__btn { display: block; margin-top: 10px; text-align: center; padding: 8px; border-radius: 10px; background: rgba(106, 178, 242, .14); color: #6ab2f2; font-weight: 500; font-size: 14px; }
.tg__msg time { display: block; text-align: right; font-size: 11.5px; color: #6d7f8f; margin-top: 4px; }

/* --- примеры экономии (карусель) ----------------------------------------- */
.cases { padding: 120px 0 40px; }
.cases__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.cases__head p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.cases__nav { display: flex; gap: 8px; }
.round {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; background: #fff;
  transition: border-color .2s, opacity .2s;
}
.round:hover { border-color: var(--ink); }
.round:disabled { opacity: .35; cursor: default; }
.cases__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 24px; margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: none;
}
.cases__track::-webkit-scrollbar { display: none; }
.case { scroll-snap-align: start; display: flex; flex-direction: column; }
.case__top {
  aspect-ratio: 4 / 3; border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between; color: #fff;
}
.case__top small { font-size: 13px; opacity: .8; }
.case__top b { font-weight: 300; font-size: 46px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.case__top b span { font-size: 16px; letter-spacing: 0; opacity: .85; display: block; margin-top: 8px; font-weight: 400; }
.case:nth-child(1) .case__top { background: var(--band-1); }
.case:nth-child(2) .case__top { background: var(--band-3); }
.case:nth-child(3) .case__top { background: var(--band-4); }
.case:nth-child(4) .case__top { background: var(--band-5); }
.case h3 { font-weight: 500; font-size: 18px; margin: 18px 0 8px; }
.case p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.case .link-arrow { margin-top: 14px; font-size: 15px; align-self: flex-start; }
@media (min-width: 1100px) { .cases__track { grid-auto-columns: calc((100% - 60px - 2 * var(--gutter)) / 4); } }

/* --- финальный блок «Как начать» ---------------------------------------- */
.start { padding: 120px 0; background: linear-gradient(180deg, var(--paper) 0%, #e4f1ea 45%, #dbeaf3 100%); }
.start__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 64px; align-items: center; }
.start .lead { margin-top: 24px; }
.start__card { background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: 0 30px 70px -40px rgba(13, 26, 38, .45); }
.start__card h3 { font-weight: 500; font-size: 20px; margin-bottom: 22px; }
.start__card .btn { margin-top: 28px; }
.start__card .fine { margin-top: 14px; text-align: center; }
.numbered { counter-reset: n; display: grid; gap: 18px; }
.numbered li { counter-increment: n; position: relative; padding-left: 44px; line-height: 1.45; }
.numbered li::before {
  content: counter(n); position: absolute; left: 0; top: -2px;
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.numbered b { font-weight: 500; display: block; }
.numbered span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .start { padding: 72px 0; }
  .start__grid { grid-template-columns: 1fr; gap: 36px; }
  .start__card { padding: 24px; }
}

/* --- полоса о данных + подвал ------------------------------------------- */
.consent { background: #dbeaf3; padding: 0 0 40px; }
.consent__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 14px 28px; font-size: 14.5px; }
.consent .link-arrow { font-size: 14.5px; color: var(--band-3); }
.footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 72px 0 36px; font-size: 15px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; }
.footer__brand p { margin: 18px 0 24px; max-width: 26em; line-height: 1.55; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer__cols h2 { font-size: 13px; font-weight: 500; color: #fff; margin-bottom: 14px; }
.footer__cols a { display: block; text-decoration: none; padding: 5px 0; transition: color .2s; }
.footer__cols a:hover { color: #fff; }
.footer__bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; gap: 16px 40px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.footer__bottom p:last-child { max-width: 60em; }
@media (max-width: 900px) {
  .consent { padding-bottom: 24px; }
  .consent__inner { border-radius: 20px; padding: 16px 20px; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* ==========================================================================
   Внутренние страницы
   ========================================================================== */
.page-hero { padding: 88px 0 64px; }
.page-hero h1 { max-width: 14em; }
.page-hero .lead { margin-top: 24px; }

/* верх страницы функции: цветная полоса с телефоном */
.p-hero { position: relative; z-index: 1; color: #fff; background: var(--band); padding: 88px 0 0; margin-top: -62px; }
.p-hero .band__shine { z-index: 0; }
.p-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: end; padding-top: 56px; }
.p-hero__text { padding-bottom: 96px; }
.p-hero .kicker { color: rgba(255, 255, 255, .75); }
.p-hero .lead { color: rgba(255, 255, 255, .88); margin-top: 24px; }
.p-hero .phone { margin-bottom: -150px; animation: rise 1s var(--ease) .1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
.p-hero + section { padding-top: 200px; }
@media (max-width: 900px) {
  .p-hero { padding-top: 76px; }
  .p-hero__grid { grid-template-columns: 1fr; gap: 0; padding-top: 32px; }
  .p-hero__text { padding-bottom: 48px; }
  .p-hero .phone { margin: 0 auto -150px; }
}
.theme-1 { --band: var(--band-1); }
.theme-2 { --band: var(--band-2); }
.theme-3 { --band: var(--band-3); }
.theme-4 { --band: var(--band-4); }
.theme-5 { --band: var(--band-5); }

.section { padding: 96px 0; }
.section--tint { background: var(--paper-2); }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__head p { margin-top: 18px; }

/* шаги «как это работает» */
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.howto li { counter-increment: s; border-top: 1px solid var(--ink); padding-top: 20px; }
.howto li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.howto h3 { font-weight: 500; font-size: 19px; margin-bottom: 10px; }
.howto p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 800px) { .howto { grid-template-columns: 1fr; gap: 28px; } }

/* подробности: список определений в две колонки */
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.details > div { padding: 24px 0; border-top: 1px solid var(--line); }
.details dt { font-weight: 500; font-size: 17px; margin-bottom: 6px; }
.details dd { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 800px) { .details { grid-template-columns: 1fr; } }

/* Free / Premium для конкретной функции */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tier { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); background: #fff; }
.tier--premium { background: var(--ink); color: #fff; border-color: var(--ink); }
.tier h3 { font-weight: 500; font-size: 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tier h3 small { font-size: 14px; font-weight: 400; color: var(--muted); }
.tier--premium h3 small { color: var(--gold); }
.tier ul { margin-top: 18px; display: grid; gap: 10px; }
.tier li { padding-left: 24px; position: relative; font-size: 16px; line-height: 1.45; }
.tier li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); opacity: .8; }
.tier--premium li::before { color: var(--gold); }
@media (max-width: 700px) { .tiers { grid-template-columns: 1fr; } }

/* ссылки на соседние страницы */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { display: block; text-decoration: none; padding: 22px 24px; border-radius: var(--radius); background: var(--paper-2); transition: background-color .2s; }
.related a:hover { background: #ebe7dc; }
.related b { display: block; font-weight: 500; font-size: 17px; }
.related span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.45; }
@media (max-width: 800px) { .related { grid-template-columns: 1fr; } }

/* список всех функций */
.fgroup { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; padding: 56px 0; border-top: 1px solid var(--line); }
.fgroup:first-of-type { border-top: 0; padding-top: 0; }
.fgroup__head p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.flist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.flist h3 { font-weight: 500; font-size: 18px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.flist p { color: var(--ink-2); font-size: 16px; margin-top: 6px; }
.flist a { color: var(--band-3); }
.badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 6px; background: var(--paper-2); color: var(--muted); white-space: nowrap; }
.badge--premium { background: var(--ink); color: var(--gold); }
@media (max-width: 900px) {
  .fgroup { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .flist { grid-template-columns: 1fr; }
}

/* тарифы */
.switch { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 4px; gap: 2px; }
.switch button { padding: 8px 16px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: background-color .2s, color .2s; }
.switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(13, 26, 38, .12); }
.switch small { color: var(--good); font-weight: 500; margin-left: 4px; }
.switches { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.plan { border-radius: var(--radius-lg); padding: 36px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.plan--premium { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan h2 { font-weight: 400; font-size: 26px; }
.plan__tag { color: var(--muted); margin-top: 4px; }
.plan--premium .plan__tag { color: rgba(255, 255, 255, .7); }
.plan__price { margin: 28px 0 4px; font-weight: 300; font-size: 56px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: 18px; letter-spacing: 0; margin-left: 6px; font-weight: 400; opacity: .75; }
.plan__sub { font-size: 14.5px; color: var(--muted); min-height: 1.5em; }
.plan--premium .plan__sub { color: rgba(255, 255, 255, .65); }
.plan ul { margin: 28px 0 32px; display: grid; gap: 11px; }
.plan li { padding-left: 24px; position: relative; line-height: 1.45; }
.plan li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); opacity: .7; }
.plan--premium li::before { color: var(--gold); opacity: 1; }
.plan .btn { margin-top: auto; }
.plan .fine { margin-top: 12px; }
.plan--premium .fine { color: rgba(255, 255, 255, .6); }
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } .plan { padding: 28px 24px; } }

.table-wrap { overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-weight: 500; font-size: 14px; color: var(--muted); }
.compare td:nth-child(n+2), .compare th:nth-child(n+2) { width: 24%; }
.compare tbody th { font-weight: 400; }
.no { color: #a9a39a; }

.honest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.honest h3 { font-weight: 500; font-size: 18px; margin-bottom: 8px; }
.honest p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 800px) { .honest { grid-template-columns: 1fr; gap: 24px; } }

/* вопросы и ответы */
.faq { max-width: 820px; }
.faq h2 { font-weight: 400; font-size: 24px; margin: 56px 0 8px; }
.faq h2:first-child { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-size: 18px; font-weight: 500; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 28px; width: 10px; height: 10px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translate(0, 4px) rotate(-135deg); }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); max-width: 44em; }
.faq details > div p + p { margin-top: .8em; }
.faq a { color: var(--band-3); }

/* юридические тексты */
.doc { max-width: 760px; padding-bottom: 96px; }
.doc h2 { font-weight: 500; font-size: 22px; margin: 48px 0 14px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: .9em; }
.doc ul { list-style: disc; padding-left: 1.3em; margin: .8em 0; display: grid; gap: 6px; }
.doc a { color: var(--band-3); }
.doc__meta { color: var(--muted); font-size: 15px; margin-top: 16px; }

/* принципы безопасности */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.principle { padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.principle b { display: block; font-weight: 500; font-size: 19px; margin-bottom: 10px; }
.principle p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 800px) { .principles { grid-template-columns: 1fr; } .principle { padding: 24px; } }

/* 404 */
.notfound { padding: 120px 0 140px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
}

/* --- вспомогательные ----------------------------------------------------- */
.lead--gap { margin-top: 22px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; align-items: start; }
.split .tg { position: sticky; top: 110px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .split .tg { position: static; } }
.details--one { grid-template-columns: 1fr; margin-top: 32px; }
.compare--plain td, .compare--plain th { width: auto !important; }
.compare--plain tbody th { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 15px; white-space: nowrap; width: 30% !important; }
.section--flush { padding-top: 0; }
.faq__note { margin-top: 32px; }
.cases.is-static .cases__nav { visibility: hidden; }
.star { display: inline-block; width: .5em; height: .5em; margin-left: .12em; vertical-align: .32em; fill: var(--gold); }
