/* =========================================================================
   ПОТОК — лендинг интегратора Битрикс24
   Дизайн-токены и стили. Правки контента — в index.html (ищите TODO).
   Структура CSS:
     1. Токены (:root)        4. Хедер / навигация
     2. База / типографика    5. Секции (по порядку страницы)
     3. Утилиты / компоненты  6. Адаптив
   ========================================================================= */

/* ---------- 1. ТОКЕНЫ ---------------------------------------------------- */
:root {
  /* Палитра — чистая, светлая: белый фон, прохладные нейтрали, тёмный текст.
     Тёплый янтарь оставлен единственным акцентом (тёплое на холодном). */
  --paper:        #FFFFFF;   /* основной фон  */
  --paper-2:      #F4F5F8;   /* фон чередующихся секций */
  --paper-3:      #E9ECF2;   /* плашки, чипы, заливки, треки */
  --card:         #FFFFFF;   /* фон карточек */
  --ink:          #28282C;   /* заголовки, тёмный текст */
  --ink-2:        #4C4C4F;   /* основной текст */
  --ink-3:        #9A9AA3;   /* приглушённый / подписи */
  --line:         rgba(40, 40, 44, .10);
  --line-strong:  rgba(40, 40, 44, .17);

  /* Монохром: «акцент» — это нейтральный графит, без рыжих оттенков */
  --accent:        #2E2E33;   /* тёмный акцент: заливки, полосы, точки */
  --accent-soft:   #C9CCD2;   /* мягкий акцент / подсветка */
  --accent-wash:   #EEF0F3;   /* очень светлая заливка */
  --accent-strong: #56565B;   /* акцент-текст/иконки на светлом */
  --danger:       #B23B2E;

  --night:        #1E1E22;   /* инверсная секция (ИИ) */
  --night-2:      #28282C;
  --accent-light: #D8DBE1;   /* светлый акцент на тёмном */
  --cream:        #F2F2F4;   /* светлый текст на тёмном */
  --cream-2:      #9FA0A8;   /* приглушённый текст на тёмном */

  /* Типографика */
  --f-display: "Onest", system-ui, -apple-system, sans-serif;
  --f-body:    "Onest", system-ui, -apple-system, sans-serif;
  --f-num:     "Onest", system-ui, sans-serif;
  --f-mono:    "Onest", system-ui, -apple-system, sans-serif;

  /* Радиусы и тени — мягкие, премиальные */
  --r-sm: 12px;
  --r:    20px;
  --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(40,40,44,.04), 0 4px 14px rgba(40,40,44,.06);
  --shadow:    0 2px 6px rgba(40,40,44,.05), 0 18px 50px -20px rgba(40,40,44,.16);
  --shadow-lift: 0 18px 50px -20px rgba(40,40,44,.22);

  /* Сетка */
  --container: 1180px;
  --gutter: clamp(1.25rem, 5vw, 2.75rem);
  --section-y: clamp(3.5rem, 6vw, 5rem); /* ≤80px */

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. БАЗА / ТИПОГРАФИКА --------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--f-body);
  font-size: clamp(1rem, .55vw + .9rem, 1.1rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.55rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.3rem, 1.6vw, 1.55rem); font-weight: 700; letter-spacing: -0.02em; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2.5px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. УТИЛИТЫ / КОМПОНЕНТЫ ------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--page  { padding-block: 2.5rem; }

/* Надзаголовок-метка (моно) */
.eyebrow {
  font-family: var(--f-mono);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 1.6em; height: 1px;
  background: var(--accent);
}
.eyebrow--center::after {
  content: "";
  width: 1.6em; height: 1px;
  background: var(--accent);
}

.section-head { max-width: 46ch; }
.section-head--center { max-width: 56ch; margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 1rem; }
.section-head .lede { margin-top: 1.1rem; font-size: 1.12rem; color: var(--ink-2); }
.section-head--center .eyebrow { justify-content: center; }

/* Двухколоночная шапка секции: заголовок слева, пояснение справа —
   занимает всю ширину и убирает пустоту в правой части. */
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.2rem clamp(2rem, 5vw, 4rem); align-items: end; }
.section-head--split h2 { margin-top: 1.1rem; max-width: 18ch; }
.section-head--split .lede { margin-top: 0; padding-bottom: .5rem; font-size: 1.12rem; color: var(--ink-2); max-width: 40ch; }
@media (max-width: 860px) {
  .section-head--split { grid-template-columns: 1fr; align-items: start; }
  .section-head--split .section-head__lead { max-width: none; }
}

