/* ===========================================================================
   KDigital — сайт-зонтик (главная + Школа трафика + Школа AI + Клуб).
   Один общий kit на 4 страницы. Компоненты повторяют боевой сайт
   kdigital-school.online и mk-лендинг: топбар, шапка, hero, карточки,
   карусель кейсов, тарифы, FAQ, футер, фирменная «трасса».

   Цвета/шрифты/отступы — ТОЛЬКО токены из ../_shared/styles.css.

   АКЦЕНТ-СИСТЕМА: у каждого направления свой цвет. Тело страницы задаёт
   data-accent → все ключевые акценты (кнопки, кикеры, ticks, градиенты,
   трасса, подсветки) перекрашиваются одним переключателем:
     <body>                     фиолет  (главная, школа трафика)  — по умолчанию
     <body data-accent="ai">    циан    (школа AI / нейросети)
     <body data-accent="club">  маджента (клуб фрилансеров)
   =========================================================================== */

:root {
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --space-7: 28px;   /* локальный шаг между 24 и 32 — интерьер крупных карточек */

  /* ---- Акцент по умолчанию = фиолет бренда --------------------------- */
  --acc:        var(--violet-500);
  --acc-600:    var(--violet-600);
  --acc-700:    var(--violet-700);
  --acc-300:    var(--violet-300);
  --acc-200:    var(--violet-200);
  --acc-100:    var(--violet-100);
  --acc-soft:   var(--violet-50);
  --acc-grad-a: var(--violet-500);
  --acc-grad-b: var(--violet-700);
  --acc-shadow: 0 12px 28px rgba(130, 78, 249, 0.30);
}
/* Школа AI / нейросети — циан */
body[data-accent="ai"] {
  --acc:        var(--cyan-500);
  --acc-600:    var(--cyan-600);
  --acc-700:    var(--cyan-700);
  --acc-300:    var(--cyan-300);
  --acc-200:    var(--cyan-200);
  --acc-100:    var(--cyan-100);
  --acc-soft:   var(--cyan-50);
  --acc-grad-a: var(--violet-500);
  --acc-grad-b: var(--cyan-500);
  --acc-shadow: 0 12px 28px rgba(6, 182, 212, 0.28);
}
/* Клуб фрилансеров — маджента */
body[data-accent="club"] {
  --acc:        var(--magenta-400);
  --acc-600:    var(--magenta-500);
  --acc-700:    var(--magenta-600);
  --acc-300:    var(--magenta-300);
  --acc-200:    var(--magenta-200);
  --acc-100:    var(--magenta-100);
  --acc-soft:   var(--magenta-50);
  --acc-grad-a: var(--magenta-400);
  --acc-grad-b: var(--violet-600);
  --acc-shadow: 0 12px 28px rgba(167, 77, 206, 0.28);
}

/* --- База --------------------------------------------------------------- */
body { background: var(--surface-page); color: var(--text-body); font-family: var(--font-body); }
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-pad); }

.section { padding-block: clamp(56px, 7vw, 104px); }
.section--sunken { background: var(--surface-sunken); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }

.section__head { max-width: 780px; margin: 0 0 var(--space-12); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .kicker { justify-content: center; }
.section__head--center .section__sub { margin-inline: auto; }
.section__title {
  font-family: var(--font-display); font-weight: var(--weight-extra);
  font-size: clamp(30px, 3.6vw, 48px); line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight); color: var(--text-strong);
  margin: var(--space-4) 0 0; text-wrap: balance;
}
.section__sub { color: var(--text-secondary); font-size: var(--text-lg); line-height: var(--leading-relaxed); margin: var(--space-5) 0 0; max-width: 62ch; text-wrap: pretty; }
.section__cta { margin-top: var(--space-12); text-align: center; display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* Градиент-акцент в заголовках (перекрашивается акцентом направления) */
.grad {
  background: linear-gradient(135deg, var(--acc-grad-a), var(--acc-grad-b));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--acc);
}
.grad-violet { /* alias для совместимости с mk-разметкой */
  background: linear-gradient(135deg, var(--acc-grad-a), var(--acc-grad-b));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--acc);
}

/* --- Kicker / eyebrow --------------------------------------------------- */
.kicker {
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: var(--space-2);
}
.kicker .pulse { width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--acc); flex: none; }
.kicker--pill {
  padding: var(--space-2) var(--space-4); background: var(--acc-soft);
  border: 1px solid var(--acc-100); border-radius: var(--radius-pill); color: var(--acc-700);
}

/* --- Кнопки ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6); border: 1px solid transparent; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: var(--weight-semibold); font-size: var(--text-md);
  text-decoration: none; cursor: pointer; letter-spacing: -0.005em;
  transition: background var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}
.btn-primary { background: var(--acc); color: var(--action-fg); box-shadow: var(--acc-shadow); }
.btn-primary:hover { background: var(--acc-600); transform: translateY(-1px); box-shadow: var(--shadow-lg), var(--acc-shadow); }
.btn-primary:active { background: var(--acc-700); transform: translateY(0); box-shadow: var(--acc-shadow); }
.btn-ghost { background: transparent; color: var(--text-strong); border-color: var(--border-default); }
.btn-ghost:hover { border-color: var(--text-strong); background: var(--surface-sunken); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-md); }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.btn:focus-visible { outline: 2px solid var(--acc-300); outline-offset: 2px; }

/* --- Списки с галочками ------------------------------------------------- */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.ticks li { position: relative; padding-left: var(--space-8); color: var(--text-body); line-height: var(--leading-normal); font-size: var(--text-sm); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: var(--weight-bold);
  color: var(--acc-600); background: var(--acc-soft); border-radius: var(--radius-pill);
}
.ticks--cols { grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-8); }
.ticks--sm li { font-size: var(--text-sm); }

/* Дисклеймер (доход не гарантия / кейсы разные) — впритык к результатам */
.legal-note { max-width: 64ch; margin: var(--space-6) auto 0; text-align: center; font-size: var(--text-xs); color: var(--text-secondary); line-height: var(--leading-normal); }
.legal-note--inline { margin: var(--space-4) 0 0; text-align: left; font-size: var(--text-xs); color: var(--text-muted); }

/* ============================ ТОПБАР ============================ */
.topbar { background: linear-gradient(95deg, var(--acc), var(--acc-600)); color: var(--paper); padding: 10px 0; font-family: var(--font-body); font-size: var(--text-sm); font-weight: var(--weight-medium); letter-spacing: -0.005em; }
.topbar__inner { max-width: var(--container-max); margin: 0 auto; padding-inline: var(--container-pad); display: flex; align-items: center; justify-content: center; gap: var(--space-3); flex-wrap: wrap; text-align: center; }
.topbar__dot { width: 8px; height: 8px; background: rgba(255,255,255,0.85); border-radius: var(--radius-pill); }
.topbar__label { font-family: var(--font-mono); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; font-size: var(--text-xs); }
.topbar__sep { opacity: 0.5; }
.topbar__text { opacity: 0.95; }
.topbar__cta { color: var(--paper); font-weight: var(--weight-semibold); text-decoration: underline; text-underline-offset: 3px; margin-left: 8px; }
.topbar__cta:hover { opacity: 0.85; }

/* ============================ ШАПКА ============================ */
.shell { background: var(--paper); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border-subtle); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: var(--header-height); padding: 0 var(--container-pad); max-width: var(--container-max); margin: 0 auto; }
.nav-logo { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-xl); color: var(--text-strong); text-decoration: none; letter-spacing: var(--tracking-tight); display: inline-flex; align-items: center; gap: 2px; flex: none; }
.nav-logo .dot { color: var(--acc); }
.nav-links { display: flex; gap: var(--space-6); align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: var(--text-sm); font-weight: var(--weight-medium); text-decoration: none; transition: color var(--duration-normal) var(--ease-out); white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-strong); }
.nav-links a[aria-current="page"] { color: var(--acc-700); }
.nav-actions { display: flex; gap: var(--space-3); align-items: center; }
/* Кнопка-гамбургер (мобильное меню) */
.nav-toggle { display: none; flex: none; width: 44px; height: 44px; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--paper); color: var(--text-strong); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle:focus-visible { outline: 2px solid var(--acc-300); outline-offset: 2px; }
/* Выпадающее меню «Школа трафика» в шапке: при наведении показывает курсы направления. */
.nav-drop { position: relative; display: inline-flex; align-items: center; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-drop > a::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); opacity: .5; transition: transform var(--duration-normal) var(--ease-out), opacity var(--duration-normal) var(--ease-out); }
.nav-drop:hover > a::after, .nav-drop:focus-within > a::after { transform: rotate(225deg) translate(1px, 1px); opacity: 1; }
.nav-drop__menu { position: absolute; top: 100%; left: 0; transform: translateY(6px);
  display: flex; flex-direction: column; gap: 2px; min-width: 246px; padding: 8px;
  background: var(--paper); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out); z-index: 70; }
.nav-drop__menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; } /* мостик через зазор, чтобы меню не закрывалось при переходе курсора */
.nav-drop:hover .nav-drop__menu, .nav-drop:focus-within .nav-drop__menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.nav-drop__menu a { white-space: nowrap; padding: 9px 14px; border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-secondary); }
.nav-drop__menu a:hover { background: var(--acc-soft); color: var(--acc-700); }

/* ============================ HERO — фото-подложка (текст слева, фото справа) ============================ */
.home-hero { background: var(--paper); position: relative; }
.home-hero--photo {
  position: relative;
  background-color: #f2f0f3;
  background-size: cover; background-position: center top; background-repeat: no-repeat;
  aspect-ratio: 1440 / 700; min-height: 480px;
  display: flex; align-items: center;
}
.home-hero--photo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 54% 84% at 22% 50%, rgba(255,255,255,0.60), rgba(255,255,255,0) 66%);
}
/* Геро главной — во всю ширину: текст прижат к левому полю (не центрируем контейнером), фото справа до края */
.home-hero--photo .home-hero__inner { position: relative; z-index: 1; width: 100%; max-width: none; margin: 0; padding-inline: clamp(20px, 5vw, 80px); }
.home-hero__copy--left { text-align: left; display: flex; flex-direction: column; align-items: flex-start; max-width: 540px; }
.home-hero__title { color: var(--text-strong); font-family: var(--font-display); font-weight: var(--weight-extra); font-size: clamp(32px, 3.6vw, 58px); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); margin: var(--space-4) 0 0; max-width: 16ch; text-wrap: balance; }
.home-hero__lead { color: var(--text-secondary); font-size: var(--text-lg); line-height: var(--leading-relaxed); margin-top: var(--space-5); max-width: 46ch; text-wrap: pretty; }
.home-hero__cta { display: flex; gap: var(--space-3); margin-top: var(--space-8); flex-wrap: wrap; justify-content: flex-start; }
.home-hero__note { margin-top: var(--space-5); font-size: var(--text-xs); color: var(--text-muted); max-width: 44ch; }

/* ===== HERO REDESIGN: бейджи · чипы · путь ученика · стат-бар (премиум-минимал) ===== */
/* верхние бейджи: главный (обещание результата) + вторичный (лицензия) */
.hero-badges { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.hero-badge-sec { font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-muted); padding: 7px 13px; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); background: var(--paper); white-space: nowrap; }

/* чипы-навыки — мгновенно объясняют специализацию */
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-5) 0 0; padding: 0; max-width: 520px; }
.hero-chips li { font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--text-secondary); background: var(--surface-sunken); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); padding: 7px 14px; cursor: default;
  transition: transform .18s var(--ease-out), border-color .18s var(--ease-out), color .18s var(--ease-out), background .18s var(--ease-out), box-shadow .18s var(--ease-out); }
.hero-chips li:hover { transform: translateY(-2px); border-color: var(--acc-300); color: var(--acc-700); background: var(--acc-soft); box-shadow: var(--shadow-sm); }

/* путь ученика — очень лёгкая схема, почти растворяется */
.hero-path { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: var(--space-6) 0 0; padding: var(--space-4) 0 0; border-top: 1px solid var(--border-subtle); max-width: 540px; }
.hero-path li { display: inline-flex; align-items: center; font-size: var(--text-xs); color: var(--text-muted); letter-spacing: 0.01em; }
.hero-path li + li::before { content: "→"; margin: 0 var(--space-3); color: var(--text-muted); opacity: .45; }
.hero-path .hero-path__last { color: var(--acc-700); font-weight: var(--weight-semibold); }

/* стат-бар соц. доказательств — без карточек, крупные цифры, много воздуха */
.hero-stats { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-8) var(--space-6); }
.hero-stat { flex: 1 1 180px; text-align: center; }
.hero-stat__num { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.02; color: var(--text-strong); letter-spacing: var(--tracking-tight); white-space: nowrap; }
.hero-stat__label { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-snug); }
@media (max-width: 640px) {
  .hero-stats { gap: var(--space-7) var(--space-4); }
  .hero-stat { flex: 1 1 42%; }
  .hero-stat__num { font-size: clamp(26px, 8vw, 34px); }
}

