/* ============================================================
   DESIGN TOKENS — дизайн-система DeFi-БАЗА
   ============================================================ */
:root{
  /* базовая палитра */
  --grey-100:#ffffff;
  --grey-200:#f5f5f5;
  --grey-300:#ebebeb;
  --grey-400:#d9d9d9;
  --grey-700:#5f5f63;
  --grey-800:#2f2f31;
  --black:#000000;
  --white:#ffffff;
  --lime-400:#beeb71;
  --lime-300:#c3fd72;
  --lime-200:#e9f4da;
  --grey-250:#f0f0f0;

  /* семантические поверхности */
  --surface-page:var(--grey-300);
  --surface-card:var(--grey-100);
  --surface-soft:var(--grey-200);
  --surface-placeholder:var(--grey-400);
  --surface-invert:var(--black);

  /* текст */
  --text-strong:#000000;
  --text-body:var(--grey-800);
  --text-ink:var(--grey-800);
  --text-muted:var(--grey-700);
  --text-on-accent:#000000;
  --text-on-invert:#ffffff;

  /* линии */
  --line-hairline:rgba(47,47,49,0.1);
  --line-divider:rgba(47,47,49,0.18);

  /* шрифты */
  --font-sans:'Inter','Helvetica Neue',Arial,sans-serif;
  --font-mono:'PT Mono','Courier New',monospace;
  --weight-regular:400;
  --weight-medium:500;
  --weight-semibold:600;
  --weight-bold:700;

  /* типографика */
  --type-section-size:38px;
  --type-section-line:1.22;
  --type-section-track:-1px;
  --type-body-size:15.5px;
  --type-body-line:1.5;
  --type-card-title-track:-0.2px;
  --type-label-track:0.02em;
  --type-label-track-wide:0.04em;
  --type-cta-size:17px;
  --type-cta-track:-0.01em;

  /* скругления */
  --radius-card:32px;
  --radius-card-sm:28px;
  --radius-tile:18px;
  --radius-tile-sm:14px;
  --radius-pill:100px;
  --radius-round:50%;
  --radius-highlight:10px;

  /* переходы */
  --transition:180ms ease;
  --transition-interactive:0.15s ease;

  /* адаптивные значения (desktop) */
  --section-gap:128px;
  --cond-pad:40px;
  --page-pad:16px 20px 36px;
  --heading-mb:32px;
  --cta-row-mt:40px;
  --body-size:var(--type-body-size);
  --card-lead-size:20px;
  --step-kicker-size:11px;
  --ex-title-size:34px;
  --tier-name-size:32px;
  --hero-pad:40px;
  --hero-title-size:40px;
  --hero-title-track:-1.2px;
  --hero-sub-size:17px;
  --bonus-pad:56px;
  --format-pad:20px;
  --consult-pad:28px 40px;
  --step-gap:24px;
  --step-row-gap:36px;
  --step-title-size:22px;

  /* сетки */
  --hero-grid:minmax(0,1.35fr) minmax(0,0.85fr);
  --two-col:1fr 1fr;
  --three-col:repeat(3,minmax(0,1fr));
  --four-col:repeat(4,minmax(0,1fr));
  --gallery-col:repeat(4,minmax(0,1fr));
  --audience-grid:minmax(0,2fr) minmax(0,1fr);
}

/* mobile ≤ 880px */
@media (max-width:880px){
  :root{
    --section-gap:104px;
    --cond-pad:32px;
    --page-pad:14px 12px 28px;
    --heading-mb:24px;
    --body-size:15px;
    --ex-title-size:30px;
    --hero-pad:32px 28px;
    --hero-title-size:32px;
    --hero-sub-size:16px;
    --bonus-pad:40px;
    --consult-pad:24px 32px;
    --two-col:1fr;
    --three-col:1fr;
    --four-col:1fr 1fr;
    --gallery-col:repeat(2,minmax(0,1fr));
    --audience-grid:1fr;
  }
}

/* hero сворачивается в одну колонку ≤ 1024px: ниже этой ширины правая колонка
   становится слишком узкой и вертикальный кадр резало бы по бокам.
   Брейкпоинт совпадает с тем, на котором кнопки героя встают в столбик. */
@media (max-width:1024px){
  :root{ --hero-grid:1fr; }
}

/* narrow ≤ 560px */
@media (max-width:560px){
  :root{
    --section-gap:80px;
    --cond-pad:26px;
    --type-section-size:28px;
    --page-pad:12px 10px 24px;
    --heading-mb:20px;
    --cta-row-mt:28px;
    --body-size:14px;
    --card-lead-size:18px;
    --step-kicker-size:10px;
    --ex-title-size:26px;
    --tier-name-size:26px;
    --hero-pad:24px 20px;
    --hero-title-size:25px;
    --hero-title-track:-0.5px;
    --hero-sub-size:15px;
    --bonus-pad:28px 24px;
    --format-pad:18px;
    --consult-pad:20px 26px;
    --step-gap:16px;
    --step-row-gap:28px;
    --step-title-size:19px;
    --four-col:1fr;
  }
}

/* ============================================================
   БАЗА
   ============================================================ */
*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--surface-page);
  font-family:var(--font-sans);
  color:var(--text-body);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
h1,h2,h3,p{margin:0;}
img{display:block;max-width:100%;}
a{color:var(--text-strong);text-decoration:none;}
a:hover{color:var(--black);}
[id]{scroll-margin-top:24px;}
.ic{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;display:block;}

.main{max-width:1400px;margin:0 auto;padding:var(--page-pad);}
.section{max-width:1034px;margin:0 auto;}
.section + .section{margin-top:var(--section-gap);}
.section--steps{max-width:720px;}

/* заголовки секций */
.sec-head{margin-bottom:var(--heading-mb);display:flex;flex-direction:column;gap:14px;}
.sec-title{
  font-weight:var(--weight-medium);
  font-size:var(--type-section-size);
  line-height:var(--type-section-line);
  letter-spacing:var(--type-section-track);
  color:var(--text-strong);
  overflow-wrap:anywhere;
  text-wrap:pretty;
  /* Страховка от горизонтального скролла: кусок текста, который не переносится
     (длинное слово, склейка неразрывными пробелами), иначе делает страницу шире
     телефона. Именно `anywhere`, а не `break-word`: только он уменьшает min-content,
     а значит позволяет колонке сжаться. Поэтому в заголовки не ставят `&nbsp;` —
     слово разорвётся посреди себя. */
  overflow-wrap:anywhere;
}
.sub{
  font-weight:var(--weight-medium);
  font-size:var(--body-size);
  line-height:var(--type-body-line);
  color:var(--text-body);
  text-wrap:pretty;
}
.hl{
  background:var(--lime-400);
  border-radius:var(--radius-highlight);
  padding:0 0.24em;
  -webkit-box-decoration-break:clone;
  box-decoration-break:clone;
}

