/* ============================================================
   Егор и Роботы — Quiet Machines landing skin
   Styles the landing markup (hero/problem/solution/program/
   audience/results/author/final-cta/footer) in the quiet,
   editorial, hand-drawn register of the design system.

   This file expects `colors_and_type.css` to be loaded first.
   ============================================================ */

/* ---------------- Reset & base ---------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: var(--leading-normal);
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

::selection { background: var(--terracotta); color: var(--paper); }

/* ---------------- Layout ---------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px;
}

/* Sections are separated by 1.5px ink rules, not shadows. */
section {
  position: relative;
  padding: 64px 0;
  border-top: 1.5px solid var(--ink);
}
section:first-of-type { border-top: none; }

/* ---------------- Site header ---------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 56px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper);
}
.site-header__brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.site-header__brand img.site-header__blaster-logo {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.site-header__wordmark {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.site-header__note {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--ink-3);
  display: none;
}
@media (min-width: 720px) { .site-header__note { display: inline; } }

.site-header__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1.5px solid var(--ink); color: var(--ink);
  padding: 8px 14px; border-radius: 2px; background: var(--paper);
  text-decoration: none;
}
.site-header__badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: var(--terracotta);
}

/* ---------------- Typography primitives ---------------- */
.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 18px;
  max-width: 28ch;
}

/* The old "gradient" emphasis becomes a quiet italic-serif accent.
   No gradient. No glow. Just a change of voice — и единственный
   цветной акцент страницы: хвойно-зелёный, тот же, что в рисунках. */
.gradient-text {
  background: none !important;
  -webkit-text-fill-color: var(--conifer-ink) !important;
  color: var(--conifer-ink) !important;
  font-style: italic;
  font-weight: 300;
  display: inline;
}

.section-subtitle {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 300;
  font-style: italic;
  line-height: var(--leading-normal);
  color: var(--ink-3);
  max-width: 62ch;
  margin-bottom: 36px;
  text-wrap: pretty;
}

/* Section-subtitle in accent variant — крупнее и зелёным,
   для редких фраз-«вскриков», например «впишешь в резюме…». */
.section-subtitle--accent,
.section-subtitle.section-subtitle--accent {
  font-size: clamp(22px, 1.9rem, 30px);
  line-height: 1.25;
  color: var(--conifer-ink);
  font-weight: 400;
  margin-top: 8px;
  max-width: 30ch;
}
.section-subtitle--accent em { font-style: italic; font-weight: 300; }

.hand-note {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--ink-3);
  display: inline-block;
}

/* ---------------- Buttons ---------------- */
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 16px 28px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-ink) var(--ease-paper),
              color var(--dur-ink) var(--ease-paper);
  box-shadow: none;
}
.btn-cta:hover { background: #000; color: var(--paper); }
.btn-cta:active { background: #000; }

.btn-accent {
  background: var(--terracotta);
  color: var(--paper);
}
.btn-accent:hover { background: var(--terracotta-ink); }

/* ---------------- Hero ---------------- */
/* Hero is a 2-column layout: text on the left, illustration on the right.
   Illustration is a primary visual partner — sits BESIDE the text, not behind it.
   The illustration's background is the same paper tone as the page so it feels
   "drawn directly on the site". */
.hero {
  padding-top: 72px;
  padding-bottom: 96px;
  border-top: none;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 12px 6px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  margin-bottom: 24px;
  background: var(--paper);
}
.hero-badge span { font-size: 0; } /* hide inline emoji if present */
.hero-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: var(--terracotta);
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 20px;
  max-width: 22ch;
}
.hero h1 .gradient-text { font-style: italic; font-weight: 300; color: var(--conifer-ink); }

/* Hero subline — вторая строка H1 заметно мельче и воздушнее основной.
   Сохраняет italic/серифную стилистику, но уходит в более тихий регистр. */
.hero h1 .hero-subline {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.6em;          /* ~60% от основного H1 */
  font-weight: 300;
  font-style: italic;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--conifer-ink);
  margin-top: 10px;
}
@media (max-width: 560px) {
  .hero h1 .hero-subline {
    font-size: 0.66em;
    margin-top: 8px;
  }
}
.hero .section-subtitle {
  margin-bottom: 28px;
  font-size: var(--text-lg);
  max-width: 58ch;
}
/* The hero illustration — primary visual, side-by-side with the text. */
.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 1;
}
.hero-art img {
  width: 100%;
  max-width: 720px;
  height: auto;
  aspect-ratio: auto;
  display: block;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: multiply;
}
.hero-note {
  margin-top: 20px;
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--ink-3);
}
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 560px; }
  .hero h1 { max-width: none; }
}
@media (max-width: 560px) {
  .hero-art img { max-width: 320px; }
}

