/* ============ KAVA.SCHOOL — Course Landing v3 ============
   Полный матч стиля «Графический дизайн. База» (netlify-final):
   - Paper-фон #EAE0CF, ink текст
   - Бордовые em-акценты в заголовках
   - Yellow только как mark-ink подложка + toggle ring
   - Unbounded для заголовков, Manrope для текста
   ====================================================== */

:root {
  /* Палитра — точно как в референсе */
  --ink: #1d1b1a;
  --paper: #F4ECDF;
  --paper-2: #F8F3EA; /* единый светлый фон */
  --paper-3: #FFFAF1;

  --bordo: #811A19;
  --bordo-2: #6B1413;
  --bordo-3: #4C1010;
  --bordo-soft: #a32a28;

  --coffee: #3C312D;
  --green: #3E4F2F;
  --green-2: #8EB56C;
  --yellow: #FFF278; /* нежный из Figma */
  --yellow-light: #FFF89A;
  --sky: #D2E4EB; /* нежно-голубой из Figma */
  --sky-2: #85ABB9;

  /* Шрифты */
  --h-font: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --t-font: 'Manrope', system-ui, sans-serif;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --hand: 'Caveat', cursive;

  /* Radii */
  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;

  /* Spacing */
  --maxw: 1320px;
  --pad: clamp(20px, 5vw, 80px);
  --space-block: clamp(36px, 4.5vw, 64px);
  --card-pad: clamp(22px, 2.4vw, 32px);

  /* Type scale */
  --fs-section: clamp(28px, 3.6vw, 52px);
  --fs-lead: clamp(15px, 1.1vw, 17px);
  --fs-body: clamp(15px, 1.05vw, 17px);
  --fs-caption: 13px;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-soft: cubic-bezier(0.2, 0.7, 0.15, 1);

  /* Marquee speed */
  --marquee-dur: 60s;
}
@media (max-width: 680px) {
  :root { --marquee-dur: 42s; }
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; max-width: 100%; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--t-font);
  color: var(--ink);
  background-color: #F7F7F3;
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0;
}

/* ===== Единый мягкий фон по всему сайту — светлый + деликатное жёлтое свечение ===== */
html { background: #F7F7F3; }
html, main { background: transparent !important; }
body {
  background-color: #F7F7F3 !important;
  background-image:
    radial-gradient(56% 46% at 80% 6%,  rgba(255, 238, 165, 0.42), transparent 62%),
    radial-gradient(50% 44% at 10% 46%, rgba(255, 243, 190, 0.26), transparent 62%),
    radial-gradient(80% 55% at 50% 104%, rgba(255, 236, 158, 0.22), transparent 72%) !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}
/* секции прозрачные — фон идёт единым полотном, без стыков */
section, .section, .feat,
#about, #after, #audience,
#testimonials, #pricing, #faq, #contact, #socials { background: transparent !important; }
/* Program — тёмный фон как было */
#program, .program, section.program { background: var(--ink) !important; }

/* L3 — общий стиль для всех карточек: молочные + soft shadow + thin border */
.bento-card,
.tier,
.testi-card,
.aud-card--start,
.aud-card--mid,
.feat-card,
.adv-card,
.carousel-card,
.minimal-row,
.faq-item,
.skills-cloud,
.module,
.social-card {
  background: #FFFAF1;
  border: 1px solid rgba(23, 23, 23, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* Тёмные карточки оставляем — они контрастируют сами */
.bento-card--main,
.aud-card--pro,
.tier-best,
.module {
  /* спец-фоны не трогаем — у них свой фон */
}
/* модули в тёмной программе остаются как были */
.module { background: #24221F; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.bento-card--main { background: var(--ink); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18); }
.aud-card--pro { background: var(--ink); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18); }
.tier-best { background: var(--ink); border: 2px solid var(--yellow); box-shadow: 0 24px 60px -28px rgba(254, 255, 85, 0.4); }

/* тёмные блоки оставляем как были */
.hero,
.program,
.testi-stats,
.installment,
.cta-help,
.footer { background: initial; }
p { line-height: 1.65; }
/* Reference-style: всё слева — как на netlify-final */
.section-sub, .lead { max-width: 720px; text-align: left; margin-left: 0; margin-right: 0; }
.hero-sub { max-width: 540px; }
.section-head,
/* обычные хедеры — слева */
.section-head { text-align: left; margin-left: 0; margin-right: 0; }
.section-head .eyebrow { justify-content: flex-start; align-self: flex-start; }
.section-head .section-h { text-align: left; margin-left: 0; margin-right: 0; }
.section-head .section-sub { margin-left: 0; margin-right: 0; }
/* центрированные хедеры — по центру (desktop) */
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .eyebrow { justify-content: center; align-self: center; }
.section-head--center .section-h { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .section-sub { margin-left: auto; margin-right: auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ============ TYPOGRAPHY ============ */
/* Скрыты все мелкие подписи-eyebrow над заголовками */
.eyebrow, .oc-label { display: none !important; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--t-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bordo);
}
.eyebrow .star { width: 16px; height: 16px; flex: none; }
.eyebrow .star path, .eyebrow .star rect, .eyebrow .star g { fill: currentColor; }

.section-h {
  font-family: var(--h-font);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.28;
  font-size: var(--fs-section);
  margin: 14px 0 22px;
  text-transform: none;
}
/* выделенное слово — курсивный serif в капсуле (как на референсе) */
.section-h em {
  display: inline-block;
  line-height: 1;
  vertical-align: baseline;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--bordo);
  background: #F8EDAE;
  border: 2px solid #E3CC66;
  padding: 0.08em 0.4em 0.16em;
  border-radius: 0.55em;
  letter-spacing: 0;
  text-transform: none;
}

.section-sub {
  font-size: var(--fs-lead);
  color: #3a3633;
  font-weight: 500;   /* чуть плотнее — лучше читается, особенно на мобиле */
  max-width: 720px;
  margin: 0 0 var(--space-block);
  line-height: 1.55;
}
/* десктоп — подзаголовки под заголовками блоков крупнее (мобайл не трогаем) */
@media (min-width: 768px) {
  .section-sub,
  .section-head--center .section-sub {
    font-size: clamp(18px, 1.5vw, 21px);
    line-height: 1.6;
    max-width: 780px;
  }
  /* в центрированных хедерах подзаголовок — по центру (десктоп) */
  .section-head--center .section-sub { text-align: center; }
  .program .program__sub { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; max-width: 680px; }
}

.mark-ink {
  background: linear-gradient(180deg, transparent 62%, var(--yellow) 62%);
  padding: 0 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 28px;
  border-radius: 999px;
  font-family: var(--t-font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: var(--bordo);
  color: #fff;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  touch-action: manipulation;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: var(--bordo-2); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.35); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn:active { transform: translateY(0); }

.btn--paper { background: var(--paper-3); color: var(--ink); }
.btn--paper:hover { background: #fff; }
.btn--ink { background: var(--ink); color: var(--paper-3); }
.btn--ink:hover { background: #000; }
.btn--lg { padding: 22px 36px; font-size: 15px; }
.btn--sm { padding: 12px 22px; font-size: 12px; }

.btn .arrow { display: inline-block; transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 18px 0;
  background: rgba(234, 224, 207, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand-logo {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
}
.brand-logo .dot { color: var(--bordo); }

.header-nav { display: none; gap: 8px; }
@media (min-width: 900px) { .header-nav { display: flex; } }
.header-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  opacity: 0.7;
}
.header-nav a:hover, .header-nav a:focus-visible { background: var(--paper-3); opacity: 1; }

.header-cta { display: none; }
@media (min-width: 900px) { .header-cta { display: inline-flex; } }

/* burger */
.burger {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .burger { display: none; } }

/* ----- мобильная шапка: лёгкая, поверх видео-первого-экрана (без бежевого блока) ----- */
@media (max-width: 767px) {
  .header {
    background: transparent;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    border-bottom: none;
    padding: max(12px, env(safe-area-inset-top)) 0 12px;
    transition: background 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
  }
  .header__inner { padding-left: 20px; padding-right: 20px; }
  .burger span { width: 24px; }
  /* на первом экране (прозрачная шапка) логотип скрыт — hero чище;
     visibility сохраняет место, бургер остаётся справа. При скролле логотип возвращается. */
  .header:not(.is-solid) .brand-logo { visibility: hidden; }
  .header.is-solid {
    background: rgba(247, 247, 243, 0.92);
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
}

/* mobile nav overlay */
/* ============ MOBILE NAV — Sheet (shadcn) ============ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
}
.mobile-nav.is-open { pointer-events: auto; }
/* затемнение-overlay */
.mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 14, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.mobile-nav.is-open .mobile-nav__overlay { opacity: 1; }
/* выезжающая панель справа */
.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(86%, 360px);
  background: var(--paper);
  box-shadow: -24px 0 60px -20px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  padding: 20px 22px calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
  border-left: 1px solid rgba(0,0,0,0.06);
}
.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }
/* шапка панели */
.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.mobile-nav__brand {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mobile-nav__brand .dot { color: var(--bordo); }
.mobile-nav__close {
  appearance: none;
  border: 1px solid rgba(0,0,0,0.1);
  background: transparent;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.mobile-nav__close:hover { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.18); }
/* список ссылок */
.mobile-nav__list { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; flex: 1; }
.mobile-nav__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 14px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-nav__list a:hover,
.mobile-nav__list a:active { background: rgba(129, 26, 25, 0.07); color: var(--bordo); }
.mobile-nav__chev { color: rgba(29,27,26,0.35); transition: transform 0.2s ease, color 0.2s ease; }
.mobile-nav__list a:hover .mobile-nav__chev { color: var(--bordo); transform: translateX(3px); }
/* подвал панели */
.mobile-nav__foot { padding-top: 18px; border-top: 1px solid rgba(0,0,0,0.08); }
.mobile-nav__cta {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.mobile-nav__note {
  text-align: center;
  font-size: 12px;
  color: rgba(29,27,26,0.5);
  margin: 12px 0 0;
}

/* sticky mobile CTA */
.sticky-cta {
  position: fixed;
  bottom: 14px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 40px);
  max-width: 320px;
  z-index: 70;
  background: var(--bordo);
  color: #fff;
  padding: 16px 22px;
  border-radius: 999px;
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 18px 40px -16px rgba(129, 26, 25, 0.6);
  transform: translateY(140%);
  transition: transform 0.35s var(--ease-out);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta.is-near-footer { transform: translateY(140%); }
.sticky-cta svg { width: 18px; height: 18px; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ============ SECTIONS ============ */
.section { padding: var(--space-block) 0; }

.section-head { max-width: 820px; }
.section-head--center { margin: 0 auto; text-align: center; }
.section-head--center .section-sub { margin-left: auto; margin-right: auto; }

/* ============================================
   HERO — video-scrub (mouse-controlled)
   ============================================ */
.hero--scrub {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* mobile: контент внизу */
  padding: 0 0 48px;
}
@media (min-width: 768px) {
  .hero--scrub { justify-content: center; padding-bottom: 0; }
}
.hero-scrub__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  z-index: 0;
  pointer-events: none;
}
/* на десктопе мобильное видео скрыто (показывается только на мобиле) */
.hero-scrub__video--mob { display: none; }
/* мягкая голубая вуаль слева — для читаемости тёмного текста */
.hero-scrub__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(210,228,235,0.86) 0%, rgba(210,228,235,0.5) 45%, rgba(210,228,235,0.08) 80%, transparent 100%),
    linear-gradient(180deg, rgba(210,228,235,0.55) 0%, transparent 30%, transparent 70%, rgba(210,228,235,0.55) 100%);
}
@media (max-width: 767px) {
  /* МОБАЙЛ: вертикальное видео с вшитым текстом — на весь первый экран */
  .hero--scrub.hero--scrub {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    justify-content: flex-end;
    align-items: center;
    /* подтягиваем под прозрачную шапку, чтобы видео занимало весь экран */
    margin-top: calc(-1 * var(--header-h, 0px));
    padding: 0 0 max(12px, calc(env(safe-area-inset-bottom) + 10px));
    background: var(--ink) !important;
  }
  .hero-scrub__video--web { display: none; }
  .hero-scrub__video--mob {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .hero-scrub__scrim { display: none; }
  /* заголовок и описание скрыты — видео показывает текст, плашки добавляем в вёрстке */
  .hero--scrub .hero-scrub__title,
  .hero--scrub .hero-scrub__lead { display: none !important; }
  .hero-scrub__inner {
    margin-top: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
  }
  .hero--scrub .hero-scrub__facts {
    display: flex !important;
    justify-content: center;
    gap: 8px;
  }
  .hero--scrub .hero-fact {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 12px;
  }
  .hero--scrub .hero-fact b {
    font-size: 10px;
    letter-spacing: 0.06em;
  }
  .hero--scrub .hero-fact__val {
    font-size: 13px;
  }
  .hero-scrub__buy { margin-top: 0; width: auto; max-width: 320px; padding: 15px 30px; font-size: 14px; }
}
.hero-scrub__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  padding: 0 clamp(20px, 5vw, 40px);
}

/* Размытая подпись-интро */
.hero-scrub__intro {
  font-family: var(--t-font);
  font-size: clamp(18px, 4vw, 26px);
  line-height: 1.3;
  font-weight: 400;
  color: var(--ink);
  filter: blur(4px);
  margin: 0 0 22px;
  pointer-events: none;
  user-select: none;
}

/* Название курса — гигантское AI + автоматизация */
.hero-scrub__title {
  font-family: var(--h-font);
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  margin: 0 0 16px;
}
.hero-scrub__ai {
  display: block;
  font-size: clamp(76px, 19vw, 168px);
  line-height: 0.82;
  letter-spacing: -0.05em;
}
.hero-scrub__ai-sub {
  display: block;
  font-size: clamp(26px, 5.4vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-top: 4px;
}

/* Большая кнопка покупки */
.hero-scrub__buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding: 18px 34px;
  border-radius: 999px;
  background: var(--bordo);
  color: #fff;
  font-family: var(--t-font);
  font-weight: 800;
  font-size: clamp(15px, 2.2vw, 17px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 16px 38px -14px rgba(129, 26, 25, 0.6);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.hero-scrub__buy:hover {
  background: var(--bordo-2, #6e1615);
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -14px rgba(129, 26, 25, 0.7);
}
.hero-scrub__buy .arrow { transition: transform 0.25s ease; }
.hero-scrub__buy:hover .arrow { transform: translateX(4px); }
@media (max-width: 767px) {
  .hero-scrub__buy { width: auto; max-width: 320px; padding: 15px 30px; font-size: 14px; }
}

/* Описание под названием */
.hero-scrub__lead {
  margin: 0 0 22px;
  max-width: 560px;
}
.hero-scrub__lead p {
  font-family: var(--t-font);
  font-size: clamp(15px, 2.4vw, 19px);
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 10px;
}
.hero-scrub__lead p:last-child { margin-bottom: 0; color: rgba(29,27,26,0.75); font-weight: 400; }

/* Инфо-плашки (старт / длительность) */
.hero-scrub__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-fact {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(29, 27, 26, 0.12);
  border-radius: 14px;
  padding: 10px 16px;
  font-family: var(--t-font);
}
.hero-fact b {
  font-weight: 700;
  font-size: clamp(12px, 1.7vw, 13px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.hero-fact__val {
  font-weight: 700;
  font-size: clamp(14px, 2vw, 16px);
  color: var(--ink);
}

/* Печатающийся текст (на случай fallback) */
.hero-scrub__type {
  font-family: var(--t-font);
  font-size: clamp(18px, 4vw, 26px);
  line-height: 1.35;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 22px;
  min-height: 54px;
}
.hero-scrub__cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--bordo);
  vertical-align: middle;
  margin-left: 2px;
  animation: scrubBlink 1s step-end infinite;
}
.hero-scrub__cursor.is-done { display: none; }
@keyframes scrubBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* Кнопки-пилюли */
.hero-scrub__pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 4px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hero--scrub .hero-scrub__pills.is-visible { opacity: 1 !important; transform: none !important; }
.scrub-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(29, 27, 26, 0.14);
  border-radius: 999px;
  font-family: var(--t-font);
  font-weight: 600;
  font-size: clamp(13px, 2vw, 15px);
  line-height: 1;
  padding: 0.5em 1.1em;
  margin: 0 0.2em 0.4em 0;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.scrub-pill:hover {
  background: var(--bordo);
  color: #fff;
  border-color: var(--bordo);
}
.scrub-pill--outline {
  background: transparent;
  color: var(--bordo);
  border: 1px solid var(--bordo);
}
.scrub-pill--outline:hover {
  background: var(--bordo);
  color: #fff;
}
.scrub-pill__email { text-decoration: underline; text-underline-offset: 2px; }

/* ============ HERO — Sound Ethics style (bordo + white) ============ */
.hero--se {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bordo);
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 88px 24px 28px;
}
@media (min-width: 768px) { .hero--se { padding: 110px 40px 36px; } }
@media (min-width: 1280px) { .hero--se { padding: 130px 56px 44px; } }

.hero-se__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 50% at 80% 20%, rgba(255, 255, 255, 0.10), transparent 60%),
    radial-gradient(60% 60% at 10% 90%, rgba(0, 0, 0, 0.28), transparent 60%),
    linear-gradient(180deg, var(--bordo) 0%, var(--bordo-3) 100%);
  pointer-events: none;
}
.hero-se__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.25) 0%, transparent 40%);
}

/* Magic UI — Animated Grid Pattern (фон hero) */
.hero-se__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 42%, #000 28%, transparent 78%);
          mask-image: radial-gradient(ellipse 85% 75% at 50% 42%, #000 28%, transparent 78%);
  animation: gridDrift 22s linear infinite;
}
@keyframes gridDrift { to { background-position: 58px 58px; } }

/* Magic UI — Light Rays (мягкое свечение сверху) */
.hero-se__rays {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 120%;
  height: 80%;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  background:
    conic-gradient(from 180deg at 50% 0%,
      transparent 0deg,
      rgba(255, 242, 120, 0.10) 18deg,
      transparent 30deg,
      rgba(210, 228, 235, 0.08) 48deg,
      transparent 60deg,
      rgba(255, 242, 120, 0.08) 78deg,
      transparent 96deg);
  filter: blur(8px);
  opacity: 0.8;
  animation: raysPulse 7s ease-in-out infinite;
}
@keyframes raysPulse { 0%,100% { opacity: 0.55; } 50% { opacity: 0.95; } }
@media (prefers-reduced-motion: reduce) {
  .hero-se__grid, .hero-se__rays { animation: none; }
}

.hero-se__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* Mega italic UPPERCASE title */
.hero-se__h1 {
  font-family: var(--h-font);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(56px, 11vw, 142px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 22px;
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.18);
}
.hero-se__line { display: block; }
/* Magic UI — Aurora Text на слове «AI» */
.hero-se__line--aurora {
  background: linear-gradient(110deg, var(--yellow) 0%, #FFE7A0 25%, var(--sky, #D2E4EB) 50%, #FFE7A0 75%, var(--yellow) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: auroraShift 6s linear infinite;
  text-shadow: none;
}
@keyframes auroraShift { to { background-position: 200% center; } }
@media (prefers-reduced-motion: reduce) {
  .hero-se__line--aurora { animation: none; }
}
@media (max-width: 540px) {
  .hero-se__h1 { font-size: clamp(40px, 11vw, 64px); line-height: 0.92; margin-bottom: 16px; word-break: keep-all; hyphens: none; }
}
@media (max-width: 430px) {
  .hero-se__h1 { font-size: clamp(34px, 10vw, 50px); line-height: 0.94; letter-spacing: -0.02em; }
}
@media (min-width: 1280px) {
  .hero-se__h1 { font-size: clamp(112px, 9.5vw, 156px); }
}

.hero-se__tagline {
  font-family: var(--t-font);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin: 0 0 30px;
}

/* Info bar */
.hero-se__infobar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 38px;
  font-size: 10px;
  letter-spacing: 0.12em;
}
@media (max-width: 540px) { .hero-se__infobar { display: none; } }

.hero-se__barcode {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 18px;
}
.hero-se__barcode span {
  display: block;
  width: 2px;
  background: #fff;
}
.hero-se__barcode span:nth-child(1) { height: 12px; }
.hero-se__barcode span:nth-child(2) { height: 8px; }
.hero-se__barcode span:nth-child(3) { height: 16px; }
.hero-se__barcode span:nth-child(4) { height: 8px; }
.hero-se__barcode span:nth-child(5) { height: 12px; }
.hero-se__barcode span:nth-child(6) { height: 4px; }
.hero-se__barcode span:nth-child(7) { height: 16px; }
.hero-se__barcode span:nth-child(8) { height: 8px; }
.hero-se__barcode span:nth-child(9) { height: 12px; }
.hero-se__barcode span:nth-child(10) { height: 8px; }
.hero-se__barcode span:nth-child(11) { height: 16px; }
.hero-se__barcode span:nth-child(12) { height: 12px; }
.hero-se__barcode span:nth-child(13) { height: 8px; }
.hero-se__barcode span:nth-child(14) { height: 4px; }
.hero-se__barcode span:nth-child(15) { height: 12px; }
.hero-se__barcode span:nth-child(16) { height: 16px; }
.hero-se__barcode span:nth-child(17) { height: 8px; }
.hero-se__barcode span:nth-child(18) { height: 12px; }
.hero-se__barcode span:nth-child(19) { height: 4px; }
.hero-se__barcode span:nth-child(20) { height: 8px; }

.hero-se__company {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.hero-se__company-logo {
  font-size: 18px;
  line-height: 1;
  color: #fff;
}
.hero-se__company div { display: flex; flex-direction: column; line-height: 1.2; }
.hero-se__company b {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-se__company span {
  font-size: 9px;
  opacity: 0.7;
  letter-spacing: 0.08em;
}

.hero-se__badge {
  border: 1px solid #fff;
  padding: 5px 10px;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.hero-se__cat {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-se__cat-label {
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
}
.hero-se__cat-tag {
  background: #fff;
  color: var(--bordo);
  padding: 3px 7px;
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.06em;
}

/* Bottom: CTA + news card */
.hero-se__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-top: auto;
}
@media (min-width: 640px) {
  .hero-se__bottom { flex-direction: row; align-items: flex-end; gap: 28px; }
}

/* Skewed CTA */
.hero-se__cta {
  display: inline-block;
  background: #fff;
  color: var(--bordo);
  padding: 14px 32px;
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transform: skewX(-8deg);
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.35);
}
.hero-se__cta span { display: inline-block; transform: skewX(8deg); }
.hero-se__cta:hover { background: var(--ink); color: #fff; transform: skewX(-8deg) translateY(-2px); }

/* News card */
.hero-se__news {
  background: #fff;
  color: var(--bordo);
  padding: 16px 18px;
  max-width: 300px;
  transform: rotate(2deg);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 92% 100%, 0 100%);
  position: relative;
}
.hero-se__news-title {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--bordo);
}
.hero-se__news-meta {
  display: flex;
  gap: 6px;
  font-size: 10px;
  color: rgba(129, 26, 25, 0.65);
  letter-spacing: 0.06em;
}

/* ============ HERO — Rivian-style (legacy, kept for backward compat) ============ */
.hero--rivian {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 80px);
  background: #F1E9D9;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 32px 0 28px;
}
@media (min-width: 768px) { .hero--rivian { padding: 48px 0 36px; min-height: calc(100vh - 90px); } }

.hero-bg-letter {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(180px, 40vw, 520px);
  line-height: 0.85;
  color: var(--ink);
  opacity: 0.92;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.06em;
  z-index: 1;
  white-space: nowrap;
}
.hero-bg-letter--left { left: 0; transform: translate(-32%, -50%); }
.hero-bg-letter--right { right: 0; transform: translate(28%, -50%); }
@media (max-width: 767px) {
  .hero-bg-letter { font-size: clamp(160px, 55vw, 280px); opacity: 0.88; }
  .hero-bg-letter--left { transform: translate(-40%, -50%); }
  .hero-bg-letter--right { transform: translate(36%, -50%); }
}

.hero-rivian__top {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
}
.hero-rivian__eyebrow {
  display: inline-block;
  font-family: var(--t-font);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.65;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-rivian__center {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

/* Stadium-shape preview */
.hero-preview {
  position: relative;
  width: clamp(280px, 50vw, 620px);
  aspect-ratio: 16 / 9;
  max-width: 100%;
}
.hero-preview__bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--bordo) 0%, var(--bordo-2) 60%, var(--bordo-3) 100%);
  border-radius: 9999px / 50%;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4),
              0 10px 24px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 60px;
  gap: 8px;
  position: relative;
  overflow: hidden;
  color: var(--paper-3);
}
.hero-preview__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 50% at 30% 20%, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}
.hero-preview__title {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(18px, 2.6vw, 30px);
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-preview__title em {
  font-style: normal;
  color: var(--yellow);
  font-weight: 800;
}
.hero-preview__sub {
  font-family: var(--t-font);
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 250, 241, 0.7);
  position: relative;
  z-index: 1;
}

/* Play button */
.hero-preview__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% + 38%), -50%);
  width: clamp(58px, 7vw, 78px);
  height: clamp(58px, 7vw, 78px);
  background: var(--yellow);
  color: var(--ink);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(254, 255, 85, 0.25);
  transition: transform 0.25s ease, background 0.2s ease;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-preview__play:hover { transform: translate(calc(-50% + 38%), -50%) scale(1.06); background: #FFF278; }
.hero-preview__play svg { margin-top: 1px; }
.hero-preview__play span { line-height: 1; margin-top: -2px; }
@media (max-width: 540px) {
  .hero-preview__play { transform: translate(calc(-50% + 28%), -50%); width: 54px; height: 54px; font-size: 10px; }
  .hero-preview__play:hover { transform: translate(calc(-50% + 28%), -50%) scale(1.06); }
  .hero-preview__bg { padding: 20px 40px; }
}

/* Bottom info */
.hero-rivian__bottom {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
}
@media (min-width: 768px) { .hero-rivian__bottom { padding: 0 40px; } }

.hero-rivian__meta {
  display: flex;
  gap: 28px;
}
@media (max-width: 540px) { .hero-rivian__meta { gap: 18px; } }
.hero-rivian__col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-rivian__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.6;
  letter-spacing: 0.02em;
}
.hero-rivian__value {
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.hero-rivian__value sup { font-size: 9px; opacity: 0.5; }

.hero-rivian__cta {
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.hero-rivian__cta:hover { background: var(--bordo); transform: translateY(-2px); }
@media (max-width: 540px) { .hero-rivian__cta { padding: 12px 20px; font-size: 12px; } }

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(254, 255, 85, 0.25), transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(129, 26, 25, 0.08), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; } }
.hero-left { text-align: left; }
.hero-right { display: none; }
@media (min-width: 1024px) { .hero-right { display: block; } }