/* Групповое фото основателей в hero (прозрачный cutout, справа) */
/* фото основателей справа: левый край — на фикс. расстоянии после текста (≈40px) на широких экранах,
   но не уже текущего (кэп 46%), чтобы на ≤1440 всё осталось как было, а на широких — «ансамбль» без большого зазора */
.home-hero__group { position: absolute; right: 0; bottom: 0; height: 100%; width: max(calc(100% - clamp(20px, 5vw, 80px) - 580px), 54%); object-fit: contain; object-position: center 42%; z-index: 0; pointer-events: none; user-select: none; }
.home-hero--photo:has(.home-hero__group)::before { background: radial-gradient(ellipse 60% 92% at 20% 55%, rgba(242,240,243,0.92), rgba(242,240,243,0) 62%); }

/* Мобильный шоукейс (десктоп прячет) */
.home-hero__showcase { display: none; }

/* ============================ HERO — плавающие карточки-направления ============================ */
.home-hero--cards { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 600px;
  padding-block: clamp(44px, 6vw, 84px);
  background: radial-gradient(135% 130% at 84% 12%, var(--violet-50), var(--paper) 56%); }
.home-hero--cards .home-hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.home-hero--cards .home-hero__copy { max-width: 560px; }
/* мягкая цветная подсветка за карточками — заполняет пространство, добавляет глубину */
.home-hero__glow { position: absolute; z-index: 0; right: -4%; top: -12%; width: 68%; height: 124%; pointer-events: none;
  background: radial-gradient(46% 44% at 36% 24%, color-mix(in srgb, var(--violet-500) 30%, transparent), transparent 66%),
             radial-gradient(44% 46% at 82% 52%, color-mix(in srgb, var(--cyan-500) 24%, transparent), transparent 68%),
             radial-gradient(46% 44% at 40% 86%, color-mix(in srgb, var(--magenta-400) 22%, transparent), transparent 68%);
  filter: blur(4px); }

.home-hero__cards { position: absolute; z-index: 1; top: 0; bottom: 0; right: 0; width: 58%; pointer-events: none; }
.hero-card { position: absolute; width: min(226px, 58%); background: var(--paper); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: var(--space-5) var(--space-5) var(--space-4);
  display: flex; flex-direction: column; gap: 6px; will-change: transform; animation: heroFloat 7s ease-in-out infinite;
  /* пружинистый переход — для «рикошета» от курсора (transform задаёт JS) */
  transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s var(--ease-out); }
.hero-card__badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-semibold); letter-spacing: 0.02em; margin-bottom: 2px; white-space: nowrap; }
.hero-card__badge .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.hero-card__title { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: var(--text-lg); line-height: 1.12; letter-spacing: var(--tracking-snug); color: var(--text-strong); margin: 2px 0 0; }
.hero-card__meta { margin: 0; font-size: var(--text-xs); color: var(--text-secondary); }
.hero-card__foot { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--violet-700); }
/* бейджи площадок */
.badge-yandex { background: #fff5cf; color: #8a6900; } .badge-yandex .dot { background: var(--accent-yandex); }
.badge-vk { background: #e2ecff; color: #0058c0; } .badge-vk .dot { background: var(--accent-vk); }
.badge-pack { background: var(--violet-50); color: var(--violet-700); } .badge-pack .dot { background: var(--violet-500); }
.badge-ai { background: var(--cyan-50); color: var(--cyan-700); } .badge-ai .dot { background: var(--cyan-500); }
.hero-card--feature { width: min(248px, 62%); box-shadow: var(--shadow-xl); border-color: var(--violet-200); }
/* позиции + наклон (плотный кластер: пустота снаружи, внутри — лёгкие нахлёсты).
   rotate статичный, translate анимируется (независимые свойства — не конфликтуют). */
.hero-card--1 { top: 6%;  right: 37%; rotate: -5deg; animation-duration: 7s; }
.hero-card--2 { top: 43%; right: 9%;  rotate: 4deg;  animation-duration: 8.6s; animation-delay: -1.6s; }
.hero-card--3 { top: 49%; right: 35%; rotate: 3deg;  animation-duration: 7.6s; animation-delay: -0.9s; }
.hero-card--4 { top: 2%;  right: 11%; rotate: -3deg; animation-duration: 9.2s; animation-delay: -2.4s; }
@keyframes heroFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -13px; } }
/* Планшет/мобайл: карточки в сетку, без наклона и анимации */
@media (max-width: 1024px) {
  .home-hero--cards { display: block; min-height: 0; }
  .home-hero--cards .home-hero__copy { max-width: none; }
  .home-hero__glow { display: none; }
  .home-hero__cards { position: static; width: auto; margin-top: var(--space-8); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .home-hero__cards .hero-card { position: static; width: auto; rotate: 0deg; animation: none; }
  .home-hero__cards .hero-card--feature { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .home-hero__cards { grid-template-columns: 1fr; } }

/* Плашки-credentials поверх фото */
.hero-creds { }
.hero-cred {
  position: absolute; z-index: 2;
  display: flex; flex-direction: column; gap: var(--space-1);
  width: min(280px, 38%); padding: var(--space-3) var(--space-4);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.5) blur(10px); -webkit-backdrop-filter: saturate(1.5) blur(10px);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.hero-cred__chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: var(--space-1) var(--space-3); background: var(--acc-soft); color: var(--acc-700); border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.hero-cred__dot { width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--acc); }
.hero-cred__name { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-md); color: var(--text-strong); margin-top: var(--space-1); }
.hero-cred__role { font-size: var(--text-xs); color: var(--text-secondary); line-height: 1.35; text-wrap: pretty; }
.hero-cred__stat { font-size: var(--text-2xs); color: var(--acc-700); font-weight: var(--weight-semibold); margin-top: var(--space-1); text-wrap: pretty; }
.hero-cred--k { bottom: 9%; left: auto; right: 34%; }
.hero-cred--s { bottom: 9%; right: 3%; }
/* Три коротких подписи, расставленных «в шахматку» над групповым фото (не в ряд) */
.hero-creds--trio { position: absolute; inset: 0; width: auto; display: block; z-index: 2; pointer-events: none; }
.hero-creds--trio .hero-cred { position: absolute; width: min(210px, 30%); padding: var(--space-3) var(--space-4); gap: 2px; pointer-events: auto; }
.hero-cred--p1 { right: 35%; bottom: 27%; }   /* Андрей — выше */
.hero-cred--p2 { right: 18%; bottom: 15%; }   /* Кристина — по центру в зазоре между Семёном и Андреем, поднята в пределы фото */
.hero-cred--p3 { right: 1%;  bottom: 24%; }   /* Семён — выше */
.hero-creds--trio .hero-cred__name { font-size: var(--text-sm); }
.hero-creds--trio .hero-cred__role { font-size: var(--text-2xs); }

/* ============================ HERO — центрированный (без большого фото), для суб-страниц ============================ */
.hero-plain { position: relative; padding-block: clamp(56px, 8vw, 108px); text-align: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% -10%, var(--acc-soft), var(--paper) 60%); }
.hero-plain__inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding-inline: var(--container-pad); display: flex; flex-direction: column; align-items: center; }
.hero-plain .kicker { justify-content: center; }
.hero-plain__title { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: clamp(34px, 4.4vw, 64px); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); color: var(--text-strong); margin: var(--space-4) 0 0; text-wrap: balance; }
.hero-plain__lead { color: var(--text-secondary); font-size: var(--text-lg); line-height: var(--leading-relaxed); margin: var(--space-5) auto 0; max-width: 58ch; text-wrap: pretty; }
.hero-plain__cta { display: flex; gap: var(--space-3); margin-top: var(--space-8); flex-wrap: wrap; justify-content: center; }
.hero-plain__note { margin-top: var(--space-5); font-size: var(--text-xs); color: var(--text-muted); }

/* ============================ HERO — split (текст + портрет), для суб-страниц ============================ */
.hero-split { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 84px);
  background: radial-gradient(110% 120% at 88% 0%, var(--acc-soft), var(--paper) 58%); }
.hero-split__inner { position: relative; z-index: 1; max-width: var(--container-max); margin: 0 auto; padding-inline: var(--container-pad);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-split__copy { max-width: 560px; }
.hero-split__title { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: clamp(32px, 3.6vw, 56px); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); color: var(--text-strong); margin: var(--space-4) 0 0; text-wrap: balance; }
.hero-split__lead { color: var(--text-secondary); font-size: var(--text-lg); line-height: var(--leading-relaxed); margin-top: var(--space-5); max-width: 48ch; text-wrap: pretty; }
.hero-split__cta { display: flex; gap: var(--space-3); margin-top: var(--space-8); flex-wrap: wrap; }
.hero-split__note { margin-top: var(--space-5); font-size: var(--text-xs); color: var(--text-muted); max-width: 46ch; }
/* Соло-герой без бокового фото: заголовок и подзаголовок во всю ширину, по центру экрана.
   Ставится на страницах-курсах, где убрали дуо-фото Кристины+Семёна (акцент data-accent сохраняется). */
.hero-split--solo .hero-split__inner { grid-template-columns: 1fr; justify-items: center; text-align: center;
  min-height: clamp(440px, 66vh, 640px); align-content: center; }
.hero-split--solo .hero-split__copy { max-width: 880px; }
.hero-split--solo .hero-split__title { font-size: clamp(38px, 5.2vw, 66px); }
.hero-split--solo .hero-split__lead { margin-inline: auto; }
.hero-split--solo .hero-split__cta { justify-content: center; }
.hero-split--solo .hero-trust { justify-content: center; }
.hero-split--solo .hero-split__note { margin-inline: auto; }
/* Страницы-профессии трафика: геро с крупной иллюстрацией справа (текст слева).
   Больше места под изображение, чем базовые 1.15/0.85 (по просьбе дизайнера — «покрупнее»). */
@media (min-width: 1025px) {
  .hero-split--media-lg .hero-split__inner { grid-template-columns: 1fr 0.95fr; }
}
/* компактная строка доверия под кнопками Hero (галочка + короткий пункт) */
.hero-trust { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--text-secondary); }
.hero-trust svg { width: 16px; height: 16px; flex: none; color: var(--acc-600); }
.hero-split__media { position: relative; }
.hero-portrait { position: relative; border-radius: var(--radius-2xl); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-xl); background: var(--surface-sunken); border: 1px solid var(--border-subtle); }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.hero-portrait__badge { position: absolute; left: var(--space-4); bottom: var(--space-4); right: var(--space-4);
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4); box-shadow: var(--shadow-md); }
.hero-portrait__badge b { display: block; font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-md); color: var(--text-strong); }
.hero-portrait__badge span { display: block; font-size: var(--text-xs); color: var(--text-secondary); margin-top: 2px; }

/* Дуо-герой: общее фото двух лиц + две «плавающие» плашки с регалиями.
   Вырез без фона (Школа AI) → .hero-portrait--duo (брендовый градиент + contain, силуэты целиком).
   Обычное студийное фото (Школа трафика) → базовый .hero-portrait (cover). Плашки .duo-cred общие. */
.hero-portrait--duo { background: radial-gradient(125% 105% at 50% 6%, var(--acc-soft), var(--surface-sunken)); }
.hero-portrait--duo img { object-fit: contain; object-position: center bottom; }
/* Трафика: дуо-вырез Семёна и Кристины «плывёт» БЕЗ рамки — крупно и объёмно (contain + мягкая тень по силуэту), не в прямоугольнике */
.hero-portrait--traffic { border: 0; border-radius: 0; overflow: visible; background: none; box-shadow: none; aspect-ratio: auto; width: 116%; margin-inline: -8%; }
.hero-portrait--traffic img { object-fit: contain; object-position: center bottom; width: 100%; height: auto; filter: drop-shadow(0 26px 40px rgba(28, 16, 58, 0.24)); }
/* плашки — каждая у своего человека, чуть выходят за края рамки */
.hero-split__media .duo-cred { position: absolute; z-index: 3; max-width: 74%;
  background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4); box-shadow: var(--shadow-lg); }
.duo-cred b { display: block; font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-sm); color: var(--text-strong); line-height: 1.15; }
.duo-cred span { display: block; font-size: var(--text-2xs); color: var(--text-secondary); margin-top: 3px; line-height: 1.3; }
.duo-cred__sub { color: var(--text-muted) !important; margin-top: 1px !important; }   /* вторая строка регалий — тоньше и ближе */
.duo-cred--left  { left: -14px;  bottom: 9%; }    /* человек слева на фото */
.duo-cred--right { right: -14px; bottom: 33%; }   /* по умолчанию ступенькой выше (AI: узкий кадр — иначе плашки наедут друг на друга) */
.hero-portrait--traffic ~ .duo-cred--right { bottom: 9%; }   /* трафика: широкий кадр — плашка Кристины вровень с Семёном */
@media (max-width: 820px) {
  .duo-cred--left  { left: 0;  bottom: 6%; }
  .duo-cred--right { right: 0; bottom: 30%; }
}