/* ---------------- Problem ----------------
   Новый лейаут: слева — две крупные боли с курсивными
   заголовками-«вскриками» и подробной расшифровкой; справа —
   одна общая иллюстрация на весь блок. */
.problem { background: var(--paper-deep); }
.problem-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  margin-top: 16px;
}
.problem-layout__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.problem-layout__art {
  /* No sticky/parallax — scrolls naturally with the content. */
  position: static !important;
  top: auto !important;
  transform: none !important;
  align-self: start;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.problem-layout__art .section-illustration {
  width: 100%;
  max-width: 520px;
  height: auto;
  position: static !important;
  transform: none !important;
  /* PNG has a near-white background — blend into section's cream (#F5F2E8). */
  mix-blend-mode: multiply;
  background: transparent;
}

.problem-pain {
  border-top: 1px dashed var(--hairline);
  padding-top: 28px;
}
.problem-pain__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--conifer-ink);
  margin: 0 0 18px;
  text-wrap: balance;
  max-width: 22ch;
}
.problem-pain__title em {
  font-style: italic;
  font-weight: 300;
}
.problem-pain__body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--ink-3);
  max-width: 54ch;
  margin: 0 0 14px;
}
.problem-pain__body:last-child { margin-bottom: 0; }

@media (max-width: 960px) {
  .problem-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .problem-layout__art {
    position: static;
    order: -1;
  }
  .problem-layout__art .section-illustration {
    max-width: 280px;
  }
  .problem-pain__title { font-size: clamp(26px, 6vw, 34px); }
}

/* ---------------- Solution ---------------- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px dashed var(--hairline);
}
.solution-card {
  padding: 40px 40px 40px 0;
  border-bottom: 1px dashed var(--hairline);
  counter-increment: solution-counter;
  background: transparent;
  border-radius: 0;
}
.solution-card:nth-child(odd) { border-right: 1px dashed var(--hairline); padding-right: 48px; }
.solution-card:nth-child(even) { padding-left: 40px; }
.solution-card-icon { display: none; }
.solution-card h3 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  margin-bottom: 14px;
  text-wrap: balance;
}
.solution-card h3::before {
  content: counter(solution-counter, decimal-leading-zero) "   ";
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--ink-4);
  margin-right: 8px;
  letter-spacing: 0.02em;
}
.solution-card:first-child h3::before { color: var(--terracotta); }
.solution-card p {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--ink-3);
  max-width: 52ch;
}
.solution { counter-reset: solution-counter; background: var(--paper-deep); }

/* ---------------- Solution — feature block (ключевой акцент) ----------------
   Визуально «вспыхивает» на странице: более глубокий фон секции +
   внутренняя карточка на бумажном тоне с тонкой рамкой и мягкой тенью.
   Двухколоночный лейаут: текст слева (≈60%), иллюстрация справа (≈40%).
   Мобильная версия — колонки стекаются, картинка наверх. */