.hero-eyebrow { margin-bottom: 18px; }
.hero-h1 {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(40px, 7.5vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0 0 22px;
  color: var(--ink);
  max-width: 14ch;
}
.hero-h1 em { font-style: normal; font-weight: 800; color: var(--bordo); }
.hero-h1 .mark-ink { white-space: normal; }

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: #3a3633;
  max-width: 540px;
  line-height: 1.55;
  margin: 0 0 28px;
}

.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }

/* trust-row — компактные пункты под CTA */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: #3a3633;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-row span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bordo);
  flex: none;
}
.trust-row .num {
  font-family: var(--h-font);
  font-weight: 800;
  color: var(--bordo);
  letter-spacing: -0.01em;
  font-size: 14.5px;
}

/* hero-meta-pills — компактные пилюли с датой/длительностью/форматом */
.hero-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-meta-pills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--paper-3);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.hero-meta-pills span svg { width: 14px; height: 14px; color: var(--bordo); }

/* HERO MOCKUP — desktop only stacked tool cards with float anim */
.hero-mockup {
  position: relative;
  height: 460px;
  perspective: 1200px;
}
.hero-mockup__card {
  position: absolute;
  background: var(--paper-3);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  animation: floatY 6s ease-in-out infinite;
}
.hero-mockup__card:nth-child(1) {
  top: 10%; left: 0;
  background: var(--bordo);
  color: var(--paper-3);
  animation-delay: 0s;
}
.hero-mockup__card:nth-child(2) {
  top: 28%; right: 8%;
  background: var(--yellow);
  color: var(--ink);
  animation-delay: -1.5s;
}
.hero-mockup__card:nth-child(3) {
  top: 50%; left: 10%;
  background: var(--ink);
  color: var(--paper-3);
  animation-delay: -3s;
}
.hero-mockup__card:nth-child(4) {
  top: 70%; right: 4%;
  background: var(--paper-3);
  color: var(--ink);
  animation-delay: -4.5s;
}
.hero-mockup__ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: grid; place-items: center;
  flex: none;
}
.hero-mockup__card:nth-child(2) .hero-mockup__ico,
.hero-mockup__card:nth-child(4) .hero-mockup__ico { background: rgba(0, 0, 0, 0.08); }
.hero-mockup__ico svg { width: 18px; height: 18px; }
.hero-mockup__txt b {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  display: block;
}
.hero-mockup__txt span { display: block; font-size: 11px; opacity: 0.75; margin-top: 4px; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mockup__card { animation: none; }
}

/* ============ MARQUEE — бегущая строка ============ */
.marquee {
  background: #F8F3EA;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 22px 0;
  overflow: hidden;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: marquee-scroll var(--marquee-dur) linear infinite;
}
@media (max-width: 680px) { .marquee__track { gap: 36px; } }
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.marquee__track span {
  font-family: var(--h-font);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.012em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 56px;
  white-space: nowrap;
}
.marquee__track span::after {
  content: "❀";
  color: var(--bordo);
  font-size: 0.78em;
  opacity: 0.78;
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation-play-state: paused; }
}

/* ============ FEAT-GRID — большие цифры ============ */
.feat {
  background: var(--paper-2);
  padding: var(--space-block) 0;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
@media (max-width: 880px) { .feat-grid { grid-template-columns: minmax(0, 1fr); } }

.feat-card {
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 32px;
  padding: 32px 32px 60px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -28px rgba(0, 0, 0, 0.18); }
.feat-card__h {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
  color: var(--bordo);
}
.feat-card__h em {
  font-style: normal;
  color: var(--ink);
  font-size: 0.55em !important;
  display: block;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin-top: 4px;
}
.feat-card__sub {
  font-size: 14px;
  color: #5a4a40;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0;
  line-height: 1.45;
  max-width: 32ch;
}
.feat-card__pill { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.feat-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bordo);
  color: #fff;
  padding: 8px 14px 8px 8px;
  border-radius: 18px;
  box-shadow: 0 14px 24px -10px rgba(129, 26, 25, 0.5);
}
.feat-pill__ico {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--paper-3);
  color: var(--bordo);
  display: grid;
  place-items: center;
  flex: none;
}
.feat-pill__ico svg { width: 14px; height: 14px; }
.feat-pill__txt { display: flex; flex-direction: column; gap: 0; text-align: left; }
.feat-pill__txt b {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1;
}
.feat-pill__txt span { font-size: 10px; opacity: 0.85; margin-top: 2px; line-height: 1.1; }
.feat-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--h-font);
  font-style: italic;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(129, 26, 25, 0.1);
  color: var(--bordo);
}
.feat-tag--yellow { background: var(--yellow); color: var(--ink); font-weight: 700; font-style: normal; text-transform: uppercase; letter-spacing: 0.04em; }
.feat-bigtag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--yellow);
  border-radius: 16px;
  color: var(--ink);
}
.feat-bigtag b { font-family: var(--h-font); font-weight: 800; font-size: 12px; letter-spacing: -0.01em; line-height: 1.15; text-transform: uppercase; text-align: center; display: block; }

@media (max-width: 880px) {
  .feat-card { padding: 28px 24px 36px; min-height: auto; border-radius: 24px; }
  .feat-card__h { font-size: clamp(28px, 6.5vw, 40px); }
}

/* Mobile: показываем картинку из Figma вместо HTML-карточек */
.about-figma-img,
.about-mobile-img {
  display: none;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 24px auto 0;
  border-radius: 20px;
}
@media (max-width: 767px) {
  /* На мобайле — изображение блока, реальные карточки скрыты */
  .about-figma-img { display: none !important; }
  .about-mobile-img { display: block !important; }
  .about-fg { display: none !important; }
}

/* ============ ABOUT — FIGMA 1:1 (overlap + sticker tilt) ============ */
.about-fg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 14px;
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 12px 0 60px;
  position: relative;
  overflow: visible;
  grid-template-areas:
    "hero hero"
    "c01  c02"
    "wide wide"
    "c04  c05"
    "c04  c06";
}
#about, .about-fg { overflow: visible !important; }
@media (min-width: 900px) { .about-fg { gap: 50px 36px; padding: 24px 0 80px; } }

.fg-area-hero { grid-area: hero; z-index: 1; }
.fg-area-c01  { grid-area: c01;  z-index: 4; }
.fg-area-c02  { grid-area: c02;  z-index: 3; }
.fg-area-wide { grid-area: wide; z-index: 1; }
.fg-area-c04  { grid-area: c04;  z-index: 2; }
.fg-area-c05  { grid-area: c05;  z-index: 2; }
.fg-area-c06  { grid-area: c06;  z-index: 5; }

/* Overlap по Figma (внутри grid, без выхода за viewport) */
.fg-area-c01 { margin-top: -30px; }
.fg-area-c02 { margin-top: 24px; }
.fg-area-c04 { min-height: 100%; }
.fg-area-c06 { margin-top: -36px; }
@media (min-width: 900px) {
  .fg-area-c01 { margin-top: -60px; }
  .fg-area-c02 { margin-top: 50px; }
  .fg-area-c06 { margin-top: -70px; }
}
/* Grid контейнер: внутренний padding для наклонов */
.about-fg { padding-left: 10px; padding-right: 10px; }
@media (max-width: 767px) {
  /* На мобайле — чистый stack без overlap и наклонов */
  .about-fg {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "hero"
      "c01"
      "c02"
      "wide"
      "c04"
      "c05"
      "c06" !important;
    gap: 16px !important;
    padding: 24px 0 40px !important;
    margin-top: 28px !important;
  }
  .fg-area-c01, .fg-area-c02, .fg-area-c04, .fg-area-c05, .fg-area-c06 { margin: 0 !important; min-height: 0 !important; }
  /* сбрасываем наклоны (специфичность выше удвоенных классов ниже в файле) */
  .about-fg .fg-rot-left.fg-rot-left,
  .about-fg .fg-rot-right.fg-rot-right,
  .about-fg .fg-rot-right-l.fg-rot-right-l { transform: none !important; }
  .fg-card, .fg-wide { padding: 24px 22px !important; border-radius: 24px !important; }
  .fg-card__h, .fg-wide__h { font-size: 22px !important; line-height: 1.14 !important; }
  /* br оставляем видимым — иначе слова слипаются */
  .fg-card__h br, .fg-wide__h br { display: inline !important; }
  .fg-card__p, .fg-wide__p { font-size: 14px !important; line-height: 1.5 !important; }
}

/* 1. Большой бордовый hero */
.fg-hero {
  background: linear-gradient(145deg, #811A19 19%, #1B0505 130%);
  color: #fff;
  border-radius: 30px;
  padding: 44px 48px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
@media (min-width: 900px) { .fg-hero { padding: 56px 60px; } }
.fg-hero__eyebrow {
  display: block;
  font-family: var(--t-font);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}
.fg-hero__h {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(38px, 5.2vw, 76px);
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 28px;
  color: #fff;
}
.fg-hero__p {
  font-size: clamp(15px, 1.5vw, 22px);
  line-height: 1.35;
  color: #fff;
  max-width: 880px;
  margin: 0;
}
.fg-hero__p em {
  font-style: normal;
  font-weight: 700;
  color: var(--yellow);
  font-size: 1.4em;
}

/* Базовая карточка */
.fg-card {
  border-radius: 30px;
  padding: 36px 32px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
}
.fg-card--sky {
  background: linear-gradient(150deg, var(--sky) 0%, var(--sky-2) 118%);
  color: var(--ink);
}
.fg-card--dark {
  background: linear-gradient(155deg, var(--ink) 13%, #5b5b5b 179%);
  color: #fff;
}
.fg-card--yellow {
  background: var(--yellow);
  color: var(--ink);
}

.fg-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 37px;
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.fg-card__num--dark { background: var(--ink); color: var(--sky); }
.fg-card__num--sky { background: var(--sky); color: var(--ink); }
.fg-card__num--paper { background: var(--paper); color: var(--ink); }
.fg-card__num--dark-y { background: var(--ink); color: var(--yellow); }

.fg-card__h {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--ink);
}
.fg-card__h--sky { color: var(--sky); }
.fg-card__h--yellow { color: var(--yellow); }

.fg-card__p {
  font-size: clamp(14px, 1.4vw, 20px);
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}
.fg-card__p--sky { color: var(--sky); }
.fg-card__p--paper { color: var(--paper); }

/* Pills (для MCP-серверов) */
.fg-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.fg-pills span {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(255, 242, 120, 0.18);
  color: var(--yellow);
  font-family: var(--t-font);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.03em;
}

/* Наклоны строго по Figma — !important чтобы reveal не перебивал */
.fg-rot-left.fg-rot-left { transform: rotate(-6.65deg) !important; transform-origin: center center; }
.fg-rot-right.fg-rot-right { transform: rotate(2.88deg) !important; transform-origin: center center; }
.fg-rot-right-l.fg-rot-right-l { transform: rotate(5.29deg) !important; transform-origin: center center; }
.fg-card { transition: transform 0.3s ease; }
/* fg-card.is-visible не нужен — карточки видны сразу с наклоном */
.fg-card.reveal { opacity: 1 !important; }

/* mobile уменьшаем padding и текст у плотного 2-col layout */
@media (max-width: 767px) {
  .fg-card { padding: 22px 18px; border-radius: 24px; }
  .fg-card__num { font-size: 15px; padding: 5px 10px; margin-bottom: 14px; }
  .fg-card__h { font-size: clamp(18px, 5.6vw, 28px); margin-bottom: 12px; line-height: 1.0; }
  .fg-card__p { font-size: clamp(12px, 3.4vw, 15px); line-height: 1.3; }
  .fg-pills { gap: 6px; margin-top: 14px; }
  .fg-pills span { padding: 5px 10px; font-size: 12px; border-radius: 14px; }
  .fg-hero { padding: 28px 26px; border-radius: 24px; }
  .fg-hero__eyebrow { font-size: 12px; margin-bottom: 10px; }
  .fg-hero__h { font-size: clamp(28px, 8vw, 44px); margin-bottom: 16px; }
  .fg-hero__p { font-size: 14px; line-height: 1.4; }
  .fg-wide { padding: 26px 24px; border-radius: 24px; }
  .fg-wide__num { top: 22px; right: 22px; font-size: 14px; padding: 5px 10px; }
  .fg-wide__h { font-size: clamp(22px, 6vw, 32px); padding-right: 60px; }
  .fg-wide__p { font-size: 14px; }
}

/* Широкий бордовый блок 50+ ШАБЛОНОВ */
.fg-wide {
  background: linear-gradient(162deg, #811A19 19%, #1B0505 130%);
  color: #fff;
  border-radius: 30px;
  padding: 44px 48px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.18);
  position: relative;
}
@media (min-width: 900px) { .fg-wide { padding: 52px 56px; } }
.fg-wide__num {
  position: absolute;
  top: 36px; right: 36px;
  padding: 8px 14px;
  background: var(--paper);
  color: #611413;
  border-radius: 37px;
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.fg-wide__h {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 16px;
  max-width: 860px;
}
.fg-wide__p {
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.4;
  color: #fff;
  margin: 0;
  font-weight: 600;
  max-width: 880px;
}

/* ============ ABOUT — BENTO GRID (LEGACY) ============ */
.about-bento {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(180px, auto);
  gap: 14px;
}
@media (min-width: 720px) {
  .about-bento {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (min-width: 1024px) {
  .about-bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 18px;
  }
}

/* base card style — all variants */
.bento {
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.4vw, 32px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bento:hover { transform: translateY(-4px); box-shadow: 0 28px 56px -30px rgba(0, 0, 0, 0.22); }

/* desktop spans */
@media (min-width: 1024px) {
  .bento--intro    { grid-column: 1 / 3; grid-row: 1 / 3; }
  .bento--card-1   { grid-column: 3; grid-row: 1; }
  .bento--card-2   { grid-column: 4; grid-row: 1; }
  .bento--card-3   { grid-column: 3 / 5; grid-row: 2; }
  .bento--card-4   { grid-column: 1 / 3; grid-row: 3; }
  .bento--card-5   { grid-column: 3; grid-row: 3; }
  .bento--card-6   { grid-column: 4; grid-row: 3; }
}

/* INTRO (bordo hero) */
.bento--intro {
  background: linear-gradient(160deg, var(--bordo) 0%, var(--bordo-2) 70%, var(--bordo-3) 100%);
  color: var(--paper-3);
  min-height: 360px;
}
.bento--intro::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 255, 85, 0.22), transparent 60%);
  right: -160px;
  top: -160px;
  pointer-events: none;
}
.bento--intro::after {
  content: "❀";
  position: absolute;
  bottom: -30px;
  right: -10px;
  font-size: 180px;
  color: rgba(254, 255, 85, 0.18);
  line-height: 1;
  pointer-events: none;
}
.bento-intro__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--t-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.bento-intro__eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--yellow);
}
.bento-intro__h {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.0;
  text-transform: uppercase;
  margin: 0 0 18px;
  position: relative;
  z-index: 1;
  color: var(--paper-3);
}
.bento-intro__h em { font-style: normal; font-weight: 800; color: var(--yellow); }
.bento-intro__h .underline {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}
.bento-intro__p {
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255, 250, 241, 0.85);
  max-width: 460px;
  margin: 0 0 24px;
  position: relative;
  z-index: 1;
}
.bento-intro__chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  align-self: flex-start;
  padding: 14px 18px 14px 14px;
  background: rgba(255, 250, 241, 0.1);
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: 999px;
  position: relative;
  z-index: 1;
  color: var(--paper-3);
  text-decoration: none;
}
.bento-intro__chip .chip-ico {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
}
.bento-intro__chip .chip-ico svg { width: 18px; height: 18px; }
.bento-intro__chip .chip-txt b { font-family: var(--h-font); font-weight: 800; font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1; display: block; }
.bento-intro__chip .chip-txt span { display: block; font-size: 12px; opacity: 0.7; margin-top: 4px; }