/* ============================ СТАТ-БАР (цифры доверия) ============================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.stat { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: var(--space-6); box-shadow: var(--shadow-sm); text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: clamp(28px, 3vw, 40px); line-height: 1; color: var(--acc-700); letter-spacing: var(--tracking-tight); }
.stat__num .grad { font-size: inherit; }
.stat__label { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); text-wrap: pretty; }
.stats--inline { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-10); justify-content: center; }
.stats--inline .stat { background: none; border: none; box-shadow: none; padding: 0; }

/* ============================ КАРТОЧКИ НАПРАВЛЕНИЙ (на главной) ============================ */
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.dir-card { position: relative; display: flex; flex-direction: column; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl); padding: var(--space-8); box-shadow: var(--shadow-sm); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out); }
.dir-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--dc, var(--violet-500)), var(--dc2, var(--violet-700))); }
.dir-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--dc, var(--violet-500)) 40%, var(--border-subtle)); }
.dir-card__ic { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--dc, var(--violet-500)) 12%, transparent); color: var(--dc, var(--violet-600)); margin-bottom: var(--space-5); }
.dir-card__ic svg { width: 28px; height: 28px; }
.dir-card__tag { font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--dc, var(--violet-700)); }
.dir-card__name { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-2xl); color: var(--text-strong); margin: var(--space-2) 0 var(--space-3); letter-spacing: var(--tracking-snug); }
.dir-card__desc { color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-relaxed); margin: 0 0 var(--space-5); flex: 1; }
.dir-card__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.dir-card__meta span { font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--text-secondary); background: var(--surface-sunken); border-radius: var(--radius-pill); padding: 4px 12px; }
.dir-card__go { display: inline-flex; align-items: center; gap: 8px; font-weight: var(--weight-semibold); font-size: var(--text-sm); color: var(--dc, var(--violet-700)); margin-top: auto; }
.dir-card__go svg { width: 18px; height: 18px; transition: transform var(--duration-normal) var(--ease-out); }
.dir-card:hover .dir-card__go svg { transform: translateX(4px); }
/* акцент-раскраска карточек направлений */
.dir-card--traffic { --dc: var(--violet-500); --dc2: var(--violet-700); }
.dir-card--ai      { --dc: var(--cyan-500);   --dc2: var(--violet-500); }
.dir-card--club    { --dc: var(--magenta-400); --dc2: var(--violet-600); }

/* ---- Направления как «карта-путь»: ровные карточки одной высоты + номера + горизонтальный пунктир ---- */
.dir-path { position: relative; max-width: 1120px; margin: 0 auto; display: flex; align-items: stretch; justify-content: center; gap: clamp(24px, 3vw, 44px); }
.dir-node { position: relative; z-index: 1; flex: 1 1 0; max-width: 336px; background: var(--paper); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); padding: var(--space-7) var(--space-7) var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-2); text-decoration: none; color: inherit;
  transition: transform .4s var(--ease-out), box-shadow .3s var(--ease-out), rotate .4s var(--ease-out), border-color .3s var(--ease-out); }
.dir-node--1 { --dc: var(--violet-500);  --dc7: var(--violet-700); }
.dir-node--2 { --dc: var(--cyan-500);    --dc7: var(--cyan-700); }
.dir-node--3 { --dc: var(--magenta-400); --dc7: var(--magenta-600); }
.dir-node:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: color-mix(in srgb, var(--dc) 45%, var(--border-subtle)); }
.dir-node:focus-visible { outline: 2px solid var(--dc); outline-offset: 3px; }
.dir-node::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; background: linear-gradient(90deg, var(--dc), color-mix(in srgb, var(--dc) 40%, var(--violet-600))); }
.dir-node__num { position: absolute; top: 16px; right: 22px; font-family: var(--font-display); font-weight: var(--weight-extra); font-size: 46px; line-height: 1; color: var(--dc); opacity: 0.14; letter-spacing: -0.03em; }
.dir-node__ic { width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--dc) 12%, transparent); color: var(--dc); margin-bottom: var(--space-2); }
.dir-node__ic svg { width: 28px; height: 28px; }
.dir-node__tag { font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--dc7); }
.dir-node__name { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: var(--text-2xl); color: var(--text-strong); margin: 2px 0 4px; letter-spacing: var(--tracking-snug); }
.dir-node__desc { color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-relaxed); margin: 0; }
.dir-node__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0; }
.dir-node__meta span { font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--text-secondary); background: var(--surface-sunken); border-radius: var(--radius-pill); padding: 4px 12px; }
.dir-node__go { display: inline-flex; align-items: center; gap: 8px; font-weight: var(--weight-semibold); font-size: var(--text-sm); color: var(--dc7); margin-top: auto; }
.dir-node__go svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.dir-node:hover .dir-node__go svg { transform: translateX(4px); }

/* --- Доработка секции направлений: статусы вместо номеров, путь-строка, живой фон, hover --- */
/* статусная подпись (цветная точка + слово) в правом верхнем углу — вместо крупного номера */
.dir-node__status { position: absolute; top: 20px; right: 22px; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-secondary); }
.dir-node__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dc) 16%, transparent); flex: none; }
/* плавные микроанимации (~300ms, мягкий easing) */
.dir-node { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out); }
.dir-node::before { transition: height .3s var(--ease-out), filter .3s var(--ease-out); }
.dir-node__go { transition: transform .3s var(--ease-out), color .3s var(--ease-out); }
.dir-node__meta span { transition: background .3s var(--ease-out), color .3s var(--ease-out); }
.dir-node:hover::before { height: 6px; filter: saturate(1.3) brightness(1.08); }          /* верхняя полоска ярче */
.dir-node:hover .dir-node__go { transform: translateX(4px); }                              /* кнопка уезжает вправо */
.dir-node:hover .dir-node__meta span { background: color-mix(in srgb, var(--dc) 12%, var(--surface-sunken)); color: var(--dc7); }  /* чипы подсвечиваются */
/* строка-путь над карточками — лёгкая навигация по экосистеме */
.dir-flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 0; margin: 0 auto var(--space-8); font-size: var(--text-sm); color: var(--text-muted); }
.dir-flow__step { display: inline-flex; align-items: center; }
.dir-flow__step + .dir-flow__step::before { content: "→"; margin: 0 var(--space-3); color: var(--text-muted); opacity: .5; }
#directions .section__head { margin-bottom: var(--space-6); }
/* очень лёгкий фирменный вошш под карточками (~4%) — карточки чуть «парят» */
#directions { background: radial-gradient(58% 46% at 50% 44%, color-mix(in srgb, var(--violet-500) 4%, transparent), transparent 70%), var(--surface-sunken); }
/* пунктир-соединитель + узлы-точки (как «маршрут» в шаблоне) */
.dir-path__wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; pointer-events: none; }
.dir-path__wire path { fill: none; stroke: var(--violet-300); stroke-width: 2.5; stroke-dasharray: 0.5 10; stroke-linecap: round; }
.dir-path__wire .node-dot { stroke: var(--violet-400); stroke-width: 12; stroke-dasharray: none; }
/* рукописная заметка в конце пути */
.dir-path__note { position: absolute; right: 3%; bottom: -34px; font-family: var(--font-display); font-style: italic; font-weight: var(--weight-bold); font-size: var(--text-lg); color: var(--magenta-500); rotate: -5deg; display: inline-flex; align-items: center; gap: 8px; }
.dir-path__note svg { width: 26px; height: 26px; }
@media (max-width: 900px) {
  .dir-path { flex-direction: column; align-items: stretch; gap: var(--space-6); max-width: 440px; }
  .dir-node { max-width: none; margin-top: 0 !important; rotate: 0deg !important; }
  .dir-node:hover { transform: translateY(-4px); }
  .dir-path__wire, .dir-path__note { display: none; }
}

/* ============================ FEATURE-GRID (бонусы / что внутри) ============================ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.feature-grid--3 { grid-template-columns: repeat(3, 1fr); }
.f-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); box-shadow: var(--shadow-sm); transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out); }
.f-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--acc-200); }
.f-card__ic { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--acc-soft); color: var(--acc-600); margin-bottom: 4px; }
.f-card__ic svg { width: 24px; height: 24px; }
.f-card h3 { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-lg); color: var(--text-strong); margin: 0; }
.f-card p { margin: 0; color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-relaxed); }

/* ===== Инструменты специалиста: одна большая светлая карточка-«воркспейс» + мини-тайлы ===== */
.toolspace { max-width: 900px; margin: 0 auto; background: var(--paper); border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); padding: clamp(22px, 3.5vw, 44px); }
.toolspace__bar { display: flex; align-items: center; gap: var(--space-3); padding-bottom: var(--space-5); margin-bottom: var(--space-6); border-bottom: 1px solid var(--border-subtle); }
.toolspace__dots { display: inline-flex; gap: 6px; flex: none; }
.toolspace__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong, #d8d5e0); }
.toolspace__label { font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-muted); }
.toolspace__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.tool { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); background: var(--surface-sunken); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out); }
.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--acc-200); }
.tool__ic { flex: none; width: 44px; height: 44px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: var(--weight-extra); font-size: var(--text-md); letter-spacing: -0.02em; }
.tool__ic--yandex { background: #FFF2D2; color: #E58A00; }   /* Яндекс — тёплый амбер */
.tool__ic--vk     { background: #E2EDFF; color: #2787F5; }   /* VK — синий */
.tool__ic--avito  { background: #E0F5E9; color: #12B36A; }   /* Авито — зелёный */
.tool__text { min-width: 0; }
.tool__text b { display: block; font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-sm); color: var(--text-strong); line-height: 1.2; }
.tool__text span { display: block; margin-top: 1px; font-size: var(--text-xs); color: var(--text-secondary); }
@media (max-width: 720px) { .toolspace__grid { grid-template-columns: 1fr; } }


/* ============================ БОЛИ / «это для вас» ============================ */
.pains-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-6); }
.pain-card { flex: 1 1 300px; max-width: 360px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: var(--space-6); display: flex; gap: var(--space-4); align-items: flex-start; box-shadow: var(--shadow-sm); transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out); }
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--acc-200); }
.pain-card__n { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: var(--text-3xl); line-height: 1; color: var(--acc-300); flex: none; }
.pain-card p { margin: 0; color: var(--text-body); font-weight: var(--weight-medium); line-height: var(--leading-normal); }

/* ===== Эмпатия «Это про вас»: фото-полароиды слева + карточки-мысли справа ===== */
.empathy { display: grid; grid-template-columns: minmax(280px, 0.92fr) 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; max-width: 1120px; margin: 0 auto; }
/* Полароиды — снимки из жизни, лёгкий нахлёст и поворот, мягкие тени, белая рамка */
.empathy__photos { position: relative; display: flex; flex-direction: column; align-items: center; padding: var(--space-4) 0; }
.polaroid { background: #fff; padding: 12px 12px 34px; border-radius: 4px; width: min(300px, 82%);
  box-shadow: 0 24px 48px -20px rgba(26,20,54,.42), 0 4px 12px -6px rgba(26,20,54,.22);
  transition: transform .35s var(--ease-out), rotate .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.polaroid img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.polaroid--1 { rotate: -3deg; z-index: 1; }
.polaroid--2 { rotate: 2.5deg; margin-top: -34px; z-index: 2; }
.polaroid--3 { rotate: -2deg; margin-top: -34px; z-index: 3; }
.polaroid:hover { rotate: 0deg; transform: scale(1.04) translateY(-4px); z-index: 4; box-shadow: 0 32px 60px -18px rgba(26,20,54,.48); }
/* Карточки-мысли: сетка 2 → 2 → 1 (последняя по центру = итоговая мысль) */
.empathy__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: start; }
.think-card { position: relative; background: var(--paper); border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl); box-shadow: var(--shadow-sm); padding: var(--space-6);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out); }
.think-card--final { grid-column: 1 / -1; max-width: 62%; margin: 0 auto; }
.think-card:hover { transform: translateY(-4px) scale(1.015); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--acc-600) 42%, var(--border-subtle)); }
.think-card__bubble { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: var(--radius-lg); background: var(--acc-soft); color: var(--acc-600); margin-bottom: var(--space-3); }
.think-card__bubble svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.think-card__quote { margin: 0; font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-lg); line-height: var(--leading-snug); letter-spacing: var(--tracking-snug); color: var(--text-strong); }
/* раскрытие ответа при наведении: grid-rows 0fr→1fr (плавная авто-высота, без прыжков) */
.think-card__reveal { display: grid; grid-template-rows: 0fr; opacity: 0; margin-top: 0;
  transition: grid-template-rows .32s var(--ease-out), opacity .32s var(--ease-out), margin-top .32s var(--ease-out); }