.solution--feature {
  background: var(--paper);
  padding: 88px 0;
}
.solution--feature .solution-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0;
  align-items: stretch;
  min-height: 560px;
  /* Левая колонка (текст) — на более глубоком paper-deep,
     правая колонка (иллюстрация) — на светлом paper, чтобы визуально
     слиться с фоном PNG. Сделано через linear-gradient с жёсткой
     границей, чтобы не добавлять обёрток в DOM. */
  background: linear-gradient(
    to right,
    var(--paper-deep) 0%,
    var(--paper-deep) calc((1 / 2.15) * 100%),
    var(--paper) calc((1 / 2.15) * 100%),
    var(--paper) 100%
  );
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--conifer);
  padding: 56px 0 56px 48px;
  box-shadow: var(--shadow-2);
  border-radius: 2px;
  overflow: hidden;
}
.solution--feature .solution-feature__text {
  min-width: 0;
  padding-right: 56px; /* ранее роль gap: 56px */
}
.solution--feature .solution-feature__text .section-title {
  font-size: clamp(28px, 2.2rem, 40px);
  margin-bottom: 24px;
  max-width: 26ch;
}
.solution--feature .solution-feature__text .section-subtitle {
  margin-bottom: 18px;
}
.solution--feature .solution-feature__text .section-subtitle:not(.section-subtitle--accent) {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--ink-3);
  max-width: 54ch;
}
.solution--feature .solution-feature__text .section-subtitle:last-child {
  margin-bottom: 0;
}
.solution--feature .solution-feature__art {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Cancel the card's vertical padding on this column so the illustration
     can occupy the full card height — no light strips above/below. */
  margin: -56px 0;
  padding: 0;
  align-self: stretch;
  overflow: hidden;
}
.solution--feature .solution-feature__art img {
  width: 100%;
  max-width: 760px;
  max-height: none;
  height: 100%;
  min-height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  mix-blend-mode: multiply;
  background: transparent;
  border-radius: 0;
}
@media (max-width: 960px) {
  .solution--feature { padding: 64px 0; }
  .solution--feature .solution-feature {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0;
    overflow: visible;
    /* На мобильной раскладке колонки стекаются: арт сверху — на paper,
       текст снизу — на paper-deep. Делим фон по горизонтали. */
    background: linear-gradient(
      to bottom,
      var(--paper) 0%,
      var(--paper) 45%,
      var(--paper-deep) 45%,
      var(--paper-deep) 100%
    );
  }
  .solution--feature .solution-feature__text {
    padding: 32px 32px 40px 32px;
  }
  .solution--feature .solution-feature__art {
    order: -1;
    margin: 0;
    padding: 32px 32px 0 32px;
  }
  .solution--feature .solution-feature__art img {
    max-width: 340px;
    height: auto;
    object-fit: contain;
  }
}
@media (max-width: 560px) {
  .solution--feature { padding: 48px 0; }
  .solution--feature .solution-feature {
    padding: 28px 24px;
    border-left-width: 3px;
    gap: 20px;
  }
  .solution--feature .solution-feature__text .section-title {
    font-size: clamp(24px, 6vw, 32px);
  }
  .solution--feature .solution-feature__art img { max-width: 260px; }
}

/* ---------------- Program ---------------- */
.program-list {
  margin-top: 12px;
}
.program-module {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px dashed var(--hairline);
  align-items: flex-start;
}
.module-number {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink-3);
  letter-spacing: -0.01em;
}
.program-module:first-child .module-number { color: var(--terracotta); }
.module-content h3 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  margin-bottom: 12px;
  line-height: var(--leading-snug);
}
.module-content p {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--ink-3);
  max-width: 62ch;
}
/* Второй параграф-акцент внутри модуля (Модуль 5–6): тихая уверенность */
.module-content p + p { margin-top: 12px; }
.module-content p.module-afterword {
  font-style: italic;
  font-size: 0.95em;
  color: var(--ink-3);
  opacity: 0.88;
  margin-top: 12px;
  max-width: 62ch;
}
@media (max-width: 560px) {
  .module-content p.module-afterword { font-size: 14px; }
}

/* Афтерворд-акцент — крупный зелёный курсив, завершающий программу.
   «А ты смотришь на это и понимаешь, что теперь никогда…» */
.module-content p.module-afterword--accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2rem, 32px);
  line-height: 1.2;
  color: var(--conifer-ink);
  opacity: 1;
  margin-top: 20px;
  max-width: 30ch;
}
.module-content p.module-afterword--accent em { font-style: italic; font-weight: 300; }
@media (max-width: 560px) {
  .module-content p.module-afterword--accent { font-size: clamp(20px, 5.5vw, 26px); }
}

