/* ============================================================
   Академия НДПО — дизайн-система v3 (продающая пересборка).
   База v2 (тёплая палитра, самохост-шрифты, hairline-разделители,
   нативные <details>) сохранена целиком. Поверх — продающий слой:
   иерархия по цвету/весу, полоса доверия, карточки тарифов и
   модулей, stat-bar программы, карточки-выгоды, липкая мобильная
   CTA-панель. Индиго применяется СИСТЕМНО (все главные CTA + один
   смысловой акцент на секцию), а не «один объект на весь экран» —
   это осознанное отступление от аскетизма v2 ради продающего вида.

   Сохранено функционально (НЕ переименовывать — контракт с JS):
   .modal*, .field*, .js-cta, #cta-modal, [data-modal-close],
   #modal-msg, .field--honeypot, .modal__receipt, .js .reveal,
   details/::details-content, .program__nav*, .scroll-x,
   .visually-hidden, focus-visible.
   ============================================================ */

/* ---------- Токены ---------- */
:root {
  --paper:        #FAF8F5;
  --paper-pure:   #FFFFFF;
  --paper-warm:   #F3EFE9;  /* чуть темнее фона — подложка чередующихся секций */
  --graphite:     #17161B;
  --graphite-2:   #201E25;  /* чуть светлее графита — ячейки на тёмном */
  --indigo:       #4B44F4;
  --indigo-deep:  #3A33D6;
  --indigo-soft:  rgba(75, 68, 244, 0.08);  /* фон чипов/бейджей */
  --indigo-line:  rgba(75, 68, 244, 0.22);

  --ink:          #1B1A1E;
  --ink-dark:     #FAF8F5;
  --muted:        #6E6A63;
  --muted-dark:   rgba(250, 248, 245, 0.66);

  --hairline:         rgba(23, 22, 27, 0.12);
  --hairline-strong:  rgba(23, 22, 27, 0.26);
  --hairline-dark:    rgba(250, 248, 245, 0.18);

  --font-text:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;

  --r:      14px;
  --r-lg:   22px;
  --r-pill: 999px;
  --maxw:   1180px;
  --pad:    clamp(20px, 5vw, 56px);

  /* Тени: hairline-архитектура остаётся, но коммерческое ядро (тарифы) —
     это «товары», им разрешена мягкая тень, чтобы читались как карточки. */
  --shadow-card: 0 2px 4px rgba(23, 22, 27, 0.04), 0 14px 34px rgba(23, 22, 27, 0.07);
  --shadow-best: 0 20px 48px rgba(75, 68, 244, 0.20);
  --shadow-lift: 0 10px 20px rgba(23, 22, 27, 0.08), 0 24px 44px rgba(23, 22, 27, 0.12);

  /* Тёплые «aurora»-акценты (приглушённые, врачебно-спокойные) — фон hero */
  --warm-sand:    rgba(224, 178, 138, 0.40);
  --warm-rose:    rgba(198, 132, 116, 0.28);
  --warm-cream:   rgba(255, 246, 233, 0.60);
  --indigo-bloom: rgba(75, 68, 244, 0.16);
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-text);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Шрифты: самостоятельный хостинг ---------- */
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../assets/fonts/source-serif-4-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../assets/fonts/source-serif-4-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

/* ---------- Типографика ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.05rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--ink-dark); }

p { color: var(--muted); }
strong { color: var(--ink); font-weight: 600; }
.section--dark strong { color: var(--ink-dark); }
.section--dark p { color: var(--muted-dark); }

.display { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5.6vw, 4.2rem); line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); }
.accent { color: var(--indigo); }

/* Глазок-метка над секцией */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-text); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--accent { color: var(--indigo); }
.section--dark .eyebrow { color: var(--muted-dark); }
.section--dark .eyebrow--accent { color: #A7A2FF; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 62ch; line-height: 1.55; }
.section--dark .lede { color: var(--muted-dark); }

/* ---------- Доступность: видимый фокус ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 4px;
}
.section--dark a:focus-visible, .section--dark summary:focus-visible { outline-color: #A7A2FF; }

/* ---------- Каркас ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(56px, 9vw, 116px); position: relative; }
.section--dark { background: var(--graphite); color: var(--ink-dark); }
.section--warm { background: var(--paper-warm); }
.hairline { border: 0; border-top: 1px solid var(--hairline); }
.section--dark .hairline { border-top-color: var(--hairline-dark); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Шапка ---------- */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.header__cta { display: none; }
@media (min-width: 860px) { .header__cta { display: inline-flex; } }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-text); font-weight: 600; font-size: 0.98rem;
  padding: 15px 30px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  cursor: pointer; min-height: 50px;
  transition: transform 0.18s ease, background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 18px 38px; font-size: 1.06rem; min-height: 56px; }