/* standard paper card */
.bento--paper {
  background: var(--paper-3);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--ink);
}
.bento--paper .bento__num {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--bordo);
  margin-bottom: 14px;
}
.bento--paper .bento__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--bordo);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.bento--paper .bento__icon svg { width: 22px; height: 22px; }

/* yellow wide card */
.bento--yellow {
  background: var(--yellow);
  color: var(--ink);
  position: relative;
}
.bento--yellow::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 90% 100%, rgba(0, 0, 0, 0.08), transparent 50%);
  pointer-events: none;
}
.bento--yellow .bento__num {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--bordo);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.bento--yellow .bento__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--yellow);
  display: grid; place-items: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.bento--yellow .bento__icon svg { width: 22px; height: 22px; }
.bento--yellow .bento__swatches {
  display: flex;
  gap: 6px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}
.bento--yellow .bento__swatches span {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1.5px solid var(--ink);
}

/* ink wide card */
.bento--ink {
  background: var(--ink);
  color: var(--paper-3);
  position: relative;
}
.bento--ink::after {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 255, 85, 0.1), transparent 60%);
  right: -120px;
  bottom: -120px;
  pointer-events: none;
}
.bento--ink .bento__num {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--yellow);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.bento--ink .bento__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(254, 255, 85, 0.14);
  color: var(--yellow);
  display: grid; place-items: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.bento--ink .bento__icon svg { width: 22px; height: 22px; }
.bento--ink .bento__chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
.bento--ink .bento__chips span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(254, 255, 85, 0.1);
  border: 1px solid rgba(254, 255, 85, 0.3);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  font-family: var(--h-font);
}

/* card content shared */
.bento h4 {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.1;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.bento h4 em { font-style: normal; font-weight: 800; color: var(--bordo); }
.bento--yellow h4 em { color: var(--bordo); }
.bento--ink h4 em { color: var(--yellow); }
.bento p {
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0;
  position: relative;
  z-index: 1;
}
.bento--paper p { color: #3a3633; }
.bento--yellow p { color: var(--ink); opacity: 0.85; max-width: 32ch; }
.bento--ink p { color: rgba(255, 250, 241, 0.78); max-width: 38ch; }

/* ============ AUDIENCE — paper + ink dual cards ============ */
.audience .section-h { margin-bottom: 8px; }
.aud-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 36px;
}
@media (min-width: 900px) { .aud-grid { grid-template-columns: repeat(3, 1fr); } }
/* Слайдер-индикатор — только мобайл (см. mobile-блок ниже) */
.aud-slider { display: none; }

.aud-card {
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 28px);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.aud-card:hover { transform: translateY(-6px); box-shadow: 0 36px 64px -32px rgba(0, 0, 0, 0.22); }

.aud-card--start {
  background: var(--paper-3);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--ink);
}
.aud-card--mid {
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ink);
}
.aud-card--pro {
  background: var(--ink);
  color: var(--paper-3);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.35);
}
.aud-card--pro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 80% 8%, rgba(254, 255, 85, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 10% 92%, rgba(254, 255, 85, 0.04) 0%, transparent 60%);
}

.aud-card__head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; position: relative; z-index: 1; }
.aud-card__tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--h-font);
  font-weight: 700;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(129, 26, 25, 0.1);
  color: var(--bordo);
}
.aud-card--pro .aud-card__tag { background: rgba(254, 255, 85, 0.14); color: var(--yellow); }

.aud-card__title {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.aud-card__title em { font-style: normal; font-weight: 800; color: var(--bordo); }
.aud-card--pro .aud-card__title em { color: var(--yellow); }
/* выравниваем старт текста во всех карточках — заголовок резервирует одинаковую высоту */
@media (min-width: 900px) {
  .aud-card__title { min-height: 3.3em; }
}

.aud-card p { margin: 0; font-size: 15px; line-height: 1.55; color: #3a3633; position: relative; z-index: 1; }
.aud-card--pro p { color: rgba(255, 250, 241, 0.78); }

/* ============ PROGRAM — modules as cards (open accordion) ============ */
.program {
  background: var(--ink);
  color: var(--paper-3);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 80px) var(--pad);
  margin: var(--space-block) 0;
  position: relative;
  overflow: hidden;
}
.program__wrap { max-width: 1100px; margin: 0 auto; }
.program__head { text-align: center; margin-bottom: var(--space-block); position: relative; z-index: 1; }
.program .eyebrow { color: var(--yellow); }
.program .section-h { color: var(--paper-3); }
.program .section-h em { background: var(--bordo); border-color: var(--bordo); color: #fff; }
.program__sub { font-size: var(--fs-lead); font-weight: 500; color: rgba(255, 250, 241, 0.78); max-width: 640px; margin: 0 auto; line-height: 1.55; }

.program::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 255, 85, 0.12), transparent 60%);
  right: -220px;
  top: -120px;
  pointer-events: none;
}

/* ============ PROGRAM TIMELINE ============ */
.program-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  max-width: 1000px;
  margin: 0 auto 56px;
  z-index: 1;
}
.program-timeline::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(254, 255, 85, 0.35);
  z-index: 0;
}
.program-timeline__step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.program-timeline__step:hover { transform: translateY(-3px); }
.program-timeline__dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--yellow);
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 12px;
  color: var(--yellow);
  letter-spacing: 0;
  transition: all 0.25s ease;
}
.program-timeline__step:hover .program-timeline__dot,
.program-timeline__step.is-active .program-timeline__dot {
  background: var(--yellow);
  color: var(--ink);
  transform: scale(1.1);
}
.program-timeline__name {
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--paper-3);
  margin: 0 0 6px;
  line-height: 1.2;
}
.program-timeline__meta {
  font-size: 11px;
  color: rgba(255, 250, 241, 0.55);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

@media (max-width: 767px) {
  /* MOBILE TIMELINE — минималистичный ползунок (как референс) */
  .program-timeline-wrap {
    display: block !important;
    position: relative;
    margin: 0 auto 24px !important;
    padding: 20px 22px 18px !important;
    max-width: 100%;
    background:
      linear-gradient(180deg, rgba(255, 250, 241, 0.05) 0%, rgba(255, 250, 241, 0.02) 100%);
    border: 1px solid rgba(255, 250, 241, 0.10);
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
  }

  /* верхний ряд с цифрами 01..05 над точками */
  .program-timeline-wrap::before {
    content: "01    02    03    04    05";
    display: block;
    font-family: var(--mono-font, "JetBrains Mono", monospace);
    font-size: 10px;
    letter-spacing: 0.05em;
    color: rgba(255, 250, 241, 0.42);
    text-align: justify;
    text-align-last: justify;
    padding: 0 4px 12px;
    /* fallback для распределения — используем grid */
  }

  /* перекрываем — лучше через grid */
  .program-timeline-wrap::before { display: none; }

  .program-timeline {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    align-items: center;
    position: relative;
    gap: 0 !important;
    padding: 14px 0 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  /* линия между точками */
  .program-timeline::before {
    content: "";
    position: absolute;
    top: calc(14px + 9px);
    left: 10%;
    right: 10%;
    height: 1.5px;
    background: rgba(255, 250, 241, 0.16);
    z-index: 0;
  }
  /* подсвеченная часть линии до активной точки */
  .program-timeline::after {
    content: "";
    position: absolute;
    top: calc(14px + 9px);
    left: 10%;
    width: calc(var(--tl-progress, 0%) * 0.8);
    height: 1.5px;
    background: var(--yellow);
    z-index: 0;
    transition: width 0.35s ease;
  }
  .program-timeline__step {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 0 !important;
    padding: 0 !important;
    text-align: center;
    position: relative;
    z-index: 1;
    min-width: 0;
  }
  /* номер 01..05 НАД точкой */
  .program-timeline__step::before {
    content: attr(data-step);
    display: block;
    font-family: var(--mono-font, "JetBrains Mono", monospace);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 250, 241, 0.42);
    margin-bottom: 8px;
    transition: color 0.25s ease;
  }
  .program-timeline__step[data-step="1"]::before { content: "01"; }
  .program-timeline__step[data-step="2"]::before { content: "02"; }
  .program-timeline__step[data-step="3"]::before { content: "03"; }
  .program-timeline__step[data-step="4"]::before { content: "04"; }
  .program-timeline__step[data-step="5"]::before { content: "05"; }
  .program-timeline__step.is-active::before {
    color: var(--yellow) !important;
    font-weight: 700;
  }
  /* точка — теперь маленький круг без цифры */
  .program-timeline__dot {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    font-size: 0 !important;
    color: transparent !important;
    display: block;
    background: rgba(255, 250, 241, 0.18) !important;
    border: none !important;
    transition: all 0.3s ease !important;
    position: relative;
  }
  .program-timeline__step.is-active .program-timeline__dot {
    background: var(--yellow) !important;
    transform: scale(1.4) !important;
    box-shadow:
      0 0 0 4px rgba(255, 250, 241, 0.06),
      0 0 0 7px rgba(255, 242, 120, 0.14),
      0 0 18px rgba(255, 242, 120, 0.45) !important;
  }
  /* скрываем подписи под точками — они в карточке ниже */
  .program-timeline__name,
  .program-timeline__meta {
    display: none !important;
  }
  /* легенда */
  .program-timeline__legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 250, 241, 0.08);
    font-family: var(--mono-font, "JetBrains Mono", monospace);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 250, 241, 0.50);
  }
  .program-timeline__legend strong {
    color: #FFFAF1;
    font-weight: 700;
    margin: 0 2px;
  }
  .program-timeline__percent {
    color: var(--yellow);
    font-weight: 700;
    font-size: 13px;
  }
}
/* Tablet (768-1023) — горизонтальный таймлайн с компактными подписями */
@media (min-width: 768px) and (max-width: 1023px) {
  .program-timeline {
    max-width: 720px;
    margin: 0 auto 40px;
    padding: 0 8px;
  }
  .program-timeline::before { left: 8%; right: 8%; }
  .program-timeline__name { font-size: 12px; }
  .program-timeline__meta { font-size: 10px; }
}

.module-list { display: grid; gap: 16px; position: relative; z-index: 1; }

.module {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.module:hover { border-color: rgba(255, 255, 255, 0.22); }

.module summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 88px;
}
.module summary::-webkit-details-marker { display: none; }
.module summary:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; }

.module-num {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--yellow);
  min-width: 64px;
}
.module-title {
  font-family: var(--h-font);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--paper-3);
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  text-underline-offset: 0;
}
.module-title:visited,
.module-title:link,
.module-title:hover { text-decoration: none !important; color: var(--paper-3); }
.module-meta { display: block; font-family: var(--t-font); font-size: 12px; font-weight: 500; color: rgba(255, 250, 241, 0.6); margin-top: 6px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; overflow: visible; }

.module-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--yellow);
  display: grid;
  place-items: center;
  color: var(--yellow);
  transition: transform 0.35s var(--ease-out-soft);
  flex: none;
}
.module-toggle svg { width: 18px; height: 18px; display: block; transition: transform 0.3s ease; }
.module[open] .module-toggle svg { transform: rotate(180deg); }

.module__body { padding: 0 20px 20px; display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 980px) { .module__body { grid-template-columns: 1fr 1fr; gap: 0 40px; padding: 0; } }
@media (min-width: 980px) { .module-content { padding: 24px 28px 32px 28px; } }

.module-preview {
  border-radius: var(--r-md);
  width: 100%;
  min-height: 0;
  position: relative;
  overflow: hidden;
  align-self: start;
  display: block;
}
.module-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 110%, rgba(0, 0, 0, 0.5), transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.module-preview.has-video { background: none !important; }
.module-preview.has-video::after { display: none; }
.module-preview.has-video .module-preview__lbl,
.module-preview.has-video .module-preview__play,
.module-preview.has-video .module-preview__tag { display: none; }
.module-preview__video {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 2;
  object-fit: cover;
}
@media (min-width: 980px) {
  .module-preview.has-video { border-radius: 0; align-self: start; aspect-ratio: 16 / 9; margin: 24px 0 0 28px; }
  .module-preview__video { border-radius: 0; }
}
.module-preview__lbl {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--h-font);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(34px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  line-height: 1;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  z-index: 2;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.module-preview__play {
  position: absolute;
  right: 18px; bottom: 18px;
  z-index: 2;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(254, 255, 85, 0.95);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.4);
}
.module-preview__play svg { width: 20px; height: 20px; margin-left: 3px; }
.module-preview__tag {
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 5 цветов под модули KAVA — bordo, coffee, navy, green, rust */
.module-preview--v1 {
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
    linear-gradient(160deg, #9d2624 0%, var(--bordo) 50%, var(--bordo-3) 100%);
}
.module-preview--v2 {
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 60%),
    linear-gradient(160deg, #5b4a44 0%, var(--coffee) 60%, #231b18 100%);
}
.module-preview--v3 {
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 60%),
    linear-gradient(160deg, #0e2c41 0%, #1a394d 60%, #06182a 100%);
}
.module-preview--v4 {
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(255, 255, 255, 0.14) 0%, transparent 60%),
    linear-gradient(160deg, #2E7D9A 0%, #1F5E78 60%, #0C2A38 100%);
}
.module-preview--v5 {
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(255, 255, 255, 0.14) 0%, transparent 60%),
    linear-gradient(160deg, #c2580f 0%, var(--rust) 60%, #4C1A00 100%);
}

.module-content { display: flex; flex-direction: column; gap: 22px; }

.module-section { font-family: var(--h-font); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); margin: 0 0 14px; }
.module-list-inner { list-style: none; padding: 0; margin: 0; }
.module-list-inner li { padding: 9px 0; padding-left: 22px; font-size: 15px; line-height: 1.5; color: rgba(255, 250, 241, 0.85); position: relative; }
.module-list-inner li::before { content: "→"; position: absolute; left: 0; color: var(--yellow); font-weight: 700; }

.module-result {
  background: rgba(143, 193, 221, 0.12);
  border: 1px dashed rgba(143, 193, 221, 0.45);
  border-radius: var(--r-md);
  padding: 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 250, 241, 0.92);
}
.module-result strong { color: #A9D4EC; font-weight: 700; }

/* ============ SKILLS pill-cluster — без подложки ============ */
.skills {
  background: #F8F3EA;
}
.skills-cloud {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 14px;
  padding: 0 !important;
  max-width: 920px;
  margin: 20px auto 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.skill-pill {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  background: var(--paper-3);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: clamp(13px, 1.3vw, 17px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: transform 0.35s var(--ease-out-soft), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: default;
  white-space: nowrap;
}
.skill-pill:hover { background: var(--ink); color: var(--paper-3); border-color: var(--ink); transform: rotate(0deg) translateY(-3px); }
/* random angles */
.skill-pill:nth-child(5n)   { transform: rotate(-7deg); }
.skill-pill:nth-child(5n+1) { transform: rotate(4deg); }
.skill-pill:nth-child(5n+2) { transform: rotate(-3deg); }
.skill-pill:nth-child(5n+3) { transform: rotate(6deg); }
.skill-pill:nth-child(5n+4) { transform: rotate(-2deg); }
/* color variants */
.skill-pill--bordo {
  background: var(--bordo);
  color: var(--paper-3);
  border-color: var(--bordo);
}
.skill-pill--bordo:hover { background: var(--bordo-2); border-color: var(--bordo-2); }
.skill-pill--yellow {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
}
.skill-pill--yellow:hover { background: var(--ink); color: var(--yellow); }
.skill-pill--ink {
  background: var(--ink);
  color: var(--paper-3);
  border-color: var(--ink);
}
.skill-pill--ink:hover { background: var(--bordo); border-color: var(--bordo); }
@media (prefers-reduced-motion: reduce) {
  .skill-pill { transform: none !important; }
}

/* ============ AFTER — FEATURE CAROUSEL ============ */
.carousel {
  max-width: 1100px;
  margin: 36px auto 0;
}
.carousel-card {
  background: var(--paper-3);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  min-height: 440px;
  position: relative;
}
@media (max-width: 767px) {
  .carousel-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
    min-height: 0;
  }
}

/* Visual area */
.carousel-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 320px;
  background: var(--paper-2);
}
@media (max-width: 767px) {
  .carousel-visual { min-height: 220px; aspect-ratio: 4 / 3; }
}
.carousel-step {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  pointer-events: none;
  padding: 24px;
}
.carousel-step.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Placeholder block (заглушка вместо картинки) */
.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}
.carousel-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 36px);
  text-align: center;
  padding: 24px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  position: relative;
  overflow: hidden;
}
.carousel-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 30% 20%, rgba(255, 255, 255, 0.15), transparent 60%);
  pointer-events: none;
}
.carousel-placeholder span { position: relative; z-index: 1; }
.carousel-placeholder--bordo  { background: linear-gradient(160deg, var(--bordo), var(--bordo-3));        color: var(--paper-3); }
.carousel-placeholder--ink    { background: linear-gradient(160deg, var(--ink), #000);                    color: var(--yellow); }
.carousel-placeholder--green  { background: linear-gradient(160deg, var(--green), #1a2410);               color: var(--yellow); }
.carousel-placeholder--coffee { background: linear-gradient(160deg, var(--coffee), #1a1410);              color: var(--paper-3); }
.carousel-placeholder--rust   { background: linear-gradient(160deg, var(--rust), var(--rust-pair));       color: var(--paper-3); }
.carousel-placeholder--yellow { background: var(--yellow);                                                color: var(--ink); }

/* Meta — текст справа */
.carousel-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 12px;
  position: relative;
  min-height: 320px;
}
@media (max-width: 767px) {
  .carousel-meta { min-height: 0; padding: 8px; }
}
.carousel-title-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 12px;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  pointer-events: none;
}
.carousel-title-wrap.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
@media (max-width: 767px) {
  .carousel-title-wrap {
    position: relative;
    inset: auto;
    padding: 4px 8px 8px;
    display: none; /* неактивные скрываем — иначе они занимают высоту */
  }
  .carousel-title-wrap.is-active { display: flex; opacity: 1; transform: none; }
}
.carousel-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 5px 12px;
  background: var(--bordo);
  color: #fff;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  line-height: 1;
}
.carousel-badge--yellow { background: var(--yellow); color: var(--ink); }
.carousel-title {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 12px;
  line-height: 1.0;
  color: var(--ink);
}
.carousel-desc {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: #5a4a40;
  margin: 0;
  max-width: 36ch;
}

/* Nav — кнопки-шаги */
.carousel-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));   /* 10 кнопок → 2 ровных ряда по 5 */
  gap: 8px;
  max-width: 460px;
  margin: 22px auto 0;
}
.carousel-nav button {
  min-width: 0;
  height: 44px;
  padding: 0 8px;
  background: var(--paper-3);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.carousel-nav button:hover {
  background: var(--paper);
  transform: translateY(-1px);
}
.carousel-nav button.is-active {
  background: var(--bordo);
  color: #fff;
  border-color: var(--bordo);
}
/* мобайл: компактные переключатели — 2 ровных ряда по 5 (375–430px) */
@media (max-width: 767px) {
  .carousel-nav { gap: 6px; max-width: none; }
  .carousel-nav button {
    min-width: 0;
    height: 36px;
    padding: 0 2px;
    font-size: 12px;
    letter-spacing: 0.02em;
  }
}

/* Progress bar внизу */
.carousel-progress {
  margin-top: 14px;
  height: 3px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.carousel-progress__fill {
  width: 0%;
  height: 100%;
  background: var(--bordo);
  transition: width 5s linear;
}
.carousel-progress__fill.is-running { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .carousel-step, .carousel-title-wrap { transition: none; }
  .carousel-progress__fill { transition: none; }
}

/* ============ OLD BENTO — DEPRECATED ============ */
.bento-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 1200px;
  margin: 36px auto 0;
}
@media (min-width: 560px) and (max-width: 899px) {
  .bento-results { grid-template-columns: 1fr 1fr; gap: 16px; }
  /* main растягивается на 2 col */
  .bento-results .bento-card--main { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .bento-results {
    grid-template-columns: 1.25fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 18px;
  }
  .bento-card--main {
    grid-column: 1;
    grid-row: 1 / 4;
  }
}

.bento-card {
  background: var(--paper-3);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px -20px rgba(0, 0, 0, 0.16);
}

/* ---- MAIN dark card ---- */
.bento-card--main {
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--paper-3);
  padding: 32px 28px 30px;
  min-height: 280px;
  justify-content: space-between;
}
.bento-card--main::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 255, 85, 0.15), transparent 60%);
  right: -130px; top: -120px;
  pointer-events: none;
}
.bento-card__label {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  position: relative;
  z-index: 1;
}
.bento-card__h {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.0;
  text-transform: uppercase;
  margin: 6px 0 14px;
  color: var(--paper-3);
  position: relative;
  z-index: 1;
  word-break: keep-all;
  hyphens: manual;
}
.bento-card__p {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 250, 241, 0.78);
  margin: 0 0 18px;
  max-width: 36ch;
  position: relative;
  z-index: 1;
}
.bento-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  position: relative;
  z-index: 1;
  margin-top: auto;
}
.bento-card__pills span {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  background: rgba(254, 255, 85, 0.12);
  border: 1px solid rgba(254, 255, 85, 0.32);
  color: var(--yellow);
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  line-height: 1;
}