/* Приглушённая приписка (используется в блоке «не вайб-кодинг» — расписание) */
.muted-afterword {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-3);
  opacity: 0.75;
  max-width: 62ch;
}

.program-footnote {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-4);
  margin-top: 40px;
  max-width: 70ch;
  line-height: var(--leading-normal);
  border-left: 1.5px solid var(--ink);
  padding-left: 20px;
}
.program-footnote strong {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-2);
}
.program-bridge {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-2);
  max-width: 70ch;
  margin: 28px 0 0;
  line-height: var(--leading-normal);
  padding-top: 28px;
  border-top: 1px dashed var(--hairline);
}

/* ---------------- Audience ---------------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.audience-card {
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  padding: 40px;
  border-radius: 0;
  box-shadow: none;
}
.audience-card-icon { display: none; }
.audience-card__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.audience-card__avatar {
  display: block;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  object-fit: contain;
  margin: 0;
  mix-blend-mode: multiply;
}
@media (max-width: 560px) {
  .audience-card__header { gap: 16px; }
  .audience-card__avatar { width: 60px; height: 60px; }
}
.audience-card h3 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  line-height: var(--leading-snug);
  margin: 0;
  text-wrap: balance;
}
.audience-card p {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--ink-3);
}
/* Первая секция audience — отличная от соседей. */
.audience { background: var(--paper-deep); }

/* Second "audience" block is the "Порог входа" section — уже paper-deep;
   его оставляем как есть. */
#entry-level { background: var(--paper-deep); }

/* ---------------- Results ---------------- */
/* Match the section background to the cream tone baked into the result
   icon PNGs, so the illustration backgrounds disappear into the page. */
.results {
  margin-top: 24px;
  background: #F5F2E8;
}
.results-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px dashed var(--hairline);
  margin-top: 24px;
}
.result-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding: 32px 32px 32px 0;
  border-bottom: 1px dashed var(--hairline);
  align-items: center;
}
.result-item:nth-child(odd) { border-right: 1px dashed var(--hairline); padding-right: 40px; }
.result-item:nth-child(even) { padding-left: 32px; }
.result-item__icon {
  width: 140px;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  display: block;
  margin-top: 0;
  mix-blend-mode: multiply;
  /* Pull the illustration to the edges — no padding around the drawing
     beyond what's already baked into the PNG. */
  transform: scale(1.15);
  transform-origin: center center;
}
@media (max-width: 560px) {
  .result-item { grid-template-columns: 96px 1fr; gap: 20px; }
  .result-item__icon { width: 96px; max-height: 120px; }
}
.result-item p {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--ink-3);
  max-width: 52ch;
  margin: 0;
}
.result-item p strong {
  color: var(--ink);
  font-weight: 600;
}
.result-item .section-illustration--inline { display: none; }

/* ---------------- Author ---------------- */
.author-block {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 36px;
  align-items: flex-start;
}
.author-photo {
  width: 260px; aspect-ratio: 1 / 1;
  background: var(--paper-deep);
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 0;
}
.author-photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
  filter: grayscale(1) contrast(1.05);
}
.author-info h3 {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  line-height: var(--leading-snug);
  margin-bottom: 20px;
}
.author-info p {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--ink-3);
  margin-bottom: 20px;
  max-width: 64ch;
}
.author-info a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: var(--ink-5);
  transition: text-decoration-color var(--dur-ink) var(--ease-paper);
}
.author-info a:hover { text-decoration-color: var(--terracotta); color: #000; }
.author-projects {
  list-style: none;
  margin-top: 16px;
  border-top: 1px dashed var(--hairline);
  padding-top: 16px;
}
.author-projects li {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--ink-3);
  padding: 8px 0;
  border-bottom: 1px dashed var(--hairline);
  position: relative;
  padding-left: 24px;
}
.author-projects li::before {
  content: "—";
  color: var(--ink-4);
  position: absolute; left: 0; top: 8px;
  font-family: var(--font-serif);
}