.btn--primary { background: var(--indigo); color: #fff; box-shadow: 0 8px 22px rgba(75, 68, 244, 0.24); }
.btn--primary:hover { background: var(--indigo-deep); box-shadow: 0 12px 28px rgba(75, 68, 244, 0.34); }
.btn--ghost { background: transparent; color: var(--indigo); border-color: var(--indigo-line); }
.btn--ghost:hover { border-color: var(--indigo); background: var(--indigo-soft); }
.section--dark .btn--ghost { color: var(--ink-dark); border-color: var(--hairline-dark); }
.section--dark .btn--ghost:hover { border-color: #A7A2FF; color: #fff; background: rgba(255,255,255,0.06); }
.btn--block { width: 100%; }
.btn--wrap { white-space: normal; text-align: center; max-width: 100%; }

.link-underline { text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 3px; color: var(--muted); }
.link-underline:hover { text-decoration-color: var(--indigo); color: var(--indigo); }
.section--dark .link-underline { text-decoration-color: var(--hairline-dark); color: var(--muted-dark); }

/* ---------- Архетип А: асимметричный текст+медиа (55/45) ---------- */
.split { display: grid; gap: clamp(28px, 5vw, 60px); align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 55fr 45fr; }
  .split--mirror { grid-template-columns: 45fr 55fr; }
  .split--mirror > .split__text { order: 2; }
  .split--mirror > .split__media { order: 1; }
}
.split__media img { border-radius: var(--r-lg); width: 100%; }

/* ---------- HERO ---------- */
.hero__text { display: grid; gap: 20px; }
.hero__text h1 { margin-top: 2px; }
/* Карточка-цена: ценовой якорь в индиго-рамке, не топим в сером */
/* Матовое стекло: карточка-цена полупрозрачная и размывает тёплый aurora-фон под собой */
.price-card {
  border: 1.5px solid var(--indigo-line); background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-radius: var(--r); padding: 18px 22px; max-width: 60ch;
  color: var(--ink); font-size: 0.98rem; line-height: 1.55;
}
.price-card b { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--ink); white-space: nowrap; }
.hero__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.hero__note { font-size: 0.86rem; color: var(--muted); }
.hero__offerlink { font-size: 0.9rem; }

/* Мобильный hero: фото сверху, кроп по грудь */
#hero .split__media { order: -1; position: relative; }
#hero .split__media img { height: 40vh; min-height: 260px; object-fit: cover; object-position: center 28%; }
@media (min-width: 860px) {
  #hero .split { align-items: stretch; }
  #hero .split__media { order: 0; }
  #hero .split__media picture { display: block; height: 100%; }
  #hero .split__media img { height: 100%; width: 100%; min-height: 480px; object-fit: cover; object-position: center 22%; }
}