/* карточки и плейсхолдеры */
.card{background:var(--surface-card);border-radius:var(--radius-card-sm);padding:var(--cond-pad);min-width:0;}
.ph{background:var(--surface-placeholder);display:flex;align-items:center;justify-content:center;}
.ph--16-9{width:100%;aspect-ratio:16/9;border-radius:var(--radius-tile);margin-bottom:20px;}
/* реальные картинки в карточках ошибок и механик: заполняют слот, углы режутся по радиусу */
.mistake-card .ph,.mech-card .ph,.scenario-card .ph,.format-card .ph{overflow:hidden;}
.mistake-card .ph img,.mech-card .ph img,.scenario-card .ph img,.format-card .ph img{display:block;width:100%;height:100%;object-fit:cover;}
/* картинка на месте — серая подложка не нужна (важно для PNG с прозрачным фоном) */
.mistake-card .ph:has(img),.mech-card .ph:has(img),.scenario-card .ph:has(img),.format-card .ph:has(img){background:transparent;}
/* узкая полоса-схема под макет 450×140 (экспорт 2x — 900×280);
   max-width не даёт картинке растягиваться выше своего размера, когда карточка во всю ширину */
.ph--45-14{width:100%;max-width:450px;aspect-ratio:45/14;border-radius:var(--radius-tile-sm);margin-bottom:20px;}
/* квадратная иконка: 120px, но не шире 45% карточки — на узких колонках ужимается сама */
.ph--icon{width:min(120px,45%);aspect-ratio:1;border-radius:var(--radius-tile);margin-bottom:18px;}
/* Движки без aspect-ratio (iOS Safari < 15, Android WebView/Chrome < 88, встроенные браузеры
   приложений — через них идёт трафик из Telegram): высота слота выводится ТОЛЬКО из пропорции,
   а картинка внутри тянется height:100% — без фолбэка слот схлопнется в 0 и все иллюстрации
   карточек исчезнут. Классический ratio-hack, современный рендеринг не меняет. */
@supports not (aspect-ratio: 1 / 1){
  .ph--16-9{height:0;padding-bottom:calc(9 / 16 * 100%);}
  .ph--45-14{height:0;padding-bottom:calc(14 / 45 * 100%);}
  .ph--icon{height:0;padding-bottom:min(120px,45%);}
  /* слот стал нулевой высоты — картинку распирает изнутри, а не тянет height:100% */
  .mistake-card .ph img,.mech-card .ph img,.scenario-card .ph img,.format-card .ph img{position:absolute;inset:0;height:100%;}
  .mistake-card .ph,.mech-card .ph,.scenario-card .ph,.format-card .ph{position:relative;}
}

/* маркеры-кружки */
.mk{display:inline-flex;align-items:center;justify-content:center;flex:none;border-radius:var(--radius-round);}

/* сетки */
.grid{display:grid;gap:16px;}
.grid--two{grid-template-columns:var(--two-col);}
.mistakes-grid{grid-template-columns:1fr 1fr;}
@media(max-width:780px){.mistakes-grid{grid-template-columns:1fr;}}
@media (min-width:500px) and (max-width:780px){.mistakes-grid .ph--16-9{width:clamp(60%, calc(415px + 13*(780px - 100vw)/280), 100%);}}
.grid--three{grid-template-columns:var(--three-col);align-items:stretch;}
.grid--four{grid-template-columns:var(--four-col);align-items:stretch;}

/* карточные заголовки/текст */
.card-title{
  font-weight:var(--weight-medium);
  font-size:var(--card-lead-size);
  line-height:1.2;
  letter-spacing:var(--type-card-title-track);
  color:var(--text-strong);
  text-wrap:pretty;
}
.card-text{
  font-weight:var(--weight-medium);
  font-size:var(--body-size);
  line-height:var(--type-body-line);
  color:var(--text-body);
  text-wrap:pretty;
}

/* мета-подписи (моно) */
.meta{
  font-family:var(--font-mono);
  font-weight:var(--weight-bold);
  font-size:var(--step-kicker-size);
  letter-spacing:var(--type-label-track-wide);
  text-transform:uppercase;
  color:var(--text-muted);
}

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:15px 32px;border-radius:var(--radius-pill);border:none;
  font-family:var(--font-sans);font-weight:var(--weight-semibold);
  font-size:var(--type-cta-size);letter-spacing:var(--type-cta-track);
  text-decoration:none;cursor:pointer;
  transition:transform .15s ease,background-color .15s ease,box-shadow .15s ease;
}
.btn--primary{background:var(--lime-400);color:var(--text-on-accent);}
.btn--primary:hover{background:var(--lime-300);color:var(--text-on-accent);transform:translateY(-2px);box-shadow:0 12px 26px rgba(190,235,113,0.45);}
.btn--invert{background:var(--surface-invert);color:var(--text-on-invert);}
.btn--invert:hover{color:var(--text-on-invert);transform:translateY(-2px);box-shadow:0 14px 30px rgba(0,0,0,0.22);}
.btn--icon{padding-right:8px;}
.btn-ico{
  width:34px;height:34px;border-radius:var(--radius-round);
  background:var(--white);color:var(--black);
  display:inline-flex;align-items:center;justify-content:center;flex:none;
}

.btn-ghost{
  display:inline-flex;align-items:center;justify-content:center;
  padding:15px 32px;border-radius:var(--radius-pill);
  font-family:var(--font-sans);font-weight:var(--weight-semibold);
  font-size:var(--type-cta-size);letter-spacing:var(--type-cta-track);
  text-decoration:none;cursor:pointer;
  transition:transform .15s ease,background-color .15s ease,border-color .15s ease;
}
.btn-ghost--white{background:var(--white);color:var(--text-strong);border:1px solid var(--line-divider);}
.btn-ghost--bare{background:transparent;color:var(--text-strong);border:1px solid var(--line-divider);}
.btn-ghost--hero{background:transparent;color:var(--text-on-accent);border:1px solid rgba(0,0,0,0.35);}
.btn-ghost--white:hover,.btn-ghost--bare:hover,.btn-ghost--hero:hover{transform:translateY(-1px);}

.cta-row{margin-top:var(--cta-row-mt);display:flex;flex-wrap:wrap;justify-content:center;gap:12px;}
/* единый размер CTA-кнопок «Принять участие» / «Получить консультацию»: +20px высоты, +40px ширины; transparent-бордер уравнивает primary с ghost */
/* Паддинг 52px по бокам скоуплен десктопом: на узком экране он вместе с width:100%
   поднимал min-content кнопки выше вьюпорта («Получить консультацию» + 104px). */
.cta-row .btn{border:1px solid transparent;}
@media (min-width:561px){
  .cta-row .btn{padding:25px 52px;min-width:312px;}
  .cta-row .btn-ghost{padding:25px 52px;min-width:312px;}
}
@media (max-width:560px){.cta-row .btn,.cta-row .btn-ghost{width:100%;min-width:0;}}

/* ============================================================
   HERO
   ============================================================ */