/* ---------------- Price block ----------------
   Отдельная секция с ценой курса и кнопкой записи.
   Цифра крупная (сопоставима с большими заголовками),
   рядом на десктопе — кнопка; на мобиле стек. */
.price-block {
  background: var(--paper);
  padding: 80px 0;
}
.price-block .section-label {
  margin-bottom: 24px;
}
.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  row-gap: 24px;
}
.price-figure {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.price-cta {
  background: var(--terracotta);
  color: var(--paper);
}
.price-cta:hover { background: var(--terracotta-ink); color: var(--paper); }
.price-note {
  margin-top: 20px;
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--ink-3);
  max-width: 52ch;
}
@media (max-width: 560px) {
  .price-block { padding: 56px 0; }
  .price-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .price-cta { width: 100%; justify-content: center; }
}

/* ---------------- Final CTA ---------------- */
.final-cta {
  background: var(--paper-deep);
  padding: 72px 0;
  text-align: left;
}
.final-cta .section-title {
  font-size: var(--text-4xl);
  max-width: 28ch;
  margin-bottom: 18px;
}
.final-cta .section-subtitle { margin-bottom: 28px; }
.final-cta .btn-cta { background: var(--terracotta); color: var(--paper); }
.final-cta .btn-cta:hover { background: var(--terracotta-ink); color: var(--paper); }
.final-cta__note {
  display: block;
  margin-top: 24px;
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--ink-3);
}

/* ---------------- Footer ---------------- */
footer {
  padding: 48px 0;
  border-top: 1.5px solid var(--ink);
  background: var(--paper);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-brand img {
  height: 38px;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  align-self: flex-start;
}
.footer-brand .hand-note { color: var(--ink-3); }
.footer-links {
  display: flex; gap: 32px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
}
.footer-links a {
  color: var(--ink-3);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: var(--ink-5);
  transition: color var(--dur-ink) var(--ease-paper),
              text-decoration-color var(--dur-ink) var(--ease-paper);
}
.footer-links a:hover { color: #000; text-decoration-color: var(--terracotta); }
.footer-copy {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-4);
}

/* ---------------- Fade in ---------------- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms var(--ease-paper), transform 520ms var(--ease-paper);
}
.fade-in.visible {
  opacity: 1;
  transform: none; /* identity-matrix ломает sticky у потомков — снимаем после анимации */
}

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .container { padding: 0 32px; }
  .site-header { padding: 18px 32px; }
  section { padding: 72px 0; }

  .problem-grid,
  .solution-grid,
  .audience-grid,
  .results-list { grid-template-columns: 1fr; }

  .problem-item,
  .solution-card,
  .result-item {
    padding: 28px 0 !important;
    border-right: none !important;
    padding-left: 0 !important;
  }

  .program-module { grid-template-columns: 80px 1fr; gap: 20px; }
  .module-number { font-size: 44px; }

  .author-block { grid-template-columns: 1fr; gap: 32px; }
  .author-photo { width: 220px; order: -1; margin: 0 auto; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .section-title { font-size: var(--text-3xl); }
  .hero h1 { font-size: clamp(28px, 6vw, 44px); }
  .final-cta .section-title { font-size: var(--text-4xl); }
}

@media (max-width: 560px) {
  .container { padding: 0 24px; }
  .site-header { padding: 16px 24px; }
  .site-header__wordmark { font-size: 18px; }
  .site-header__badge { display: none; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 40px; }
  .section-subtitle { font-size: var(--text-lg); }
  .audience-card { padding: 28px; }
}

/* ---------------- GIF demos ---------------- */
.gif-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 24px !important;
  margin-top: 32px !important;
  max-width: 760px;
  margin-left: 0;
  margin-right: 0;
}

/* Финальная фраза-выделение под сеткой демо.
   Тот же italic-зелёный голос, что и другие акценты. */