/* ---------- Полоса доверия (trust strip) ---------- */
.trust { background: var(--graphite); color: var(--ink-dark); }
.trust .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; padding-block: 0; }
@media (min-width: 720px) { .trust .wrap { grid-template-columns: repeat(4, 1fr); } }
.trust__cell {
  display: grid; gap: 4px; align-content: center; justify-items: center; text-align: center;
  padding: clamp(24px, 4vw, 40px) 16px; position: relative;
}
/* вертикальные волосяные разделители между ячейками */
.trust__cell + .trust__cell::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--hairline-dark);
}
@media (max-width: 719.98px) {
  .trust__cell:nth-child(odd) + .trust__cell::before { top: 22%; bottom: 22%; }
  .trust__cell:nth-child(3)::after, .trust__cell:nth-child(4)::after {
    content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 1px; background: var(--hairline-dark);
  }
}
.trust__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 4.6vw, 2.4rem); line-height: 1; color: var(--ink-dark); }
.trust__label { font-size: 0.82rem; font-weight: 500; color: var(--muted-dark); }
.trust__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, 2.4vw, 1.24rem); color: var(--ink-dark); line-height: 1.1;
}
.trust__badge .ico { stroke: #A7A2FF; width: 26px; height: 26px; }

/* ---------- Чипы (регалии, теги) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center;
  font-size: 0.82rem; font-weight: 500; line-height: 1;
  padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--hairline-strong); color: var(--ink);
}
.section--dark .chip { border-color: rgba(250, 248, 245, 0.25); color: var(--ink-dark); }

/* ---------- Автор (портрет-якорь у цитаты) ---------- */
.author { display: flex; align-items: center; gap: 14px; }
.author__photo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: center 22%; flex: none; border: 1px solid var(--hairline-dark); }
.author__name { font-weight: 600; color: var(--ink-dark); font-size: 0.98rem; }
.author__role { font-size: 0.84rem; color: var(--muted-dark); }
blockquote { border: 0; }
.quote-lead { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.3; color: var(--ink-dark); letter-spacing: -0.01em; }

/* ---------- Архетип В: лента строк ---------- */
.ribbon { display: flex; flex-direction: column; }
.ribbon__row {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(14px, 2.5vw, 26px);
  align-items: baseline; padding-block: clamp(16px, 2.6vw, 24px); border-bottom: 1px solid var(--hairline);
}
.ribbon__row:last-child { border-bottom: 0; }
.section--dark .ribbon__row { border-bottom-color: var(--hairline-dark); }
.ribbon__row > .display { color: var(--indigo); }
.ribbon__num { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--indigo); }

/* ---------- Секция «Кому подойдёт»: врезка-карточка ---------- */
.aside-card {
  background: var(--paper-pure); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: clamp(22px, 3.4vw, 32px); align-self: start; box-shadow: var(--shadow-card);
}
.aside-card p { color: var(--muted); font-size: 1.02rem; }
.aside-card .eyebrow { margin-bottom: 12px; }

/* ---------- Секция «Как идёт работа»: две панели-карточки ---------- */
.panels { display: grid; gap: clamp(16px, 3vw, 24px); }
.panel {
  background: var(--paper-pure); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 34px); box-shadow: var(--shadow-card);
}
.panel .display { color: var(--indigo); margin-bottom: 10px; }
.panel p { color: var(--ink); font-size: 1.05rem; }
@media (min-width: 720px) { .panels { grid-template-columns: 1fr 1fr; } }

/* ---------- Сетка выгод / risk-reversal (карточки с иконкой) ---------- */
.feature-grid { display: grid; gap: clamp(14px, 2.4vw, 20px); grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .feature-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.feature {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  background: var(--paper-pure); border: 1px solid var(--hairline); border-radius: var(--r);
  padding: clamp(18px, 2.6vw, 24px);
}
.feature__ico { display: grid; place-items: center; }
.feature__t { font-weight: 600; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* Иконки: inline-SVG, контур, монохром */
.ico { width: 24px; height: 24px; flex: none; stroke: var(--indigo); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ico--lg { width: 28px; height: 28px; }

/* ---------- Секция 4 «Программа» ---------- */
/* Stat-bar над программой */
.stat-bar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--paper-pure); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
}
.stat { display: grid; gap: 4px; justify-items: center; text-align: center; padding: clamp(20px, 3vw, 30px) 12px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: var(--hairline); }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1; color: var(--indigo); }
.stat__num--sm { font-size: clamp(1rem, 3vw, 1.35rem); color: var(--ink); }
.stat__label { font-size: 0.82rem; color: var(--muted); }