.hero-grid{display:grid;grid-template-columns:var(--hero-grid);gap:16px;align-items:stretch;}
.hero-card{
  background:var(--lime-400);border-radius:var(--radius-card);
  padding:var(--hero-pad);display:flex;flex-direction:column;min-width:0;
}
.hero-kick{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:20px;}
.pill-kick{
  display:inline-flex;align-items:center;padding:7px 14px;border-radius:var(--radius-pill);
  background:color-mix(in srgb, var(--lime-400) 50%, var(--white));
  font-family:var(--font-mono);font-weight:var(--weight-medium);font-size:13px;line-height:1.3;letter-spacing:-0.1px;color:var(--black);
}
.hero-title{
  margin-bottom:18px;max-width:760px;
  font-weight:var(--weight-medium);font-size:var(--hero-title-size);
  line-height:1.05;letter-spacing:var(--hero-title-track);color:var(--text-on-accent);text-wrap:pretty;
  overflow-wrap:anywhere;
}
.hero-sub{
  margin-bottom:22px;max-width:600px;
  font-weight:var(--weight-medium);font-size:var(--hero-sub-size);line-height:1.4;color:var(--text-on-accent);text-wrap:pretty;
}
.hero-points{display:flex;flex-direction:column;gap:9px;margin-bottom:22px;}
.hero-point{display:grid;grid-template-columns:28px minmax(0,1fr);gap:14px;align-items:center;}
.hero-point .mk{width:28px;height:28px;background:var(--black);color:var(--lime-400);}
.hero-point p{
  font-weight:var(--weight-medium);font-size:15px;line-height:1.3;
  letter-spacing:var(--type-card-title-track);color:var(--text-on-accent);text-wrap:pretty;
}
.hero-cta{margin-top:auto;display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px;--hero-btn-w:240px;}
/* кнопки «Программа» и «Тарифы»: одинаковый размер, крупнее (в ряд — до брейкпоинта 1024px) */
.hero-cta .btn,.hero-cta .btn-ghost{width:var(--hero-btn-w);min-height:72px;max-width:100%;}
/* подпись: ширина = кнопке, по центру → в ряд под «Программой», в столбик под обеими кнопками */
.hero-cta-note{width:var(--hero-btn-w);max-width:100%;text-align:center;font-weight:var(--weight-medium);font-size:13px;line-height:1.3;letter-spacing:-0.1px;color:var(--text-on-accent);}
/* ≤1024px: кнопки встают в столбик и растягиваются на всю ширину карточки (подпись — тоже, по центру) */
@media (max-width:1024px){
  .hero-cta{--hero-btn-w:100%;}
}
.hero-img{
  position:relative;background:var(--black);border-radius:var(--radius-card);overflow:hidden;
  min-height:100%;display:flex;align-items:center;justify-content:center;padding:28px;
}
.hero-img picture{display:block;width:100%;height:100%;}
.hero-img-el{width:100%;height:100%;object-fit:cover;object-position:center;display:block;}
@media (min-width:1025px){
  /* десктоп: вертикальная картинка вынута из потока и не растягивает высоту ряда —
     высоту задаёт левая зелёная карточка, лишнее по высоте обрезается через cover */
  /* Пол по высоте обязателен: `picture` абсолютный, в потоке не остаётся ничего, и без
     этой строки высоту ряда целиком держала бы соседняя лаймовая карточка — короткий
     текст в ней схлопнул бы картинку. */
  .hero-img:has(picture){padding:0;min-height:560px;}
  .hero-img picture{position:absolute;inset:0;z-index:1;display:block;}
}
@media (max-width:1024px){
  /* ≤1024px: сетка уже в 1 колонку → медиа встаёт под зелёной карточкой и становится горизонтальной. */
  .hero-img{min-height:0;aspect-ratio:16/9;padding:24px;}  /* запасной вариант, если картинки нет */
  /* hero-mobile.png 1500x607: карточка берёт пропорцию файла → без полей и без обрезки.
     При замене файла на другой размер — поправить aspect-ratio здесь. */
  .hero-img:has(picture){aspect-ratio:1500/607;padding:0;}
  .hero-img-el{object-fit:contain;}
  /* тот же фолбэк, что у слотов карточек: без пропорции hero на мобилке схлопнется */
  @supports not (aspect-ratio: 1 / 1){
    .hero-img{height:0;padding-bottom:calc(9 / 16 * 100%);}
    .hero-img:has(picture){padding-bottom:calc(607 / 1500 * 100%);}
  }
}

/* ============================================================
   КОМУ ПОДХОДИТ
   ============================================================ */
.audience-grid{display:grid;grid-template-columns:var(--audience-grid);gap:16px;align-items:stretch;}
.audience-main{display:grid;grid-template-columns:var(--two-col);gap:16px;min-width:0;}
.feature-card{display:flex;flex-direction:column;gap:14px;border:1px solid var(--line-hairline);}
.feature-card--white{background:var(--white);}
.feature-card--grey{background:var(--grey-250);}
.feature-card--lime-soft{background:var(--lime-200);}
.feature-card--lime{background:var(--lime-400);border:0;overflow:hidden;}
.icon-soft{width:44px;height:44px;background:var(--surface-soft);border:1px solid var(--line-hairline);color:var(--text-strong);}
.feature-card--grey .icon-soft,
.feature-card--lime-soft .icon-soft,
.feature-card--lime .icon-soft{background:var(--white);}
/* Иллюстрация «в край»: отрицательные поля гасят паддинг карточки слева, справа и снизу,
   margin-top:auto прижимает её к нижней кромке, overflow у карточки режет по радиусу.
   Файл 340x280 = ровно ширина карточки, поэтому масштабируется 1:1. */
.audience-illo{
  margin:auto calc(var(--cond-pad) * -1) calc(var(--cond-pad) * -1);
  width:auto;flex:0 0 auto;min-height:0;display:block;
}
.audience-illo img{display:block;width:100%;height:auto;}
@media(max-width:880px){.audience-illo{display:none;}}

/* ============================================================
   ОШИБКИ
   ============================================================ */
.mistake-card{display:flex;flex-direction:column;}
.pill-label{
  align-self:flex-start;padding:7px 14px;border-radius:var(--radius-pill);
  background:var(--surface-soft);color:var(--text-muted);
  font-family:var(--font-mono);font-weight:var(--weight-bold);font-size:11px;
  letter-spacing:var(--type-label-track-wide);text-transform:uppercase;
  margin-bottom:18px;
}
.mistake-card .card-title{margin-bottom:10px;}

/* ============================================================
   ПОРТФЕЛЬ — четыре шага на одной оси
   Карточки соединены сквозной линией, которая проходит через
   номерные кружки: на десктопе — горизонтально, ниже 1024px —
   вертикально. Отрезки внутри карточек + перемычки со стрелками
   в зазорах складываются в одну непрерывную ось.
   ============================================================ */
.pf-flow{
  --pf-gap:20px;            /* зазор между карточками */
  --pf-pad:26px;            /* внутренние поля карточки шага */
  --pf-dot:40px;            /* диаметр номерного кружка */
  --pf-line:2px;            /* толщина оси */
  --pf-axis:rgba(47,47,49,0.24);
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:var(--pf-gap);align-items:stretch;
  list-style:none;margin:0;padding:0;
}
.pf-step{
  position:relative;min-width:0;
  display:flex;flex-direction:column;gap:10px;
  padding:var(--pf-pad);
  background:var(--surface-card);
  border-radius:var(--radius-card-sm);
}
/* кружок + отрезок оси: доходит до правого края карточки и обрывается им */
.pf-head{display:flex;align-items:center;margin:0 calc(var(--pf-pad) * -1) 6px 0;}
.pf-dot{
  width:var(--pf-dot);height:var(--pf-dot);
  background:var(--lime-400);color:var(--text-on-accent);
  font-weight:var(--weight-semibold);font-size:17px;
}
.pf-track{flex:1;height:var(--pf-line);background:var(--pf-axis);}
.pf-step:last-child .pf-track{display:none;}   /* ось заканчивается на последнем шаге */