.think-card__reveal > * { overflow: hidden; min-height: 0; }
.think-card:hover .think-card__reveal { grid-template-rows: 1fr; opacity: 1; margin-top: var(--space-4); }
.think-card__answer { margin: 0; font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--text-secondary); }
/* без ховера (тач) или узкий экран — ответ показываем сразу */
@media (hover: none), (max-width: 900px) {
  .think-card__reveal { grid-template-rows: 1fr; opacity: 1; margin-top: var(--space-4); }
}
@media (max-width: 900px) {
  .empathy { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 6vw, 48px); }   /* minmax(0,…) — колонка не распирается min-content фоторяда */
  .empathy__cards { grid-template-columns: 1fr; }
  .think-card--final { max-width: none; }
  /* полароиды — в одну строку и мельче (мобилка) */
  .empathy__photos { flex-direction: row; justify-content: center; align-items: flex-start; gap: var(--space-2); padding: var(--space-2) 0; }
  .polaroid { width: min(27vw, 116px); flex: 0 0 auto; min-width: 0; margin: 0; padding: 6px 6px 15px; }   /* margin:0 — гасим дефолтный margin figure (0 40px), из-за него в строке полароиды расползались */
}

/* ============================ ДОКАЗАТЕЛЬНАЯ ВОРОНКА / путь (нумерованные ступени) ============================ */
.funnel { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); counter-reset: step; }
.funnel--4 { grid-template-columns: repeat(4, 1fr); }
.funnel--3 { grid-template-columns: repeat(3, 1fr); }
.funnel-step { position: relative; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: var(--space-6) var(--space-5); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: var(--space-2); }
.funnel-step__n { width: 34px; height: 34px; border-radius: var(--radius-pill); background: linear-gradient(135deg, var(--acc), var(--acc-700)); color: var(--paper); font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-sm); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--acc-shadow); }
.funnel-step h3 { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-md); color: var(--text-strong); margin: var(--space-2) 0 0; }
.funnel-step p { margin: 0; color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-normal); }
.funnel-step--peak { background: linear-gradient(150deg, var(--acc-soft), var(--surface-card)); border-color: var(--acc-200); }

/* ---- «Полный путь» как дорога-роадмап (по референсу, в цветах школы) ----
   Извилистая дорога слева, цветные узлы на правых изгибах, карточки справа.
   Дорога — один SVG на всю высоту (preserveAspectRatio=none тянет только по Y,
   ширина штриха постоянна благодаря vector-effect: non-scaling-stroke). */
.roadmap { position: relative; max-width: 840px; margin: 0 auto; --rail: 180px; }
.roadmap__road { position: absolute; left: 0; top: 0; width: var(--rail); height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.roadmap__asphalt { fill: none; stroke: #3f3b60; stroke-width: 38; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.roadmap__progress { fill: none; stroke: url(#roadProg); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke-dashoffset .15s linear; }
.roadmap__dash { fill: none; stroke: rgba(255,255,255,.92); stroke-width: 3; stroke-dasharray: 15 17; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.roadmap__stop { position: relative; min-height: 196px; padding-left: var(--rail); display: flex; align-items: center; }
.roadmap__node { position: absolute; left: 140px; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), filter .4s var(--ease-out);
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--rc) 78%, #fff) 0%, var(--rc) 52%, var(--rc7) 100%);
  box-shadow: 0 0 0 6px var(--paper), 0 8px 20px color-mix(in srgb, var(--rc) 45%, transparent); }
.roadmap__node svg { width: 23px; height: 23px; }

.roadmap__card { position: relative; flex: 1; margin-left: 40px; background: var(--paper); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: var(--space-6) var(--space-7);
  display: flex; flex-direction: column; gap: 4px; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.roadmap__card::before { content: ""; position: absolute; left: -9px; top: 34px; width: 18px; height: 18px; background: inherit;
  border-left: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); transform: rotate(45deg); border-radius: 0 0 0 3px; }
.roadmap__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.roadmap__num { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: 40px; line-height: 1; color: var(--rc); letter-spacing: -0.03em; }
.roadmap__card h3 { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-lg); color: var(--text-strong); margin: 6px 0 0; }
.roadmap__card p { margin: 0; color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.roadmap__stop--peak .roadmap__card { background: linear-gradient(150deg, color-mix(in srgb, var(--rc) 12%, var(--paper)), var(--paper)); border-color: color-mix(in srgb, var(--rc) 35%, var(--border-subtle)); }
/* примерный срок этапа — вторичная подпись справа сверху карточки */
.roadmap__time { position: absolute; top: calc(var(--space-6) + 7px); right: var(--space-7); font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--text-muted); letter-spacing: 0.01em; }
/* прогресс-«искра» — активная точка, едет по дороге синхронно со скроллом */
.roadmap__spark { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; pointer-events: none; z-index: 3; opacity: 0;
  background: radial-gradient(circle, #fff 0%, var(--violet-400) 45%, transparent 72%);
  box-shadow: 0 0 16px 5px color-mix(in srgb, var(--violet-500) 55%, transparent);
  transition: opacity .35s var(--ease-out), transform .12s linear; }
/* узел «загорается», когда до него доезжает прогресс */
.roadmap__stop.is-active .roadmap__node { transform: translate(-50%, -50%) scale(1.14); box-shadow: 0 0 0 5px var(--paper), 0 12px 28px color-mix(in srgb, var(--rc) 60%, transparent); filter: saturate(1.12); }
/* финальный CTA — логичное завершение всей истории */
.roadmap-cta { text-align: center; margin-top: clamp(48px, 6vw, 84px); }
.roadmap-cta__title { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: clamp(24px, 2.6vw, 34px); color: var(--text-strong); letter-spacing: var(--tracking-tight); margin: 0 0 var(--space-6); text-wrap: balance; }

@media (max-width: 720px) {
  /* мобилка: узкая прямая дорога с пунктиром, узлы поменьше, карточки во всю ширину */
  .roadmap { --rail: 58px; max-width: 460px; }
  .roadmap__road, .roadmap__spark { display: none; }
  .roadmap::before { content: ""; position: absolute; left: 29px; top: 0; bottom: 0; width: 26px; transform: translateX(-50%); background: #3f3b60; border-radius: 13px; z-index: 0; }
  .roadmap::after { content: ""; position: absolute; left: 29px; top: 8px; bottom: 8px; width: 0; transform: translateX(-50%); border-left: 3px dashed rgba(255,255,255,.9); z-index: 1; }
  .roadmap__stop { min-height: 148px; padding-left: var(--rail); }
  .roadmap__node { left: 29px; width: 40px; height: 40px; box-shadow: 0 0 0 5px var(--paper), 0 6px 16px color-mix(in srgb, var(--rc) 45%, transparent); }
  .roadmap__time { top: calc(var(--space-5) + 5px); right: var(--space-5); }
  .roadmap__node svg { width: 22px; height: 22px; }
  .roadmap__card { margin-left: 14px; padding: var(--space-5); }
  .roadmap__card::before { top: 26px; }
  .roadmap__num { font-size: 32px; }
}

/* ============================ ПРОГРАММА (двухтоновые карточки) ============================ */
.program-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.prog-card { display: flex; flex-direction: column; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out); }
.prog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--acc-200); }
.prog-card--wide { grid-column: 1 / -1; }
.prog-card__media { background: var(--acc); background-image: linear-gradient(135deg, var(--acc), var(--acc-600)); padding: var(--space-7); min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-4); }
.prog-card__day { align-self: flex-start; font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-xs); color: var(--acc-700); background: var(--paper); padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.prog-card__lead { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-xl); line-height: var(--leading-snug); letter-spacing: var(--tracking-snug); color: var(--paper); margin: 0; }
.prog-card__body { padding: var(--space-7); display: flex; flex-direction: column; gap: var(--space-4); flex: 1; }
.prog-card .ticks li { font-size: var(--text-md); }
.prog-card__result { margin: auto 0 0; padding: 14px 16px; background: var(--acc-soft); border-radius: var(--radius-md); font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--text-body); }
.prog-card__result span { display: inline-block; font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--acc-700); margin-right: var(--space-2); }
/* компактный формат пунктов рынка: жирная метка + короткий статус; крест «✕» для «Больше не работает» */
.prog-card .ticks li b { display: block; font-family: var(--font-display); font-weight: var(--weight-semibold); color: var(--text-strong); line-height: 1.25; }
.prog-card .ticks li span { display: block; font-size: var(--text-xs); color: var(--text-secondary); margin-top: 2px; }
.ticks--cross li::before { content: "✕"; }
/* правая карточка рынка: три смысловых блока «навык + инструменты» вместо списка площадок */
.skill-blocks { display: grid; gap: var(--space-4); }
.skill-block { display: flex; align-items: flex-start; gap: var(--space-3); padding-bottom: var(--space-4); border-bottom: 1px solid var(--border-subtle); }
.skill-block:last-child { border-bottom: 0; padding-bottom: 0; }
.skill-block__ic { flex: none; width: 30px; text-align: center; font-size: 22px; line-height: 1.15; }
.skill-block__title { display: block; font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-md); color: var(--text-strong); line-height: 1.2; }
.skill-block__tools { display: block; margin-top: 4px; font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); }

/* ===== Программа: минимал, две белые карточки курсов (Apple / Notion / Linear / Vercel) ===== */
#program { background: #fafafa; }   /* светло-серый фон секции — белые карточки «плывут» на нём */
.plan-sub { max-width: 640px; }
/* программа-аккордеон: две плашки-курса, полная программа раскрывается по клику (компактно) */
.plan-acc { max-width: 760px; margin: 0 auto; display: grid; gap: var(--space-4); }
.plan-course { background: var(--paper); border: 1px solid var(--border-subtle); border-radius: 20px; box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .3s var(--ease-out), border-color .3s var(--ease-out); }
.plan-course.is-open { box-shadow: var(--shadow-md); border-color: var(--acc-200); }
.plan-course__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: clamp(18px, 2.6vw, 24px) clamp(20px, 3vw, 30px); background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.plan-course__head:hover .plan-course__name { color: var(--acc-700); }
.plan-course__head-main { display: flex; align-items: center; gap: var(--space-4); flex: 1; min-width: 0; }
/* фирменный монограмм-логотип платформы — узнаваемость и различие плашек (цвет только на маленьком значке) */
.plan-course__logo { flex: none; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 13px; font-family: var(--font-display); font-weight: var(--weight-extra); line-height: 1; }
.plan-course__logo--yandex { color: #fc3f1d; background: color-mix(in srgb, #fc3f1d 12%, var(--paper)); font-size: var(--text-xl); }
.plan-course__logo--vk { color: #0077ff; background: color-mix(in srgb, #0077ff 13%, var(--paper)); font-size: var(--text-base); letter-spacing: -0.02em; }
.plan-course__head-txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.plan-course__name { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: var(--text-xl); color: var(--text-strong); letter-spacing: var(--tracking-snug); transition: color .25s var(--ease-out); }
.plan-course__meta { display: flex; flex-wrap: wrap; align-items: center; font-size: var(--text-sm); color: var(--text-muted); }
.plan-course__meta span:not(:last-child)::after { content: "·"; margin: 0 8px; color: var(--border-default); }
.plan-course__chev { flex: none; width: 22px; height: 22px; color: var(--acc-600); transition: transform .35s var(--ease-out); }
.plan-course.is-open .plan-course__chev { transform: rotate(180deg); }
/* тело аккордеона — по умолчанию скрыто (grid 0fr→1fr) */
.plan-course__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.plan-course.is-open .plan-course__body { grid-template-rows: 1fr; }
.plan-course__body-in { overflow: hidden; min-height: 0; padding: 0 clamp(20px, 3vw, 30px); }   /* только горизонтальный паддинг — вертикальный ломает схлопывание grid 0fr */
.plan-course__desc { margin: 0; font-size: var(--text-base); color: var(--text-secondary); line-height: var(--leading-relaxed); }
.plan-course__steps { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.plan-course__steps li { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-base); font-weight: var(--weight-medium); color: var(--text-strong); }
.plan-course__steps svg { flex: none; width: 18px; height: 18px; color: var(--acc-600); }
.plan-course__more-label { margin: var(--space-6) 0 var(--space-2); font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-muted); }
.plan-course__modules { margin: 0 0 clamp(20px, 3vw, 28px); padding: 0; list-style: none; counter-reset: mod; }   /* нижний отступ = низ карточки (клипается при закрытии) */
.plan-course__modules li { counter-increment: mod; position: relative; padding: var(--space-3) 0 var(--space-3) var(--space-8); border-top: 1px solid var(--border-subtle); font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); }
.plan-course__modules li::before { content: counter(mod, decimal-leading-zero); position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--acc-600); }
/* мягкое появление плашек по скроллу (JS-класс .js-reveal, без JS видны сразу) */
.plan-acc.js-reveal .plan-course { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.plan-acc.js-reveal.is-in .plan-course { opacity: 1; transform: none; }
.plan-acc.js-reveal .plan-course:nth-child(2) { transition-delay: .09s; }
/* Программа «состав курса» — всегда открытый список слева + иллюстрация справа (страницы-профессии трафика).
   Модули берут готовый стиль .plan-course__modules (нумерованный список). */
.plan-open { max-width: 720px; margin-inline: auto; }   /* только список модулей, без картинки */
.plan-open__body { min-width: 0; }
.plan-open__desc { margin: 0 0 var(--space-6); font-size: var(--text-lg); color: var(--text-secondary); line-height: var(--leading-relaxed); }
.plan-open__group + .plan-open__group { margin-top: var(--space-8); }
.plan-open__group-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.plan-open__group-name { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-lg); color: var(--text-strong); }
.plan-open__group-note { margin: 4px 0 var(--space-2); font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); }
/* бонус: курс по поиску клиентов — спокойная белая карточка */
/* бонус — та же ширина (760) и стиль, что у плашек курсов; тайл-иконка как у логотипов, но акцент (виолет) */
.plan-bonus { max-width: 760px; margin: var(--space-4) auto 0; display: flex; align-items: center; gap: var(--space-4); background: var(--paper); border: 1px solid var(--border-subtle); border-radius: 20px; box-shadow: var(--shadow-sm); padding: clamp(18px, 2.6vw, 24px) clamp(20px, 3vw, 30px); }
.plan-bonus__gift { flex: none; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 13px; background: var(--acc-soft); color: var(--acc-600); }
.plan-bonus__gift svg { width: 24px; height: 24px; }
.plan-bonus__text { flex: 1; min-width: 0; }
.plan-bonus__badge { display: inline-block; font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--acc-700); }
.plan-bonus__title { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-base); color: var(--text-strong); margin: 2px 0 3px; letter-spacing: var(--tracking-snug); }
.plan-bonus__desc { margin: 0; font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); }
/* CTA — одна главная кнопка */
.plan-cta { text-align: center; margin-top: clamp(28px, 4vw, 44px); }
/* ДЕСКТОП: заголовок #program слева, плашки (Яндекс/VK/бонус) справа — 2 колонки, больше пространства. Мобилка (<900) не меняется — стек по центру. */
@media (min-width: 900px) {
  #program .plan-layout { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: clamp(40px, 4vw, 72px); align-items: start; }
  #program .plan-intro { margin: 0; max-width: none; text-align: left; }
  #program .plan-intro .kicker { justify-content: flex-start; }
  #program .plan-intro .section__sub { margin-inline: 0; max-width: none; }
  #program .plan-stack .plan-acc,
  #program .plan-stack .plan-bonus { max-width: none; margin-left: 0; margin-right: 0; }
  #program .plan-stack .plan-cta { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .plan-acc.js-reveal .plan-course { opacity: 1 !important; transform: none !important; } }
@media (max-width: 560px) {
  .plan-bonus { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ============================ СЕРТИФИКАТ ============================ */
.certs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); max-width: 800px; margin-inline: auto; }
.cert-img { margin: 0; }
.cert-img img { display: block; width: 100%; height: auto; border-radius: var(--radius-xl); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-md); background: var(--surface-card); }