.program { display: grid; gap: clamp(24px, 4vw, 44px); min-width: 0; }
.program__nav, .program__list { min-width: 0; }
/* Оглавление как отдельный светлый UI-блок */
.program__nav-inner {
  background: var(--paper-pure); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 14px; box-shadow: var(--shadow-card);
}
.program__nav-list { display: flex; flex-direction: column; gap: 2px; }
.program__nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 12px; border-radius: var(--r);
  font-size: 0.92rem; font-weight: 600; color: var(--ink);
}
.program__nav a:hover { background: var(--indigo-soft); }
.program__nav-count {
  font-weight: 600; color: var(--indigo); font-size: 0.76rem; white-space: nowrap;
  background: var(--indigo-soft); padding: 4px 9px; border-radius: var(--r-pill);
}
/* Активный пункт — левая индиго-полоса + мягкая заливка */
.program__nav-item.is-active a { background: var(--indigo-soft); box-shadow: inset 3px 0 0 var(--indigo); }
.program__nav-item.is-active .program__nav-name { color: var(--indigo); }

@media (min-width: 860px) {
  .program { grid-template-columns: 280px 1fr; align-items: start; }
  .program__nav { position: sticky; top: clamp(20px, 3vw, 40px); }
}
@media (max-width: 859.98px) {
  .program__nav { position: sticky; top: 0; z-index: 5; background: var(--paper); padding-block: 10px; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); border-bottom: 1px solid var(--hairline); }
  .program__nav-inner { padding: 0; border: 0; box-shadow: none; background: transparent; }
  .program__nav-list { flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 8px; }
  .program__nav a { flex: none; flex-direction: row; gap: 8px; padding: 8px 12px; border: 1px solid var(--hairline); border-radius: var(--r-pill); white-space: nowrap; }
  .program__nav-item.is-active a { box-shadow: none; border-color: var(--indigo); }
}

/* Разделы-аккордеоны как кликабельные карточки */
.program__list > details {
  border: 1px solid var(--hairline); border-radius: var(--r); margin-bottom: 10px;
  background: var(--paper-pure); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s;
}
.program__list > details:hover { border-color: var(--indigo-line); }
.program__list > details[open] { border-color: var(--indigo-line); box-shadow: var(--shadow-card); }
.program__list > details > summary { padding: 16px 18px; border-radius: var(--r); }
.program__list > details[open] > summary { box-shadow: inset 3px 0 0 var(--indigo); }
.program__list .details__panel-in { padding-inline: 18px; }
/* Номера тем нейтральны, текст темы — --ink (не сливается в простыню) */
#program .ribbon__num { color: var(--muted); font-family: var(--font-text); font-weight: 600; font-size: 0.82rem; }
#program .program__list .ribbon__row { padding-block: 10px; }
#program .program__list .ribbon__row p { color: var(--ink); }
#program details[open] > summary::after { color: var(--indigo); }
#program details { scroll-margin-top: 80px; }

/* ---------- CTA-полоса между секциями ---------- */
.cta-strip { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--paper-pure); }
.cta-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-block: clamp(24px, 3.4vw, 34px); }
.cta-strip__t { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: var(--ink); }