.pf-title{
  font-weight:var(--weight-medium);font-size:18px;line-height:1.2;
  letter-spacing:var(--type-card-title-track);color:var(--text-strong);text-wrap:pretty;
}
.pf-text{
  font-weight:var(--weight-medium);font-size:14.5px;line-height:1.5;
  color:var(--text-body);text-wrap:pretty;
}

/* появление шагов по очереди — один раз при входе блока в экран */
.js .pf-step{opacity:0;transform:translateY(16px);}
.js .pf-step.is-visible{
  opacity:1;transform:none;
  transition:opacity 0.7s ease, transform 0.9s cubic-bezier(0.33,1,0.68,1);
  transition-delay:var(--pf-delay,0ms);
}
@media (prefers-reduced-motion:reduce){
  .js .pf-step,.js .pf-step.is-visible{opacity:1;transform:none;transition:none;}
}

/* ≤1023px: ряд разворачивается в вертикальную ось */
@media (max-width:1023px){
  .pf-flow{
    grid-template-columns:1fr;
    --pf-pad:var(--cond-pad);--pf-gap:20px;
  }
  .pf-step{
    display:grid;align-items:start;
    grid-template-columns:var(--pf-dot) minmax(0,0.95fr) minmax(0,1.05fr);
    column-gap:28px;row-gap:0;
  }
  .pf-head{margin:0;}
  .pf-track{display:none;}
  .pf-title{font-size:20px;}
  .pf-text{font-size:var(--body-size);}
  /* ось: от нижнего края кружка вниз до нижнего края карточки */
  .pf-step:not(:last-child)::before{
    content:"";position:absolute;
    top:calc(var(--pf-pad) + var(--pf-dot));
    left:calc(var(--pf-pad) + var(--pf-dot)/2 - var(--pf-line)/2);
    width:var(--pf-line);
    height:calc(100% - var(--pf-pad) - var(--pf-dot));
    background:var(--pf-axis);
  }
}

/* ≤760px: заголовок и текст встают друг под другом справа от оси */
@media (max-width:760px){
  .pf-step{grid-template-columns:var(--pf-dot) minmax(0,1fr);column-gap:20px;row-gap:10px;}
  .pf-head{grid-row:1 / span 2;}
  .pf-title{grid-column:2;grid-row:1;}
  .pf-text{grid-column:2;grid-row:2;}
}

/* ============================================================
   МЕХАНИКИ
   ============================================================ */
.mech-card{display:flex;flex-direction:column;}
.mech-card .card-title{margin-bottom:12px;}
.mech-paras{display:flex;flex-direction:column;gap:10px;margin-bottom:20px;}
.tag-soft{
  margin-top:auto;align-self:flex-start;padding:6px 12px;border-radius:var(--radius-pill);
  font-family:var(--font-mono);font-weight:var(--weight-bold);font-size:10px;
  letter-spacing:var(--type-label-track-wide);text-transform:uppercase;
  color:var(--text-muted);background:var(--surface-soft);
}

/* ============================================================
   ПЛАН ПОД РЫНОК
   ============================================================ */
.scenario-card{display:flex;flex-direction:column;}
.scenario-card .card-title{margin-bottom:10px;}

/* ============================================================
   ШАГИ
   ============================================================ */
.steps{display:flex;flex-direction:column;}
.step{display:grid;grid-template-columns:52px minmax(0,1fr);column-gap:var(--step-gap);align-items:stretch;}
.step-rail{position:relative;display:flex;justify-content:center;}
.step-rail .line{position:absolute;top:26px;bottom:0;width:2px;background:var(--line-divider);}
.step-num{
  position:relative;z-index:1;width:52px;height:52px;border-radius:var(--radius-round);
  background:var(--lime-400);color:var(--text-on-accent);
  display:inline-flex;align-items:center;justify-content:center;flex:none;
  font-weight:var(--weight-semibold);font-size:20px;
}
.step-body{padding-bottom:var(--step-row-gap);}

/* ---------- Анимация блока «по шагам» ---------- */
.step{
  --step-fade:1s;          /* проявление */
  --step-move:1.25s;       /* подъём */
  --step-rise:28px;        /* насколько шаг выезжает снизу */
  --step-ease:cubic-bezier(0.33,1,0.68,1);
}
/* стартовое скрытое состояние — только при включённом JS */
.js .step .step-num,
.js .step .step-body{opacity:0;}
.js .step .step-num{transform:translateY(var(--step-rise)) scale(0.86);}
.js .step .step-body{transform:translateY(var(--step-rise));}
/* видимое состояние — скрипт добавил .is-visible */
.js .step.is-visible .step-num,
.js .step.is-visible .step-body{
  opacity:1;transform:none;
  transition:opacity var(--step-fade) ease, transform var(--step-move) var(--step-ease);
  transition-delay:var(--step-delay,0ms);
}
/* текст трогается на 130ms позже номера */
.js .step.is-visible .step-body{
  transition-delay:calc(var(--step-delay,0ms) + 130ms);
}
/* чёрная карточка итогового портфеля — тот же выезд снизу, после 5-го шага */
/* прогресс-линия: лаймовый слой поверх серой линии, свёрнут по умолчанию */
.step-rail .line::after{
  content:"";position:absolute;inset:0;
  background:var(--lime-400);
  transform:scaleY(0);transform-origin:top;
}
@keyframes step-line-fill{from{transform:scaleY(0);}to{transform:scaleY(1);}}
/* только там, где есть scroll-driven animations */
@supports (animation-timeline:view()){
  .step{view-timeline:--step-view block;}
  .step-rail .line::after{
    animation:step-line-fill linear both;
    animation-timeline:--step-view;
    animation-range:cover 8% cover 58%;
  }
}
/* доступность: при reduce — всё статично */
@media (prefers-reduced-motion:reduce){
  .step-rail .line::after{animation:none;}
  .js .step .step-num,
  .js .step .step-body,
}
.step-title{
  margin:10px 0 8px;font-weight:var(--weight-medium);font-size:var(--step-title-size);
  line-height:1.2;letter-spacing:var(--type-card-title-track);color:var(--text-strong);text-wrap:pretty;
}

/* ============================================================
   РЕЗУЛЬТАТ
   ============================================================ */
.result-card{display:flex;flex-direction:column;gap:14px;}
/* «Результат участника»: в одну колонку с 680px (а не с общих 880px) */
.result-grid{grid-template-columns:1fr 1fr;}
@media (max-width:680px){.result-grid{grid-template-columns:1fr;}}
.icon-lime{width:40px;height:40px;background:var(--lime-400);color:var(--text-on-accent);}