/* ============================ ЭКСПЕРТЫ / СПИКЕРЫ ============================ */
.founders-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: var(--space-6); }
.founder-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out); }
.founder-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--acc-200); }
.founder-card__photo { aspect-ratio: 4 / 5; background-size: cover; background-position: center top; background-color: var(--surface-sunken); }
.founder-card__photo--dark { background-color: #241436; background-position: center 12%; }
/* Плейсхолдер фото (пока нет реального снимка человека — лицо НЕ генерим) */
.founder-card__photo--ph { position: relative; display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, var(--acc), var(--acc-700)); color: var(--paper); }
.founder-card__photo--ph b { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: clamp(52px, 9vw, 96px); letter-spacing: 0.02em; opacity: 0.95; }
.founder-card__photo--ph span { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); opacity: 0.85; }
.founder-card__body { padding: var(--space-7); }
.founder-card__name { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-2xl); color: var(--text-strong); margin: 6px 0 0; }

/* Блок «Основатели» — групповое фото + плашки с регалиями */
.team { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.team-photo { position: relative; margin: 0; border-radius: var(--radius-2xl); padding: var(--space-6) var(--space-6) 0;
  background: radial-gradient(120% 115% at 50% 0%, var(--acc-soft), var(--surface-sunken) 72%);
  border: 1px solid var(--border-subtle); box-shadow: var(--shadow-md); overflow: hidden; }
.team-photo img { display: block; width: 100%; height: auto; }
.team-photo figcaption { padding: var(--space-3) 0 var(--space-4); text-align: center; font-size: var(--text-xs); color: var(--text-secondary); }
.team-info { display: flex; flex-direction: column; gap: var(--space-4); }
.team-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: var(--space-5) var(--space-6); box-shadow: var(--shadow-sm); }
.team-card--lead { border-color: var(--acc-200); box-shadow: var(--shadow-md); }
.team-card__role { font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--acc-700); }
.team-card__name { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-xl); color: var(--text-strong); margin: 4px 0 0; }
.team-card__desc { margin: 6px 0 0; color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-normal); }
.team-card .ticks { margin-top: var(--space-3); }
.team-card .ticks li { font-size: var(--text-sm); }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } .team-photo { max-width: 560px; margin-inline: auto; } }

/* Компактные спикер-карточки (4 в ряд) */
.speakers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.speaker-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out); }
.speaker-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--acc-200); }
.speaker-card__photo { aspect-ratio: 1 / 1; background-size: cover; background-position: center top; background-color: #241436; }
/* Плейсхолдер фото спикера (инициалы на акцент-градиенте) — пока нет реального фото (ASSET-GAP) */
.speaker-card__photo--ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--acc-grad-a), var(--acc-grad-b)); }
.speaker-card__photo--ph span { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: var(--text-3xl); color: rgba(255, 255, 255, .92); letter-spacing: var(--tracking-snug); }
.speaker-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: 6px; }
.speaker-card__role { font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--acc-700); }
.speaker-card__name { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-lg); color: var(--text-strong); margin: 0; }
.speaker-card__meta { font-size: var(--text-xs); color: var(--text-secondary); line-height: var(--leading-normal); text-wrap: pretty; }
/* должность (спокойный серый) + 3 коротких факта с маленькой фиолетовой точкой — лаконичная «спокойная экспертность» */
.speaker-card__post { margin: 3px 0 0; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-muted); line-height: var(--leading-snug); }
.speaker-facts { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.speaker-facts li { position: relative; padding-left: 16px; font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-snug); }
.speaker-facts li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 5px; height: 5px; border-radius: 50%; background: var(--acc-600); }

/* ============================ КЕЙСЫ (карусель-спотлайт) — как на mk ============================ */
.reviews-carousel { --rc-card: min(86%, 384px); position: relative; }
.reviews-track {
  display: flex; align-items: stretch; gap: var(--space-6);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 14px 2px 34px; margin-inline: -2px;
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab; -webkit-user-select: none; user-select: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-track.is-grabbing { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.reviews-track:focus-visible { outline: 2px solid var(--acc-300); outline-offset: 4px; border-radius: var(--radius-lg); }
.reviews-track::before, .reviews-track::after { content: ""; flex: 0 0 calc((100% - var(--rc-card)) / 2 - var(--space-3)); }

.reviews-carousel .review-card {
  flex: 0 0 var(--rc-card); scroll-snap-align: center; transform-origin: center bottom;
  transition: opacity var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out);
}
.reviews-carousel.is-ready .review-card { opacity: .5; transform: scale(.955); }
.reviews-carousel.is-ready .review-card.is-active { opacity: 1; transform: scale(1); box-shadow: var(--shadow-md); border-color: var(--acc-200); }
.reviews-carousel .review-card:hover { box-shadow: var(--shadow-md); }

.rc-controls { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-2); }
.rc-arrow {
  flex: none; width: 48px; height: 48px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--acc-600);
  border: 1px solid var(--border-default); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: background var(--duration-normal) var(--ease-out), color var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out);
}
.rc-arrow svg { width: 22px; height: 22px; }
.rc-arrow:hover { background: var(--acc); color: var(--paper); border-color: transparent; }
.rc-arrow:active { transform: scale(.94); }
.rc-arrow:focus-visible { outline: 2px solid var(--acc-300); outline-offset: 2px; }
.rc-arrow[disabled] { opacity: .38; cursor: default; box-shadow: none; background: var(--paper); color: var(--acc-600); border-color: var(--border-default); }
.rc-bar { flex: 1; height: 4px; border-radius: var(--radius-pill); background: var(--acc-100); overflow: hidden; }
.rc-bar__fill { display: block; height: 100%; width: 8%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--acc), var(--acc-700)); transition: width var(--duration-normal) var(--ease-out); }
.rc-count { flex: none; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-secondary); font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-wide); }
.rc-count b { color: var(--text-strong); font-weight: var(--weight-bold); }

.case-card { padding: 0; gap: 0; overflow: hidden; text-decoration: none; color: inherit; -webkit-user-drag: none; }
.case-card__cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-sunken); }
.case-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; transition: transform 420ms var(--ease-out); }
.case-card:hover .case-card__cover img { transform: scale(1.05); }
/* Фолбэк обложки (хаб недоступен) — фирменная плашка с инициалами вместо пустоты */
.case-card__cover.is-fallback { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--acc-soft), var(--acc-100)); }
.case-card__cover.is-fallback img { display: none; }
.case-card__cover.is-fallback::before { content: attr(data-fallback); font-family: var(--font-display); font-weight: var(--weight-extra); font-size: clamp(32px, 8vw, 52px); letter-spacing: 0.04em; color: var(--acc-700); opacity: 0.55; }
.case-card__cover::after {
  content: "→"; position: absolute; top: 10px; right: 10px; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--paper) 86%, transparent); color: var(--acc-700); font-weight: 700;
  opacity: 0; transform: translateY(-4px); transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.case-card:hover .case-card__cover::after, .case-card:focus-visible .case-card__cover::after { opacity: 1; transform: translateY(0); }
.case-card:focus-visible { outline: 2px solid var(--acc-300); outline-offset: 2px; }
.case-card__body { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5) var(--space-5) var(--space-6); flex: 1; }
.case-card__title {
  font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-md);
  line-height: var(--leading-snug); letter-spacing: -0.01em; color: var(--text-strong);
  text-transform: uppercase; display: block; margin: 0;   /* капс и целиком — как на боевом */
}
.case-card__meta { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; }
.case-card__who { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.2; }
.case-card__who b { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-sm); color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-card__who span { font-size: var(--text-xs); color: var(--text-secondary); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-card__course { flex: none; padding: 4px 10px; border-radius: var(--radius-pill); font-size: var(--text-2xs); font-weight: var(--weight-semibold); background: var(--acc-soft); color: var(--acc-700); white-space: nowrap; }
.case-card__course--vk { background: color-mix(in srgb, var(--cyan-500) 15%, transparent); color: var(--cyan-700); }
.case-card .review-card__avatar { width: 44px; height: 44px; font-size: var(--text-md); }
/* Блок кейсов — приведён к виду боевого сайта kdigital-school.online:
   мета (имя · город · курс) сверху, заголовок «Из… — к…», CTA «Хочу так же →» внизу карточки */
.case-card__meta { order: -1; margin-top: 0; display: block; font-size: var(--text-xs); color: var(--text-secondary); line-height: 1.5; }  /* мета — одной строкой «Имя · Город · Курс», как на боевом */
.case-card .review-card__avatar { display: none; }                   /* как на боевом: аватар скрыт (остаётся в DOM — инициалы для фолбэка обложки) */
.case-card__who { display: inline; }
.case-card__who b { display: inline; font-size: var(--text-xs); color: var(--text-strong); white-space: normal; }
.case-card__who span { display: inline; color: var(--text-secondary); }
.case-card__who span::before { content: " · "; }
.case-card__course { display: inline; background: none; padding: 0; border-radius: 0; font-weight: var(--weight-normal); font-size: var(--text-xs); color: var(--text-secondary); white-space: normal; }
.case-card__course::before { content: " · "; }
.case-card__body::after { content: "Хочу так же\00A0→"; margin-top: auto; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--acc-700); }
.case-card:hover .case-card__body::after { text-decoration: underline; text-underline-offset: 3px; }
.cases__more { text-align: center; margin-top: var(--space-8); }

/* ---- Карусель кейсов как на боевом kdigital-school.online ----
   Плоские равные карточки, нативный горизонтальный скролл со snap,
   стрелки сверху справа (листают на ширину карточки), трек «вытекает» вправо до края экрана. */
.cases-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cases-head { max-width: 640px; margin-bottom: 0; }
.cases-head .kicker { justify-content: flex-start; }
.cases-carousel__controls { display: flex; gap: 12px; flex-shrink: 0; }
.cases-carousel__btn { width: 48px; height: 48px; border-radius: var(--radius-pill); background: var(--paper); border: 1px solid var(--border-strong, var(--border-subtle)); color: var(--text-strong); font-size: 20px; font-weight: var(--weight-semibold); line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), transform .2s var(--ease-out); }
.cases-carousel__btn:hover { background: var(--acc-600); color: #fff; border-color: var(--acc-600); transform: scale(1.05); }
.cases-carousel__btn:focus-visible { outline: 2px solid var(--acc-600); outline-offset: 2px; }
.cases-carousel__btn:disabled { opacity: .4; cursor: default; }

.cases-carousel { position: relative; box-sizing: border-box; margin-top: 40px; padding-left: max(var(--container-pad), calc((100% - var(--container-max)) / 2)); }
.cases-carousel__track { display: flex; gap: 22px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; padding: 8px 24px 26px 0; }
.cases-carousel__track::-webkit-scrollbar { display: none; }
.cases-carousel__track:focus-visible { outline: 2px solid var(--acc-300); outline-offset: 4px; border-radius: var(--radius-lg); }
.cases-carousel__slide { flex: 0 0 320px; scroll-snap-align: start; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out); }
.cases-carousel__slide:hover { box-shadow: var(--shadow-md); border-color: var(--acc-200); transform: translateY(-3px); }
@media (min-width: 768px)  { .cases-carousel__slide { flex: 0 0 360px; } }
@media (min-width: 1200px) { .cases-carousel__slide { flex: 0 0 384px; } }