/* ---- SMALL cards ---- */
.bento-card__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  background: var(--bordo);
  color: #fff;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  line-height: 1;
  width: max-content;
  max-width: 100%;
}
.bento-card__h-sm {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(17px, 1.6vw, 22px);
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--ink);
  margin: 0;
  text-transform: none;
}
.bento-card__p-sm {
  font-size: 14.5px;
  line-height: 1.5;
  color: #5a4a40;
  margin: 0;
}

/* ============ OLD minimal-list — kept for backward compat ============ */
.minimal-list { display: none; } /* спрятан: больше не используется */

/* ============ AFTER — card grid (all widths) [DEPRECATED] ============ */
.minimal-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 1200px;
  margin: 36px auto 0;
}
@media (min-width: 560px)  { .minimal-list { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 960px)  { .minimal-list { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1280px) { .minimal-list { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

.minimal-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 24px 26px;
  background: #FFF9EF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.minimal-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px -20px rgba(0, 0, 0, 0.18);
}

.minimal-row__num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(0, 0, 0, 0.32);
  display: block;
}

.minimal-row__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  background: var(--bordo);
  color: #fff;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  line-height: 1;
  width: max-content;
  max-width: 100%;
}

.minimal-row__title {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(17px, 1.6vw, 22px);
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--ink);
  margin: 0;
  padding-right: 36px; /* leaves room for num */
  text-transform: none;
}

.minimal-row__desc {
  font-size: 14.5px;
  color: #5a4a40;
  line-height: 1.5;
  margin: 0;
}
.minimal-row__desc em {
  font-style: normal;
  font-weight: 700;
  color: var(--bordo);
}

/* ============ AFTER (deprecated micro-UI cards) — kept for backwards compat ============ */
.after-grid { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 640px) { .after-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .after-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.after-card {
  background: var(--paper-3);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--r-lg);
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.after-card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -28px rgba(0, 0, 0, 0.16); border-color: rgba(0, 0, 0, 0.14); }
.after-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 4px;
}
.after-card__num {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bordo);
}
.after-card__result {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  padding: 6px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.after-card h4 {
  font-family: var(--h-font);
  font-weight: 700;
  font-size: clamp(18px, 1.9vw, 22px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-transform: none;
  color: var(--ink);
  margin: 0;
  max-width: 22ch;
}
.after-card__ui {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  min-height: 56px;
  display: flex;
  align-items: center;
}

/* UI: 10 slide dots */
.ui-slides { display: flex; gap: 6px; }
.ui-slides span {
  width: 22px; height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.1);
}
.ui-slides span:nth-child(-n+3) { background: var(--bordo); }
.ui-slides span:nth-child(4) { background: var(--yellow); }

/* UI: vertical stories */
.ui-stories { display: flex; gap: 5px; }
.ui-stories span {
  width: 18px; height: 30px;
  border-radius: 4px;
  background: linear-gradient(160deg, var(--bordo), var(--bordo-3));
  border-top: 3px solid var(--yellow);
}
.ui-stories span:nth-child(2) { background: linear-gradient(160deg, var(--coffee), #2a1f1c); }
.ui-stories span:nth-child(3) { background: linear-gradient(160deg, var(--green), #243018); }

/* UI: 7-day week grid */
.ui-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; width: 100%; max-width: 220px; }
.ui-week span {
  aspect-ratio: 1;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 9px;
  color: var(--ink);
  display: grid; place-items: center;
}
.ui-week span.done { background: var(--bordo); color: var(--paper-3); }
.ui-week span.now { background: var(--yellow); }

/* UI: mini browser */
.ui-browser {
  width: 100%;
  max-width: 220px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  overflow: hidden;
}
.ui-browser__bar {
  background: rgba(0, 0, 0, 0.05);
  padding: 4px 6px;
  display: flex;
  gap: 4px;
}
.ui-browser__bar span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
}
.ui-browser__bar span:nth-child(1) { background: #ff5f57; }
.ui-browser__bar span:nth-child(2) { background: #ffbd2e; }
.ui-browser__bar span:nth-child(3) { background: #28c941; }
.ui-browser__body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ui-browser__body i {
  display: block;
  height: 5px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 2px;
}
.ui-browser__body i:first-child { width: 70%; background: var(--bordo); height: 8px; }
.ui-browser__body i:nth-child(2) { width: 50%; }
.ui-browser__body i:nth-child(3) { width: 85%; }

/* UI: agent chat */
.ui-agent {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.ui-agent__msg {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 5px 10px;
  font-size: 10px;
  align-self: flex-start;
  max-width: 70%;
  color: var(--ink);
}
.ui-agent__msg.bot {
  background: var(--bordo);
  color: var(--paper-3);
  align-self: flex-end;
}

/* UI: stacked presentation slides */
.ui-deck {
  position: relative;
  width: 90px; height: 56px;
}
.ui-deck span {
  position: absolute;
  width: 100%; height: 100%;
  background: var(--paper-2);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}
.ui-deck span:nth-child(1) { transform: translate(-8px, -4px) rotate(-3deg); }
.ui-deck span:nth-child(2) { transform: translate(0, 0) rotate(0deg); background: var(--paper-3); }
.ui-deck span:nth-child(3) { transform: translate(8px, 4px) rotate(3deg); background: var(--yellow); }

/* UI: copywriter speech bubble */
.ui-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper-3);
  border-radius: 14px;
  font-family: var(--h-font);
  font-style: italic;
  font-weight: 500;
  font-size: 12px;
}
.ui-copy::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}

.testi-swipe-hint { display: none; }

/* стрелки навигации под отзывами */
.testi-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}
.testi-nav__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1.5px solid rgba(29, 27, 26, 0.14);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 22px -14px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.testi-nav__btn:hover {
  background: var(--bordo);
  color: #fff;
  border-color: var(--bordo);
  transform: translateY(-2px);
}
.testi-nav__btn:active { transform: translateY(0); }
.testi-nav__btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
@media (max-width: 767px) {
  .testi-nav { margin-top: 18px; gap: 12px; }
  .testi-nav__btn { width: 46px; height: 46px; }
}

/* перенос строки в подзаголовке «Формат курса» — только десктоп */
.fmt-br { display: none; }
@media (min-width: 768px) { .fmt-br { display: inline; } }

/* ============ TESTIMONIALS V2 — Clerk-style asymmetric grid ============ */
.testi-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 6px 0 16px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;              /* вертикальное смещение исключено */
  scroll-snap-type: x mandatory;   /* строгий слайдер по горизонтали */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  isolation: isolate;
}
.testi-list::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  /* строгий горизонтальный слайдер: карточка за карточкой, без вертикали */
  .testi-card-v2 {
    flex: 0 0 clamp(300px, 30vw, 380px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

.testi-card-v2 {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: #FFFAF1;
  border: 1px solid rgba(23, 23, 23, 0.06);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testi-card-v2:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06); }

/* Featured — белее, более сильная тень, большая цитата */
.testi-card-v2.is-featured {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow:
    0 10px 32px rgba(33, 33, 38, 0.10),
    0 1px 1px rgba(0, 0, 0, 0.05),
    0 4px 6px rgba(33, 33, 38, 0.06),
    0 24px 68px rgba(33, 33, 38, 0.08);
  z-index: 1;
  position: relative;
  padding: 36px 32px;
}

/* Цветные акцентные карточки из мудборда KAVA */
.testi-card-v2.is-accent {
  border: 1px solid transparent;
  color: #fff;
  box-shadow:
    0 10px 28px rgba(33, 33, 38, 0.18),
    0 4px 6px rgba(33, 33, 38, 0.08);
}
.testi-card-v2.is-accent--bordo { background: var(--bordo); }
.testi-card-v2.is-accent--navy {
  background: var(--sky) !important;
  color: var(--ink) !important;
}
.testi-card-v2.is-accent--navy .testi-card-v2__result-sm { color: var(--bordo) !important; }
.testi-card-v2.is-accent--navy .testi-card-v2__result-sm span { color: var(--ink) !important; }
.testi-card-v2.is-accent--navy .testi-card-v2__quote,
.testi-card-v2.is-accent--navy .testi-card-v2__quote p { color: var(--ink) !important; }
.testi-card-v2.is-accent--navy .testi-card-v2__quote p::before,
.testi-card-v2.is-accent--navy .testi-card-v2__quote p::after { color: var(--bordo) !important; }
.testi-card-v2.is-accent--navy .testi-card-v2__name { color: var(--ink) !important; }
.testi-card-v2.is-accent--navy .testi-card-v2__role { color: #2b2b2b !important; }
.testi-card-v2.is-accent--navy .testi-sep { color: rgba(29, 27, 26, 0.5) !important; }
.testi-card-v2.is-accent--navy .testi-card-v2__avatar {
  background: rgba(29, 27, 26, 0.12) !important;
  color: var(--bordo) !important;
}
.testi-card-v2.is-accent--forest { background: var(--green, #3E4F2F); }
.testi-card-v2.is-accent--coffee { background: var(--coffee); }
.testi-card-v2.is-accent--rust  { background: var(--rust, #A03800); }

.testi-card-v2.is-accent .testi-card-v2__result-sm { color: var(--yellow); }
.testi-card-v2.is-accent .testi-card-v2__result-sm span { color: rgba(255, 255, 255, 0.85); }
.testi-card-v2.is-accent .testi-card-v2__quote p { color: rgba(255, 255, 255, 0.95); }
.testi-card-v2.is-accent .testi-card-v2__quote p::before,
.testi-card-v2.is-accent .testi-card-v2__quote p::after { color: var(--yellow); }
.testi-card-v2.is-accent .testi-card-v2__name { color: #fff; }
.testi-card-v2.is-accent .testi-card-v2__role { color: rgba(255, 255, 255, 0.7); }
.testi-card-v2.is-accent .testi-sep { color: rgba(255, 255, 255, 0.45); }
.testi-card-v2.is-accent .testi-card-v2__avatar {
  background: rgba(0, 0, 0, 0.18);
  color: var(--yellow);
}
.testi-card-v2.is-accent .testi-card-v2__avatar::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }

/* Result */
.testi-card-v2__result {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.0;
  color: var(--bordo);
  margin: 0 0 22px;
  text-transform: uppercase;
}
.testi-card-v2__result span {
  display: block;
  font-size: 0.42em;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 8px;
}
.testi-card-v2__result-sm {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.0;
  color: var(--bordo);
  margin: 0 0 16px;
  text-transform: uppercase;
}
.testi-card-v2__result-sm span {
  display: block;
  font-size: 12px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 5px;
}

/* Quote with «» Russian quote marks via CSS */
.testi-card-v2__quote {
  flex: 1 1 auto;
  margin: 0 0 22px;
}
.testi-card-v2__quote p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  position: relative;
}
.testi-card-v2__quote p::before { content: "«"; color: var(--bordo); font-weight: 700; }
.testi-card-v2__quote p::after  { content: "»"; color: var(--bordo); font-weight: 700; }

.testi-card-v2.is-featured .testi-card-v2__quote p {
  font-family: var(--h-font);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.012em;
}

/* Footer with name + avatar */
.testi-card-v2__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}
.testi-card-v2__info { min-width: 0; }
.testi-card-v2__name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.testi-card-v2__role {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b5d50;
  margin-top: 5px;
}
/* shadcn-style Badge (secondary) для роли */
.testi-card-v2__role span {
  display: inline-block;
  font-family: var(--t-font);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(29, 27, 26, 0.72);
  background: rgba(29, 27, 26, 0.06);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.testi-card-v2.is-accent .testi-card-v2__role span {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
}
.testi-card-v2.is-accent--navy .testi-card-v2__role span {
  color: rgba(29, 27, 26, 0.8);
  background: rgba(29, 27, 26, 0.10);
}
.testi-sep {
  width: 10px;
  height: 10px;
  color: #b3a594;
  flex: none;
}
/* shadcn-style Avatar — круг, брендовый градиент, кольцо */
.testi-card-v2__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sky, #D2E4EB) 0%, var(--bordo) 130%);
  display: grid;
  place-items: center;
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  flex: none;
  position: relative;
  box-shadow: 0 4px 12px -4px rgba(129, 26, 25, 0.35);
}
.testi-card-v2__avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6), 0 0 0 1px rgba(0,0,0,0.06);
}

/* ============ TESTIMONIALS (legacy) ============ */
.testi-grid { display: grid; gap: 18px; margin-top: 36px; }
@media (min-width: 768px) { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }

.testi-card {
  background: var(--paper-3);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--r-lg);
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -28px rgba(0, 0, 0, 0.2); }

.testi-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.testi-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(129, 26, 25, 0.08);
  border: 1px solid rgba(129, 26, 25, 0.18);
  color: var(--bordo);
  border-radius: 999px;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  flex: none;
}
.testi-role-chip::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--bordo);
}
.testi-big-result {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--bordo);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.testi-big-result em { font-style: normal; color: var(--ink); }

.testi-result {
  align-self: flex-start;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.testi-quote {
  flex: 1;
  font-family: var(--h-font);
  font-weight: 500;
  font-size: 17.5px;
  line-height: 1.35;
  letter-spacing: -0.012em;
  margin: 0 0 22px;
  color: var(--ink);
}
.testi-quote em { font-style: normal; font-weight: 700; color: var(--bordo); }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--bordo);
  display: grid; place-items: center;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 16px;
  flex: none;
  letter-spacing: -0.02em;
}
.testi-name { font-weight: 700; font-size: 15px; margin: 0; color: var(--ink); }
.testi-role { font-size: 13px; color: #6b5d50; margin: 2px 0 0; }

.testi-stats {
  margin-top: 36px;
  background: var(--ink);
  color: var(--paper-3);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .testi-stats { grid-template-columns: repeat(4, 1fr); } }
.stat-num {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--yellow);
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
  color: rgba(255, 250, 241, 0.75);
  font-weight: 600;
}

/* ============ PRICING ============ */
.tiers {
  display: grid;
  gap: 18px;
  margin-top: 36px;
  padding-top: 22px; /* место под Premium-плашку */
  overflow: visible;
}
@media (min-width: 900px) and (max-width: 1199px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 22px; } }
@media (min-width: 1200px) { .tiers { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 16px; } }

.tier {
  background: var(--paper-3);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible; /* Premium-плашка не обрезается */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tier:hover { transform: translateY(-4px); box-shadow: 0 28px 60px -32px rgba(0, 0, 0, 0.18); }

.tier-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--ink);
  padding: 8px 22px;
  border-radius: 999px;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: none;
  width: max-content;
  box-shadow: 0 8px 22px rgba(254, 255, 85, 0.35);
  z-index: 2;
}

.tier-best {
  background: var(--ink);
  color: var(--paper-3);
  border: 2px solid var(--yellow);
  box-shadow: 0 24px 60px -28px rgba(254, 255, 85, 0.4);
}
@media (min-width: 900px) {
  .tier-best { transform: translateY(-16px); }
  .tier-best:hover { transform: translateY(-20px); }
}
.tier-best::before {
  content: "★ Самый популярный";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 8px 18px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgba(254, 255, 85, 0.6);
}

/* для-кого микро-подпись */
.tier-for {
  font-size: 13px;
  font-weight: 500;
  color: #6b5d50;
  margin: 6px 0 18px;
  line-height: 1.45;
  max-width: 28ch;
}
.tier-best .tier-for { color: rgba(255, 250, 241, 0.65); }

/* рассрочка-pill */
.tier-installment-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(129, 26, 25, 0.08);
  color: var(--bordo);
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 7px 13px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.tier-best .tier-installment-line { background: rgba(254, 255, 85, 0.16); color: var(--yellow); }

/* главное отличие */
.tier-highlight {
  background: var(--paper-2);
  border-left: 3px solid var(--bordo);
  padding: 14px 16px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 0 0 18px;
}
.tier-best .tier-highlight {
  background: rgba(254, 255, 85, 0.08);
  border-left-color: var(--yellow);
}
.tier-highlight__label {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bordo);
  margin-bottom: 6px;
  display: block;
}
.tier-best .tier-highlight__label { color: var(--yellow); }
.tier-highlight__text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  font-weight: 600;
}
.tier-best .tier-highlight__text { color: var(--paper-3); }

.tier-name {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0;
}
.tier-tagline { font-size: 14px; color: #6b5d50; margin: 6px 0 24px; }
.tier-best .tier-tagline { color: rgba(255, 250, 241, 0.6); }

.tier-price {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 6px;
  color: var(--ink);
  white-space: nowrap;
}
.tier-best .tier-price { color: var(--yellow); }
.tier-price-meta { font-size: 13px; color: #6b5d50; margin: 0 0 28px; }
.tier-best .tier-price-meta { color: rgba(255, 250, 241, 0.6); }

.tier-features { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: #3a3633;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.tier-features li:first-child { border-top: none; }
.tier-best .tier-features li { color: rgba(255, 250, 241, 0.85); border-top-color: rgba(255, 255, 255, 0.08); }

.tier-features .ic {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bordo);
  color: var(--paper-3);
  flex: none;
  display: grid; place-items: center;
  margin-top: 1px;
}
.tier-best .tier-features .ic { background: var(--yellow); color: var(--ink); }
.tier-features .ic svg { width: 12px; height: 12px; }

/* подзаголовок «Сделаем за вас» внутри списка тарифа */
.tier-features li.tier-feat-label {
  display: block;
  padding: 14px 0 4px;
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bordo);
}
.tier--sky .tier-features li.tier-feat-label { color: var(--ink); }
.tier--vip .tier-features li.tier-feat-label { color: var(--yellow); }

/* ============ INSTALLMENT (рассрочка) ============ */
.installment {
  background: var(--ink);
  color: var(--paper-3);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.installment::before {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 255, 85, 0.12), transparent 60%);
  right: -180px;
  top: -180px;
  pointer-events: none;
}
@media (max-width: 980px) { .installment { grid-template-columns: minmax(0, 1fr); gap: 22px; text-align: left; } }