.lede { color: var(--ink-2); }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .95em 1.5em;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow); }

/* Светлая кнопка — выделяется на тёмных секциях (ИИ, финал, тариф «Максимум») */
.btn--accent {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(40,40,44,.04); }

.btn--lg { padding: 1.1em 1.9em; font-size: 1.05rem; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Карточка */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.4rem, 2.4vw, 2rem);
}

/* Лёгкий подъём белых карточек, чтобы читались на белом фоне */
.card, .problem, .outcome, .case, .plan, .stat, .review, .step__result {
  box-shadow: var(--shadow-sm);
}

/* Чип / тег */
.chip {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--f-mono);
  font-size: .8rem;
  font-weight: 500;
  padding: .42em .85em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

/* Анимация появления */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* ---------- 4. ХЕДЕР ---------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  gap: 2rem;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.04em; color: var(--ink); white-space: nowrap; }
.brand__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}
.brand__mark svg { width: 22px; height: 22px; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a { font-size: .95rem; font-weight: 500; color: var(--ink-2); transition: color .2s; white-space: nowrap; }
.nav__links a:hover { color: var(--ink); }
.header__cta { display: flex; align-items: center; gap: .9rem; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; padding: 0; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.8px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed; inset: 72px 0 0; z-index: 99;
  background: var(--paper);
  padding: 2rem var(--gutter) 3rem;
  display: flex; flex-direction: column; gap: .25rem;
  transform: translateY(-12px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
body.menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a:not(.btn) { font-family: var(--f-display); font-weight: 600; font-size: 1.4rem; color: var(--ink); padding: .7rem 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 1.6rem; justify-content: center; color: var(--paper); }

/* ---------- 5. HERO (центрированный + мокап Битрикс24) ------------------ */
.hero { position: relative; padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: 0; overflow: hidden; background: linear-gradient(180deg, var(--paper-2), var(--paper) 62%); }
.hero::before {
  content: ""; position: absolute; top: -32%; left: 50%; transform: translateX(-50%);
  width: 95vw; height: 60vw; max-width: 1100px; max-height: 680px;
  background: radial-gradient(closest-side, rgba(40,40,44,.05), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero__inner {
  position: relative; z-index: 1;
  text-align: center;
  padding-top: clamp(1rem, 3vw, 2.4rem);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .04em;
  padding: .5em .95em; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--ink-2); margin-bottom: 1.8rem; box-shadow: var(--shadow-sm);
}
.hero__badge b { color: var(--ink); font-weight: 700; }
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 5.4rem); letter-spacing: -0.04em; max-width: 16ch; margin: 0 auto 1.4rem; }
.hero h1 .u { background: linear-gradient(transparent 60%, var(--accent-soft) 60%); padding-inline: .05em; }
.hero__sub { font-size: clamp(1.08rem, 1.4vw, 1.32rem); max-width: 60ch; margin-inline: auto; color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .8rem 1rem; margin-top: 2.2rem; }

/* Полноширинный мокап интерфейса Битрикс24 под героем */
.hero__shot { position: relative; z-index: 1; margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.hero__frame {
  max-width: 1160px; margin-inline: auto;
  border: 1px solid var(--line); border-bottom: 0;
  border-radius: 16px 16px 0 0; overflow: hidden;
  max-height: clamp(360px, 52vw, 560px);
  box-shadow: 0 -1px 0 rgba(255,255,255,.7), 0 40px 80px -44px rgba(40,40,44,.45);
  background: var(--card);
}

/* Мокап Битрикс24 */
.b24 { min-width: 920px; }
.b24__bar { display: flex; align-items: center; gap: 1.2rem; padding: .7rem 1.1rem; border-bottom: 1px solid var(--line); }
.b24__brand { display: flex; align-items: center; gap: .5em; font-family: var(--f-display); font-weight: 800; font-size: .95rem; color: var(--ink); letter-spacing: -0.02em; }
.b24__brand .lg { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .66rem; font-weight: 700; }
.b24__nav { display: flex; gap: 1.15rem; font-size: .8rem; color: var(--ink-3); }
.b24__nav .on { color: var(--ink); font-weight: 600; }
.b24__user { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.b24__user .ava { width: 26px; height: 26px; border-radius: 50%; background: var(--paper-3); }
.b24__sub { display: flex; align-items: center; gap: 1rem; padding: .75rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.b24__title { font-family: var(--f-display); font-weight: 700; font-size: .95rem; color: var(--ink); }
.b24__title span { color: var(--ink-3); font-weight: 500; }
.b24__tools { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.b24__search { font-family: var(--f-mono); font-size: .72rem; color: var(--ink-3); border: 1px solid var(--line); border-radius: 8px; padding: .42em .8em; background: var(--card); }
.b24__add { font-size: .76rem; font-weight: 600; color: #fff; background: var(--ink); border-radius: 8px; padding: .5em .85em; }
.b24__board { display: grid; grid-template-columns: repeat(5, minmax(186px, 1fr)); gap: .8rem; padding: 1rem 1.1rem; background: var(--paper-2); }
.b24col__h { display: flex; align-items: center; gap: .5em; margin-bottom: .7rem; font-size: .8rem; color: var(--ink); }
.b24col__h .nm { font-weight: 600; }
.b24col__h .cnt { color: var(--ink-3); }
.b24col__h .sum { margin-left: auto; font-family: var(--f-mono); font-size: .64rem; color: var(--ink-3); }
.b24col__bar { height: 4px; border-radius: 99px; margin-bottom: .75rem; }
.b24card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .65rem .75rem; margin-bottom: .55rem; box-shadow: var(--shadow-sm); }
.b24card .co { display: block; font-size: .8rem; font-weight: 600; color: var(--ink); }
.b24card .amt { font-family: var(--f-num); font-weight: 700; font-size: .9rem; color: var(--ink); margin: .2rem 0; }
.b24card .who { display: flex; align-items: center; gap: .45em; font-size: .7rem; color: var(--ink-3); }
.b24card .who .av { width: 16px; height: 16px; border-radius: 50%; background: var(--paper-3); flex: none; }

/* ---------- TRUST / ЛОГОТИПЫ ------------------------------------------- */
.trust { border-block: 1px solid var(--line); background: var(--paper-2); }
.trust__inner { display: flex; align-items: center; gap: 2rem 3rem; flex-wrap: wrap; justify-content: space-between; padding-block: 1.6rem; }
.trust__label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.trust__logos { display: flex; align-items: center; gap: 2.4rem; flex-wrap: wrap; }
.trust__logos span { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--ink-3); opacity: .65; letter-spacing: -0.02em; }
.trust__logos img { height: 32px; width: auto; max-width: 140px; object-fit: contain; opacity: .72; filter: grayscale(1); transition: opacity .25s, filter .25s; }
.trust__logos img:hover { opacity: 1; filter: none; }
.partner-badge { display: inline-flex; align-items: center; gap: .55em; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.partner-badge svg { width: 18px; height: 18px; color: var(--accent-strong); }

/* ---------- ПРОБЛЕМЫ ---------------------------------------------------- */
.problems { background: var(--paper); }
.problems__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.problem {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.6rem 1.5rem 1.5rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.problem:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.problem__n { font-family: var(--f-mono); font-size: .72rem; color: var(--ink-3); letter-spacing: .1em; }
.problem h3 { margin: .9rem 0 .5rem; font-size: 1.18rem; }
.problem p { font-size: .98rem; color: var(--ink-2); }
.problem__icon { position: absolute; top: 1.5rem; right: 1.4rem; width: 30px; height: 30px; color: var(--accent-strong); opacity: .85; }

/* ---------- ЧТО ИЗМЕНИТСЯ (ИСХОДЫ) ------------------------------------- */
.outcomes { background: var(--paper-2); position: relative; }
.outcomes__layout { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-top: 3rem; }
.outcomes__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.outcome {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem;
  transition: border-color .3s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.outcome:hover { border-color: var(--accent-soft); box-shadow: var(--shadow); transform: translateY(-3px); }
.outcome__ic { flex: none; width: 46px; height: 46px; border-radius: 13px; background: var(--accent-wash); color: var(--accent-strong); display: grid; place-items: center; }
.outcome__ic svg { width: 23px; height: 23px; }
.outcome h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.outcome p { font-size: .96rem; }
.outcome--wide { grid-column: 1 / -1; }

/* ---------- ИИ / АВТОМАТИЗАЦИЯ (инверсная секция) ---------------------- */
.ai {
  background: var(--night); color: var(--cream);
  position: relative; overflow: hidden;
  margin-block: 0;
}
.ai::before {
  content: ""; position: absolute; top: -20%; right: -10%;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(216,219,225,.28), transparent 70%);
  pointer-events: none;
}
.ai::after { /* тонкая сетка */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(closest-side at 70% 30%, #000, transparent 80%);
          mask-image: radial-gradient(closest-side at 70% 30%, #000, transparent 80%);
  pointer-events: none;
}
.ai .container { position: relative; z-index: 1; }
.ai h2 { color: #fff; }
.ai .eyebrow { color: var(--accent-light); }
.ai .eyebrow::before, .ai .eyebrow--center::after { background: var(--accent-light); }
.ai .section-head .lede { color: var(--cream-2); }
.ai__head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem 3rem; align-items: end; }
.ai__head .pitch { color: var(--cream-2); font-size: 1.12rem; }
.ai__head .pitch b { color: #fff; font-weight: 600; }

.ai__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.ai-card {
  background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r); padding: 1.7rem;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.ai-card:hover { transform: translateY(-4px); border-color: rgba(216,219,225,.5); background: linear-gradient(165deg, rgba(216,219,225,.12), rgba(255,255,255,.02)); }
.ai-card__ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(216,219,225,.14); color: var(--accent-light); display: grid; place-items: center; margin-bottom: 1.1rem; }
.ai-card__ic svg { width: 23px; height: 23px; }
.ai-card h3 { color: #fff; font-size: 1.14rem; margin-bottom: .5rem; }
.ai-card p { color: var(--cream-2); font-size: .96rem; }
.ai-card__tag { display: inline-block; margin-top: 1rem; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; color: var(--accent-light); border: 1px solid rgba(216,219,225,.3); border-radius: 999px; padding: .3em .7em; }

.ai__cta { margin-top: 2.6rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.ai__cta .micro { font-family: var(--f-mono); font-size: .8rem; color: var(--cream-2); }

/* ---------- СОБСТВЕННЫЕ РЕШЕНИЯ ---------------------------------------- */
.solutions { background: var(--paper-2); }
.solutions__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 3rem; }
.solution {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.solution:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.solution__media { /* место под скриншот/мокап интерфейса */
  aspect-ratio: 16 / 9; background: var(--paper-3); border-bottom: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-3);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
}
.solution__media img { width: 100%; height: 100%; object-fit: cover; }
.solution__body { padding: clamp(1.5rem, 2.4vw, 2.1rem); }
.solution__tag { display: block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 1rem; }
.solution h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.solution p { color: var(--ink-2); font-size: 1rem; }

/* ---------- КАК ПРОХОДИТ ВНЕДРЕНИЕ (таймлайн) ------------------------- */
.process { background: var(--paper); }
.process__list { margin-top: 3.4rem; position: relative; }
.process__list::before { /* непрерывная линия таймлайна */
  content: ""; position: absolute; left: 21px; top: 3rem; bottom: 3rem;
  width: 2px; background: var(--line-strong);
}
.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1.3fr) minmax(240px, .82fr);
  gap: 1.2rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  position: relative; z-index: 1; align-self: center;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 1.5px solid var(--accent-soft);
  font-family: var(--f-num); font-weight: 700; font-size: 1.05rem; color: var(--accent-strong);
  line-height: 1; letter-spacing: 0;
}
.step--free .step__n { border-color: var(--ink); background: var(--ink); color: var(--accent-light); }
.step__main { max-width: 46ch; }
.step__main h3 { margin-bottom: .55rem; }
.step__time { display: inline-flex; align-items: center; gap: .45em; font-family: var(--f-mono); font-size: .8rem; font-weight: 500; color: var(--ink-2); background: var(--accent-wash); padding: .3em .7em; border-radius: 999px; margin-bottom: .9rem; }
.step__time svg { width: 13px; height: 13px; color: var(--accent-strong); }
.step__main p { font-size: 1rem; max-width: 42ch; }
.step__result {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 1rem 1.2rem;
}
.step__result .k { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: .4rem; }
.step__result .v { font-size: .98rem; color: var(--ink); font-weight: 500; }
.step--free .step__time { background: var(--ink); color: var(--cream); }
.step--free .step__time svg { color: var(--accent-light); }

/* ---------- КЕЙСЫ ------------------------------------------------------- */
.cases { background: var(--paper-2); }
.cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; }
.case {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.8rem; overflow: hidden; position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.case:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.case__niche { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong); }
.case__hero {
  font-family: var(--f-num); font-weight: 800;
  font-size: clamp(3.2rem, 6vw, 4.6rem); line-height: .9;
  color: var(--ink); letter-spacing: -0.03em;
  margin: 1.1rem 0 .2rem;
}
.case__hero .sym { color: var(--accent-strong); }
.case__metric { font-size: .98rem; font-weight: 600; color: var(--ink); margin-bottom: 1.3rem; }
.case__pp { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.5rem; }
.case__pp div { font-size: .92rem; color: var(--ink-2); padding-left: 1.1rem; position: relative; }
.case__pp div::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.case__pp .k { font-weight: 600; color: var(--ink); }
.case__link { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .92rem; color: var(--accent-strong); }
.case__link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.case:hover .case__link svg { transform: translateX(3px); }

/* ---------- СТОИМОСТЬ --------------------------------------------------- */
.pricing { background: var(--paper); }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 3rem; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.9rem 1.7rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--featured { background: var(--night); color: var(--cream); border-color: transparent; position: relative; box-shadow: var(--shadow); }
.plan--featured::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(216,219,225,.7), rgba(216,219,225,0) 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.plan__tag { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; justify-content: space-between; }
.plan--featured .plan__tag { color: var(--cream-2); }
.plan__badge { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .08em; color: var(--ink); background: var(--accent-light); padding: .3em .65em; border-radius: 999px; }
.plan__name { font-family: var(--f-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 1rem 0 .3rem; color: var(--ink); }
.plan--featured .plan__name { color: #fff; }
.plan__desc { font-size: .92rem; color: var(--ink-2); min-height: 2.6em; }
.plan--featured .plan__desc { color: var(--cream-2); }
.plan__price { margin: 1.3rem 0 .2rem; display: flex; align-items: baseline; gap: .35rem; }
.plan__price .from { font-size: .85rem; color: var(--ink-3); }
.plan--featured .plan__price .from { color: var(--cream-2); }
.plan__price .val { font-family: var(--f-num); font-weight: 700; font-size: 2.1rem; color: var(--ink); letter-spacing: -0.02em; }
.plan--featured .plan__price .val { color: #fff; }
.plan__price .cur { font-family: var(--f-num); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.plan--featured .plan__price .cur { color: #fff; }
.plan__whole { font-size: .82rem; color: var(--accent-strong); font-weight: 600; margin-bottom: 1.4rem; }
.plan--featured .plan__whole { color: var(--accent-light); }
.plan__term { font-family: var(--f-mono); font-size: .76rem; color: var(--ink-3); margin-bottom: 1.2rem; }
.plan--featured .plan__term { color: var(--cream-2); }
.plan__feats { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.7rem; }
.plan__feats li { display: flex; gap: .6em; font-size: .92rem; color: var(--ink-2); align-items: flex-start; }
.plan--featured .plan__feats li { color: var(--cream); }
.plan__feats svg { width: 16px; height: 16px; color: var(--accent-strong); flex: none; margin-top: .2em; }
.plan--featured .plan__feats svg { color: var(--accent-light); }
.plan .btn { margin-top: auto; justify-content: center; width: 100%; }
.plan--featured .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.plan--featured .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }

.pricing__custom {
  margin-top: 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  background: var(--accent-wash); border: 1px solid var(--accent-soft);
  border-radius: var(--r); padding: 1.4rem 1.7rem;
}
.pricing__custom p { color: var(--ink); }
.pricing__custom b { font-weight: 700; }
.pricing__custom span { display: block; font-size: .92rem; color: var(--ink-2); margin-top: .2rem; }

/* ---------- ПОЧЕМУ МЫ / ГАРАНТИИ -------------------------------------- */
.why { background: var(--paper-2); }
.why__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: 3rem; align-items: start; }
.why__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.stat .num { font-family: var(--f-num); font-weight: 800; font-size: clamp(2.2rem, 4vw, 2.9rem); color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.stat .num .sym { color: var(--accent-strong); }
.stat .lbl { font-size: .9rem; color: var(--ink-2); margin-top: .55rem; }
.why__note { grid-column: 1 / -1; background: var(--ink); color: var(--cream); border-radius: var(--r); padding: 1.6rem 1.8rem; margin-top: .2rem; }
.why__note .k { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-light); }
.why__note p { color: var(--cream); margin: 0; font-size: 1.02rem; }
.why__note b { color: #fff; }

.guarantees { display: flex; flex-direction: column; gap: .5rem; }
.guarantee { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.guarantee:first-child { padding-top: 0; }
.guarantee__ic { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-wash); color: var(--accent-strong); display: grid; place-items: center; }
.guarantee__ic svg { width: 19px; height: 19px; }
.guarantee h4 { font-family: var(--f-display); font-size: 1.04rem; font-weight: 700; color: var(--ink); margin: .1rem 0 .25rem; letter-spacing: -0.01em; }
.guarantee p { font-size: .94rem; color: var(--ink-2); }

/* ---------- ОТЗЫВЫ ----------------------------------------------------- */
.reviews { background: var(--paper); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 3rem; align-items: stretch; }
.review {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.7rem; display: flex; flex-direction: column;
}
.review__quote { font-family: var(--f-display); font-size: 1.08rem; line-height: 1.45; color: var(--ink); letter-spacing: -0.01em; font-weight: 500; }
.review__foot { margin-top: auto; padding-top: 1.4rem; display: flex; align-items: center; gap: .8rem; }
.review__av { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-wash); color: var(--accent-strong); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; flex: none; }
.review__who b { display: block; font-family: var(--f-display); font-weight: 700; color: var(--ink); font-size: .95rem; letter-spacing: -0.01em; }
.review__who span { font-size: .82rem; color: var(--ink-3); }
.reviews__foot { margin-top: 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.cert { display: inline-flex; align-items: center; gap: .7em; font-size: .9rem; color: var(--ink-2); }
.cert svg { width: 30px; height: 30px; color: var(--accent-strong); }

/* ---------- FAQ -------------------------------------------------------- */
.faq { background: var(--paper-2); }
.faq__layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); margin-top: 1rem; align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q {
  width: 100%; text-align: left; background: none; border: 0; padding: 1.35rem 3rem 1.35rem 0;
  font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; color: var(--ink);
  letter-spacing: -0.01em; position: relative; display: flex; gap: 1rem;
}
.faq-item__q .plus { position: absolute; right: 0; top: 1.5rem; width: 18px; height: 18px; flex: none; }
.faq-item__q .plus::before, .faq-item__q .plus::after { content: ""; position: absolute; background: var(--accent-strong); border-radius: 2px; transition: transform .3s var(--ease); }
.faq-item__q .plus::before { left: 0; right: 0; top: 8px; height: 2px; }
.faq-item__q .plus::after { top: 0; bottom: 0; left: 8px; width: 2px; }
.faq-item.open .faq-item__q .plus::after { transform: scaleY(0); }
.faq-item__a { overflow: hidden; max-height: 0; transition: max-height .35s var(--ease); }
.faq-item__a p { padding: 0 0 1.4rem; color: var(--ink-2); font-size: 1rem; max-width: 56ch; }

/* ---------- ФИНАЛЬНЫЙ CTA / ФОРМА ------------------------------------- */
.final { background: var(--night); color: var(--cream); position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; bottom: -30%; left: -5%; width: 55vw; height: 55vw; max-width: 720px; max-height: 720px; background: radial-gradient(closest-side, rgba(216,219,225,.3), transparent 70%); pointer-events: none; }
.final .container { position: relative; z-index: 1; }
.final__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.final .eyebrow { color: var(--accent-light); }
.final .eyebrow::before { background: var(--accent-light); }
.final h2 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.final__lede { color: var(--cream-2); font-size: 1.15rem; margin-top: 1.2rem; max-width: 42ch; }
.final__perks { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.8rem; }
.final__perks li { display: flex; gap: .7em; align-items: center; color: var(--cream); font-size: 1rem; }
.final__perks svg { width: 19px; height: 19px; color: var(--accent-light); flex: none; }
.final__contacts { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1.4rem; }
.final__contacts a { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: #fff; font-size: 1.05rem; }
.final__contacts a svg { width: 18px; height: 18px; color: var(--accent-light); }
.final__contacts a:hover { color: var(--accent-light); }

.form {
  background: linear-gradient(165deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.4rem);
}
.form__title { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; color: #fff; letter-spacing: -0.02em; margin-bottom: .35rem; }
.form__sub { font-size: .92rem; color: var(--cream-2); margin-bottom: 1.6rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-2); margin-bottom: .5rem; }
.field input, .field textarea {
  width: 100%; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-sm); padding: .9em 1em; color: #fff; font: inherit; font-size: 1rem;
  transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(185,172,154,.6); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-light); background: rgba(0,0,0,.35); }
.field textarea { resize: vertical; min-height: 84px; }
.form .btn { width: 100%; justify-content: center; margin-top: .5rem; }
.form__legal { font-size: .78rem; color: var(--cream-2); margin-top: 1rem; text-align: center; line-height: 1.45; }
.form__legal a { color: var(--cream); text-decoration: underline; text-underline-offset: 2px; }
.form__ok { display: none; text-align: center; padding: 1rem 0; }
.form__ok svg { width: 54px; height: 54px; color: var(--accent-light); margin: 0 auto 1rem; }
.form__ok h3 { color: #fff; margin-bottom: .5rem; }
.form__ok p { color: var(--cream-2); }
.form.sent .form__body { display: none; }
.form.sent .form__ok { display: block; }

/* ---------- ФУТЕР ------------------------------------------------------ */
.footer { background: var(--night); color: var(--cream-2); border-top: 1px solid rgba(255,255,255,.08); padding-block: 3rem 2.4rem; }
.footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer .brand { color: #fff; }
.footer__brand { max-width: 340px; }
.footer__legal { margin-top: 1.2rem; font-size: .82rem; color: var(--cream-2); line-height: 1.55; }
.footer__cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer__col h5 { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-2); margin: 0 0 1rem; font-weight: 600; }
.footer__col a { display: block; color: var(--cream); font-size: .95rem; padding: .3rem 0; transition: color .2s; }
.footer__col a:hover { color: var(--accent-light); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 2rem; font-size: .85rem; }

/* ---------- 6. АДАПТИВ ------------------------------------------------- */
@media (max-width: 1024px) {
  .ai__head { grid-template-columns: 1fr; }
  .ai__cards { grid-template-columns: 1fr 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr 1fr; }
  .faq__layout { grid-template-columns: 1fr; }
  .final__grid { grid-template-columns: 1fr; }
}

/* Шапка сворачивается в бургер до того, как навигация начнёт вылезать */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .header__cta { gap: .6rem; }
  .header__cta .btn { white-space: nowrap; padding: .62em .95em; font-size: .85rem; }
  .header__inner { gap: 1rem; }
  .brand { font-size: 1.2rem; }
}

@media (max-width: 760px) {
  .problems__grid { grid-template-columns: 1fr; }
  .outcomes__grid { grid-template-columns: 1fr; }
  .solutions__grid { grid-template-columns: 1fr; }
  .ai__cards { grid-template-columns: 1fr; }
  .cases__grid { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .why__stats { grid-template-columns: 1fr 1fr; }
  .process__list::before { display: none; }
  .step { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.6rem 0; align-items: start; }
  .btn { white-space: normal; } /* длинные подписи переносятся, а не распирают вёрстку */
  .hero__cta { width: 100%; flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; text-align: center; }
  .pricing__custom, .reviews__foot, .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .why__stats { grid-template-columns: 1fr; }
}

/* =====================================================================
   ПРОЗАИЧЕСКИЕ СТРАНИЦЫ (Политика, Оферта и т.д.)
   Стили применяются внутри .hentry — WP-класс обычных страниц/записей.
   ===================================================================== */
.hentry {
  margin: 0.5rem 0 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.hentry > h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.hentry h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2.4rem 0 .8rem;
}
.hentry h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.6rem 0 .4rem;
}
.hentry p { margin: 0 0 1rem; }
.hentry ul,
.hentry ol {
  margin: 0 0 1rem 1.4rem;
  padding: 0;
}
.hentry li { margin-bottom: .35rem; }
.hentry a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hentry a:hover { opacity: .65; }

/* ---------- Доступность: уменьшенная анимация -------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