.review-card { background: var(--paper); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); box-shadow: var(--shadow-sm); transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out); }
.review-card__avatar { width: 52px; height: 52px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-lg); letter-spacing: -0.02em; color: var(--paper); flex-shrink: 0; }
.review-card__avatar--a { background: linear-gradient(135deg, var(--violet-500), var(--violet-700)); }
.review-card__avatar--b { background: linear-gradient(135deg, var(--cyan-500), var(--violet-500)); }
.review-card__avatar--c { background: linear-gradient(135deg, var(--magenta-500), var(--violet-600)); }
.review-card__avatar--f { background: linear-gradient(135deg, var(--violet-700), var(--ink-900)); }
.cases__note { max-width: 62ch; margin: var(--space-10) auto 0; text-align: center; font-size: var(--text-xs); color: var(--text-secondary); line-height: var(--leading-normal); }

/* ============================ ЦИТАТА / голос эксперта ============================ */
.quote { max-width: 900px; margin-inline: auto; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl); padding: clamp(28px, 4vw, 56px); box-shadow: var(--shadow-md); position: relative; }
.quote::before { content: "“"; position: absolute; top: 4px; left: 24px; font-family: var(--font-display); font-size: 96px; line-height: 1; color: var(--acc-200); }
.quote__text { position: relative; font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: clamp(20px, 2.2vw, 28px); line-height: var(--leading-snug); letter-spacing: var(--tracking-snug); color: var(--text-strong); margin: 0; text-wrap: pretty; }
.quote__by { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-6); }
.quote__ava { width: 56px; height: 56px; border-radius: var(--radius-pill); object-fit: cover; object-position: center top; background: var(--surface-sunken); flex: none; }
.quote__who b { display: block; font-family: var(--font-display); font-weight: var(--weight-bold); color: var(--text-strong); }
.quote__who span { display: block; font-size: var(--text-sm); color: var(--text-secondary); }

/* ============================ ЛОГО-СТРОКА (клиенты агентства) ============================ */
.logos { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.logos span { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-sm); color: var(--text-secondary); background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); padding: 8px 18px; box-shadow: var(--shadow-xs); }

/* ============================ ТАРИФЫ (клуб — публичные цены) ============================ */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); max-width: 860px; margin-inline: auto; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl); padding: var(--space-8); box-shadow: var(--shadow-sm); transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out); }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--acc-200); }
.price-card--featured { border-color: var(--acc-300); box-shadow: var(--shadow-lg); }
.price-card__badge { position: absolute; top: -12px; left: var(--space-8); background: var(--acc); color: var(--paper); font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; padding: 6px 14px; border-radius: var(--radius-pill); box-shadow: var(--acc-shadow); }
.price-card__tier { font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--acc-700); }
.price-card__name { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-xl); color: var(--text-strong); margin: var(--space-2) 0 var(--space-4); }
.price-card__price { display: flex; align-items: baseline; gap: 8px; }
.price-card__amount { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: clamp(34px, 4vw, 48px); line-height: 1; color: var(--acc-700); letter-spacing: var(--tracking-tight); }
.price-card__per { font-size: var(--text-sm); color: var(--text-secondary); }
.price-card__then { margin: var(--space-2) 0 var(--space-6); font-size: var(--text-sm); color: var(--text-secondary); }
.price-card .ticks { margin-bottom: var(--space-6); }
.price-card .btn { margin-top: auto; width: 100%; }

/* ============================ FAQ (аккордеон) ============================ */
.faq { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) var(--space-6); font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-md); color: var(--text-strong); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 20px; height: 20px; background: var(--acc-soft); color: var(--acc-700); border-radius: var(--radius-pill);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/13px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/13px no-repeat;
  background-color: var(--acc-700); transition: transform var(--duration-normal) var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--acc-300); outline-offset: -2px; }
.faq-item__body { padding: 0 var(--space-6) var(--space-6); color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.faq-item__body p { margin: 0; }

/* ============================ ФИНАЛЬНАЯ CTA + ФОРМА ============================ */
.home-cta { padding: clamp(48px, 6vw, 80px) 0; }
.home-cta__inner {
  background: var(--acc-soft);
  background-image: radial-gradient(at 80% 0%, color-mix(in srgb, var(--acc) 12%, transparent), transparent 50%),
                    radial-gradient(at 20% 100%, color-mix(in srgb, var(--magenta-400) 8%, transparent), transparent 55%),
                    linear-gradient(180deg, var(--acc-soft), #faf8ff);
  border: 1px solid var(--acc-100);
  color: var(--text-strong); border-radius: var(--radius-2xl);
  padding: clamp(40px, 6vw, 72px); text-align: center; max-width: var(--container-max);
  margin: 0 auto; padding-inline: var(--container-pad);
}
.home-cta .kicker { justify-content: center; color: var(--acc-700); padding: var(--space-2) var(--space-4); background: var(--acc-soft); border: 1px solid var(--acc-100); border-radius: var(--radius-pill); }
.home-cta__title { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: clamp(30px, 3.6vw, 48px); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); color: var(--text-strong); margin: 16px 0 0; text-wrap: balance; }
.home-cta__lead { color: var(--text-secondary); font-size: var(--text-lg); line-height: var(--leading-relaxed); margin: 20px auto 32px; max-width: 56ch; text-wrap: pretty; }
.home-cta__form { display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--space-3); max-width: 720px; margin: 0 auto; align-items: stretch; }
.home-cta__form input[type="text"] { font-family: var(--font-body); font-size: var(--text-md); padding: var(--space-4) 18px; border: 1px solid var(--border-default); border-radius: var(--radius-pill); background: var(--paper); color: var(--text-body); }
.home-cta__form input[type="text"]:focus-visible { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-200); }
.home-cta__form .btn { white-space: nowrap; }
.home-cta__form .consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-xs); color: var(--text-secondary); line-height: var(--leading-normal); text-align: left; margin-top: 4px; }
.home-cta__form .consent input { margin-top: 2px; accent-color: var(--acc); width: 16px; height: 16px; flex: none; }
.home-cta__form .consent a { color: var(--text-link); }
.home-cta__tg { margin: 24px 0 0; color: var(--text-secondary); font-size: var(--text-sm); }
.home-cta__tg a { color: var(--acc-600); font-weight: var(--weight-semibold); text-decoration: underline; text-underline-offset: 3px; }

/* ============================ ФУТЕР ============================ */
.footer--dark { background: var(--surface-inverse); color: var(--ink-300); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: var(--space-10); padding-bottom: var(--space-12); border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-grid > * { min-width: 0; }
.footer--dark .nav-logo { color: var(--paper); }
.footer--dark .nav-logo .dot { color: var(--acc-300); }
.footer--dark .footer-grid p { margin: var(--space-3) 0 0; color: var(--ink-400); font-size: var(--text-sm); max-width: 34ch; line-height: var(--leading-normal); }
.footer--dark h4 { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-md); color: var(--paper); margin: 0 0 16px; }
.footer--dark a { color: var(--ink-300); text-decoration: none; display: block; margin-bottom: 8px; font-size: var(--text-sm); transition: color 220ms; overflow-wrap: anywhere; }
.footer--dark a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-6); font-size: var(--text-xs); color: var(--ink-500); flex-wrap: wrap; gap: var(--space-4); }
.footer-bottom span { max-width: 100%; }