.installment__main { position: relative; z-index: 1; }
.installment__name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}
.installment__name::before {
  content: "❀";
  font-size: 14px;
  color: var(--yellow);
  font-style: normal;
}
.installment__title {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.installment__title em { font-style: normal; color: var(--yellow); }
.installment__sub { font-size: 15px; color: rgba(255, 250, 241, 0.75); margin: 0; max-width: 380px; line-height: 1.5; }

.installment__features { position: relative; z-index: 1; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.installment__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.4;
  color: rgba(255, 250, 241, 0.85);
}
.installment__features li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  flex: none;
}

.installment__cta { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.installment__price {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--yellow);
}
.installment__price small { display: block; font-size: 12px; font-weight: 600; color: rgba(255, 250, 241, 0.65); margin-top: 6px; font-family: var(--t-font); letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 980px) {
  .installment__cta { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
  .installment__cta .btn { flex: 0 0 auto; }
}

/* ============ FEEDBACK FORM ============ */
.feedback-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .feedback-grid { grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; } }

.feedback-lead h2 { text-align: left; margin: 14px 0 18px; }
.feedback-lead p { color: #3a3633; font-size: 17px; line-height: 1.55; max-width: 480px; margin: 0 0 24px; }
.feedback-lead .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feedback-lead .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
}
.feedback-lead .tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 4px rgba(142, 181, 108, 0.25); }

.form {
  background: var(--paper-3);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  gap: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #3a3633; }
.form-field input, .form-field select {
  font-family: var(--t-font);
  font-size: 16px;
  min-height: 54px;
  padding: 14px 18px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
}
.form-field input::placeholder { color: rgba(0, 0, 0, 0.35); }
.form-field input:focus, .form-field select:focus {
  outline: none;
  border-color: var(--bordo);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(129, 26, 25, 0.12);
}
.form-field .helper { font-size: 12px; color: #6b5d50; margin-top: 2px; }

.form-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; color: #3a3633; }
.form-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--bordo); }
.form-row a { color: var(--bordo); text-decoration: underline; }

.form .btn { margin-top: 6px; width: 100%; }

.form-success {
  display: none;
  background: var(--green);
  color: var(--paper-3);
  padding: 24px;
  border-radius: var(--r-md);
  text-align: center;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.form-success.shown { display: block; }

/* ============ FAQ — details/summary + yellow X ring ============ */
.faq__list { display: grid; gap: 10px; margin-top: 36px; }
.faq-item {
  background: var(--paper-3);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.faq-item:hover { border-color: rgba(0, 0, 0, 0.18); }
.faq-item:hover .toggle { transform: none; }
.faq-item[open] { background: var(--paper); border-color: var(--ink); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: clamp(17px, 1.7vw, 21px);
  letter-spacing: -0.012em;
  line-height: 1.25;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--bordo); outline-offset: -2px; }

.faq-item .toggle {
  width: 34px; height: 34px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--yellow);
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease-out-soft);
  flex: none;
  color: var(--bordo);
}
.faq-item .toggle svg { width: 18px; height: 18px; transform: none; transition: transform .3s ease; }
.faq-item[open] .toggle { transform: none; }
.faq-item[open] .toggle svg { transform: rotate(180deg); }

.faq-item__body { padding: 4px 26px 24px; font-size: 15px; line-height: 1.65; color: #3a3633; max-width: 78ch; }
.faq-item__body p { margin: 0 0 12px; font-weight: 500; }
.faq-item__body p:last-child { margin-bottom: 0; }

/* shadcn-accordion feel — плавное раскрытие контента */
@keyframes accordionDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq-item[open] .faq-item__body,
.module[open] .module-content {
  animation: accordionDown 0.28s ease;
}

/* ============ CTA HELP ============ */
.cta-help {
  background: linear-gradient(135deg, var(--bordo) 0%, var(--bordo-2) 100%);
  color: var(--paper-3);
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: var(--space-block);
}
@media (max-width: 880px) { .cta-help { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.cta-help::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 255, 85, 0.18), transparent 60%);
  right: -220px;
  top: -220px;
  pointer-events: none;
}
.cta-help__txt { position: relative; z-index: 1; }
.cta-help__txt h3 {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -0.04em;
  margin: 0 0 14px;
  line-height: 1.02;
  text-transform: uppercase;
}
.cta-help__txt h3 em { font-style: normal; font-weight: 800; color: rgba(255, 250, 241, 0.6); }
.cta-help__txt p { margin: 0; font-size: 16px; color: rgba(255, 250, 241, 0.85); max-width: 560px; line-height: 1.55; }
.cta-help__btn { position: relative; z-index: 1; align-self: center; }
@media (max-width: 880px) { .cta-help__btn { justify-self: center; } }

/* ============ КОРПОРАТИВНОЕ ОБУЧЕНИЕ (B2B) ============ */
.corp-section { padding-top: 0; }   /* идёт сразу после тарифов — без двойного отступа */
.corp {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(26px, 3.6vw, 42px) clamp(22px, 3.6vw, 50px);
  border-radius: var(--r-xl, 28px);
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(255, 242, 120, 0.28), transparent 55%),
    linear-gradient(135deg, #FFFAF1 0%, #F4ECDF 100%);
  border: 1px solid rgba(29, 27, 26, 0.10);
  box-shadow: 0 24px 60px -34px rgba(29, 27, 26, 0.35);
}
.corp__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--t-font); font-weight: 700; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--bordo);
  margin-bottom: 12px;
}
.corp__eyebrow .star { width: 14px; height: 14px; fill: var(--bordo); }
.corp__title {
  font-family: var(--h-font); font-weight: 800;
  font-size: clamp(22px, 2.5vw, 32px); line-height: 1.14;
  letter-spacing: -0.02em; color: var(--ink); margin: 0 0 16px;
  text-align: left;
}
.corp__title em { font-style: normal; color: var(--bordo); }
.corp__txt { min-width: 0; }   /* не даём длинному тексту раздувать грид-колонку */
.corp__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.corp__list li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--t-font); font-weight: 500; font-size: clamp(14px, 1.4vw, 16px);
  color: rgba(29, 27, 26, 0.85); line-height: 1.4;
}
.corp__ic {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(129, 26, 25, 0.10); color: var(--bordo);
}
.corp__btn { white-space: nowrap; align-self: center; }
@media (max-width: 767px) {
  .corp {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 18px;
    padding: 28px 22px;
  }
  .corp__eyebrow { justify-content: flex-start; }
  .corp__list { text-align: left; }
  .corp__list li { align-items: flex-start; }
  .corp__btn { width: 100%; max-width: 360px; justify-self: start; }
}