.gif-grid__outro {
  margin: 40px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2rem, 30px);
  line-height: 1.25;
  color: var(--conifer-ink);
  max-width: 32ch;
  text-wrap: balance;
}
.gif-grid__outro em { font-style: italic; font-weight: 300; }
@media (max-width: 560px) { .gif-grid__outro { font-size: clamp(20px, 5.5vw, 26px); } }
.gif-card {
  background: var(--paper) !important;
  border: 1px solid var(--hairline) !important;
  border-radius: 0 !important;
  overflow: hidden;
}
.gif-card > div:first-child {
  aspect-ratio: 16 / 10;
  background: var(--paper-deep) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.gif-card > div:first-child img {
  max-width: 70% !important;
  max-height: 70% !important;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0.92;
}
.gif-card > div:last-child {
  padding: 16px 20px !important;
}
.gif-card h3 {
  font-family: var(--font-serif) !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  margin-bottom: 6px !important;
  color: var(--ink);
}
.gif-card p {
  font-size: 13px !important;
  line-height: 1.5;
  color: var(--ink-3) !important;
}
@media (max-width: 768px) {
  .gif-grid { grid-template-columns: 1fr !important; max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* ---------------- Section illustrations ----------------
   Illustrations sit BESIDE the text in a 2-column row, never inside the
   text flow as float overlays. The image background is the same paper
   tone as the page (#FAFAF7) and uses mix-blend-mode: multiply so it
   reads as if drawn directly on the page. Sizes are deliberately
   restrained — illustrations support the copy, they don't dominate. */
.section-illustration {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0;
  opacity: 0.95;
  mix-blend-mode: multiply;
  background: transparent;
}
.section-illustration--inline {
  max-width: 96px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 0 0 12px;
  opacity: 0.95;
  mix-blend-mode: multiply;
}
.section-illustration--corner {
  max-width: 140px;
  margin: 32px 0 0 auto;
  display: block;
  opacity: 0.9;
  mix-blend-mode: multiply;
}

/* Two-column row: text on one side, illustration on the other.
   Image column is intentionally narrow — illustration is a SUPPORTING
   note next to the text, not a dominant visual. Default: text LEFT,
   illustration RIGHT (small, ~220px). Modifier --reverse swaps sides. */
.section-with-art {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 32px;
}
.section-with-art--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
}
.section-with-art--reverse .section-with-art__art { order: -1; }
.section-with-art__text { min-width: 0; }
.section-with-art__art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-with-art .section-illustration {
  margin: 0;
  max-width: 220px;
  width: 100%;
}
/* Tighter rule for the section title when it sits beside an illustration —
   it should not stretch beyond its column. */
.section-with-art .section-title {
  margin-bottom: 16px;
}

/* Legacy float helper kept for back-compat — but now it just behaves as
   a small inline-block aligned right inside the text column. Not used
   in the new layout. */
.section-illustration--right {
  display: block;
  max-width: 200px;
  margin: 0 0 16px auto;
  opacity: 0.95;
  mix-blend-mode: multiply;
}

/* Mobile: stack columns, image goes on top, smaller. */
@media (max-width: 640px) {
  .section-with-art,
  .section-with-art--reverse {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .section-with-art__art { order: -1; }
  .section-with-art .section-illustration { max-width: 160px; margin: 0 auto; }
  .section-illustration--right { max-width: 140px; margin: 0 auto 12px; }
  .section-illustration--corner { display: none; }
  .section-illustration--inline { display: block; margin: 10px 0 0; max-width: 80px; }
}
/* Not-vibe-coding: full-height illustration to the right of the text block */
.not-vibecoding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 40px;
  align-items: center;
  max-width: 1200px;
}
.not-vibecoding-layout .section-illustration {
  margin: 0;
  width: 100%;
  max-width: 780px;
  height: auto;
  opacity: 1;
  align-self: center;
  justify-self: center;
  mix-blend-mode: multiply;
  background: transparent;
}
@media (max-width: 768px) {
  .not-vibecoding-layout { grid-template-columns: 1fr; gap: 24px; }
  .not-vibecoding-layout .section-illustration {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
    position: static;
  }
}

/* Program roadmap — широкая горизонтальная иллюстрация после интро-текста */
.program-roadmap-illustration {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 32px 0 48px;
}