/* ============================ ДОСТУПНОСТЬ ============================ */
.skip-link { position: absolute; left: var(--space-4); top: var(--space-2); z-index: 100; transform: translateY(-180%); background: var(--acc); color: var(--action-fg); padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); font-weight: var(--weight-semibold); text-decoration: none; transition: transform 140ms; }
.skip-link:focus-visible { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================ АДАПТИВ ============================ */
@media (max-width: 1100px) {
  .dir-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .funnel, .funnel--4, .funnel--3 { grid-template-columns: repeat(2, 1fr); }
  .speakers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  /* Hero фото-подложка → стек, как на mk */
  .home-hero--photo {
    display: block; aspect-ratio: auto; min-height: 0; background-image: none !important;
    background: radial-gradient(135% 80% at 50% 4%, var(--acc-soft), var(--paper) 55%);
    padding-block: clamp(28px, 6vw, 44px);
  }
  .home-hero--photo .home-hero__inner { padding-bottom: 0; }
  .home-hero--photo .home-hero__copy .home-hero__lead, .home-hero--photo .home-hero__copy .home-hero__cta { display: none; }
  .home-hero__showcase { display: block; margin-top: var(--space-4); }
  .home-hero__media { position: relative; border-radius: var(--radius-xl); overflow: hidden; background: #f2f1f3; box-shadow: var(--shadow-sm); }
  .home-hero__media-img { position: absolute; top: 0; right: 0; height: 100%; width: 62%; object-fit: cover; object-position: 78% center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%); mask-image: linear-gradient(90deg, transparent 0, #000 26%); }
  .home-hero__media-text { position: relative; z-index: 1; width: 60%; min-height: 206px; margin: 0; padding: var(--space-4) var(--space-3) var(--space-4) var(--space-4); display: flex; align-items: center; font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--text-body); text-wrap: pretty; }
  .home-hero__showcase-cta { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-4); }
  .home-hero__showcase-cta .btn { width: 100%; justify-content: center; }
  .home-hero__showcase-cta .btn-ghost { background: var(--paper); }
  .hero-creds { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-5); padding: 0 var(--container-pad); }
  .hero-cred { position: static; inset: auto; width: auto; background: var(--surface-card); box-shadow: var(--shadow-sm); backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* Hero split → стек */
  .hero-split__inner { grid-template-columns: 1fr; }
  .hero-split__media { order: -1; max-width: 360px; }
  .hero-portrait--traffic { width: 100%; margin-inline: 0; }   /* на мобиле вырез без «выхода за края» */
  /* Страницы-курсы (hero-split--media-lg): на мобиле порядок — плашка → заголовок → картинка → остальное.
     copy разворачиваем в грид (display:contents) и вставляем картинку 3-м пунктом через order. */
  .hero-split--media-lg .hero-split__inner { row-gap: 0; }
  .hero-split--media-lg .hero-split__copy { display: contents; }
  .hero-split--media-lg .hero-split__copy > .kicker { order: 1; justify-self: start; }
  .hero-split--media-lg .hero-split__title { order: 2; }
  .hero-split--media-lg .hero-split__media { order: 3; margin-top: var(--space-6); margin-inline: auto; }
  .hero-split--media-lg .hero-split__lead  { order: 4; }
  .hero-split--media-lg .hero-split__cta   { order: 5; }
  .hero-split--media-lg .hero-trust        { order: 6; }
  .hero-split--media-lg .hero-split__note  { order: 7; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 900px) {
  .program-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  /* Мобильное меню: прячем инлайн-ссылки, показываем гамбургер + выезжающую панель */
  .nav-links { position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 84px var(--container-pad) var(--space-8); box-shadow: var(--shadow-xl);
    transform: translateY(-102%); transition: transform var(--duration-slow) var(--ease-out); z-index: 60; }
  .nav-links a { padding: var(--space-4) 0; font-size: var(--text-lg); border-bottom: 1px solid var(--border-subtle); }
  .nav[data-open="true"] .nav-links { transform: translateY(0); }
  .nav-toggle { display: inline-flex; order: 3; }
  .nav-actions .btn-ghost { display: none; }
  /* Выпадающее меню в мобильной панели — статичный вложенный список (всегда виден при открытом меню) */
  .nav-drop { display: block; }
  .nav-drop > a { display: block; }
  .nav-drop > a::after { display: none; }
  .nav-drop__menu { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    min-width: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .nav-drop__menu::before { display: none; }
  .nav-drop__menu a { padding-left: var(--space-5); font-size: var(--text-base); border-radius: 0; }
}
@media (max-width: 768px) {
  :root { --container-pad: 16px; }
  .ticks--cols { grid-template-columns: 1fr; }
  .home-cta__form { grid-template-columns: 1fr; }
  .topbar__text, .topbar__sep { display: none; }
  .certs { grid-template-columns: 1fr; max-width: 420px; }
  .home-cta { padding-inline: var(--container-pad); }
  .home-cta__inner { max-width: none; border-radius: var(--radius-xl); }
  .nav-actions .btn { min-height: 44px; }
}
@media (max-width: 640px) {
  .feature-grid, .feature-grid--3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .funnel, .funnel--4, .funnel--3 { grid-template-columns: 1fr; }
  .speakers-grid { grid-template-columns: 1fr 1fr; }
  .reviews-carousel { --rc-card: min(88%, 340px); }
  .case-card__course { display: inline; }   /* мета в одну строку — курс оставляем видимым и на мобилке */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .home-hero__title, .hero-plain__title, .hero-split__title { font-size: clamp(30px, 9vw, 44px); }
}
@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .stats, .speakers-grid { grid-template-columns: 1fr; }
}
/* Мобильный hero с ГРУППОВЫМ фото (переопределяет генерик-правила выше — идёт позже) */
@media (max-width: 1024px) {
  .home-hero__group { display: none; }                 /* десктоп-фото прячем — на мобайле шоукейс */
  .home-hero__media { display: block; background: radial-gradient(120% 92% at 50% 0%, var(--acc-soft), var(--surface-sunken) 76%); padding: var(--space-4) var(--space-4) 0; }
  .home-hero__media-img { position: static; width: 100%; height: auto; object-fit: contain; -webkit-mask-image: none; mask-image: none; }
  .home-hero__media-text { position: static; width: auto; min-height: 0; padding: var(--space-4) 0; }
  .hero-creds--trio { position: static; inset: auto; width: auto; display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-top: var(--space-5); }
  .hero-creds--trio .hero-cred { position: static; inset: auto; width: auto; }
}
@media (min-width: 641px) and (max-width: 1024px) { .hero-creds--trio { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; overflow-x: clip; }
:target { scroll-margin-top: 90px; }

/* Позиционные контексты секций */
.section, .home-hero, .home-cta, .hero-plain, .hero-split { position: relative; isolation: isolate; }
.section > .container, .home-cta__inner { position: relative; z-index: 1; }

/* ============================================================
   Фирменная «трасса» — тонкая линия-путь (как нейросеть прокладывает
   маршрут). Живёт ЗА контентом. Цвет = акцент направления.
   ============================================================ */
:root { --wire-color: var(--acc); --wire-width: 2.5px; --wire-dot: 11px; --wire-opacity: .8; --wire-z: 0; }
.section, .home-cta, .home-hero, .hero-plain, .hero-split { overflow-x: clip; }
.wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: var(--wire-z); }
.wire path { fill: none; stroke: var(--acc); stroke-width: var(--wire-width); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: var(--wire-opacity); }
.wire path.wire-dot { stroke-width: var(--wire-dot, 11px); stroke-linecap: round; }
.wire path.wire-dot--sm { stroke-width: 7px; }
/* Трасса живёт только в боковых полях/зазорах ≥1280px. Ниже боковых полей нет
   (контент шире зазоров) — трассу убираем, чтобы линии не заходили на текст. */
@media (max-width: 1279px) { .wire { display: none; } }

/* ============================================================
   Мягкие градиентные подсветки на фоне секций (акцент + вторичные).
   Класс .glow навешивается на секцию — деликатная глубина/цвет.
   ============================================================ */
.glow::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(46% 48% at 90% 6%, color-mix(in srgb, var(--acc) 12%, transparent), transparent 72%),
             radial-gradient(40% 44% at 4% 94%, color-mix(in srgb, var(--cyan-500) 9%, transparent), transparent 72%); }
.glow--b::before { background: radial-gradient(48% 50% at 6% 10%, color-mix(in srgb, var(--magenta-500) 10%, transparent), transparent 72%),
             radial-gradient(42% 46% at 96% 88%, color-mix(in srgb, var(--acc) 9%, transparent), transparent 72%); }
.glow--c::before { background: radial-gradient(52% 46% at 50% -6%, color-mix(in srgb, var(--acc) 10%, transparent), transparent 70%),
             radial-gradient(40% 44% at 6% 92%, color-mix(in srgb, var(--cyan-500) 8%, transparent), transparent 72%),
             radial-gradient(40% 44% at 94% 92%, color-mix(in srgb, var(--magenta-500) 8%, transparent), transparent 72%); }

/* ============================ КЛУБ · «КТО ВЕДЁТ» (единый блок Кристины) ============================ */
/* Фото + цитата + регалии в одной карточке — без пустого пространства сбоку. */
#host .host-card { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; max-width: 980px; margin: 0 auto; background: var(--paper); border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl); box-shadow: var(--shadow-md); overflow: hidden; }
.host-card__photo { background-size: cover; background-position: center top; background-color: var(--surface-sunken); }
.host-card__body { padding: clamp(28px, 4vw, 46px); }
.host-card__quote { position: relative; margin: 0 0 var(--space-6); padding-left: var(--space-5); font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: clamp(var(--text-lg), 2.2vw, var(--text-2xl)); line-height: var(--leading-snug); letter-spacing: var(--tracking-snug); color: var(--text-strong); text-wrap: pretty; }
.host-card__quote::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 4px; border-radius: 2px; background: var(--acc-600); }
.host-card__name { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: var(--text-xl); color: var(--text-strong); margin: 0; letter-spacing: var(--tracking-snug); }
.host-card__role { margin: 4px 0 var(--space-5); font-size: var(--text-sm); color: var(--text-muted); }
.host-card__bio { margin: 0 0 var(--space-5); font-size: var(--text-base); color: var(--text-secondary); line-height: var(--leading-relaxed); text-wrap: pretty; }
.host-card .ticks { margin: 0; }
@media (max-width: 720px) {
  #host .host-card { grid-template-columns: 1fr; max-width: 460px; }
  .host-card__photo { aspect-ratio: 4 / 3; }
}

/* ============================ КНОПКА «НАВЕРХ» ============================ */
/* Плавающая кнопка на всех страницах (создаётся в main.js): появляется при прокрутке, по клику — плавно в начало. Цвет — акцент направления. */
.to-top { position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 60;
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: var(--acc-600); color: var(--paper); box-shadow: var(--shadow-lg); cursor: pointer;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), background .2s var(--ease-out); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--acc-700); transform: translateY(-2px); }
.to-top:active { transform: translateY(0); }
.to-top svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .2s var(--ease-out); } .to-top:hover { transform: none; } }

/* ===========================================================================
   ХАБ-РОУТЕР «Три двери / Три профессии» — общие карточки-ссылки на страницы.
   Accent-aware (var(--acc-*)): на Школе трафика — фиолет, на Школе AI — циан.
   Используется хабами shkola-ai.html (и как эталон — локально shkola-trafika.html).
   =========================================================================== */
.prof-logo { flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; font-family: var(--font-display); font-weight: var(--weight-extra); line-height: 1; }
.prof-routes .prof-logo { width: 54px; height: 54px; }
/* акцент-плитка иконки двери (по умолчанию — акцент направления) */
.prof-logo--acc { color: var(--acc-700); background: var(--acc-soft); }
.prof-logo--acc svg { width: 27px; height: 27px; }
/* три двери AI разными фирменными цветами — циан / фиолет / маджента */
.prof-logo--c1 { color: var(--cyan-700);    background: var(--cyan-100); }
.prof-logo--c2 { color: var(--violet-700);  background: var(--violet-100); }
.prof-logo--c3 { color: var(--magenta-600); background: var(--magenta-100); }
.prof-logo--c1 svg, .prof-logo--c2 svg, .prof-logo--c3 svg { width: 27px; height: 27px; }

.prof-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); align-items: stretch; }
.prof-route { position: relative; display: flex; flex-direction: column; gap: var(--space-2); background: var(--paper); border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl); box-shadow: var(--shadow-sm); padding: var(--space-7); text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.prof-route:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg, 0 20px 42px -20px rgba(24,20,50,.22)); border-color: var(--acc-300); }
.prof-route__name { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: var(--text-xl); color: var(--text-strong); margin: var(--space-3) 0 0; letter-spacing: var(--tracking-snug); }
.prof-route__post { font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--acc-700); margin: 0; }
.prof-route__desc { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); margin: var(--space-2) 0 0; flex: 1; }
.prof-route__go { font-weight: var(--weight-semibold); font-size: var(--text-sm); color: var(--acc-700); margin-top: var(--space-4); }
.prof-route:hover .prof-route__go { filter: brightness(.9); }
.prof-route--flagship { border-color: var(--acc-300); background: linear-gradient(180deg, var(--acc-soft), var(--paper) 55%); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--acc) 50%, transparent); }
.prof-route--flagship:hover { border-color: var(--acc); }
.prof-route__ribbon { position: absolute; top: var(--space-5); right: var(--space-5); font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: #fff; background: linear-gradient(100deg, var(--acc-grad-a), var(--acc-grad-b)); border-radius: var(--radius-pill); padding: 5px 12px; }
.prof-logo-stack { display: inline-flex; }
.prof-logo-stack .prof-logo { width: 46px; height: 46px; box-shadow: 0 0 0 3px var(--paper); }
.prof-logo-stack .prof-logo + .prof-logo { margin-left: -12px; }
.prof-routes__note { max-width: 640px; margin: var(--space-8) auto 0; text-align: center; font-size: var(--text-sm); color: var(--text-muted); }
@media (max-width: 900px) { .prof-routes { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ===========================================================================
   СТУПЕНИ ДОХОДА (ladder) и АПСЕЙЛ ДО ФЛАГМАНА (upsell) — общие, accent-aware.
   ЮР: ступени дохода — только ориентир + дисклеймер, без гарантий.
   =========================================================================== */
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); max-width: 940px; margin: 0 auto; }
.ladder__step { position: relative; background: var(--paper); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: var(--space-6); }
.ladder__step::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.ladder__step:nth-child(1)::before { background: var(--acc-300); }
.ladder__step:nth-child(2)::before { background: var(--acc); }
.ladder__step:nth-child(3)::before { background: var(--acc-700); }
.ladder__when { font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--acc-700); }
.ladder__val { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: var(--text-2xl); color: var(--text-strong); margin: 6px 0 4px; letter-spacing: var(--tracking-snug); }
.ladder__desc { margin: 0; font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); }

.upsell { max-width: 820px; margin: 0 auto; display: flex; align-items: center; gap: clamp(20px, 4vw, 40px); border-radius: var(--radius-2xl); padding: clamp(24px, 4vw, 40px); color: #fff;
  background: linear-gradient(135deg, var(--acc-600), var(--acc-700)); box-shadow: 0 22px 46px -20px color-mix(in srgb, var(--acc-700) 55%, transparent); }