/* ============================================================
   БОНУС
   ============================================================ */
.bonus{position:relative;overflow:hidden;background:var(--black);border-radius:var(--radius-card);}
.bonus-body{display:flex;flex-direction:column;gap:18px;padding:var(--bonus-pad);}
.pill-lime{
  align-self:flex-start;padding:6px 12px;border-radius:var(--radius-pill);background:var(--lime-400);
  font-family:var(--font-mono);font-weight:var(--weight-bold);font-size:10px;
  letter-spacing:var(--type-label-track-wide);text-transform:uppercase;color:var(--text-on-accent);
}
.bonus-title{
  font-weight:var(--weight-medium);font-size:var(--ex-title-size);line-height:1.1;
  letter-spacing:var(--type-section-track);color:var(--white);text-wrap:pretty;
}
.bonus-text{font-weight:var(--weight-medium);font-size:var(--body-size);line-height:var(--type-body-line);color:var(--white);text-wrap:pretty;}
.bonus-list{display:flex;flex-direction:column;gap:10px;}
.bonus-item{display:grid;grid-template-columns:28px minmax(0,1fr);gap:14px;align-items:center;}
.bonus-item .mk{width:28px;height:28px;background:rgba(255,255,255,0.15);color:var(--white);}
.bonus-item p{font-weight:var(--weight-medium);font-size:15.5px;line-height:1.35;color:var(--white);text-wrap:pretty;}
.bonus-strip{display:flex;flex-wrap:wrap;align-items:center;gap:14px;min-height:60px;padding:12px var(--bonus-pad);background:var(--lime-400);}
.bonus-combo{display:inline-flex;align-items:center;gap:6px;}
.pill-black{
  display:inline-flex;align-items:center;padding:7px 14px;border-radius:var(--radius-pill);background:var(--black);
  font-weight:var(--weight-semibold);font-size:13px;color:var(--white);
}
.bonus-plus{color:var(--text-on-accent);font-size:18px;line-height:1;}
.bonus-strip-text{font-weight:var(--weight-medium);font-size:13px;line-height:1.35;color:var(--text-on-accent);text-wrap:pretty;}

/* ============================================================
   КАК ПРОХОДИТ ОБУЧЕНИЕ
   ============================================================ */
.format-card{display:flex;flex-direction:column;gap:12px;padding:var(--format-pad);}
.format-card .ph--16-9{margin-bottom:0;border-radius:var(--radius-tile-sm);}
/* ≤560px карточки идут в одну колонку: картинка 60% на 560px, плавно до 100% к 400px
   (ширина контента карточки = 100vw − 20px пэддинг страницы − 36px пэддинг карточки) */
@media (max-width:560px){
  .format-card .ph--16-9{width:clamp(60%, calc(302.4px + 0.26*(560px - 100vw)), 100%);}
}

/* ============================================================
   АВТОР КУРСА
   ============================================================ */
/* Заголовок секции */
.author__heading{
  margin:0 0 28px;
  font-family:var(--font-sans);
  font-weight:var(--weight-medium);
  font-size:var(--type-section-size);
  line-height:var(--type-section-line);
  letter-spacing:var(--type-section-track);
  color:var(--text-strong);
}

/* Единая карточка: резиновая колонка под текст + 320px под фото справа */
.author__bento{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  align-items:stretch;                /* фото тянется на высоту карточки */
  background:var(--surface-card);     /* одна белая плашка */
  border-radius:var(--radius-card);
  overflow:hidden;                    /* клипаем фото по радиусу карточки */
}

/* Портрет — зона справа внутри общей карточки */
.author__photo{
  position:relative;
  grid-column:2;grid-row:1;           /* фото — правая колонка, та же строка */
  min-height:100%;
  overflow:hidden;
  background:var(--surface-placeholder);
  display:flex;align-items:center;justify-content:center;  /* центрируем фолбэк-подпись */
}
.author__photo img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 12%;
  display:block;
}

/* Текстовая часть — левая колонка общей карточки */
.author__card{
  grid-column:1;grid-row:1;           /* текст — левая колонка, та же строка */
  padding:40px 52px 42px;
}
.author__name{
  margin:0 0 6px;
  font-family:var(--font-sans);
  font-weight:var(--weight-bold);
  font-size:26px;
  line-height:1.12;
  letter-spacing:-0.6px;
  color:var(--text-strong);
}
.author__role{
  margin:0 0 26px;
  font-family:var(--font-sans);
  font-weight:var(--weight-medium);
  font-size:16px;
  line-height:1.45;
  color:var(--text-strong);
  text-wrap:pretty;
}

/* Список фактов — лаймовые кружки с чёрной галочкой */
.author__list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:13px;
}
.author__list li{
  display:grid;
  grid-template-columns:28px 1fr;
  gap:12px;
  align-items:start;
  font-family:var(--font-sans);
  font-weight:var(--weight-medium);
  font-size:16px;
  line-height:1.5;
  color:var(--text-ink);
  text-wrap:pretty;
}
.author__check{
  width:28px;
  height:28px;
  border-radius:var(--radius-round);
  background:var(--lime-400);
  color:var(--text-on-accent);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  margin-top:2px;
  box-shadow:0 4px 14px rgba(190,235,113,0.65);
}
.author__check svg{width:15px;height:15px;}

/* ---- Адаптив ≤880px: карточка в вертикаль (фото сверху, текст снизу) + типографика.
        В исходном пакете это были два брейкпоинта (1180 и 768); здесь сведены
        к брейкпоинту проекта, чтобы блок ломался синхронно с остальными секциями. ---- */
@media (max-width:880px){
  .author__heading{margin-bottom:22px;}
  .author__bento{grid-template-columns:1fr;}
  .author__card,.author__photo{grid-column:auto;grid-row:auto;}
  .author__photo{min-height:380px;}
  .author__card{padding:28px 26px 30px;}
  .author__role{font-size:15px;margin-bottom:22px;}
  .author__list{gap:11px;}
  .author__list li{font-size:15px;}
}

/* ---- Адаптив ≤560px: narrow ---- */
@media (max-width:560px){
  .author__heading{margin-bottom:18px;font-size:clamp(24px,7vw,28px);}
  .author__photo{min-height:300px;}
  .author__card{padding:22px 18px 24px;}
  .author__name{font-size:22px;}
  .author__role{font-size:15px;margin-bottom:18px;}
  .author__list{gap:9px;}
  .author__list li{font-size:15px;grid-template-columns:26px 1fr;gap:10px;}
  .author__check{width:26px;height:26px;}
  .author__check svg{width:14px;height:14px;}
}

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.review-badge{
  display:inline-flex;align-self:flex-start;align-items:center;gap:8px;padding:7px 14px;border-radius:var(--radius-pill);
  background:var(--surface-soft);border:1px solid var(--line-hairline);
}
.review-badge .dot{width:8px;height:8px;border-radius:var(--radius-round);background:var(--lime-400);flex:none;}
.review-badge span{font-family:var(--font-mono);font-weight:var(--weight-bold);font-size:11px;letter-spacing:var(--type-label-track-wide);text-transform:uppercase;color:var(--text-muted);}