/* ---------- Оговорка (двусторонняя аргументация) ---------- */
.caveat { border-left: 3px solid var(--indigo); padding-left: 18px; display: grid; gap: 10px; }
.caveat p { color: var(--muted-dark); }
.section--dark .caveat { border-left-color: #A7A2FF; }

/* ---------- Секция 7 «Стоимость»: карточки тарифов ---------- */
/* Подпись-группа тарифов: разводит два трека (Психология / Заработок+комплект),
   чтобы 4 разнородных тарифа не читались как одна линейка из 4 ступеней. */
.pricing-label { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.45rem); color: var(--ink); margin-top: 44px; margin-bottom: 18px; }
.tariff-grid { display: grid; gap: clamp(16px, 2.4vw, 22px); grid-template-columns: 1fr; }
@media (min-width: 680px) { .tariff-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .tariff-grid { grid-template-columns: repeat(4, 1fr); align-items: stretch; } }
/* Два трека по 2 карточки: держим 2 колонки и на десктопе, не растягиваем на 4 */
.tariff-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 680px) { .tariff-grid--2 { grid-template-columns: 1fr 1fr; align-items: stretch; } }
@media (min-width: 1040px) { .tariff-grid--2 { grid-template-columns: 1fr 1fr; max-width: 720px; } }
.tariff-card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--paper-pure); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 28px); box-shadow: var(--shadow-card); position: relative;
}
.tariff-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; color: var(--ink); line-height: 1.15; }
@media (min-width: 680px) { .tariff-card__name { min-height: 2.9em; } }
.tariff-card__price { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1; color: var(--ink); }
.tariff-card__list { display: grid; gap: 10px; margin-top: 2px; }
.tariff-card__list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 0.92rem; color: var(--ink); line-height: 1.4; }
.tariff-card__list .ico { width: 18px; height: 18px; margin-top: 2px; }
.tariff-card .btn { margin-top: auto; }
/* Выделенная карточка (комплект) */
.tariff-card--best { border: 2px solid var(--indigo); box-shadow: var(--shadow-best); }
.tariff-card--best .tariff-card__price { color: var(--indigo); }
.tariff-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--indigo); color: #fff; font-size: 0.76rem; font-weight: 600;
  padding: 6px 16px; border-radius: var(--r-pill); box-shadow: 0 6px 16px rgba(75,68,244,0.3);
}
@media (min-width: 1040px) { .tariff-card--best { transform: scale(1.035); } }
.tariff-note { margin-top: 18px; color: var(--muted); font-size: 0.92rem; }

/* Мягкий вход в цену: «от…» + быстрые гарантии сразу под заголовком,
   чтобы холодного не било большой цифрой первым делом (сетка тарифов ниже). */
.price-lede { margin-top: 16px; max-width: 62ch; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.28rem); line-height: 1.55; }
.price-lede b { font-family: var(--font-display); font-weight: 800; color: var(--indigo); white-space: nowrap; }
.pay-reassure { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pay-reassure li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 500; color: var(--ink); background: var(--paper-pure); border: 1px solid var(--hairline); border-radius: var(--r-pill); padding: 8px 16px; }
.pay-reassure .ico { width: 16px; height: 16px; }

/* Отдельные модули — сетка мини-карточек */
.module-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 560px) { .module-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .module-grid { grid-template-columns: repeat(4, 1fr); } }
.module-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  background: var(--paper-pure); border: 1px solid var(--hairline); border-radius: var(--r); padding: 18px 18px 16px;
}
.module-card__name { color: var(--ink); font-weight: 600; font-size: 0.96rem; line-height: 1.35; }
.module-card__count { display: block; color: var(--muted); font-weight: 400; font-size: 0.82rem; margin-top: 3px; }
.module-card__price { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--indigo); }

/* ---------- Архетип Г: узкая служебная полоса / подвал ---------- */
.strip { padding-block: clamp(14px, 2vw, 20px); font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--hairline); }
.strip__in { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.section--dark .strip { color: var(--muted-dark); border-top-color: var(--hairline-dark); }

/* ---------- Финальный CTA ---------- */
#cta .wrap { justify-items: start; text-align: left; }

/* ---------- Аккордеон: нативные <details>/<summary> ---------- */
details { border-bottom: 1px solid var(--hairline); }
.section--dark details { border-bottom-color: var(--hairline-dark); }
details > summary {
  cursor: pointer; list-style: none; padding-block: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-text); font-weight: 600; color: var(--ink);
}
.section--dark details > summary { color: var(--ink-dark); }
details > summary::-webkit-details-marker { display: none; }
details > summary::marker { content: ""; }
details > summary::after { content: "+"; flex: none; color: var(--muted); font-size: 1.3rem; line-height: 1; transition: transform 0.25s ease, color 0.2s ease; }
details[open] > summary::after { transform: rotate(45deg); color: var(--indigo); }
details::details-content { display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows 0.3s ease, content-visibility 0.3s allow-discrete; }
details[open]::details-content { grid-template-rows: 1fr; }
.details__panel-in { overflow: hidden; min-height: 0; padding-bottom: 20px; color: var(--muted); }
.section--dark .details__panel-in { color: var(--muted-dark); }
/* FAQ как светлые карточки */
.faq-list > details { border: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); border-radius: var(--r); margin-bottom: 10px; background: var(--paper-pure); }
.faq-list > details > summary { padding-inline: 18px; }
.faq-list .details__panel-in { padding-inline: 18px; }
@media (prefers-reduced-motion: reduce) {
  details::details-content { transition: none; }
  details > summary::after { transition: none; }
}