.upsell__text { flex: 1; min-width: 0; }
.upsell__title { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: clamp(var(--text-lg), 2.4vw, var(--text-2xl)); color: #fff; margin: 0 0 var(--space-3); letter-spacing: var(--tracking-snug); }
.upsell__desc { margin: 0 0 var(--space-5); font-size: var(--text-base); line-height: var(--leading-relaxed); color: rgba(255,255,255,.9); }
.upsell .btn { background: #fff; color: var(--acc-700); }
.upsell .btn:hover { background: rgba(255,255,255,.9); }
@media (max-width: 760px) { .ladder { grid-template-columns: 1fr; max-width: 460px; } .upsell { flex-direction: column; align-items: flex-start; } }

/* ===========================================================================
   ШКОЛА AI — семейство компонентов (общие для хаба и 3 страниц-профессий AI).
   Вынесены из локального <style> shkola-ai.html, чтобы не дублировать.
   Акцент — циан (body data-accent="ai"); чипы/стек играют фирменной тройкой.
   =========================================================================== */
/* AI-hero: вырез Андрея и Семёна «плывёт» БЕЗ рамки — крупно, contain + мягкая тень по силуэту */
.hero-portrait--ai { border: 0; border-radius: 0; overflow: visible; background: none; box-shadow: none; aspect-ratio: auto; width: 134%; margin-inline: -17%; }
.hero-portrait--ai img { object-fit: contain; object-position: center bottom; width: 100%; height: auto; filter: drop-shadow(0 26px 40px rgba(16, 42, 56, 0.22)); }
@media (max-width: 1024px) { .hero-portrait--ai { width: 100%; margin-inline: 0; } }
/* плашки Андрея и Семёна — на одном уровне, в линию (Андрей левее, чтобы поместился Семён) */
.hero-portrait--ai ~ .duo-cred { max-width: 48%; }
.hero-portrait--ai ~ .duo-cred--left  { left: -34px;  bottom: 6%; }
.hero-portrait--ai ~ .duo-cred--right { right: -14px; bottom: 6%; }
@media (max-width: 1024px) {   /* планшет/мобилка — держим обе плашки в границах фото, компактнее */
  .hero-portrait--ai ~ .duo-cred { max-width: 47%; }
  .hero-portrait--ai ~ .duo-cred--left  { left: 0; }
  .hero-portrait--ai ~ .duo-cred--right { right: 0; }
}

.ai-turn { max-width: 760px; margin: clamp(24px, 4vw, 40px) auto 0; text-align: center; font-size: var(--text-base); color: var(--text-secondary); line-height: var(--leading-relaxed); text-wrap: pretty; }
.ai-turn b { color: var(--text-strong); font-weight: var(--weight-semibold); }
/* программа: карточки-модули */
.ai-mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.ai-mod { display: flex; flex-direction: column; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: var(--space-6); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out); }
.ai-mod:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--acc-200); }
.ai-mod__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.ai-mod__n { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: var(--text-3xl); line-height: 1; letter-spacing: -0.03em; color: var(--acc-600); }
.ai-mod__wk { font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-muted); }
.ai-mod__title { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-lg); color: var(--text-strong); margin: var(--space-3) 0 0; }
.ai-mod__body { margin: var(--space-3) 0 var(--space-5); font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); flex: 1; }
.ai-mod__result { align-self: flex-start; font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--acc-700); background: var(--acc-soft); border-radius: var(--radius-pill); padding: 5px 11px; }
/* инструменты + AI-стек */
.ai-sub { text-align: center; margin: clamp(24px, 4vw, 40px) 0 var(--space-5); font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-muted); }
.ai-tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.ai-tools li { font-size: var(--text-sm); font-weight: var(--weight-semibold); border: 1.5px solid transparent; border-radius: var(--radius-pill); padding: 8px 17px; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), filter .2s var(--ease-out); }
.ai-tools li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); filter: saturate(1.15); }
/* фирменная палитра по кругу: циан → фиолет → маджента */
.ai-tools li:nth-child(3n+1) { background: var(--cyan-100);    border-color: var(--cyan-300);    color: var(--cyan-700); }
.ai-tools li:nth-child(3n+2) { background: var(--violet-100);  border-color: var(--violet-300);  color: var(--violet-700); }
.ai-tools li:nth-child(3n)   { background: var(--magenta-100); border-color: var(--magenta-300); color: var(--magenta-700); }
.ai-stack { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; }
.ai-stack__item { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 140px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-5) var(--space-5) var(--space-4); }
.ai-stack__item::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; }
.ai-stack__item b { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: var(--text-2xl); line-height: 1; }
.ai-stack__item span { font-size: var(--text-2xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.ai-stack__item:nth-child(3n+1)::before { background: var(--cyan-500); }    .ai-stack__item:nth-child(3n+1) b { color: var(--cyan-600); }
.ai-stack__item:nth-child(3n+2)::before { background: var(--violet-500); }  .ai-stack__item:nth-child(3n+2) b { color: var(--violet-600); }
.ai-stack__item:nth-child(3n)::before   { background: var(--magenta-400); } .ai-stack__item:nth-child(3n) b { color: var(--magenta-500); }
/* форматы участия (без цен) */
.ai-formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); align-items: stretch; }
.ai-format { position: relative; display: flex; flex-direction: column; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: var(--space-7) var(--space-6); }
.ai-format--featured { border-color: var(--acc-300); box-shadow: var(--shadow-lg); }
.ai-format__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--paper); background: var(--acc-600); border-radius: var(--radius-pill); padding: 5px 13px; white-space: nowrap; }
.ai-format__name { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: var(--text-xl); color: var(--text-strong); margin: 0; }
.ai-format__for { margin: 6px 0 var(--space-5); font-size: var(--text-sm); color: var(--text-muted); }
.ai-format__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.ai-format__list li { position: relative; padding-left: 26px; font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-snug); }
.ai-format__list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%; background: var(--acc-soft); }
.ai-format__list li::after { content: ""; position: absolute; left: 5px; top: 6px; width: 7px; height: 4px; border-left: 2px solid var(--acc-700); border-bottom: 2px solid var(--acc-700); transform: rotate(-45deg); }
.ai-formats-cta { text-align: center; margin: var(--space-8) auto 0; max-width: 620px; }
.ai-formats-cta p { font-size: var(--text-sm); color: var(--text-muted); margin: 0 0 var(--space-5); }
@media (max-width: 900px) { .ai-mods { grid-template-columns: 1fr 1fr; } .ai-formats { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
@media (max-width: 620px) { .ai-mods { grid-template-columns: 1fr; } }

/* ===========================================================================
   КАТАЛОГ КУРСОВ (#courses) — сетка карточек-ссылок + фильтр-табы (как submarineedu).
   Каждая карточка = <a class="course-card"> на страницу курса (target="_blank").
   Фильтрация по data-tags — в main.js (показ/скрытие через .is-hidden).
   Accent-aware: иконка/активный таб — цвет направления (фиолет/циан/маджента).
   =========================================================================== */
.course-filters { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin: 0 0 var(--space-8); }
.course-filter { font-family: inherit; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-secondary); background: var(--paper); border: 1.5px solid var(--border-subtle); border-radius: var(--radius-pill); padding: 8px 18px; cursor: pointer; white-space: nowrap; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.course-filter:hover { border-color: var(--acc-300); color: var(--text-strong); }
.course-filter.is-active { background: var(--acc-600); border-color: var(--acc-600); color: #fff; }
.course-filter:focus-visible { outline: 2px solid var(--acc-600); outline-offset: 2px; }

.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); align-items: stretch; }
.course-card { position: relative; display: flex; flex-direction: column; gap: var(--space-2); background: var(--paper); border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl); box-shadow: var(--shadow-sm); padding: var(--space-7); text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg, 0 20px 42px -20px rgba(24,20,50,.22)); border-color: var(--acc-300); }
.course-card.is-hidden { display: none; }
.course-card__ic { flex: none; width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center; border-radius: 15px; color: #fff; background: linear-gradient(135deg, var(--acc-grad-a), var(--acc-grad-b)); margin-bottom: var(--space-2); }
.course-card__ic svg { width: 28px; height: 28px; }
.course-card__title { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: var(--text-xl); color: var(--text-strong); margin: 0; letter-spacing: var(--tracking-snug); }
.course-card__sub { font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--acc-700); margin: 0; }
.course-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--space-2) 0 0; }
.course-card__tags span { font-size: var(--text-2xs); font-weight: var(--weight-semibold); color: var(--text-secondary); background: var(--surface-sunken); border-radius: var(--radius-pill); padding: 3px 10px; }
.course-card__desc { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); margin: var(--space-2) 0 0; }
.course-card__result { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); margin: var(--space-3) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); flex: 1; }
.course-card__result b { color: var(--acc-700); font-weight: var(--weight-semibold); }
.course-card__go { font-weight: var(--weight-semibold); font-size: var(--text-sm); color: var(--acc-700); margin-top: var(--space-4); }
.course-card:hover .course-card__go { filter: brightness(.9); }
.course-card--flagship { border-color: var(--acc-300); background: linear-gradient(180deg, var(--acc-soft), var(--paper) 55%); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--acc) 50%, transparent); }
.course-card--flagship:hover { border-color: var(--acc); }
.course-card__badge { position: absolute; top: var(--space-5); right: var(--space-5); font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: #fff; background: linear-gradient(100deg, var(--acc-grad-a), var(--acc-grad-b)); border-radius: var(--radius-pill); padding: 5px 12px; }
@media (max-width: 900px) {
  .course-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  /* мобилка: фильтры — горизонтальный скролл */
  .course-filters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin-inline: calc(-1 * var(--container-pad)); padding: 0 var(--container-pad) 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .course-filters::-webkit-scrollbar { display: none; }
}

/* ===========================================================================
   ВИЗУАЛЬНОЕ ОБОГАЩЕНИЕ СТРАНИЦ-КУРСОВ (референс Submarine «Нейрокреатор»),
   строго в светлой дизайн-системе KDigital. Включается на страницах с body[data-rich].
   Компоненты: reveal-анимации, пульс CTA, стат-бар, сравнение до/после, сетка логотипов,
   галереи (лента / плитки), плейсхолдеры ASSET-GAP, hero-коллаж.
   Всё accent-aware (фиолет/циан/маджента). Движение уважает prefers-reduced-motion.
   =========================================================================== */

/* --- Появление при скролле: JS вешает .reveal целям (скрывает), .is-inview при входе в вид --- */
[data-rich] .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); will-change: opacity, transform; }
[data-rich] .reveal--left  { transform: translateX(-28px); }
[data-rich] .reveal--right { transform: translateX(28px); }
[data-rich] .reveal.is-inview { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-rich] .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* --- Пульс главного CTA (только .btn--pulse, ставит JS на одну кнопку) --- */
@keyframes kd-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc) 42%, transparent); } 60% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--acc) 0%, transparent); } }
.btn--pulse { animation: kd-pulse 2.6s var(--ease-out) infinite; }
@media (prefers-reduced-motion: reduce) { .btn--pulse { animation: none; } }

/* --- Мягкое парение декора/иконок (только помеченные .is-float) --- */
@keyframes kd-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.is-float { animation: kd-float 5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .is-float { animation: none; } }

/* --- Стат-бар: тонкая полоса цифр с иконками --- */
.course-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); max-width: 960px; margin: 0 auto; }
.course-stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: var(--space-6) var(--space-3); background: var(--paper); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); }
.course-stat__ic { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--acc-700); background: var(--acc-soft); margin-bottom: 6px; }
.course-stat__ic svg { width: 22px; height: 22px; }
.course-stat__num { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: var(--text-2xl); color: var(--text-strong); line-height: 1.05; letter-spacing: var(--tracking-snug); }
.course-stat__label { font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-semibold); color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
@media (max-width: 720px) { .course-stats { grid-template-columns: repeat(2, 1fr); } }

/* --- Сравнение до/после: парные колонки с inline-SVG (крестик / галочка) --- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); max-width: 960px; margin: 0 auto; align-items: start; }
.compare__col { border-radius: var(--radius-2xl); padding: var(--space-7); border: 1px solid var(--border-subtle); }
.compare__col--before { background: var(--surface-sunken); }
.compare__col--after { background: linear-gradient(180deg, var(--acc-soft), var(--paper) 62%); border-color: var(--acc-300); }
.compare__title { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-lg); color: var(--text-strong); margin: 0 0 var(--space-5); display: flex; align-items: center; gap: 10px; }
.compare__title svg { width: 22px; height: 22px; }
.compare__col--before .compare__title svg { color: #e5484d; }
.compare__col--after  .compare__title svg { color: var(--acc-700); }
.compare__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.compare__list li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); }
.compare__list li svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.compare__col--before .compare__list li svg { color: #e5484d; }
.compare__col--after  .compare__list li svg { color: var(--acc-700); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* --- Сетка логотипов инструментов/нейросетей --- */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--space-4); max-width: 960px; margin: 0 auto; }
.logo-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 3 / 2; background: var(--paper); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-5); transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), border-color .18s var(--ease-out); }
.logo-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--acc-300); }
.logo-tile img { width: 42px; height: 42px; object-fit: contain; }
.logo-tile__name { font-size: var(--text-2xs); font-weight: var(--weight-semibold); color: var(--text-secondary); text-align: center; }
/* монограмма-плейсхолдер (ASSET-GAP) для брендов без официального SVG */
.logo-tile__mono { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-family: var(--font-display); font-weight: var(--weight-extra); font-size: var(--text-base); color: #fff; background: linear-gradient(135deg, var(--acc-grad-a), var(--acc-grad-b)); }

/* --- Галерея A: горизонтальная лента работ (свайп на мобилке) --- */
/* Галерея примеров: адаптивная сетка — все карточки помещаются на экран, без горизонтальной прокрутки
   (была лента с прокруткой: 4-я карточка обрезалась краем экрана). */
.work-ribbon { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-4); }
.work-card { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm); background: var(--paper); }
@media (max-width: 640px) { .work-ribbon { grid-template-columns: 1fr 1fr; gap: var(--space-3); } }
.work-card__media { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; }
.work-card__cap { padding: var(--space-4) var(--space-5); font-size: var(--text-sm); color: var(--text-secondary); }

/* --- Галерея B: плиточная grid результатов --- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-4); }
.work-tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm); aspect-ratio: 1 / 1; transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out); }
.work-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.work-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Плейсхолдер ASSET-GAP: градиент по акценту + иконка + подпись (Андрей заменит на реал) --- */
.asset-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; min-height: 150px; text-align: center; padding: var(--space-5); color: #fff; background: linear-gradient(135deg, var(--acc-grad-a), var(--acc-grad-b)); }
.asset-ph svg { width: 34px; height: 34px; opacity: .92; }
.asset-ph span { font-size: var(--text-2xs); font-weight: var(--weight-semibold); opacity: .92; line-height: var(--leading-snug); }
.asset-ph--soft { color: var(--acc-700); background: var(--acc-soft); }

/* --- Hero-коллаж: плавающие декоративные плашки вокруг фото + свечение --- */
.hero-deco { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); padding: 9px 15px; font-size: var(--text-2xs); font-weight: var(--weight-semibold); color: var(--text-strong); white-space: nowrap; }
.hero-deco svg { width: 18px; height: 18px; color: var(--acc-600); }
.hero-deco--a { top: 4%;  left: -6%; }
.hero-deco--b { top: 40%; right: -8%; }
.hero-deco--c { top: 30%; left: -9%; }  /* mid-left — не перекрывает нижние плашки-регалии */
.hero-glow { position: absolute; z-index: 0; inset: 6% 0 auto; height: 70%; border-radius: 50%; filter: blur(60px); opacity: .5; background: radial-gradient(circle, color-mix(in srgb, var(--acc) 55%, transparent), transparent 68%); pointer-events: none; }
@media (max-width: 1024px) { .hero-deco { display: none; } .hero-glow { opacity: .3; } }