/* Три явные колонки: нужно точно контролировать, в какой колонке какая карточка */
.reviews__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:30px;
  align-items:start;
}
.reviews__col{display:flex;flex-direction:column;gap:30px;min-width:0;}

.review{
  display:flex;
  flex-direction:column;
  gap:10px;
  background:var(--surface-card);
  border-radius:16px;
  padding:20px;
  cursor:pointer;
  transition:transform var(--transition),box-shadow var(--transition);
}
.review:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(0,0,0,0.06);}
/* Акцентная лаймовая карточка */
.review--highlight{background:var(--lime-300);}
/* Большая кавычка */
.review__quote{
  font-family:var(--font-sans);
  font-size:40px;line-height:50px;font-weight:var(--weight-medium);letter-spacing:2px;
  color:rgba(47,47,49,0.30);
  user-select:none;
}
.review__text{font-size:16px;line-height:24px;font-weight:var(--weight-medium);color:var(--text-strong);margin:0;}
.review__text strong{font-weight:var(--weight-bold);}
/* Заредактированный фрагмент (имя чужой школы скрыто) */
.review__redacted{
  display:inline-block;width:59px;height:14px;vertical-align:middle;
  background:var(--surface-placeholder);border-radius:2px;
}
/* Ссылка «читать полностью» */
.review__link{
  display:inline-block;width:fit-content;
  font-size:14px;line-height:21px;font-weight:var(--weight-medium);
  color:rgba(47,47,49,0.60);text-decoration:none;
  transition:color var(--transition);
}
.review__link:hover{color:var(--black);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;}
.review__link:active{color:var(--black);text-decoration:none;}

/* Карточки со скрином из чата */
.review--image{padding:0;overflow:hidden;gap:0;cursor:zoom-in;}
.review__photo-btn{
  position:relative;display:block;width:100%;min-height:200px;
  padding:0;margin:0;border:0;
  background:var(--surface-placeholder);
  cursor:zoom-in;overflow:hidden;line-height:0;
}
.review__photo{
  position:relative;display:block;width:100%;height:auto;object-fit:cover;
  transition:transform var(--transition);
}
.review__photo-btn:hover .review__photo{transform:scale(1.02);}

/* Контрол «Показать все / Скрыть отзывы» — виден только на мобилке */
.reviews__toggle{display:none;}

/* ---- Попап «читать полностью» ---- */
.review-modal{
  position:fixed;inset:0;z-index:1000;
  display:none;align-items:flex-start;justify-content:center;
  padding:80px 20px 40px;overflow-y:auto;
}
.review-modal.is-open{display:flex;}
.review-modal__overlay{position:fixed;inset:0;background:rgba(0,0,0,0.40);z-index:0;}
.review-modal__dialog{
  position:relative;z-index:1;width:100%;max-width:640px;
  background:var(--surface-card);border-radius:24px;padding:40px 40px 32px;
  box-shadow:0 30px 80px rgba(0,0,0,0.25);
  display:flex;flex-direction:column;gap:24px;
}
.review-modal__content{display:flex;flex-direction:column;gap:24px;}
.review-modal__qa{display:flex;flex-direction:column;gap:8px;}
.review-modal__question{font-size:16px;line-height:22.4px;font-weight:var(--weight-bold);color:var(--text-strong);margin:0;}
.review-modal__answer{
  font-size:16px;line-height:24px;font-weight:var(--weight-regular);color:var(--text-strong);margin:0;
  white-space:pre-line;
}
.review-modal__answer strong{font-weight:var(--weight-bold);}
.review-modal__close{
  position:absolute;top:20px;right:20px;width:32px;height:32px;
  display:inline-flex;align-items:center;justify-content:center;
  background:none;border:0;padding:0;margin:0;
  color:rgba(0,0,0,0.60);cursor:pointer;border-radius:var(--radius-round);
  transition:color var(--transition),background-color var(--transition);
}
.review-modal__close:hover{color:var(--black);background:rgba(0,0,0,0.06);}
.review-modal__close:active{background:rgba(0,0,0,0.10);}
.review-modal__nav{display:flex;justify-content:space-between;align-items:center;gap:16px;}
.review-modal__btn{
  background:none;border:0;padding:0;margin:0;font-family:inherit;
  font-size:14px;line-height:21px;font-weight:var(--weight-medium);
  color:rgba(0,0,0,0.60);cursor:pointer;text-decoration:none;
  transition:color var(--transition);
}
.review-modal__btn:hover{color:var(--black);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;}
.review-modal__btn:active{color:var(--black);text-decoration:none;}
.review-modal__btn:disabled,
.review-modal__btn[disabled]{color:rgba(0,0,0,0.20);cursor:default;text-decoration:none;pointer-events:none;}
body.is-modal-open{overflow:hidden;}

/* ---- Лайтбокс (просмотр скринов чатов) ---- */
.lightbox{
  position:fixed;inset:0;z-index:1100;
  display:none;align-items:center;justify-content:center;padding:40px 20px;
}
.lightbox.is-open{display:flex;}
.lightbox__overlay{position:fixed;inset:0;background:rgba(0,0,0,0.40);z-index:0;}
.lightbox__dialog{
  position:relative;z-index:1;max-width:min(92vw,1100px);max-height:92vh;
  display:flex;align-items:center;justify-content:center;
}
.lightbox__image{
  display:block;max-width:100%;max-height:92vh;width:auto;height:auto;
  border-radius:12px;box-shadow:0 30px 80px rgba(0,0,0,0.40);background:var(--surface-card);
}
.lightbox__close{
  position:absolute;top:20px;right:20px;width:32px;height:32px;
  display:inline-flex;align-items:center;justify-content:center;
  background:none;border:0;padding:0;margin:0;
  color:rgba(0,0,0,0.60);cursor:pointer;border-radius:var(--radius-round);
  transition:color var(--transition),background-color var(--transition);
}
.lightbox__close:hover{color:var(--black);background:rgba(0,0,0,0.06);}
.lightbox__close:active{background:rgba(0,0,0,0.10);}

/* Скриншот переписки шириной ~900px, вписанный в телефон, даёт текст ~7px — а открывают
   лайтбокс именно ради текста. На узких экранах показываем картинку в натуральную
   величину и даём пролистать её по горизонтали (как на /osnova-defi/). */
@media (max-width:700px){
  .lightbox{padding:56px 0 24px;justify-content:flex-start;overflow-x:auto;}
  .lightbox__dialog{max-width:none;flex:none;}
  .lightbox__image{max-width:none;border-radius:0;}
  /* Крестик прибит к экрану: диалог шире вьюпорта и при прокрутке уехал бы вправо. */
  .lightbox__close{position:fixed;top:12px;right:12px;background:rgba(255,255,255,0.92);}
}

/* ---- Адаптив ≤880px: masonry в 2 столбца.
        В исходном пакете брейкпоинты 1024/767; здесь сведены к проектным 880/560. ---- */
@media (max-width:880px){
  .reviews__grid{display:block;column-count:2;column-gap:20px;}
  .reviews__col{display:contents;}
  .review{margin:0 0 20px;break-inside:avoid;-webkit-column-break-inside:avoid;page-break-inside:avoid;}
  .review-modal{padding:60px 16px 40px;}
  .review-modal__dialog{padding:32px 28px 24px;border-radius:20px;}
}