/* ---------- Появление при скролле (гейт .js) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Липкая мобильная CTA-панель ---------- */
.sticky-cta { display: none; }
@media (max-width: 640px) {
  body.sticky-on .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--paper-pure); border-top: 1px solid var(--hairline);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(23,22,27,0.10);
  }
  body.sticky-on { padding-bottom: 78px; }
  body.modal-open .sticky-cta { display: none; }
}

/* ---------- Модалка заявки (перенесено поимённо из донора) ---------- */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: var(--pad); }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(23, 22, 27, 0.5); }
.modal__dialog {
  position: relative; z-index: 1; width: 100%; max-width: 460px;
  max-height: calc(100vh - 2 * var(--pad)); overflow-y: auto;
  background: var(--paper-pure); border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 40px); box-shadow: 0 40px 80px -30px rgba(23, 22, 27, 0.35);
  opacity: 0; transform: translateY(16px) scale(0.98); transition: opacity 0.22s ease, transform 0.22s ease;
}
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .modal__dialog { transition: none; opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--hairline);
  background: var(--paper-pure); color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.modal__close:hover { border-color: var(--indigo); color: var(--indigo); }
.modal__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.6rem); padding-right: 36px; color: var(--ink); }
.modal__lead { color: var(--muted); font-size: 0.95rem; margin-top: 10px; }
.modal__form { display: grid; gap: 16px; margin-top: 26px; }
.modal__form[hidden] { display: none; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.field input, .field select {
  width: 100%; font-family: var(--font-text); font-size: 0.98rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r);
  padding: 12px 16px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(75, 68, 244, 0.15); }
.field--honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field--consent { display: flex; align-items: flex-start; gap: 10px; }
.field--consent input[type="checkbox"] { width: auto; flex: none; margin-top: 3px; }
.field--consent span { font-size: 0.85rem; color: var(--muted); }
.modal__more .details__panel-in { display: grid; gap: 16px; padding-top: 6px; }
.modal__msg { font-size: 0.9rem; color: var(--indigo); border-left: 2px solid var(--indigo); padding: 4px 0 4px 14px; }
.modal__msg--error { color: var(--muted); border-left-color: var(--hairline-strong); }
.modal__msg[hidden] { display: none; }
.modal__msg:empty { display: none; }
.modal__receipt { display: grid; justify-items: center; text-align: center; gap: 14px; padding-block: 8px; }
.modal__receipt[hidden] { display: none; }
.modal__receipt-line { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.modal__check-path { stroke-dasharray: 34; stroke-dashoffset: 34; transition: stroke-dashoffset 0.5s ease 0.1s; }
.modal__receipt.is-shown .modal__check-path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .modal__check-path { transition: none; stroke-dashoffset: 0; } }

/* ---------- Утилита ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ============================================================
   v3.1 — деликатная анимация. Всё «взрослое»: тихо, медленно, в тонах
   бренда. Уважает prefers-reduced-motion и гейт .js (контент виден без JS).
   ============================================================ */