/* ============ SOCIALS BLOCK ============ */
.socials-block {
  background: var(--paper-3);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-top: 24px;
}
@media (max-width: 880px) { .socials-block { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.socials-block__h {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.04em;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.05;
  max-width: 240px;
}
.socials-block__h em { font-style: normal; font-weight: 800; color: var(--bordo); }
.socials-block__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}
@media (max-width: 680px) { .socials-block__list { grid-template-columns: minmax(0, 1fr); } }

.social-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  min-width: 0;
}
.social-card:hover { background: var(--ink); color: var(--paper-3); border-color: var(--ink); transform: translateY(-2px); }
.social-card__ico {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--paper-3);
  display: grid; place-items: center;
  color: var(--bordo);
  flex: none;
  transition: background 0.25s ease, color 0.25s ease;
}
.social-card:hover .social-card__ico { background: var(--bordo); color: var(--paper-3); }
.social-card__ico svg { width: 18px; height: 18px; }
.social-card > span:last-child { min-width: 0; overflow: hidden; }
.social-card b { display: block; font-family: var(--h-font); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-card span span { display: block; font-size: 13px; color: #6b5d50; margin-top: 2px; transition: color 0.25s ease; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-card:hover span span { color: rgba(255, 250, 241, 0.78); }

/* ============ FLOATING CONSULT ============ */
.consult {
  position: fixed;
  left: 24px; bottom: 24px;
  z-index: 60;
  display: none; /* скрыт по умолчанию — только большие экраны */
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  padding: 6px 6px 6px 0;
  text-decoration: none;
}
@media (min-width: 1024px) {
  .consult { display: flex; }
}
.consult:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6); }
.consult__icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper-3);
  display: grid; place-items: center;
  flex: none;
}
.consult__icon svg { width: 22px; height: 22px; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.consult__pill {
  background: var(--bordo);
  color: var(--paper-3);
  padding: 18px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  align-self: stretch;
  display: flex;
  align-items: center;
}
@media (max-width: 680px) {
  .consult { left: 16px; bottom: 16px; padding: 8px; }
  .consult__pill { display: none; }
  .consult__icon { border-radius: 50%; width: 48px; height: 48px; }
}
.consult.is-near-footer { opacity: 0; transform: translateY(20px); pointer-events: none; }

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: var(--paper-3);
  padding: 72px 0 36px;
  border-radius: 36px 36px 0 0;
  margin-top: var(--space-block);
}
.footer__inner { display: grid; gap: 36px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
@media (min-width: 768px) { .footer__inner { grid-template-columns: 2fr 1fr 1fr; align-items: start; } }
.footer-brand {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--paper-3);
}
.footer-brand .dot { color: var(--yellow); }
.footer p { color: rgba(255, 250, 241, 0.7); font-size: 14px; line-height: 1.55; margin: 0; max-width: 360px; }
.footer h5 { font-family: var(--h-font); font-weight: 700; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; margin: 0 0 16px; color: rgba(255, 250, 241, 0.5); }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--paper-3); text-decoration: none; font-size: 14px; letter-spacing: 0.02em; transition: color 0.2s ease; }
.footer ul a:hover { color: var(--yellow); }
.footer-legal { max-width: var(--maxw); margin: 40px auto 0; padding: 24px var(--pad) 0; font-size: 12px; color: rgba(255, 250, 241, 0.45); border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ BLUR-IN заголовков (по словам) ============ */
.section-h .word,
.oc-title .word,
.hero-se__h1 .word {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(10px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-h.is-blurin .word,
.oc-title.is-blurin .word,
.hero-se__h1.is-blurin .word {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .section-h .word, .oc-title .word, .hero-se__h1 .word {
    opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important;
  }
}

/* ============ MAGIC TEXT — слова подсвечиваются по скроллу ============ */
.magic-text .word {
  display: inline-block;
  margin-right: 0.25em;
  color: rgba(29, 27, 26, 0.22);
  transition: color 0.4s ease;
}
.magic-text .word.is-lit { color: var(--ink); }

/* ============ NUMBER TICKER — анимация цифр ============ */
.ticker { display: inline-block; will-change: contents; }
.reveal-d1 { transition-delay: 80ms; }
.reveal-d2 { transition-delay: 160ms; }
.reveal-d3 { transition-delay: 240ms; }
.reveal-d4 { transition-delay: 320ms; }
.reveal-d5 { transition-delay: 400ms; }
.reveal-d6 { transition-delay: 480ms; }

/* ============================================
   ГОЛУБЫЕ / ЖЁЛТЫЕ КАРТОЧКИ — единый стиль
   ============================================ */

/* 1. Stat-cards в feat-grid → голубой, без красного свечения */
.feat-card {
  background: var(--sky) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(133, 171, 185, 0.25) !important; /* мягкое голубое вместо бордового */
}
.feat-card__h { color: var(--ink) !important; }
.feat-card__h em { color: var(--ink) !important; }
.feat-card__sub { color: #3a3633 !important; }
.feat-pill {
  background: var(--ink) !important;
  color: var(--paper-3) !important;
  box-shadow: 0 8px 20px -8px rgba(29, 27, 26, 0.35) !important; /* убрал красный glow */
}
.feat-pill__ico { background: var(--sky) !important; color: var(--ink) !important; }
.feat-tag {
  background: var(--ink) !important;
  color: var(--paper-3) !important;
}
.feat-bigtag {
  background: var(--ink) !important;
  color: var(--yellow) !important;
  box-shadow: 0 8px 20px -8px rgba(29, 27, 26, 0.3) !important;
}
.feat-bigtag b { color: var(--yellow) !important; }

/* 2. Audience: 01 голубой, 02 жёлтый, 03 ink остаётся */
.aud-card--start {
  background: var(--sky) !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ink);
}
.aud-card--start::after { display: none; }
.aud-card--start .aud-card__title,
.aud-card--start .aud-card__title em { color: var(--ink) !important; }
.aud-card--start p { color: #2b2b2b !important; }
.aud-card--start .aud-card__tag { background: var(--ink) !important; color: var(--sky) !important; }

.aud-card--mid {
  background: var(--yellow) !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ink);
}
.aud-card--mid .aud-card__title,
.aud-card--mid .aud-card__title em { color: var(--ink) !important; }
.aud-card--mid p { color: #2b2b2b !important; }
.aud-card--mid .aud-card__tag { background: var(--ink) !important; color: var(--yellow) !important; }

/* 3. Carousel main card → голубой */
.carousel-card {
  background: var(--sky) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
.carousel-card .carousel-title { color: var(--ink) !important; }
.carousel-card .carousel-desc { color: #2b2b2b !important; }
.carousel-card .carousel-badge { background: var(--ink) !important; color: var(--sky) !important; }
.carousel-card .carousel-badge--yellow { background: var(--ink) !important; color: var(--yellow) !important; }

/* 4. Tier «Бизнес» → голубой */
.tier--sky {
  background: var(--sky) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
.tier--sky .tier-name,
.tier--sky .tier-price { color: var(--ink) !important; }
.tier--sky .tier-tagline,
.tier--sky .tier-price-meta,
.tier--sky .tier-for { color: #2b2b2b !important; }
.tier--sky .tier-features li { color: #2b2b2b !important; border-top-color: rgba(0, 0, 0, 0.12) !important; }
.tier--sky .tier-features .ic { background: var(--ink) !important; color: var(--sky) !important; }
.tier--sky .tier-installment-line { background: rgba(29, 27, 26, 0.1) !important; color: var(--ink) !important; }
.tier--sky .btn { background: var(--ink) !important; color: var(--sky) !important; }
.tier--sky .btn:hover { background: #000 !important; }



/* 4.6. Tier «Стандарт» CTA — добавить контрастную обводку */
.tier:not(.tier-best):not(.tier--sky) .btn--paper {
  background: var(--ink) !important;
  color: var(--paper-3) !important;
  border: 2px solid var(--ink) !important;
}
.tier:not(.tier-best):not(.tier--sky) .btn--paper:hover {
  background: var(--bordo) !important;
  border-color: var(--bordo) !important;
  color: #fff !important;
}

/* Stat-cards (testi-stats) — голубой фон + тёмный текст */
.testi-stats {
  background: var(--sky) !important;
  color: var(--ink) !important;
}
.stat-num { color: var(--bordo) !important; }
.testi-stats .stat-label { color: #2b2b2b !important; opacity: 1 !important; }

/* Testimonials — текст на голубой sky-accent карточке тёмный (уже было — закрепляю) */
.testi-card-v2.is-accent--navy,
.testi-card-v2.is-accent--navy * { color: var(--ink); }
.testi-card-v2.is-accent--navy .testi-card-v2__quote p,
.testi-card-v2.is-accent--navy .testi-card-v2__quote p::before,
.testi-card-v2.is-accent--navy .testi-card-v2__quote p::after { color: var(--bordo); }
.testi-card-v2.is-accent--navy .testi-card-v2__role { color: #2b2b2b; }

/* Carousel card — заменить красное «glow» на голубое */
.bento-card--main::after,
.carousel-card::after { display: none !important; }

/* 5. FAQ → голубые карточки, тёмный текст */
.faq-item {
  background: var(--sky) !important;
  border: 1px solid rgba(0, 0, 0, 0.10) !important;
}
.faq-item[open] {
  background: var(--yellow) !important;
  border-color: var(--ink) !important;
}
.faq-item summary { color: var(--ink) !important; }
.faq-item__body { color: #2b2b2b !important; }
.faq-item .toggle {
  box-shadow: 0 0 0 1.5px var(--ink) !important;
  color: var(--ink) !important;
}
.faq-item[open] .toggle { background: var(--ink); color: var(--yellow) !important; }

/* 6. Соцсети — голубой контейнер, жёлтые карточки */
.socials-block {
  background: var(--sky) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
.socials-block__h,
.socials-block__h em { color: var(--ink) !important; }
.social-card {
  background: var(--yellow) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: var(--ink) !important;
}
.social-card:hover {
  background: var(--ink) !important;
  color: var(--yellow) !important;
  border-color: var(--ink) !important;
}
.social-card__ico {
  background: var(--ink) !important;
  color: var(--yellow) !important;
}
.social-card:hover .social-card__ico {
  background: var(--yellow) !important;
  color: var(--ink) !important;
}
.social-card b { color: var(--ink); }
.social-card:hover b { color: var(--yellow); }
.social-card span span { color: #2b2b2b !important; }
.social-card:hover span span { color: rgba(255, 250, 241, 0.8) !important; }

/* (старое desktop-only minimal-row правило удалено —
   теперь card-grid на всех ширинах) */

/* module-info wrapper — ensure no underline inheritance */
.module-info { display: block; min-width: 0; }
.module-result-preview { display: none; }
@media (min-width: 768px) {
  .module-result-preview { display: none; }
}

/* убираем браузерный underline у timeline-ссылок */
.program-timeline__step,
.program-timeline__step:visited,
.program-timeline__step:hover,
.program-timeline__step:focus {
  text-decoration: none !important;
  color: inherit;
}
.program-timeline__name,
.program-timeline__meta { text-decoration: none !important; }
.program-timeline__meta { white-space: nowrap; }

/* ============================================
   MOBILE OVERRIDES (<= 768px)
   ============================================ */
@media (max-width: 767px) {

  body { font-size: 17px; line-height: 1.55; }
  p { line-height: 1.55; }

  /* mobile section heads — left-aligned, без афишных размеров */
  .section-head,
  .section-head--center {
    text-align: left;
    padding: 0;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  /* больше воздуха между «О чём курс» и «Что у вас будет после курса» */
  #after { margin-top: clamp(28px, 8vw, 52px); }
  .section-head .eyebrow,
  .section-head--center .eyebrow,
  .hero-eyebrow {
    text-align: left;
    justify-content: flex-start;
    align-self: flex-start;
    display: inline-flex;
  }
  /* === Mobile typo по референсу — компактнее === */
  .section-h,
  .section-head--center .section-h {
    font-family: var(--h-font);
    font-weight: 800;
    font-size: clamp(28px, 7vw, 38px);
    line-height: 1.28;
    letter-spacing: -0.022em;
    text-transform: none;
    text-align: left;
    margin: 0 0 14px;
    max-width: 100%;
  }
  .section-h em {
    display: inline-block;
    line-height: 1;
    vertical-align: baseline;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 600;
    color: var(--bordo);
    background: #F3E7A0;
    padding: 0.08em 0.36em 0.16em;
    border-radius: 0.5em;
  }
  /* .section-h br оставляем видимым в program — там нужен перенос строки */
  .section-h br { display: none; }
  .program .section-h br { display: inline !important; }

  /* подзаголовки — небольшие, как в референсе */
  .section-sub,
  .section-head--center .section-sub,
  .lead {
    font-family: var(--t-font);
    font-size: 15px;
    line-height: 1.5;
    color: #3a3633;
    text-align: left !important;
    max-width: 100%;
    margin: 0 !important;
    padding: 0;
  }

  /* подзаголовок программы тоже слева */
  .program__sub { text-align: center; padding: 0; }
  .program__head { text-align: center; }
  .program .section-h { text-align: center !important; margin-left: auto !important; margin-right: auto !important; font-size: clamp(32px, 9vw, 44px) !important; }

  /* hero h1 чуть компактнее */
  .hero-h1 {
    font-size: clamp(38px, 10.5vw, 64px);
    line-height: 0.98;
    margin-bottom: 18px;
  }
  .hero-sub { font-size: 16px; line-height: 1.5; }

  /* body padding для sticky CTA — чтобы не перекрывала */
  body { padding-bottom: 150px; }
  main { padding-bottom: 150px; }
  /* Карточки и контент-блоки: добавляем нижний margin когда близок sticky */
  .testi-list { padding-bottom: 12px; }
  .tiers { padding-bottom: 16px; }
  .installment { margin-bottom: 12px; }
  .footer { margin-bottom: 0; }

  /* mobile micro-tweaks для card-grid (база уже работает на всех ширинах) */
  .minimal-row { padding: 20px 20px 22px; gap: 10px; }
  .minimal-row__title { font-size: 17px; padding-right: 30px; }
  .minimal-row__desc { font-size: 14px; }

  /* ====== 2. SKILLS TAG-CLOUD — без подложки, прямо на фоне ====== */
  .skills .wrap { padding: 0 16px; }
  .skills .section-head { margin-bottom: 16px; }
  .skills-cloud {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 12px 0 0 !important;
    gap: 10px 12px;
    max-width: 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    display: flex;
  }
  .skill-pill {
    padding: 6px 10px !important;
    min-height: 28px !important;
    border-radius: 999px;
    font-size: 11px !important;
    line-height: 1;
    white-space: nowrap;
    border-width: 1.5px;
    box-shadow: none !important;
    width: auto;
    max-width: none;
  }
  /* длинные капсулы — ещё меньше */
  .skills-cloud .skill-pill:nth-child(5),
  .skills-cloud .skill-pill:nth-child(6),
  .skills-cloud .skill-pill:nth-child(9) {
    font-size: 10px !important;
    padding: 6px 9px !important;
  }
  /* Хаотичные углы */
  .skills-cloud .skill-pill:nth-child(5n)   { transform: rotate(-5deg) !important; }
  .skills-cloud .skill-pill:nth-child(5n+1) { transform: rotate(3deg)  !important; }
  .skills-cloud .skill-pill:nth-child(5n+2) { transform: rotate(-2deg) !important; }
  .skills-cloud .skill-pill:nth-child(5n+3) { transform: rotate(4deg)  !important; }
  .skills-cloud .skill-pill:nth-child(5n+4) { transform: rotate(-3deg) !important; }
  .skills-cloud { gap: 6px 7px !important; }

  /* ====== 3. PROGRAM TIMELINE — компактный горизонтальный (см. выше) ====== */
  /* (раньше скрывался — теперь показываем как на скриншотах) */

  /* фон секции программы — мягче */
  .program {
    background: #1D1B18;
    padding: 60px 18px 48px;
    margin: 32px 0;
  }
  .program::before {
    width: 360px; height: 360px;
    right: -160px; top: -120px;
    background: radial-gradient(circle, rgba(254, 255, 85, 0.12), transparent 60%);
  }

  /* модули как самостоятельные карточки */
  .module {
    background: #24221F !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    overflow: hidden;
  }

  .module summary {
    grid-template-columns: 44px 1fr 32px;
    gap: 14px;
    padding: 20px 20px;
    min-height: auto;
    align-items: start;
  }

  .module-num {
    width: 44px; height: 44px;
    background: var(--yellow);
    color: var(--ink);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 800;
    min-width: auto;
    line-height: 1;
    letter-spacing: 0;
  }

  .module-info { display: block; padding-top: 2px; }
  .module-title {
    font-family: var(--h-font);
    font-weight: 800;
    font-size: 18px;
    color: var(--paper-3);
    line-height: 1.2;
    text-transform: none;
    letter-spacing: -0.01em;
    text-decoration: none !important;
    display: block;
    margin-bottom: 6px;
  }

  .module-meta {
    display: block;
    color: var(--yellow);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 8px;
    white-space: nowrap;
  }

  .module-result-preview {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 250, 241, 0.65);
    margin-top: 0;
    font-weight: 500;
  }

  .module-toggle {
    width: 32px; height: 32px;
    box-shadow: 0 0 0 1.5px rgba(254, 255, 85, 0.5);
    color: var(--yellow);
    margin-top: 4px;
  }
  .module-toggle svg { width: 14px; height: 14px; }

  /* программа: result-preview скрываем когда открыто (есть полный блок ниже) */
  .module[open] .module-result-preview { display: none; }

  .module__body { grid-template-columns: 1fr; padding: 0 20px 22px; gap: 18px; }
  .module-section { font-size: 11px; }
  .module-list-inner li { font-size: 14px; padding: 7px 0 7px 20px; }
  .module-result { padding: 16px; font-size: 13.5px; }

  /* убираем фон-ссылки везде */
  a, a:visited, a:hover, a:focus { text-decoration: none; }

  /* ====== 4. STICKY CTA — по центру + safe-area ====== */
  .sticky-cta {
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 40px);
    max-width: 320px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    height: 64px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 14px;
    box-shadow: 0 18px 40px -14px rgba(129, 26, 25, 0.55), 0 0 0 4px rgba(245, 236, 223, 0.4);
  }
  .sticky-cta.is-hidden-pricing,
  .sticky-cta.is-hidden-skills,
  .sticky-cta.is-hidden-testimonials,
  .sticky-cta.is-hidden-after,
  .sticky-cta.is-hidden-contact,
  .sticky-cta.is-hidden-socials,
  .sticky-cta.is-hidden-faq,
  .sticky-cta.is-hidden-audience,
  .sticky-cta.is-hidden-program { transform: translateY(180%) !important; }

  /* ====== TESTIMONIALS mobile — horizontal scroll ====== */
  #testimonials .wrap { padding: 0; }
  #testimonials .section-head { padding: 0 16px; }
  .testi-list {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px !important;
    padding: 8px 16px 16px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    grid-template-columns: none !important;
    margin: 16px 0 0 !important;
  }
  .testi-list::-webkit-scrollbar { display: none; }
  .testi-card-v2 {
    flex: 0 0 84%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 22px;
    border-radius: 16px;
  }
  .testi-card-v2.is-featured {
    flex: 0 0 84%;
    grid-row: auto;
    grid-column: auto;
    padding: 24px 22px;
    border-radius: 18px;
  }
  .testi-card-v2__result { font-size: 26px; }
  .testi-card-v2.is-featured .testi-card-v2__quote p { font-size: 16px; line-height: 1.4; }
  .testi-card-v2__quote p { font-size: 15px; line-height: 1.5; }
  .testi-stats { margin: 16px; padding: 24px 22px; }

  /* ====== 5. TYPOGRAPHY POLISH ====== */
  .testi-big-result { font-size: 26px; line-height: 1.08; }
  .testi-quote { font-size: 16px; line-height: 1.4; }
  .feat-card__h { font-size: clamp(28px, 7vw, 38px); }
  .audience .aud-card__title { font-size: 22px; }
  .bento-intro__h { font-size: clamp(28px, 7.5vw, 42px); }

  /* ====== reduce empty black space ====== */
  .program__head { margin-bottom: 36px; }

  /* footer: skip mb compensation от sticky */
  body > footer { padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)); }
}

/* iPhone XS class (390px) и Pro Max (430px) — fine-tune */
@media (max-width: 430px) {
  .hero-meta-pills span { font-size: 12px; padding: 7px 12px; }
  .trust-row { gap: 12px 16px; font-size: 13px; }
  .trust-row .num { font-size: 13.5px; }
  .module summary { grid-template-columns: 40px 1fr 30px; gap: 12px; padding: 18px 16px; }
  .module-num { width: 40px; height: 40px; font-size: 15px; }
  .module-title { font-size: 17px; }
  /* skills 430px — оставляем правила из 767px (не перезаписываем размер) */
}

/* ============================================
   AUDIENCE — горизонтальный слайдер (mobile)
   ============================================ */
@media (max-width: 767px) {
  /* Индикатор — без плашки, прямо на фоне */
  .aud-slider {
    display: block !important;
    position: relative;
    margin: 28px auto 18px !important;
    padding: 6px 4px 0 !important;
    max-width: 240px;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .aud-slider__track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    position: relative;
    padding: 8px 0;
  }
  /* серая базовая линия */
  .aud-slider__track::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 16%;
    right: 16%;
    height: 2px;
    background: rgba(29, 27, 26, 0.12);
    transform: translateY(-50%);
    z-index: 0;
    border-radius: 2px;
  }
  /* подсветка прогресса — градиент по точкам */
  .aud-slider__track::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 16%;
    width: calc(var(--aud-progress, 0%) * 0.68);
    height: 2px;
    background: linear-gradient(90deg, var(--sky-2, #85ABB9) 0%, var(--yellow) 50%, var(--bordo) 100%);
    transform: translateY(-50%);
    z-index: 0;
    border-radius: 2px;
    transition: width 0.35s ease;
  }
  .aud-slider__dot {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
  }
  .aud-slider__dot span {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid #F8F3EA;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  }
  /* цветные точки — палитра карт */
  .aud-slider__dot[data-aud="0"] span { background: var(--sky-2, #85ABB9); }
  .aud-slider__dot[data-aud="1"] span { background: var(--yellow); }
  .aud-slider__dot[data-aud="2"] span { background: var(--bordo); }
  /* активная — крупнее + кольцо своего цвета */
  .aud-slider__dot.is-active span {
    transform: scale(1.55);
  }
  .aud-slider__dot[data-aud="0"].is-active span {
    box-shadow: 0 0 0 5px rgba(133, 171, 185, 0.22), 0 2px 8px rgba(133, 171, 185, 0.35);
  }
  .aud-slider__dot[data-aud="1"].is-active span {
    box-shadow: 0 0 0 5px rgba(255, 242, 120, 0.30), 0 2px 8px rgba(255, 242, 120, 0.45);
  }
  .aud-slider__dot[data-aud="2"].is-active span {
    box-shadow: 0 0 0 5px rgba(129, 26, 25, 0.18), 0 2px 8px rgba(129, 26, 25, 0.40);
  }
  /* легенда — минималистично, без border-top */
  .aud-slider__legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px auto 0;
    padding: 0;
    border-top: 0;
    font-family: var(--mono-font, "JetBrains Mono", monospace);
    font-size: 10.5px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(29, 27, 26, 0.50);
  }
  .aud-slider__legend strong {
    color: var(--ink);
    font-weight: 700;
    margin: 0 2px;
  }
  .aud-slider__percent {
    color: var(--ink);
    font-weight: 700;
    font-size: 12px;
  }

  /* Слайдер убран — карточки идут колонкой, без горизонтального скролла */
  .aud-slider { display: none !important; }
  .aud-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    overflow: visible !important;
    gap: 14px !important;
    margin: 24px 0 0 !important;
    padding: 0 !important;
  }
  .aud-card {
    flex: none !important;
    min-height: 0 !important;
  }
}

/* ============================================
   PROGRAM — chips вместо длинной строки meta
   ============================================ */
.module-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.m-chip {
  display: inline-block;
  font-family: var(--mono-font, "JetBrains Mono", monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.08);
  color: rgba(255, 250, 241, 0.72);
  white-space: nowrap;
  line-height: 1.4;
}
.m-chip--accent {
  background: rgba(254, 255, 85, 0.16);
  color: var(--yellow);
}

/* (final-cta удалён — пользователь не хочет подвал) */

/* ============================================
   GLOBAL TYPOGRAPHY — desktop max-width + heights
   ============================================ */
@media (min-width: 1024px) {
  .section-h {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.0;
  }
  .hero-se__h1 { line-height: 0.92; }
}

/* ============================================
   MOBILE: единая система заголовков (компактная)
   ============================================ */
@media (max-width: 767px) {
  /* H1 hero — компактный */
  .hero-se__h1 {
    font-size: 36px !important;
    line-height: 0.98 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 14px !important;
  }
  /* Все section-h: 22-26px — тихие, не дробные */
  .section-h,
  .section-head .section-h,
  .section-head--center .section-h,
  .program .section-h {
    font-size: clamp(26px, 7vw, 38px) !important;
    line-height: 1.28 !important;
    letter-spacing: -0.005em !important;
    text-transform: none !important;
    max-width: 100% !important;
    margin: 0 0 10px !important;
  }
  /* убираем все <br> внутри заголовков на мобайле */
  .section-h br { display: none !important; }
  /* Карточные h3: 18-22 */
  .aud-card__title,
  .feat-card__h,
  .module-title,
  .tier-name,
  .carousel-title {
    font-size: 19px !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
  }
  /* Программа: timeline-ползунок не показываем (декорация лишняя) */
  .program-timeline-wrap { display: none !important; }
  /* Modules — компактнее */
  .module {
    border-radius: 28px !important;
  }
  .module summary {
    padding: 22px 20px !important;
    gap: 14px !important;
    grid-template-columns: 52px 1fr 36px !important;
  }
  .module-num {
    width: 52px !important;
    height: 52px !important;
    font-size: 16px !important;
  }
  .module-info { min-width: 0; }
  .module-title {
    font-size: 22px !important;
    line-height: 1.15 !important;
    margin-bottom: 8px !important;
    text-transform: none !important;
    color: #FFFAF1 !important;
  }
  .module-result-preview {
    font-size: 13px !important;
    color: rgba(255, 250, 241, 0.65) !important;
    margin-top: 6px !important;
    line-height: 1.4 !important;
    display: block !important;
  }
  /* убираем uppercase у длинных строк */
  .m-chip {
    font-size: 10.5px !important;
    padding: 3px 9px !important;
  }
  /* gap между модулями */
  .module-list { gap: 14px !important; }

  /* Заголовок программы — тоже 24px */
  .program .section-h em { font-size: inherit !important; background: var(--bordo) !important; border-color: var(--bordo) !important; color: #fff !important; }
  .program__sub {
    font-size: 15.5px !important;
    line-height: 1.55 !important;
    text-align: center !important;
  }
}

/* ============================================
   STICKY CTA — компактнее, не перекрывает
   ============================================ */
@media (max-width: 767px) {
  .sticky-cta {
    height: 52px !important;
    border-radius: 999px !important;
    padding: 0 24px !important;
    font-size: 14px !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px) !important;
    left: 0 !important;
    right: 0 !important;
    width: calc(100% - 40px) !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.22) !important;
  }
  /* нижний отступ страницы — чтобы кнопка не закрывала контент */
  body { padding-bottom: 96px !important; }
}

/* ============================================
   430px финальная компрессия
   ============================================ */
@media (max-width: 430px) {
  .hero-se__h1 {
    font-size: 34px !important;
    line-height: 1.0 !important;
  }
  .section-h,
  .program .section-h {
    font-size: clamp(26px, 7vw, 38px) !important;
    line-height: 1.28 !important;
  }
  .module-title { font-size: 18px !important; }
  .module-num { width: 46px !important; height: 46px !important; font-size: 14px !important; }
  .module summary { grid-template-columns: 46px 1fr 32px !important; padding: 18px 16px !important; gap: 12px !important; }
  .aud-card__title { font-size: 18px !important; }
}

/* ============================================
   VIP tier card
   ============================================ */
.tier--vip {
  background: linear-gradient(160deg, #3A1A1C 0%, #1D1B1A 100%);
  border: 1px solid rgba(254, 255, 85, 0.30);
  color: #FFFAF1;
  position: relative;
  overflow: visible;
}
.tier--vip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(254, 255, 85, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(129, 26, 25, 0.20), transparent 70%);
  pointer-events: none;
}
.tier--vip > * { position: relative; z-index: 1; }
/* бейдж VIP — оставляем абсолютным (как у Премиума), не ломаем общим правилом выше */
.tier--vip .tier-badge {
  position: absolute;
  z-index: 3;
}
.tier--vip .tier-name { color: var(--yellow); }
.tier--vip .tier-for { color: rgba(255, 250, 241, 0.75); }
.tier--vip .tier-price { color: #FFFAF1; }
.tier--vip .tier-installment-line { color: rgba(255, 250, 241, 0.55); }
.tier--vip .tier-features li { color: rgba(255, 250, 241, 0.9); }
.tier--vip .tier-features .ic {
  background: rgba(254, 255, 85, 0.18);
  color: var(--yellow);
}
/* VIP-плашка идентична Премиум-плашке (.tier-badge), без отдельного оформления */

/* Кнопка VIP — жёлтая, выделена на тёмном фоне карточки */
.btn--vip {
  background: var(--yellow) !important;
  color: var(--ink) !important;
  border: none !important;
  box-shadow: 0 12px 30px -10px rgba(254, 255, 85, 0.55) !important;
  font-weight: 800;
}
.btn--vip:hover {
  background: #FFF89A !important;
  color: var(--ink) !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -12px rgba(254, 255, 85, 0.7) !important;
}

/* ============================================
   Compare CTA — крупная кнопка под тарифами
   ============================================ */
.compare-cta {
  margin: 32px auto 0;
  display: flex;
  justify-content: center;
}
.btn--compare {
  background: var(--sky);
  color: var(--ink);
  border: 1px solid rgba(29, 27, 26, 0.10);
  padding: 18px 36px;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(133, 171, 185, 0.25);
  min-width: 280px;
  text-align: center;
}
.btn--compare:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(133, 171, 185, 0.40);
}

/* ============================================
   Compare Modal
   ============================================ */
.compare-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.compare-modal.is-open {
  display: flex;
}
.compare-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 27, 26, 0.55);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.compare-modal__panel {
  position: relative;
  background: #F8F3EA;
  border-radius: 24px;
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 32px 32px 8px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.35);
  animation: compareIn 0.25s ease;
}
@keyframes compareIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.compare-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(29, 27, 26, 0.06);
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background 0.2s ease;
  z-index: 2;
}
.compare-modal__close:hover { background: rgba(29, 27, 26, 0.14); }
.compare-modal__h {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 40px 8px 0;
}
.compare-modal__sub {
  font-family: var(--t-font);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(29, 27, 26, 0.65);
  margin: 0 0 20px;
  max-width: 640px;
}
.compare-modal__scroll {
  overflow: auto;
  flex: 1;
  margin: 0 -32px;
  padding: 0 32px 24px;
}
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 640px;
  font-family: var(--t-font);
  font-size: 14px;
}
.compare-table th,
.compare-table td {
  text-align: center;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(29, 27, 26, 0.08);
  color: var(--ink);
  vertical-align: middle;
}
.compare-table th {
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(29, 27, 26, 0.80);
  background: rgba(29, 27, 26, 0.04);
  position: sticky;
  top: 0;
}
.compare-table__feat {
  text-align: left !important;
  background: #F8F3EA !important;
}
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  font-size: 13.5px;
  color: rgba(29, 27, 26, 0.85);
  min-width: 180px;
}
.compare-table tbody tr:hover { background: rgba(133, 171, 185, 0.08); }
/* строка «Стоимость» — выделена */
.compare-table__price-row td {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 16px;
  border-top: 2px solid rgba(29, 27, 26, 0.14);
  padding-top: 18px;
  padding-bottom: 18px;
}
.compare-table__price-row td:first-child { font-size: 14px; }
.compare-table__vip {
  background: var(--yellow) !important;
  color: var(--ink) !important;
}
.compare-table td:nth-child(5) {
  background: rgba(254, 255, 85, 0.10);
  font-weight: 600;
}

/* ============================================
   Installment v2 — обновлённый блок
   ============================================ */
.installment--v2 {
  margin: 56px auto 0;
  max-width: 720px;
  padding: 32px 32px 30px;
  background: linear-gradient(165deg, #fff 0%, var(--paper-3) 100%);
  border-radius: 26px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 14px 40px -22px rgba(0,0,0,0.22);
  display: block;
}
.installment--v2 .installment__main { text-align: left; max-width: 100%; margin: 0 0 22px; }
.installment--v2 .installment__name {
  display: inline-block;
  font-family: var(--mono-font, "JetBrains Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bordo);
  margin-bottom: 10px;
}
.installment--v2 .installment__title {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-transform: uppercase;
  margin: 0 0 12px;
}
.installment--v2 .installment__title em {
  font-style: normal;
  color: var(--bordo);
}
.installment--v2 .installment__sub {
  color: rgba(29, 27, 26, 0.65);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}
/* ===== shadcn-style Tabs (рассрочка) ===== */
.pay-tabs { margin-bottom: 22px; }
/* TabsList — сегментированный контрол */
.pay-tabs__list {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 100%;
  padding: 4px;
  background: rgba(29, 27, 26, 0.06);
  border-radius: 14px;
  margin-bottom: 16px;
}
.pay-tabs__trigger {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
  background: transparent;
  font-family: var(--t-font);
  font-weight: 600;
  font-size: 14px;
  color: rgba(29, 27, 26, 0.6);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.pay-tabs__trigger:hover { color: var(--ink); }
.pay-tabs__trigger.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
}
.pay-tabs__trigger:focus-visible { outline: 2px solid var(--bordo); outline-offset: 2px; }
/* TabsContent / Card */
.pay-tabs__panel[hidden] { display: none; }
.pay-tabs__panel { animation: payFade 0.25s ease; }
@keyframes payFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pay-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 22px 22px 20px;
  box-shadow: 0 4px 16px -8px rgba(0,0,0,0.12);
}
.pay-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.pay-card__tag {
  font-family: var(--mono-font, "JetBrains Mono", monospace);
  font-size: 9.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--bordo);
  background: rgba(129, 26, 25, 0.08);
  padding: 4px 9px;
  border-radius: 999px;
}
.pay-card__pill {
  font-family: var(--t-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--yellow);
  padding: 4px 10px;
  border-radius: 999px;
}
.pay-card__h {
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 8px;
}
.pay-card__p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(29, 27, 26, 0.7);
  margin: 0 0 16px;
}
.pay-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pay-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(29, 27, 26, 0.82);
  line-height: 1.3;
}
.pay-card__ic {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(133, 171, 185, 0.22);
  color: var(--sky-2, #4a7d8c);
}
.pay-card__ic svg { width: 13px; height: 13px; }

.installment__final {
  text-align: left;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(29, 27, 26, 0.62);
  max-width: 100%;
  margin: 0 0 20px;
}
.installment__btn {
  display: inline-flex;
  margin: 0;
  width: fit-content;
}

/* ============================================
   MOBILE — tiers + compare + modal
   ============================================ */
@media (max-width: 767px) {
  .tier--vip { padding: 32px 22px; }
  .btn--compare {
    width: 100%;
    min-width: 0;
    padding: 16px 22px;
    font-size: 14px;
  }
  .compare-modal { padding: 12px; }
  .compare-modal__panel {
    padding: 24px 18px 8px;
    border-radius: 20px;
    max-height: 92vh;
  }
  .compare-modal__h { font-size: 20px; margin-right: 44px; }
  .compare-modal__sub { font-size: 13px; }
  .compare-modal__scroll { margin: 0 -18px; padding: 0 18px 16px; }
  .compare-table {
    min-width: 580px;
    font-size: 12.5px;
  }
  .compare-table th,
  .compare-table td { padding: 10px 8px; }
  .compare-table td:first-child { font-size: 12px; min-width: 140px; }
  .installment--v2 { padding: 28px 20px; margin-top: 40px; }
  .installment--v2 .installment__title { font-size: 22px !important; }
  .installment__opt { padding: 18px; }
  .installment__opt-h { font-size: 16px; }
}

/* ============================================
   MAGIC UI — Border Beam (тарифы Премиум/VIP)
   ============================================ */
@property --beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes beamSpin { to { --beam-angle: 360deg; } }
.border-beam {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;               /* толщина луча-рамки */
  pointer-events: none;
  z-index: 2;
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0deg,
    transparent 300deg,
    var(--beam-from, #FFF89A) 335deg,
    var(--beam-to, #FFF278) 350deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: beamSpin 5s linear infinite;
}
.border-beam--vip {
  --beam-from: #D2E4EB;
  --beam-to: #FFF278;
  animation-duration: 6s;
}
@media (prefers-reduced-motion: reduce) {
  .border-beam { animation: none; }
}

/* ============================================
   MAGIC UI — Shimmer (главные CTA)
   ============================================ */
.shimmer { position: relative; overflow: hidden; isolation: isolate; }
.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -160%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 35%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.05) 65%,
    transparent 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 1;
  animation: shimmerSweep 3.4s ease-in-out infinite;
}
@keyframes shimmerSweep {
  0%   { left: -160%; }
  55%  { left: 160%; }
  100% { left: 160%; }
}
@media (prefers-reduced-motion: reduce) {
  .shimmer::after { animation: none; display: none; }
}

/* ============================================
   MAGIC UI — Number Ticker (статистика)
   ============================================ */
.stat-num[data-ticker] { font-variant-numeric: tabular-nums; }

/* ============================================
   FLOWBITE — Rating stars (отзывы)
   ============================================ */
.testi-stars {
  font-size: 15px;
  letter-spacing: 2px;
  color: #FFC34D;
  margin-bottom: 14px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.testi-card-v2.is-accent .testi-stars,
.testi-card-v2.is-featured .testi-stars { color: var(--yellow); }

/* ============================================
   MAGIC UI — Avatar Circles (соцдоказательство)
   ============================================ */
.avatar-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 4px auto 32px;
}
.avatar-circles { display: flex; }
.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  border: 2.5px solid var(--paper, #F8F3EA);
  margin-left: -12px;
  background: linear-gradient(145deg, var(--sky-2, #85ABB9), var(--bordo));
  box-shadow: 0 2px 8px -2px rgba(0,0,0,0.25);
  position: relative;
}
.avatar-circle:first-child { margin-left: 0; }
.avatar-circle:nth-child(2) { background: linear-gradient(145deg, #C9A24B, var(--bordo)); }
.avatar-circle:nth-child(3) { background: linear-gradient(145deg, var(--bordo), #4a2a2a); }
.avatar-circle:nth-child(4) { background: linear-gradient(145deg, var(--sky-2, #85ABB9), #3E6675); }
.avatar-circle:nth-child(5) { background: linear-gradient(145deg, #C97A2B, var(--bordo)); }
.avatar-circle--more {
  background: var(--ink) !important;
  color: var(--yellow);
  font-size: 12px;
  z-index: 2;
}
.avatar-proof__text {
  margin: 0;
  font-size: 14px;
  color: rgba(29,27,26,0.7);
  line-height: 1.4;
}
.avatar-proof__text strong { color: var(--ink); font-weight: 700; }
/* мобайл: круги и текст — по левому краю, на одной вертикальной линии (как заголовок) */
@media (max-width: 767px) {
  .avatar-proof {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    margin: 4px 0 22px;
    padding: 0 16px;
  }
  .avatar-proof__text { text-align: left; }
}

/* ============================================
   MAGIC UI — Word Rotate (hero tagline)
   ============================================ */
.word-rotate {
  display: inline-block;
  position: relative;
  color: var(--yellow);
  font-weight: 700;
  white-space: nowrap;
}
.word-rotate__item {
  display: inline-block;
  animation: wordRotateIn 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes wordRotateIn {
  from { opacity: 0; transform: translateY(0.5em); }
  to   { opacity: 1; transform: none; }
}
@keyframes wordRotateOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-0.5em); }
}
.word-rotate__item.is-leaving { animation: wordRotateOut 0.35s cubic-bezier(0.32, 0.72, 0, 1) forwards; }
@media (prefers-reduced-motion: reduce) {
  .word-rotate__item { animation: none; }
}

/* ============================================
   ФОРМАТ КУРСА — горизонтальный слайдер карточек
   ============================================ */
.format { overflow: hidden; }
.format-track {
  display: flex;
  align-items: stretch;   /* все карточки одной высоты — ровно и сбалансированно */
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(24px, calc((100% - var(--maxw, 1320px)) / 2));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px max(24px, calc((100% - var(--maxw, 1320px)) / 2)) 20px;
  margin-top: 36px;
}
.format-track::-webkit-scrollbar { display: none; }

.fmt-card {
  flex: 0 0 auto;
  width: 340px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(29, 27, 26, 0.08);
  box-shadow: 0 18px 44px -26px rgba(0,0,0,0.25);
}
.fmt-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.fmt-card__title {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.fmt-card__text {
  font-family: var(--t-font);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(29, 27, 26, 0.76);
  margin: 0;
}
.fmt-card__list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.fmt-card__list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.4;
  color: rgba(29, 27, 26, 0.8);
}
.fmt-card__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bordo);
}

/* ----- цветовые варианты ----- */
.fmt-card--sky   { background: var(--sky, #D2E4EB); }
.fmt-card--paper { background: #fff; }
.fmt-card--milk  { background: #FFF8DC; }
.fmt-card--navy  { background: #2A3A44; border-color: rgba(255,255,255,0.08); }
.fmt-card--bordo { background: var(--bordo); border-color: rgba(255,255,255,0.10); }
/* тёмные карточки — светлый текст */
.fmt-card--navy .fmt-card__title,
.fmt-card--bordo .fmt-card__title { color: #fff; }
.fmt-card--navy .fmt-card__text,
.fmt-card--bordo .fmt-card__text { color: rgba(255,255,255,0.82); }
.fmt-card--bordo .fmt-card__list li { color: rgba(255,255,255,0.92); }
.fmt-card--bordo .fmt-card__list li::before { background: var(--yellow); }

/* ----- медиа-превью (стилизованные мок-скрины) ----- */
.fmt-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  height: auto;
  display: grid;
  place-items: center;
  overflow: hidden;
}
/* видео-превью в карточке формата */
.fmt-card__media--video { background: #11100f; }
.fmt-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ КЕЙСЫ УЧЕНИКОВ ============ */
.cases__hint { display: inline-block; font-size: 13px; color: var(--bordo); font-weight: 700; margin-left: 6px; }
@media (min-width: 768px) {
  .cases__hint { display: none; }
  .cases > .wrap {
    max-width: none;
    padding-left: max(24px, calc((100% - var(--maxw)) / 2));
    padding-right: max(24px, calc((100% - var(--maxw)) / 2));
  }
  /* заголовок и подзаголовок кейсов — по центру блока */
  .cases-head { max-width: 780px; margin-left: auto; margin-right: auto; text-align: center; }
  .cases-head .eyebrow { justify-content: center; align-self: center; }
  .cases-head .section-h { text-align: center; margin-left: auto; margin-right: auto; }
  .cases-head .section-sub { margin: 10px auto 0; text-align: center; }
}
.cases-track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(24px, calc((100% - var(--maxw, 1320px)) / 2));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px max(24px, calc((100% - var(--maxw, 1320px)) / 2)) 24px;
  margin-top: 36px;
}
.cases-track::-webkit-scrollbar { display: none; }
.case {
  flex: 0 0 330px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--paper-3);
  border: 1px solid rgba(29, 27, 26, 0.08);
  border-radius: 26px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 16px 38px -24px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.28); }
.case:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.case__img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #e9e2d6; }
.case__img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.case:hover .case__img img { transform: scale(1.06); }
/* затемнение снизу фото, чтобы читался результат */
.case__img::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(18, 8, 10, 0.9) 0%, rgba(18, 8, 10, 0.5) 24%, rgba(18, 8, 10, 0) 52%);
}
/* результат — крупно поверх фото */
.case__result {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 16px 16px 14px;
  font-family: var(--h-font); font-weight: 800;
  font-size: clamp(16px, 1.45vw, 20px); line-height: 1.16; letter-spacing: -0.01em;
  color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
/* иконка Instagram — проявляется при наведении */
.case__ig {
  position: absolute; z-index: 3; top: 12px; right: 12px;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; color: #fff;
  background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  opacity: 0; transform: translateY(-4px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.case:hover .case__ig, .case:focus-visible .case__ig { opacity: 1; transform: translateY(0) scale(1); }
.case__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.case__quote {
  margin: 0; font-family: var(--t-font); font-weight: 500;
  font-size: 14.5px; line-height: 1.55; color: rgba(29, 27, 26, 0.82);
}
.case__name {
  margin-top: auto; padding-top: 6px;
  font-family: var(--h-font); font-weight: 800; font-size: 16px;
  letter-spacing: -0.01em; color: var(--ink);
}
@media (max-width: 767px) {
  .cases-track { gap: 14px; padding: 6px 18px 18px; margin-top: 24px; scroll-padding-left: 18px; }
  .case { flex: 0 0 76vw; max-width: 300px; border-radius: 22px; }
  /* фото ниже — чтобы карточка влезала на экран */
  .case__img { aspect-ratio: 3 / 2; height: auto; }
  .case__img img { object-position: center; }
  .case__body { padding: 16px 18px 18px; gap: 9px; }
  .case__result { font-size: 15.5px; padding: 13px 14px 12px; }
  /* на тач-устройствах иконка Instagram видна сразу */
  .case__ig { width: 28px; height: 28px; top: 10px; right: 10px; opacity: 1; transform: none; }
  .case__quote { font-size: 13.5px; line-height: 1.5; }
  .case__name { font-size: 15px; }
}

.fmt-media--lesson {
  background: radial-gradient(120% 120% at 30% 20%, #fff5, transparent), linear-gradient(150deg, #9fc3d2, #5f8a9b);
}
.fmt-media__play {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: grid; place-items: center;
  color: var(--bordo);
  box-shadow: 0 10px 26px -8px rgba(0,0,0,0.4);
}
.fmt-media__play svg { width: 26px; height: 26px; margin-left: 3px; }
.fmt-media__bar { position: absolute; bottom: 16px; left: 18px; right: 18px; display: flex; gap: 6px; }
.fmt-media__bar span { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.55); flex: 1; }
.fmt-media__bar span:first-child { flex: 0 0 38%; background: #fff; }

.fmt-media--practice {
  background: linear-gradient(150deg, #a02a29, #5e1413);
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px; padding: 22px;
  place-items: stretch;
}
.fmt-thumb { border-radius: 12px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.18); }
.fmt-thumb--accent { background: var(--yellow); }

.fmt-media--feedback {
  background: linear-gradient(150deg, #eef2f4, #dfe7eb);
  align-content: center;
  display: grid !important;
  gap: 10px; padding: 24px;
}
.fmt-bubble { display: block; height: 22px; border-radius: 12px; }
.fmt-bubble--in  { width: 70%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.fmt-bubble--out { width: 60%; margin-left: auto; background: var(--bordo); }
.fmt-bubble--sm  { width: 45%; }

.fmt-media--stream {
  background: linear-gradient(150deg, #3a4d57, #222f36);
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px; padding: 20px;
}
.fmt-tile { border-radius: 12px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.12); position: relative; min-height: 56px; }
.fmt-tile--live i { position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: #ff5252; box-shadow: 0 0 0 4px rgba(255,82,82,0.25); }

.fmt-media--review {
  background: radial-gradient(120% 120% at 70% 10%, #fff, transparent), linear-gradient(150deg, #fdf3c9, #f6e6a6);
  display: grid !important;
  gap: 14px; padding: 26px; align-content: center;
}
.fmt-check {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--ink); color: var(--yellow);
  display: grid; place-items: center;
}
.fmt-check svg { width: 26px; height: 26px; }
.fmt-media__rows { display: grid; gap: 8px; }
.fmt-media__rows span { height: 8px; border-radius: 4px; background: rgba(29,27,26,0.18); }
.fmt-media__rows span:first-child { width: 80%; }
.fmt-media__rows span:nth-child(2) { width: 60%; }
.fmt-media__rows span:last-child { width: 70%; }

/* ----- мобайл — карточки уже, следующая выглядывает ----- */
@media (max-width: 767px) {
  .format-track {
    gap: 14px;
    padding: 6px 18px 18px;
    margin-top: 26px;
    scroll-padding-left: 18px;
  }
  .fmt-card { width: 82vw; max-width: 320px; }
  .fmt-card__media { aspect-ratio: 16 / 9; height: auto; }
  .fmt-card__title { font-size: 23px; }
}
/* десктоп — заголовок не гигантский */
@media (min-width: 768px) {
  .format .section-h { font-size: clamp(34px, 4vw, 52px); }
}

/* ============================================
   О ЧЁМ КУРС — заголовок + текст + плашки-скаттер
   ============================================ */
.about-course { padding: clamp(56px, 9vw, 118px) 0 clamp(36px, 6vw, 72px); text-align: center; overflow: hidden; }
.about-course__wrap { max-width: 880px; }
.oc-label {
  display: inline-block;
  font-family: var(--mono-font, "JetBrains Mono", monospace);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(29, 27, 26, 0.45);
  margin: 0 0 16px;
}
.oc-title {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(30px, 3.8vw, 54px);
  line-height: 1.3;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-transform: none;
  margin: 0 0 clamp(20px, 3vw, 30px);
}
.oc-title em {
  display: inline-block;
  line-height: 1;
  vertical-align: baseline;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--bordo);
  background: #F8EDAE;
  border: 2px solid #E3CC66;
  padding: 0.08em 0.44em 0.16em;
  border-radius: 0.6em;
  letter-spacing: 0;
  text-transform: none;
}
.oc-body { max-width: 800px; margin: 0 auto; display: grid; gap: 16px; text-align: justify; }
.oc-body p {
  font-family: var(--t-font);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  text-align: justify;
  text-align-last: left;
}
.oc-body p:first-child { color: var(--ink); font-weight: 500; }
.oc-body em {
  font-style: normal;
  font-weight: inherit;
  color: inherit;
  background: none;
}
/* финальный абзац — бордовая карточка-папка с табом (как на слайде) */
.oc-folder {
  position: relative;
  max-width: 800px;
  margin: clamp(48px, 6vw, 66px) auto 0;   /* место сверху под таб */
  background: var(--bordo);
  /* верхний-правый угол квадратный — его перекрывает таб (без щербинки) */
  border-radius: clamp(22px, 2.6vw, 30px) 0 clamp(22px, 2.6vw, 30px) clamp(22px, 2.6vw, 30px);
  padding: clamp(26px, 3vw, 42px) clamp(24px, 3vw, 46px);
  box-shadow: 0 32px 64px -36px rgba(129, 26, 25, 0.6);
}
.oc-folder p {
  margin: 0;
  font-family: var(--t-font);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
  line-height: 1.55;
  color: #FBEFE0;
  text-align: justify;
  text-align-last: left;
}
/* таб сидит на верхней кромке карточки, справа, с лёгким перекрытием (без шва) */
.oc-folder__tab {
  position: absolute;
  bottom: calc(100% - 1px);
  right: 0;
  width: clamp(170px, 44%, 320px);
  height: clamp(28px, 3vw, 36px);
  background: var(--bordo);
  border-radius: clamp(14px, 1.6vw, 18px) clamp(22px, 2.6vw, 30px) 0 0;
}
/* плавный вогнутый стык слева от таба */
.oc-folder__tab::before {
  content: "";
  position: absolute;
  left: -16px;
  bottom: 1px;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at top left, transparent 15.5px, var(--bordo) 16px);
}

/* ----- плашки инструментов (scroll-scatter) ----- */
.oc-pills {
  position: relative;
  height: clamp(300px, 34vw, 400px);
  max-width: 940px;
  margin: clamp(30px, 5vw, 56px) auto 0;
  --p: 0;
}
.oc-pill {
  position: absolute;
  white-space: nowrap;
  font-family: var(--t-font);
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  box-shadow: 0 8px 22px -14px rgba(0,0,0,0.3);
  transform:
    translate(calc(var(--cx, 0px) * (1 - var(--p))), calc(var(--cy, 0px) * (1 - var(--p))))
    rotate(calc(var(--cr, 0deg) * (1 - var(--p))));
  transition: transform 0.12s linear;
  will-change: transform;
}
.oc-pill--dark   { background: var(--bordo); color: #fff; }
.oc-pill--ink    { background: var(--ink); color: #fff; }
.oc-pill--sky    { background: var(--sky, #D2E4EB); color: var(--ink); }
.oc-pill--milk   { background: #FBF1C8; color: var(--ink); }
.oc-pill--yellow { background: var(--yellow, #FFF278); color: var(--ink); }
/* финальные (распределённые) позиции — desktop */
.oc-pill:nth-child(1) { left: 3%;  top: 28px; }
.oc-pill:nth-child(2) { left: 40%; top: 4px; }
.oc-pill:nth-child(3) { left: 66%; top: 30px; }
.oc-pill:nth-child(4) { left: 10%; top: 128px; }
.oc-pill:nth-child(5) { left: 42%; top: 110px; }
.oc-pill:nth-child(6) { left: 73%; top: 140px; }
.oc-pill:nth-child(7) { left: 16%; top: 230px; }
.oc-pill:nth-child(8) { left: 47%; top: 248px; }
.oc-pill:nth-child(9) { left: 70%; top: 250px; }

@media (prefers-reduced-motion: reduce) {
  .oc-pills { --p: 1; }
  .oc-pill { transition: none; }
}

/* ----- мобайл: спокойные ряды, без скаттера и горизонт. скролла ----- */
@media (max-width: 767px) {
  .about-course { text-align: left; }
  .about-course__wrap { max-width: 100%; }
  .oc-label { margin-bottom: 12px; }
  .oc-title { font-size: clamp(26px, 7vw, 38px); text-align: left; }
  .oc-body { margin: 0; text-align: left; }
  .oc-body p { text-align: left; text-align-last: left; }
  /* карточка-папка на мобайле — во всю ширину, текст слева */
  .oc-folder { max-width: 100%; margin-top: 38px; padding: 22px 18px; border-radius: 18px 0 18px 18px; }
  .oc-folder p { text-align: left; text-align-last: left; font-size: 15px; }
  .oc-folder__tab { right: 0; width: clamp(140px, 52%, 220px); height: 24px; border-radius: 12px 18px 0 0; }
  .oc-folder__tab::before { left: -14px; bottom: 1px; width: 14px; height: 14px; background: radial-gradient(circle at top left, transparent 13.5px, var(--bordo) 14px); }
  /* плашки выложены flex-рядами (не вылетают за экран, нет горизонт. скролла)
     и плавно опускаются по мере скролла — прогресс --p приходит из JS */
  .oc-pills {
    position: static !important;
    height: auto !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: 9px;
    margin-top: 36px;
    overflow: visible;
  }
  .oc-pill {
    position: static !important;
    font-size: 14px;
    padding: 11px 17px;
    opacity: clamp(0, calc(var(--p, 0) * 1.6 - 0.15), 1);
    /* выраженный спуск: при p=0 — собраны выше и ближе к центру, чуть меньше;
       при p=1 — опускаются и расходятся по своим местам в полную величину */
    transform:
      translate(calc(var(--oc-dx, 0px) * (1 - var(--p, 0))), calc(var(--oc-rise, -48px) * (1 - var(--p, 0))))
      scale(calc(0.82 + 0.18 * var(--p, 0)));
    transition: transform 0.22s cubic-bezier(0.22, 0.7, 0.3, 1), opacity 0.22s linear;
    will-change: transform, opacity;
    animation: none !important;
  }
  /* каскад: стартовая высота + сбор к центру (расходятся при опускании) */
  .oc-pill:nth-child(1){ --oc-rise: -38px; --oc-dx:  24px; }
  .oc-pill:nth-child(2){ --oc-rise: -50px; --oc-dx:   8px; }
  .oc-pill:nth-child(3){ --oc-rise: -44px; --oc-dx: -24px; }
  .oc-pill:nth-child(4){ --oc-rise: -58px; --oc-dx:  28px; }
  .oc-pill:nth-child(5){ --oc-rise: -52px; --oc-dx:  -8px; }
  .oc-pill:nth-child(6){ --oc-rise: -62px; --oc-dx: -26px; }
  .oc-pill:nth-child(7){ --oc-rise: -66px; --oc-dx:  26px; }
  .oc-pill:nth-child(8){ --oc-rise: -56px; --oc-dx:   8px; }
  .oc-pill:nth-child(9){ --oc-rise: -60px; --oc-dx: -22px; }
}
/* reduced-motion / без скролла — гарантированно видимы */
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .oc-pill { opacity: 1 !important; transform: none !important; }
}
@keyframes ocPillIn { from { opacity: 0; transform: translateY(22px) scale(0.94); } to { opacity: 1; transform: none; } }

/* ============================================
   Заголовок «Программа курса» на светлом
   ============================================ */
.program-intro {
  text-align: center;
  padding: clamp(48px, 7vw, 92px) 0 clamp(22px, 4vw, 40px);
}
.program-intro__title {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(30px, 3.8vw, 54px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-transform: uppercase;
  margin: 0;
}
.program-intro__title em { font-style: normal; color: var(--bordo); }
@media (max-width: 767px) {
  .program-intro { text-align: left; padding-left: 18px; padding-right: 18px; }
  .program-intro__title { font-size: clamp(26px, 7vw, 38px); }
}

/* ============================================
   COMPARE — «Сколько стоит делать всё это отдельно»
   ============================================ */
.compare { padding: clamp(16px, 2vw, 24px) 0; }
.compare .section-head--center { margin-bottom: clamp(10px, 1.2vw, 14px); }
.compare .section-h { margin: 6px 0 8px !important; }
.compare .section-sub { font-size: clamp(14px, 1.2vw, 16px); line-height: 1.45; max-width: 600px; margin-top: 0 !important; }
.cmp-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 0.9vw, 12px);
  max-width: 1080px;
}
.cmp-row { display: flex; flex-direction: column; gap: 4px; }
.cmp-row__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cmp-row__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
}
.cmp-row__label {
  font-family: var(--t-font);
  font-weight: 600;
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--ink);
  letter-spacing: -0.005em;
}
.cmp-row__badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bordo);
  background: var(--yellow);
  padding: 3px 9px 4px;
  border-radius: 999px;
  margin-left: 4px;
}
.cmp-row__track {
  width: 100%;
  height: clamp(36px, 3.2vw, 42px);
  background: rgba(29, 27, 26, 0.06);
  border-radius: clamp(10px, 1.2vw, 14px);
  overflow: hidden;
  position: relative;
}
.cmp-row__bar {
  height: 100%;
  width: var(--w, 50%);
  min-width: clamp(120px, 13vw, 160px); /* чтобы цена влезала */
  background: linear-gradient(135deg, #2A1316 0%, #1D1B1A 100%);
  border-radius: inherit;
  display: flex;
  align-items: center;
  padding: 0 clamp(16px, 1.8vw, 22px);
  color: #FBEFE0;
  /* анимация роста при попадании в viewport (старт ширины 0) */
  --bar-w: var(--w, 50%);
  width: 0;
  transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}
.cmp-list.is-visible .cmp-row__bar,
.reveal.is-visible .cmp-row__bar { width: var(--bar-w); }
/* варианты: курс — бордовый, max — глубокий чёрно-бордовый */
.cmp-row--course .cmp-row__bar {
  background: linear-gradient(135deg, var(--bordo) 0%, #5C1213 100%);
}
.cmp-row--max .cmp-row__bar {
  background: linear-gradient(135deg, #2A1316 0%, #0C0B0A 100%);
}
.cmp-row__price {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  display: inline-block;
}
/* reduce-motion: показать сразу */
@media (prefers-reduced-motion: reduce) {
  .cmp-row__bar { transition: none; width: var(--bar-w); }
}
/* ----- mobile ----- */
@media (max-width: 767px) {
  .compare { padding: 20px 0; }
  .compare .section-head,
  .compare .section-head--center { text-align: left !important; padding: 0 16px; }
  .compare .section-head .section-h,
  .compare .section-head--center .section-h { text-align: left !important; margin-left: 0 !important; margin-right: 0 !important; }
  .compare .section-sub { text-align: left !important; margin-left: 0 !important; margin-right: 0 !important; font-size: 14px; line-height: 1.45; }
  .compare .eyebrow { justify-content: flex-start; align-self: flex-start; }
  .compare .section-head--center { margin-bottom: 14px; }
  .cmp-list { gap: 8px; padding: 0 16px; }
  .cmp-row { gap: 3px; }
  .cmp-row__head { gap: 8px; }
  .cmp-row__track { height: 38px; border-radius: 12px; }
  /* min-width убран, чтобы width-анимация работала от 0 — короткие полосы не «прыгают» к min */
  .cmp-row__bar { min-width: 0; padding: 0 12px; border-radius: 12px; }
  .cmp-row__price { font-size: 13.5px; }
  .cmp-row__label { font-size: 13px; }
  .cmp-row__badge { font-size: 9.5px; padding: 2px 7px 3px; margin-left: 0; }
}

/* ============================================
   TIERS — новая цена + старая зачёркнутая + скидка
   ============================================ */
.tier-pricebox {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 6px;
}
.tier-pricebox__col { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.tier-price-old {
  font-family: var(--h-font);
  font-weight: 700;
  font-size: clamp(15px, 1.3vw, 17px);
  color: rgba(29, 27, 26, 0.5);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.tier .tier-price {
  /* новая цена — основная, использует существующий .tier-price размер */
  margin: 0 !important;
}
.tier-discount-note {
  font-family: var(--t-font);
  font-weight: 500;
  font-size: clamp(11.5px, 0.95vw, 13px);
  line-height: 1.25;
  color: rgba(29, 27, 26, 0.62);
  max-width: 140px;
  padding-bottom: 8px;
  letter-spacing: 0;
}
/* варианты на цветных карточках — читаемые цвета зачёркнутого и подписи */
/* Премиум — ТЁМНЫЙ фон → светлые цвета */
.tier-best .tier-price-old { color: rgba(255, 250, 241, 0.6) !important; }
.tier-best .tier-discount-note { color: rgba(255, 250, 241, 0.8) !important; }
/* Бизнес — голубой фон, ink читаемый */
.tier--sky .tier-price-old { color: rgba(29, 27, 26, 0.5); }
.tier--sky .tier-discount-note { color: rgba(29, 27, 26, 0.7); }
/* VIP — тёмный фон → светлые цвета */
.tier--vip .tier-price-old { color: rgba(255, 250, 241, 0.6) !important; }
.tier--vip .tier-discount-note { color: rgba(255, 250, 241, 0.8) !important; }

/* ============================================
   TIER ACTIONS — 3 кнопки в карточке тарифа
   ============================================ */
.tier-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}
.tier-actions .btn {
  width: 100%;
  justify-content: center;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 14px;
}
.tier-actions .btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(29, 27, 26, 0.15);
  box-shadow: none;
}
.tier-actions .btn--ghost:hover {
  background: rgba(29, 27, 26, 0.06);
  border-color: rgba(29, 27, 26, 0.3);
}
.tier--sky .tier-actions .btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(29, 27, 26, 0.18);
}
/* Премиум и VIP — тёмный фон, нужна светлая кнопка */
.tier-best .tier-actions .btn--ghost,
.tier--vip .tier-actions .btn--ghost {
  background: transparent;
  color: #FBEFE0;
  border-color: rgba(255, 250, 241, 0.3);
}
.tier-best .tier-actions .btn--ghost:hover,
.tier--vip .tier-actions .btn--ghost:hover {
  background: rgba(255, 250, 241, 0.1);
  border-color: rgba(255, 250, 241, 0.5);
  color: #fff;
}

/* ============================================
   HALF-PAYMENT MODAL
   ============================================ */
.half-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(20px, 4vw, 56px) 16px;
  overflow-y: auto;
}
.half-modal.is-open { display: flex; }
.half-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 14, 12, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.half-modal__panel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  background: var(--paper-3, #FBF6EC);
  border-radius: clamp(20px, 2vw, 28px);
  padding: clamp(28px, 3.5vw, 48px);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.35);
  animation: halfModalIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes halfModalIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.half-modal__close {
  position: sticky;
  top: 8px;
  z-index: 10;
  margin-left: auto;
  margin-bottom: -20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(29, 27, 26, 0.12);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.half-modal__close:hover { background: var(--bordo); color: #fff; transform: rotate(90deg); }
.half-modal__head { text-align: center; margin-bottom: clamp(24px, 3vw, 36px); }
.half-modal__title {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--ink);
}
.half-modal__sub {
  font-family: var(--t-font);
  font-size: clamp(14px, 1.2vw, 16px);
  color: rgba(29, 27, 26, 0.65);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.5;
}
.half-tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 1024px) { .half-tiers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.half-tier {
  position: relative;
  background: var(--paper-3, #FBF6EC);
  border: 1px solid rgba(29, 27, 26, 0.08);
  border-radius: 18px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.half-tier--best {
  background: var(--ink);
  color: var(--paper-3);
  border: 2px solid var(--yellow);
  box-shadow: 0 24px 60px -28px rgba(254, 255, 85, 0.4);
}
.half-tier--best .half-tier__name { color: var(--paper-3); }
.half-tier--best .tier-price { color: var(--yellow); }
.half-tier--best .tier-price-old { color: rgba(255, 250, 241, 0.6); }
.half-tier--best .tier-discount-note { color: rgba(255, 250, 241, 0.8); }
.half-tier--best .tier-features li { color: rgba(255, 250, 241, 0.85); border-top-color: rgba(255, 255, 255, 0.08); }
.half-tier--best .tier-features .ic { background: var(--yellow); color: var(--ink); }
.half-tier--best .tier-feat-label { color: var(--yellow) !important; }
.half-tier--best .btn { background: var(--yellow); color: var(--ink); }
.half-tier--best .btn--ghost { background: transparent; color: #FBEFE0; border-color: rgba(255, 250, 241, 0.3); }
.half-tier--sky {
  background: var(--sky);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.half-tier--sky .half-tier__name,
.half-tier--sky .tier-price { color: var(--ink); }
.half-tier--sky .tier-features li { color: #2b2b2b; }
.half-tier--sky .tier-features .ic { background: var(--ink); color: var(--sky); }
.half-tier--sky .btn { background: var(--ink); color: var(--sky); }
.half-tier--sky .btn--ghost { background: transparent; color: var(--ink); border-color: rgba(29, 27, 26, 0.18); }
.half-tier--vip {
  background: linear-gradient(160deg, #3A1A1C 0%, #1D1B1A 100%);
  color: #FBEFE0;
  border-color: transparent;
}
.half-tier--vip .tier-price-old { color: rgba(255, 250, 241, 0.55); }
.half-tier--vip .tier-discount-note { color: rgba(255, 250, 241, 0.75); }
.half-tier--vip .tier-price { color: #fff; }
/* модалка: плашка как у главных карточек, по центру, широкая */
.half-tier .tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 18px;
  border-radius: 999px;
  white-space: nowrap;
  width: max-content;
  max-width: none;
  box-shadow: 0 6px 16px rgba(254, 255, 85, 0.3);
}
.half-tier--vip .tier-badge { background: var(--yellow); color: var(--ink); }
/* список фич в модалке — как у главных тарифов */
.half-tier .tier-features {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.half-tier .tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-family: var(--t-font);
  font-size: 13px;
  line-height: 1.4;
  color: inherit;
}
.half-tier .tier-features .ic {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bordo);
  color: #fff;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.half-tier .tier-features .ic svg { width: 10px; height: 10px; }
.half-tier--best .tier-features .ic,
.half-tier--vip .tier-features .ic { background: var(--yellow); color: var(--bordo); }
.half-tier .tier-feat-label {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bordo);
  margin: 6px 0 2px;
  display: block;
}
.half-tier--best .tier-feat-label,
.half-tier--vip .tier-feat-label { color: var(--ink); }
.half-tier--vip .tier-feat-label { color: var(--yellow); }
.half-tier__name {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 0;
  color: inherit;
}
.half-tier .tier-pricebox { margin: 0; gap: 10px; }
.half-tier .tier-price {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(28px, 2.8vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1;
  color: inherit;
  margin: 0;
}
.half-tier .tier-discount-note { font-size: 11.5px; max-width: 120px; padding-bottom: 4px; }
.half-tier__actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.half-tier__actions .btn {
  width: 100%;
  justify-content: center;
  font-size: 13.5px;
  padding: 11px 16px;
  border-radius: 12px;
}
.half-tier__actions .btn--ghost {
  background: transparent;
  color: inherit;
  border: 1.5px solid rgba(29, 27, 26, 0.18);
  box-shadow: none;
}
.half-tier--vip .btn--ghost { border-color: rgba(255, 250, 241, 0.25); color: #FBEFE0; }
.half-modal__note {
  margin: clamp(20px, 2.4vw, 28px) auto 0;
  text-align: center;
  font-family: var(--t-font);
  font-style: italic;
  font-size: clamp(13px, 1.1vw, 15px);
  color: rgba(29, 27, 26, 0.65);
}
body.is-modal-open { overflow: hidden; }

/* ============================================
   MOBILE — увеличенные отступы между секциями
   ============================================ */
@media (max-width: 767px) {
  /* больше воздуха между основными блоками — комфортнее читать */
  .section { padding-top: clamp(40px, 8vw, 56px); padding-bottom: clamp(40px, 8vw, 56px); }
  .tier-actions { gap: 7px; padding-top: 10px; }
  .tier-actions .btn { font-size: 13.5px; padding: 11px 14px; }
  .tier-pricebox { gap: 10px; }
  .tier-discount-note { font-size: 11.5px; max-width: 130px; padding-bottom: 6px; }
  .tier-price-old { font-size: 14px; }
  /* модалка на мобиле */
  .half-modal { padding: 12px 12px 24px; align-items: stretch; }
  .half-modal__panel { padding: 18px 16px 22px; overflow-y: auto; max-height: 90vh; }
  .half-modal__title { font-size: 20px; padding-right: 48px; }
  .half-modal__sub { font-size: 13.5px; }
  .half-tiers { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .half-tier { padding: 20px 16px; gap: 14px; }
  .half-tier .tier-price { font-size: 28px; }
  .half-modal__note { font-size: 13px; }
}

/* ============================================
   COUNTDOWN — счётчик скидки 30%
   ============================================ */
.countdown { padding: clamp(28px, 4vw, 48px) 0 0; }
.cd-panel {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  background: linear-gradient(135deg, #2A1316 0%, #1D1B1A 100%);
  border-radius: clamp(22px, 2.4vw, 32px);
  padding: clamp(26px, 3.4vw, 44px) clamp(22px, 3vw, 40px);
  color: #FBEFE0;
  overflow: hidden;
  box-shadow: 0 32px 70px -28px rgba(129, 26, 25, 0.45);
}
.cd-panel::before {
  content: "";
  position: absolute;
  inset: -50% -20% auto auto;
  width: 60%;
  height: 200%;
  background: radial-gradient(closest-side, rgba(255, 242, 120, 0.18), transparent 70%);
  pointer-events: none;
}
.cd-panel__head {
  position: relative;
  text-align: center;
  margin-bottom: clamp(20px, 2.6vw, 32px);
}
.cd-eyebrow {
  display: inline-block;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow, #FFF278);
  padding: 7px 16px;
  border: 1px solid rgba(255, 242, 120, 0.35);
  border-radius: 999px;
  margin-bottom: 16px;
}
.cd-panel__title {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0 0 8px;
  color: #fff;
  text-align: center;
}
/* "−30%" в жёлтой капсуле — в едином стиле сайта (как «курса», «10 недель») */
.cd-panel__title em {
  display: inline-block;
  vertical-align: baseline;
  line-height: 1;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--bordo);
  background: #F8EDAE;
  border: 2px solid #E3CC66;
  padding: 0.08em 0.4em 0.16em;
  border-radius: 0.55em;
  letter-spacing: 0;
  text-transform: none;
}
.cd-panel__sub {
  font-family: var(--t-font);
  font-size: clamp(13.5px, 1.1vw, 15px);
  line-height: 1.5;
  color: rgba(255, 250, 241, 0.7);
  margin: 0 auto;
  max-width: 540px;
  text-align: center;
}
.cd-panel__sub b { color: var(--yellow, #FFF278); font-weight: 800; letter-spacing: 0.04em; }
/* решётка цифр */
.cd-grid {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(8px, 1.2vw, 14px);
  flex-wrap: nowrap;
}
.cd-cell {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 250, 241, 0.06);
  border: 1px solid rgba(255, 250, 241, 0.12);
  border-radius: clamp(12px, 1.4vw, 18px);
  padding: clamp(12px, 1.6vw, 22px) clamp(8px, 1.4vw, 18px);
  backdrop-filter: blur(8px);
}
.cd-num {
  display: block;
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(36px, 5.4vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.cd-num.is-flip { transform: translateY(-12px); opacity: 0; }
.cd-lbl {
  margin-top: 8px;
  font-family: var(--t-font);
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: rgba(255, 250, 241, 0.6);
}
.cd-sep {
  display: grid;
  place-items: center;
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  color: rgba(255, 250, 241, 0.35);
  line-height: 1;
  align-self: center;
  height: clamp(60px, 8vw, 100px);
}

.tier-pricebox { position: relative; }
/* усиленная перечёркнутая цена — крупнее, заметнее */
.tier-price-old {
  font-size: clamp(17px, 1.6vw, 20px) !important;
  font-weight: 700;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--bordo);
  opacity: 0.85;
}
.tier-best .tier-price-old,
.tier--vip .tier-price-old {
  text-decoration-color: var(--yellow, #FFF278) !important;
}

/* ----- mobile ----- */
@media (max-width: 767px) {
  .countdown { padding: 20px 16px 0; }
  .cd-panel { padding: 22px 18px; border-radius: 20px; }
  .cd-panel__head { gap: 14px; margin-bottom: 18px; }
  .cd-badge { width: 56px; height: 56px; font-size: 16px; }
  .cd-panel__title { font-size: 20px; }
  .cd-panel__sub { font-size: 13px; }
  .cd-grid { gap: 6px; }
  .cd-cell { padding: 10px 4px; border-radius: 12px; }
  .cd-num { font-size: 28px; }
  .cd-lbl { font-size: 9.5px; margin-top: 4px; letter-spacing: 0.04em; }
  .cd-sep { font-size: 22px; height: 70px; }
  .tier-price-old { font-size: 16px !important; }
}