/* ---- Адаптив ≤560px: один столбец; видны первые 4 карточки, остальные — по клику ---- */
@media (max-width:560px){
  .reviews__grid{display:block;column-count:1;column-gap:0;}
  .reviews__col{display:contents;}
  .review{margin:0 0 14px;padding:18px;break-inside:avoid;}
  .review__quote{font-size:32px;line-height:36px;}
  .review__text{font-size:15px;line-height:22.5px;}
  .review-modal{padding:40px 12px 24px;}
  .review-modal__dialog{padding:24px 20px 20px;border-radius:16px;gap:20px;}
  .review-modal__nav{flex-direction:column;align-items:flex-start;gap:10px;}
  .reviews__grid:not(.is-expanded) .review--extra{display:none;}
  .reviews__toggle{
    display:inline-flex;align-items:center;gap:8px;
    margin:16px 0 0;padding:8px 0;
    background:transparent;border:0;cursor:pointer;
    font-family:var(--font-sans);font-size:16px;line-height:1.2;font-weight:var(--weight-medium);
    color:var(--text-strong);text-decoration:none;
  }
  .reviews__toggle:hover{text-decoration:underline;}
  .reviews__toggle:active{text-decoration:none;}
  .reviews__toggle-arrow{display:inline-block;font-size:16px;line-height:1;}
}