/* --- Живой тёплый фон hero + свечение за курсором --- */
#hero { overflow: hidden; isolation: isolate; }
#hero > .wrap { position: relative; z-index: 2; }
.hero-aura, .hero-glow { position: absolute; inset: 0; pointer-events: none; }
.hero-aura { z-index: 0; }
.hero-glow {
  z-index: 1; opacity: 0; transition: opacity 0.6s ease;
  background: radial-gradient(360px 360px at var(--gx, 50%) var(--gy, 42%),
    rgba(75, 68, 244, 0.10), rgba(224, 178, 138, 0.10) 42%, transparent 70%);
}
#hero:hover .hero-glow { opacity: 1; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(52px); will-change: transform; }
.hero-blob.hb1 { width: 44vw; height: 44vw; left: -8vw; top: -14vw;
  background: radial-gradient(circle at 32% 32%, var(--warm-sand), transparent 68%); animation: heroDrift1 28s ease-in-out infinite; }
.hero-blob.hb2 { width: 38vw; height: 38vw; right: -8vw; top: -8vw;
  background: radial-gradient(circle at 60% 40%, var(--indigo-bloom), transparent 66%); animation: heroDrift2 34s ease-in-out infinite; }
.hero-blob.hb3 { width: 34vw; height: 34vw; left: 24vw; bottom: -20vw;
  background: radial-gradient(circle at 50% 50%, var(--warm-rose), transparent 70%); animation: heroDrift3 31s ease-in-out infinite; }
.hero-blob.hb4 { width: 26vw; height: 26vw; right: 12vw; bottom: -12vw;
  background: radial-gradient(circle at 50% 50%, var(--warm-cream), transparent 72%); animation: heroDrift1 26s ease-in-out infinite reverse; }
@keyframes heroDrift1 { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(3vw,2.5vw) scale(1.08);} }
@keyframes heroDrift2 { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(-2.5vw,3vw) scale(1.1);} }
@keyframes heroDrift3 { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(2.5vw,-2.5vw) scale(1.06);} }

/* --- Свечение за курсором на тёмной секции «Учу так, как работаю сам» --- */
#approach { overflow: hidden; }
#approach > .wrap { position: relative; z-index: 1; }
#approach::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 0.6s ease;
  background: radial-gradient(300px 300px at var(--gx, 50%) var(--gy, 50%),
    rgba(167, 162, 255, 0.16), rgba(224, 178, 138, 0.07) 46%, transparent 70%);
}
#approach:hover::before { opacity: 1; }

/* --- Счётчик доверия: акцент суффикса --- */
.trust__value .suf { color: #A7A2FF; }

/* --- Волна появления дочерних элементов (chips, карточки-выгоды) --- */
.js .stagger-children > * { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .stagger-children > *.in { opacity: 1; transform: none; }

/* --- Приподнимание карточек-«товаров» под курсором --- */
.tariff-card, .module-card, .feature, .panel, .aside-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.tariff-card:hover, .module-card:hover, .feature:hover, .panel:hover, .aside-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lift);
}
.tariff-card:not(.tariff-card--best):hover,
.module-card:hover, .feature:hover, .panel:hover, .aside-card:hover { border-color: var(--indigo-line); }
@media (min-width: 1040px) {
  .tariff-card--best:hover { transform: scale(1.035) translateY(-6px); }
}

/* --- Магнитная кнопка: двигается обёртка, сама кнопка сохраняет свой hover --- */
.mag { display: inline-flex; will-change: transform; transition: transform 0.18s ease; }

/* --- «Дышащая» кнопка: масштабируется обёртка, кнопка сохраняет hover-подъём --- */
.breathe-wrap { display: inline-flex; transform-origin: center; animation: breathe 5.5s ease-in-out infinite; }
/* Замирает, когда пользователь наводит/фокусируется — кнопка «успокаивается» в момент клика */
.breathe-wrap:hover, .breathe-wrap:focus-within { animation-play-state: paused; }
@keyframes breathe { 0%,100%{transform:scale(1);} 50%{transform:scale(1.025);} }

/* --- Тонкое «зерно»-плёнка поверх всей страницы (рисуется в JS) --- */
.grain { position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay; background-repeat: repeat; }

@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: none; }
  .hero-glow, #approach::before { transition: none; }
  .js .stagger-children > * { opacity: 1; transform: none; transition: none; }
  .breathe-wrap { animation: none; }
  .mag { transition: none; }
}