/* ---- Telegram-кнопка «Канал с отзывами» ---- */
.reviews__channel{margin-top:48px;display:flex;flex-direction:column;align-items:center;gap:16px;}
.reviews__channel-btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:100%;gap:16px;padding:30px 48px;
  border-radius:var(--radius-pill);
  background:#229ED9;color:var(--white);
  font-family:var(--font-sans);font-size:24px;font-weight:var(--weight-semibold);letter-spacing:-0.01em;
  text-decoration:none;transition:var(--transition-interactive);
}
.reviews__channel-btn:hover{transform:translateY(-2px);background:#1E8FC4;color:var(--white);}
.reviews__channel-icon{flex:none;display:inline-flex;width:34px;height:34px;}
.reviews__channel-icon svg{width:100%;height:100%;display:block;}
.reviews__channel-note{
  margin:0;text-align:center;font-family:var(--font-sans);
  font-size:16px;font-weight:var(--weight-medium);line-height:1.45;color:var(--text-muted);
}
@media (max-width:880px){
  .reviews__channel-btn{padding:24px 30px;font-size:19px;}
  .reviews__channel-icon{width:30px;height:30px;}
  .reviews__channel{margin-top:36px;gap:14px;}
  .reviews__channel-note{font-size:15px;}
}
@media (max-width:560px){
  .reviews__channel-btn{padding:20px 24px;font-size:17px;gap:12px;}
  .reviews__channel-icon{width:26px;height:26px;}
}

/* ============================================================
   ТАРИФЫ
   ============================================================ */
.tiers{display:grid;grid-template-columns:var(--two-col);gap:16px;align-items:stretch;}
.tier{position:relative;display:flex;flex-direction:column;padding:var(--cond-pad);border-radius:var(--radius-card);}
.tier--base{background:var(--white);}
.tier--accent{background:color-mix(in srgb, var(--lime-400) 30%, #fff);}
.tier-badge{
  position:absolute;top:0;left:var(--cond-pad);transform:translateY(-50%);
  padding:8px 16px;border-radius:var(--radius-pill);background:var(--lime-400);color:var(--text-on-accent);
  font-family:var(--font-mono);font-weight:var(--weight-bold);font-size:10px;
  letter-spacing:var(--type-label-track-wide);text-transform:uppercase;
}
.tier-name{
  margin-bottom:20px;font-weight:var(--weight-medium);font-size:var(--tier-name-size);
  line-height:1.15;letter-spacing:var(--type-card-title-track);color:var(--text-strong);text-wrap:pretty;
  overflow-wrap:anywhere;
}
.tier-feats{display:flex;flex-direction:column;gap:12px;margin-bottom:24px;}
.tier-feat{display:grid;grid-template-columns:26px minmax(0,1fr);gap:12px;align-items:flex-start;}
.tier-feat .mk{margin-top:1px;width:26px;height:26px;}
.mk--soft{background:var(--surface-soft);color:var(--text-strong);}
.mk--lime{background:var(--lime-400);color:var(--text-on-accent);}
.mk--black{background:var(--black);color:var(--lime-400);}
.tier-feat p{font-weight:var(--weight-medium);font-size:14px;line-height:1.4;color:var(--text-body);text-wrap:pretty;}
.tier-feat p.strong{font-weight:var(--weight-semibold);}
.tier-foot{margin-top:auto;display:flex;flex-direction:column;gap:16px;}
.tier-prices{display:flex;flex-direction:column;gap:6px;}
.tier-price-row{display:flex;align-items:baseline;flex-wrap:wrap;gap:10px;}
/* Разряды цены приходят из БД через format_money — там ОБЫЧНЫЙ пробел, а не &nbsp;,
   поэтому во flex-ряду «25 000 ₽» иначе рвётся между «25» и «000». */
.tier-price,.tier-price-old,.tier-price-usd{white-space:nowrap;}
.tier-price{font-weight:var(--weight-semibold);font-size:30px;line-height:1;letter-spacing:-0.8px;color:var(--text-strong);}
/* цена после закрытия промо-окна — показана зачёркнутой рядом с действующей;
   и она, и дедлайн приходят из тарифа (get_offer_tiles), в вёрстке их нет */
.tier-price-old{
  font-weight:var(--weight-medium);font-size:18px;line-height:1;letter-spacing:-0.3px;
  color:var(--text-muted);text-decoration:line-through;text-decoration-thickness:1.5px;
}
.tier-price-usd{font-weight:var(--weight-medium);font-size:13px;line-height:1.3;color:var(--text-muted);}
/* дедлайн текущей цены = active_until промо-окна тарифа */
.tier-deadline{font-weight:var(--weight-medium);font-size:13px;line-height:1.3;color:var(--text-strong);}
.tier-deadline .hl{border-radius:7px;}
.tier-action{display:flex;flex-direction:column;align-items:center;gap:12px;}
.btn-pay{
  display:flex;width:100%;align-items:center;justify-content:center;box-sizing:border-box;
  padding:23px 24px;background:var(--surface-invert);color:var(--text-on-invert);border-radius:var(--radius-pill);
  font-family:var(--font-sans);font-weight:var(--weight-semibold);font-size:15px;letter-spacing:var(--type-cta-track);
  text-decoration:none;cursor:pointer;box-shadow:0 12px 28px rgba(0,0,0,0.16);
  transition:transform .15s ease,box-shadow .15s ease;
}
.btn-pay:hover{color:var(--text-on-invert);transform:translateY(-2px);box-shadow:0 16px 34px rgba(0,0,0,0.22);}
.install-link{font-weight:var(--weight-medium);font-size:13px;color:var(--text-body);text-decoration:underline;text-underline-offset:3px;cursor:pointer;}

/* консультация */
.consult{
  margin-top:16px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;
  padding:var(--consult-pad);border-radius:var(--radius-card-sm);background:var(--grey-400);
}
.consult-text{display:flex;flex-direction:column;gap:6px;min-width:0;}
.consult-text .q{font-weight:var(--weight-medium);font-size:18px;line-height:1.2;letter-spacing:-0.2px;color:var(--text-strong);}
.consult-text .d{font-weight:var(--weight-medium);font-size:14px;line-height:1.4;color:var(--text-muted);}
.consult-btn{
  flex:none;display:inline-flex;align-items:center;gap:8px;padding:12px 22px;border-radius:var(--radius-pill);
  background:var(--grey-200);color:var(--text-strong);border:none;
  font-family:var(--font-sans);font-weight:var(--weight-medium);font-size:14px;text-decoration:none;cursor:pointer;
  transition:transform .15s ease;
}
.consult-btn:hover{transform:translateY(-1px);color:var(--text-strong);}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list{display:flex;flex-direction:column;gap:10px;}
.faq{background:var(--surface-card);border-radius:var(--radius-card-sm);overflow:hidden;}
.faq-q{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:24px var(--cond-pad);background:none;border:none;cursor:pointer;text-align:left;
  font-family:var(--font-sans);font-weight:var(--weight-medium);font-size:18px;line-height:1.35;
  letter-spacing:var(--type-card-title-track);color:var(--text-strong);
}
.faq-chev{
  width:34px;height:34px;border-radius:var(--radius-round);background:var(--surface-soft);color:var(--text-strong);
  display:inline-flex;align-items:center;justify-content:center;flex:none;
  transition:transform .38s cubic-bezier(.4,0,.2,1),background-color .38s cubic-bezier(.4,0,.2,1);
}
.faq.open .faq-chev{transform:rotate(180deg);background:var(--lime-400);}
.faq-a{display:grid;grid-template-rows:0fr;transition:grid-template-rows .38s cubic-bezier(.4,0,.2,1);}
.faq.open .faq-a{grid-template-rows:1fr;}
.faq-a-inner{overflow:hidden;}
.faq-a-inner .pad{padding:0 var(--cond-pad) 26px;}
.faq-a-inner p{font-weight:var(--weight-medium);font-size:var(--body-size);line-height:var(--type-body-line);color:var(--text-body);margin-bottom:10px;text-wrap:pretty;}
.faq-a-inner p:last-child{margin-bottom:0;}

/* ===========================================================
   19. Футер — общий include templates/includes/landing_footer.html
   =========================================================== */

/* -----------------------------------------------------------
   Container — обёртка футера. Футер — фикс-ширинный брендовый блок:
   на /, /pre-registration/, /open/ контейнер = 966px. Здесь контентная
   колонка шире (1240px), поэтому НЕ тянем футер на её ширину — иначе бренд
   и ссылки расходятся к краям с пустотой посередине («плохо сделан»).
   966px по центру читается как осознанный футер и совпадает с остальными.
----------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 966px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}
@media (max-width: 1023px) {
    .container { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 767px) {
    .container { padding-left: 20px; padding-right: 20px; }
}

/* -----------------------------------------------------------
   Футер (портирован из landings/pre_registration)
----------------------------------------------------------- */
.footer {
    background: #000000;
    color: #FFFFFF;
    margin-top: 80px;
}

.footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    column-gap: 32px;
    row-gap: 16px;
    padding-top: 18px;
    padding-bottom: 24px;
    min-height: 90px;
}

.footer__col--brand {
    font-family: 'PT Mono', 'Menlo', 'Courier New', monospace;
    font-size: 35.75px;
    line-height: 39.33px;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    align-self: center;
}

.footer__col--links {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 26px;
    font-weight: 500;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link {
    color: #FFFFFF;
    text-decoration: none;
}

.footer__social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* tablet */
@media (max-width: 960px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr;
        row-gap: 16px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .footer__col--brand {
        grid-column: 1 / -1;
        font-size: 28px;
        line-height: 1.1;
    }
}

/* mobile */
@media (max-width: 640px) {
    .footer__inner {
        grid-template-columns: 1fr;
        row-gap: 14px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .footer__col--brand {
        grid-column: auto;
        font-size: 26px;
    }

    .footer__inner > div:empty {
        display: none;
    }
}

/* ===========================================================
   20. Поп-ап консультации — общий include landings/offer/_consult_modal.html
   + static/js/consult.js
   =========================================================== */

.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 40px;
  overflow-y: auto;
}
.consult-modal.is-open {
  display: flex;
}
.consult-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}
.consult-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 24px;
  padding: 40px 36px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: consult-modal-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes consult-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.consult-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.consult-modal__close:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.06);
}
.consult-modal__title {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-strong);
  margin: 0;
  padding-right: 24px;
}
.consult-modal__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.consult-modal__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1.5px solid #e4e4e4;
  border-radius: var(--radius-card);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.35;
  color: var(--text-body);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.consult-modal__option:hover {
  border-color: var(--text-strong);
  background: #fafafa;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}
.consult-modal__option:active {
  transform: translateY(0);
  box-shadow: none;
}
.consult-modal__arrow {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--lime-400);
  color: var(--text-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.consult-modal__arrow svg {
  width: 15px;
  height: 15px;
}
.consult-modal__option:hover .consult-modal__arrow {
  background: var(--lime-300);
}
.consult-modal__hint {
  margin: 12px 0 22px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-muted);
}
.consult-modal__auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 22px;
  background: var(--lime-400);
  color: var(--text-strong);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 34px rgba(190, 235, 113, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.consult-modal__auth-btn:hover {
  transform: translateY(-2px);
  background: var(--lime-300);
  box-shadow: 0 20px 44px rgba(190, 235, 113, 0.38);
}
.consult-modal__auth-btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}
.consult-modal__auth-status {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
}
@media (max-width: 480px) {
  .consult-modal { padding: 60px 14px 30px; }
  .consult-modal__dialog { padding: 32px 22px 26px; border-radius: 20px; }
  .consult-modal__title { font-size: 21px; }
}

/* ===========================================================
   21. Узкие телефоны — бандл адаптирован только до 560px
   =========================================================== */

@media (max-width:480px){
  /* Подсветка перестаёт быть плашкой-боксом: на узкой колонке она шире её */
  .hl{display:inline;}
  .cta-row .btn,.cta-row .btn-ghost{padding:20px 18px;font-size:16px;}
  .btn-pay{padding:20px 16px;}
  .consult-btn{padding:18px 20px;}
  .tier-price{font-size:26px;}
}

@media (max-width:380px){
  :root{
    /* 10px бокового поля при 26px внутри карточек читалось как «прилипло к краю» */
    --page-pad:12px 14px 24px;
    --cond-pad:20px;
    --type-section-size:24px;
    --hero-title-size:23px;
    --tier-name-size:22px;
  }
  .cta-row .btn,.cta-row .btn-ghost{padding:18px 12px;font-size:15px;}
  .btn-pay{padding:18px 12px;font-size:14px;}
  .tier-price{font-size:23px;}
  .tier-price-old{font-size:16px;}
}
