/* ==========================================================================
   AI-КОНТЕНТ — лендинг
   1. Токени          2. База           3. Типографіка
   4. Примітиви       5. Секції         6. Адаптив
   ========================================================================== */

/* 1. ТОКЕНИ ================================================================ */

:root {
  /* колір */
  --lime: #beff00;
  --lime-dim: #a5df00;
  --paper: #f5f7ef;
  --paper-2: #e7ebdd;
  --paper-3: #d8ddc9;
  --ink: #1c1b1b;
  --ink-2: #262524;
  --ink-3: #343231;
  --ink-deep: #100f0f;
  --shot-bg: #eaf1f5;   /* світло-холодний фон знімка в героєві */

  --on-ink: #f5f7ef;
  --on-ink-mute: #9a9894;
  --on-paper: #1c1b1b;
  --on-paper-mute: #6b6a66;

  /* шрифти */
  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* ритм */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1320px;
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* рух */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.5s;
}

/* 2. БАЗА ================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* щоб якорі не ховалися під шапкою */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--on-paper);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* браузер дає figure відступ 1em 40px — він ламає сітку галерей */
figure,
figcaption,
dl,
dd {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

/* На лаймовому фоні лаймовий фокус не видно */
.section--lime :focus-visible {
  outline-color: var(--ink);
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-radius: var(--radius-pill);
}

.skip-link:focus {
  top: 1rem;
}

/* 3. ТИПОГРАФІКА =========================================================== */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  /* Unbounded дуже широкий — на вузьких екранах довге слово має переноситись */
  overflow-wrap: break-word;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.h-xl {
  font-size: clamp(1.95rem, 0.95rem + 4.9vw, 5.6rem);
}

.h-lg {
  font-size: clamp(1.7rem, 0.95rem + 3.4vw, 4.1rem);
}

.h-md {
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.3rem);
}

.h-sm {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1.05rem, 0.98rem + 0.45vw, 1.35rem);
  line-height: 1.5;
  color: var(--on-ink-mute);
  max-width: 58ch;
}

.section--paper .lead {
  color: var(--on-paper-mute);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mute {
  color: var(--on-ink-mute);
}

.section--paper .mute {
  color: var(--on-paper-mute);
}

/* Маркер-виділення — сигнатура з референсів */
.mark {
  background: var(--lime);
  color: var(--ink);
  padding: 0 0.16em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.mark--accent {
  background: var(--lime);
  color: var(--ink);
}

/* 4. ПРИМІТИВИ ============================================================= */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--ink {
  background: var(--ink);
  color: var(--on-ink);
}

.section--paper {
  background: var(--paper);
  color: var(--on-paper);
}

.section--lime {
  background: var(--lime);
  color: var(--ink);
}

/* колишня рожева секція-перехід тепер лаймова — акцент один */
.section--accent {
  background: var(--lime);
  color: var(--ink);
}

.section--accent :focus-visible {
  outline-color: var(--ink);
}

/* Шапка секції: моно-мітка + заголовок */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.85rem;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 6px;
}

.eyebrow__num {
  opacity: 0.5;
}

/* Ширина в rem, а не в ch: ch рахується від шрифту тексту,
   а всередині стоїть заголовок дисплейним шрифтом — колонка виходила вдвічі вужчою. */
.section-head {
  max-width: 34rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head--wide {
  max-width: 48rem;
}

.section-head .lead {
  margin-top: 1.25rem;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.05rem 1.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: center;
  border-radius: var(--radius-pill);
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--lime);
  color: var(--ink);
}

.btn--primary:hover {
  background: #d2ff4d;
}

.btn--ghost {
  border: 1.5px solid currentColor;
}

.btn--ghost:hover {
  background: currentColor;
}

.btn--ghost:hover .btn__label {
  color: var(--ink);
}

.section--paper .btn--ghost:hover .btn__label {
  color: var(--paper);
}

.btn--dark {
  background: var(--ink);
  color: var(--paper);
}

.btn--dark:hover {
  background: var(--ink-3);
}

.btn--lg {
  padding: 1.25rem 2.4rem;
  font-size: 1.075rem;
}

.btn--block {
  width: 100%;
}

.btn__arrow {
  font-size: 1.1em;
  line-height: 1;
}

/* Пігулки-теги */
.tag {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 247, 239, 0.22);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.section--paper .tag {
  border-color: rgba(28, 27, 27, 0.18);
}

.tag--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.tag--accent {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  transition: transform 0.18s var(--ease);
}

.tag--accent:hover {
  transform: translateY(-2px);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Картки */
.card {
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  background: var(--ink-2);
  border-radius: var(--radius-lg);
}

.section--paper .card {
  background: var(--paper-2);
}

/* Смуга статусу — з референсу (номер / розділ / рік / стрілка) */
.statusbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 247, 239, 0.16);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-ink-mute);
}

.section--paper .statusbar {
  border-top-color: rgba(28, 27, 27, 0.14);
  color: var(--on-paper-mute);
}

.statusbar__sep {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.28;
}

/* --- Медіа-плитка з підписом-промптом (сигнатура) ------------------------ */

.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink-3) 0%, var(--ink-2) 55%, #1f2410 100%);
  border-radius: var(--radius);
  isolation: isolate;
}

.section--paper .media {
  background: linear-gradient(135deg, var(--paper-3) 0%, var(--paper-2) 55%, #e4f0b8 100%);
}

.media::after {
  /* м'який лаймовий відблиск, щоб порожні плитки не читались як «дірки» */
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(190, 255, 0, 0.42), transparent 68%);
  z-index: 0;
  pointer-events: none;
}

.media__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.media:hover .media__img {
  transform: scale(1.04);
}

/* Заглушка: видно, доки файлу немає */
.media__slot {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: rgba(245, 247, 239, 0.55);
}

.section--paper .media__slot {
  color: rgba(28, 27, 27, 0.5);
}

.media__slot b {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.media.is-loaded .media__slot {
  display: none;
}

/* Пропорції плиток */
.ratio-23 {
  aspect-ratio: 2 / 3;
}

.ratio-11 {
  aspect-ratio: 1;
}

/* Поява при скролі */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* 5. СЕКЦІЇ ================================================================ */

/* --- Шапка --------------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 1rem;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
  transition: transform 0.35s var(--ease);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--on-ink);
}

.header.is-scrolled .logo {
  color: var(--on-paper);
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.85rem;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 247, 239, 0.75);
}

.header.is-scrolled .nav {
  color: var(--on-paper-mute);
}

.nav a {
  transition: color 0.2s var(--ease);
}

.nav a:hover {
  color: var(--on-paper);
}

.header__cta {
  padding: 0.7rem 1.35rem;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    background-color 0.18s var(--ease);
}

.header.is-scrolled {
  background: rgba(245, 247, 239, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(28, 27, 27, 0.1);
}

.header.is-scrolled .header__cta {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* --- Герой --------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 5.5rem clamp(1.75rem, 5vw, 3rem);
  background: var(--ink-deep);
  color: var(--on-ink);
  overflow: hidden;
}

/* Знімок героя. Тло кадру майже чорне, тож він зливається з фоном секції —
   краї додатково розчиняємо маскою, щоб не було жодної прямої межі. */
.hero__photo {
  position: absolute;
  inset: 0 0 auto 0;
  height: 72%;
  z-index: 0;
  pointer-events: none;
}

/* cover замість contain: кадр іде від краю до краю, тож бічних меж не лишається.
   Робота при цьому підрізає лише на ~50 px з боку — руки й ноутбук цілі. */
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      var(--ink-deep) 0%,
      rgba(16, 15, 15, 0.92) 18%,
      rgba(16, 15, 15, 0.55) 34%,
      rgba(16, 15, 15, 0.12) 52%,
      transparent 70%),
    linear-gradient(to right, var(--ink-deep) 0%, transparent 9%),
    linear-gradient(to left, var(--ink-deep) 0%, transparent 9%);
}

/* Лаймове сяйво від персонажа — зв'язує кадр із фоном сторінки */
.hero::before {
  content: "";
  position: absolute;
  top: 6%;
  left: 50%;
  translate: -50% 0;
  width: min(760px, 120vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(190, 255, 0, 0.13), transparent 62%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__copy {
  max-width: 34rem;
}

.hero__title {
  font-size: clamp(2.2rem, 1.1rem + 4.4vw, 4.6rem);
  margin-bottom: 1.1rem;
}

.hero__lead {
  margin-bottom: 1.6rem;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.25rem);
  color: rgba(245, 247, 239, 0.8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.hero__note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--on-ink-mute);
}

/* На широкому екрані персонаж праворуч, текст ліворуч */
@media (min-width: 901px) {
  .hero {
    align-items: center;
    min-height: 94svh;
    padding-block: 8rem 4rem;
  }

  .hero__photo {
    inset: 0 0 0 auto;
    width: 56%;
    height: 100%;
  }

  .hero__photo img {
    object-position: 50% 32%;
  }

  .hero__photo::after {
    background:
      linear-gradient(to right, var(--ink-deep) 0%, rgba(16, 15, 15, 0.55) 16%, transparent 42%),
      linear-gradient(to bottom, var(--ink-deep) 0%, transparent 14%),
      linear-gradient(to top, var(--ink-deep) 0%, transparent 16%);
  }

  .hero::before {
    left: 72%;
    top: 12%;
  }

  .hero__copy {
    max-width: min(34rem, 44vw);
  }
}

/* Смуга з тегами під першим екраном */
.herobar {
  background: var(--paper);
  color: var(--on-paper);
  padding-block: clamp(0.9rem, 2.5vw, 1.25rem);
}

.herobar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.herobar .tag {
  border-color: rgba(28, 27, 27, 0.18);
}

/* На широкому екрані текст ліворуч, обличчя лишається відкритим праворуч */
@media (min-width: 901px) {
  .hero {
    align-items: center;
    min-height: 94svh;
    padding-block: 8rem 4rem;
  }

  .hero__photo img {
    height: 112%;
    object-position: 58% 50%;
  }

  .hero__photo::after {
    background:
      linear-gradient(to right,
        rgba(18, 17, 17, 0.92) 0%,
        rgba(18, 17, 17, 0.8) 30%,
        rgba(18, 17, 17, 0.3) 56%,
        transparent 80%),
      linear-gradient(to top, rgba(18, 17, 17, 0.55), transparent 45%);
  }

  .hero__copy {
    max-width: min(34rem, 46vw);
  }
}

/* Біжучий рядок ніш */
.marquee {
  padding-block: 1.1rem;
  background: var(--lime);
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  gap: 3rem;
  padding-right: 3rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  animation: slide 34s linear infinite;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* --- Ринок: факти + порівняння ------------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.fact__num {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.fact__text {
  font-size: 0.95rem;
  line-height: 1.45;
}

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.compare__col {
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  border-radius: var(--radius-lg);
}

.compare__col--old {
  background: var(--paper-2);
}

.compare__col--new {
  background: var(--ink);
  color: var(--on-ink);
}

.compare__title {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid currentColor;
}

.compare__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.7rem;
  font-size: 0.95rem;
}

.compare__row + .compare__row {
  border-top: 1px solid rgba(128, 128, 128, 0.22);
}

.compare__row dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.62;
}

.compare__row dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.compare__col--new .compare__row dd {
  color: var(--lime);
}

.compare__note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

/* --- Живий mesh-градієнт (фон секції) -------------------------------------- */

.section--mesh {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.mesh {
  /* плями беруть колір, протилежний фону секції */
  --blob: var(--ink);
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.mesh__blob {
  position: absolute;
  /* сильне розмиття перетворює окремі плями на суцільний перелив */
  filter: blur(64px);
  opacity: 0.16;
  will-change: transform;
}

/* Кожна пляма зі своїм ритмом — так вони ніколи не синхронізуються */
.mesh__blob--a {
  top: -16%;
  left: -12%;
  width: 74%;
  aspect-ratio: 1.1;
  background: radial-gradient(circle at 40% 40%, var(--blob), transparent 68%);
  border-radius: 58% 42% 47% 53% / 46% 51% 49% 54%;
  animation: meshDrift1 26s var(--ease) infinite alternate;
}

.mesh__blob--b {
  top: 18%;
  right: -18%;
  width: 82%;
  aspect-ratio: 0.9;
  background: radial-gradient(circle at 55% 45%, var(--blob), transparent 70%);
  border-radius: 44% 56% 62% 38% / 52% 44% 56% 48%;
  animation: meshDrift2 34s var(--ease) infinite alternate;
}

.mesh__blob--c {
  bottom: -24%;
  left: 20%;
  width: 66%;
  aspect-ratio: 1.25;
  background: radial-gradient(circle at 50% 50%, var(--lime), transparent 72%);
  opacity: 0.26;
  border-radius: 51% 49% 40% 60% / 58% 42% 58% 42%;
  animation: meshDrift3 30s var(--ease) infinite alternate;
}

/* На темному тлі плями світяться, тож їм потрібна інша щільність,
   а зерно накладається інакше — multiply на чорному просто зникає. */
/* на темному тлі плями світлі */
.section--ink .mesh,
.hero .mesh {
  --blob: var(--paper);
}

.section--ink .mesh__blob {
  opacity: 0.13;
  filter: blur(76px);
}

.section--ink .mesh__blob--c {
  opacity: 0.3;
}

.section--ink .mesh__grain {
  mix-blend-mode: overlay;
  opacity: 0.16;
}

/* Варіант із лаймовою домінантою */
.mesh--lime .mesh__blob--a {
  background: radial-gradient(circle at 40% 40%, var(--lime), transparent 68%);
  opacity: 0.34;
}

.mesh--lime .mesh__blob--c {
  opacity: 0.34;
}

/* Три секції з градієнтом не мають виглядати однаково: дзеркалимо композицію
   й зсуваємо фазу руху, щоб кожна читалась як окрема. */
.mesh--alt {
  transform: scaleX(-1);
}

.mesh--alt2 {
  transform: scale(-1, -1);
}

.mesh--alt .mesh__blob--a { animation-delay: -9s; }
.mesh--alt .mesh__blob--b { animation-delay: -14s; }
.mesh--alt .mesh__blob--c { animation-delay: -5s; }

.mesh--alt2 .mesh__blob--a { animation-delay: -17s; }
.mesh--alt2 .mesh__blob--b { animation-delay: -6s; }
.mesh--alt2 .mesh__blob--c { animation-delay: -21s; }

/* Плівкове зерно — як у референсі, щоб градієнт не був «пластиковим» */
.mesh__grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

@keyframes meshDrift1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(9%, 7%) scale(1.12); }
  100% { transform: translate(4%, -6%) scale(0.95); }
}

@keyframes meshDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-11%, 9%) scale(0.9); }
  100% { transform: translate(-5%, -8%) scale(1.14); }
}

@keyframes meshDrift3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8%, -10%) scale(1.16); }
  100% { transform: translate(7%, -4%) scale(0.92); }
}

/* --- Вкладки ніш ---------------------------------------------------------- */

.niches {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.niches__hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
}

/* лаймовий на світлому не читається — на паперових секціях текст темний */
.section--paper .niches__hint {
  color: var(--on-paper);
}

.niches__hint-icon {
  font-size: 1rem;
  animation: nudge 2.2s var(--ease) infinite;
}

@keyframes nudge {
  0%, 62%, 100% { transform: translateY(0); }
  74% { transform: translateY(-4px); }
  86% { transform: translateY(-1px); }
}

.niches__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.niche {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.1rem;
  border: 1.5px solid rgba(245, 247, 239, 0.28);
  border-radius: var(--radius-pill);
  color: var(--on-ink);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.18s var(--ease);
}

.section--paper .niche {
  border-color: rgba(28, 27, 27, 0.22);
  color: var(--on-paper);
}

.niche:hover {
  border-color: var(--lime);
  transform: translateY(-2px);
}

.niche__label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.niche__count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 0.3rem;
  background: rgba(245, 247, 239, 0.12);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.section--paper .niche__count {
  background: rgba(28, 27, 27, 0.1);
}

.niche.is-active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.niche.is-active .niche__count {
  background: var(--ink);
  color: var(--lime);
}

/* --- Вертикальний стек кадрів --------------------------------------------- */

.stack {
  /* Кадр — головне на сторінці, тому він майже на всю ширину екрана.
     Сусідні кадри стоять ЗА ним, а не розтягують блок вниз. */
  --card-w: clamp(240px, 86vw, 400px);
  --card-h: calc(var(--card-w) * 1.5);
  position: relative;
  /* лічильник — кадр — крапки стоять однією групою по центру,
     а не розлітаються до країв широкого екрана */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

/* Усі панелі лежать в одній клітинці сцени, видима — лише активна */
.stack__panel {
  grid-area: 1 / 1;
  display: none;
}

.stack__panel.is-active {
  display: grid;
  place-items: center;
}

/* Лічильник кадрів зліва */
.stack__counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.stack__counter b {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  font-weight: 500;
  line-height: 1;
}

.stack__counter i {
  width: 28px;
  height: 1px;
  margin-block: 0.6rem;
  background: currentColor;
  opacity: 0.28;
}

.stack__counter span {
  font-size: 0.78rem;
  color: var(--on-ink-mute);
}

.section--paper .stack__counter span {
  color: var(--on-paper-mute);
}

/* Сцена */
.stack__viewport {
  display: grid;
  place-items: center;
  height: calc(var(--card-h) * 1.3);
  perspective: 1400px;
  /* вертикальний свайп лишаємо сторінці — кадри гортаються горизонтальним */
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  transition: transform 0.35s var(--ease);
}

.stack__viewport:active {
  cursor: grabbing;
}

.stack.is-dragging .stack__viewport {
  transition: none;
}

.stack__card {
  grid-area: 1 / 1;
  width: var(--card-w);
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
  will-change: transform;
}

.stack__card[data-hidden] {
  visibility: hidden;
  pointer-events: none;
}

.stack__card:not(.is-current) {
  cursor: pointer;
}

.stack__card.is-current {
  box-shadow: 0 32px 60px -18px rgba(0, 0, 0, 0.7);
}

.section--paper .stack__card.is-current {
  box-shadow: 0 32px 60px -20px rgba(28, 27, 27, 0.32);
}

/* На кадрах позаду не показуємо ні промпт, ні назву файлу — інакше з-під
   активного знімка визирають шматки чужого тексту. */
.stack__card:not(.is-current) .media__slot {
  display: none;
}

/* Назва файлу — вгорі картки: внизу вона наїжджала на підпис-промпт */
.stack__card .media__slot {
  justify-content: flex-start;
}

/* Кнопка звуку — у нижньому куті активного кадру */
.stack__viewport {
  position: relative;
}

.stack__sound {
  position: absolute;
  z-index: 6;
  bottom: calc(50% - var(--card-h) / 2 + 0.7rem);
  right: calc(50% - var(--card-w) / 2 + 0.7rem);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: rgba(16, 15, 15, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 247, 239, 0.22);
  border-radius: 50%;
  color: var(--paper);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.18s var(--ease);
}

.stack__sound:hover {
  transform: scale(1.06);
}

/* увімкнено — лаймова, щоб стан було видно з першого погляду */
.stack__sound.is-on {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.stack__sound-on,
.stack__sound.is-on .stack__sound-off {
  display: none;
}

.stack__sound.is-on .stack__sound-on {
  display: block;
}

/* Крапки справа */
.stack__dots {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stack__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: rgba(245, 247, 239, 0.3);
  border-radius: var(--radius-pill);
  transition: height 0.3s var(--ease), background-color 0.3s var(--ease);
}

.stack__dot:hover {
  background: rgba(245, 247, 239, 0.55);
}

.stack__dot.is-active {
  height: 24px;
  background: var(--lime);
}

.section--paper .stack__dot {
  background: rgba(28, 27, 27, 0.25);
}

.section--paper .stack__dot.is-active {
  background: var(--ink);
}

/* Підказка знизу */
.stack__hint {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-ink-mute);
}

.section--paper .stack__hint {
  color: var(--on-paper-mute);
}

.stack__hint em {
  font-style: normal;
  animation: hintFloat 1.6s var(--ease) infinite;
}

.stack__hint em:last-of-type {
  animation-delay: 0.8s;
}

@keyframes hintFloat {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-3px); opacity: 1; }
}

/* --- Гігантське слово-перехід -------------------------------------------- */

.bleed {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

.bleed__word {
  display: block;
  /* Слово має вміститися цілком: обрізана навпіл літера читається
     як помилка, а не як прийом. Виходимо за поля обгортки, щоб
     використати всю ширину екрана, і тримаємо запас на метрики шрифту. */
  margin: 0 calc(var(--gutter) * -1);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 13.6vw, 13rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-align: center;
  white-space: nowrap;
}

.bleed__line {
  max-width: 46ch;
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

/* --- Персони -------------------------------------------------------------- */

.personas {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

.personas::-webkit-scrollbar {
  display: none;
}

.persona {
  flex: 0 0 auto;
  width: clamp(258px, 76vw, 320px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
  background: var(--paper-2);
  border-radius: var(--radius-lg);
}

.persona__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--on-paper-mute);
}

.persona__text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--on-paper-mute);
}

.persona__pain {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(28, 27, 27, 0.14);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Компоненти, що переїхали на світлий фон */
.section--paper .skill,
.section--paper .bonus__value,
.section--paper .offer__includes li {
  border-color: rgba(28, 27, 27, 0.14);
}

.section--paper .bonus__value {
  color: var(--on-paper);
}

.section--paper .lesson__desc {
  color: var(--on-paper-mute);
}

/* --- Що вмітимеш ---------------------------------------------------------- */

.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.5vw, 1rem) clamp(1.5rem, 4vw, 4rem);
}

.skill {
  display: flex;
  gap: 1rem;
  padding-block: 1.05rem;
  border-top: 1px solid rgba(245, 247, 239, 0.16);
}

.skill__check {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 0.1rem;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 8px;
}

.skill__text {
  font-size: 1rem;
  line-height: 1.45;
}

/* --- Програма (акордеон) --------------------------------------------------- */

.modules {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.module {
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.module.is-open {
  background: var(--paper-3);
}

.module__head {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.6rem);
  width: 100%;
  padding: clamp(1.15rem, 2.2vw, 1.7rem) clamp(1.15rem, 2.2vw, 1.9rem);
  text-align: left;
}

.module__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--on-paper-mute);
}

.module__title {
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.module__toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background-color 0.2s var(--ease);
}

.module.is-open .module__toggle {
  background: var(--lime);
  color: var(--ink);
  transform: rotate(45deg);
}

.module__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.module.is-open .module__panel {
  grid-template-rows: 1fr;
}

.module__panel > div {
  overflow: hidden;
}

.module__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: 0 clamp(1.15rem, 2.2vw, 1.9rem) clamp(1.5rem, 2.5vw, 2rem);
}

.module__intro {
  grid-column: 1 / -1;
  max-width: 62ch;
  font-size: 0.98rem;
  color: var(--on-paper-mute);
}

.module__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.module__list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.module__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 10px;
  height: 10px;
  background: var(--ink);
  border-radius: 3px;
}

.module__list--sub li::before {
  background: none;
  border: 1.5px solid var(--ink);
}

.module__aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.module__extra h4 {
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-paper-mute);
}

.module__result {
  padding: 1.1rem 1.25rem;
  background: var(--lime);
  color: var(--ink);
  border-radius: 16px;
}

.module__result b {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.module__result p {
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 500;
}

/* --- Відео-фрагменти ------------------------------------------------------ */

/* Ролик тепер один — сітка на три колонки залишала його вузьким */
.lessons {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 62rem;
  gap: clamp(0.85rem, 1.6vw, 1.35rem);
}

/* Коли ролик один, сітка з трьох колонок робила б його вузьким */
.lessons--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
}

.lesson {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.lesson__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: block;
  padding: 0;
}

.lesson__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lesson__play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.lesson__play span {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  padding-left: 4px;
  background: var(--lime);
  color: var(--ink);
  font-size: 1.2rem;
  border-radius: 50%;
  transition: transform 0.25s var(--ease);
}

.lesson__frame:hover .lesson__play span {
  transform: scale(1.08);
}

.lesson__time {
  position: absolute;
  z-index: 3;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.3rem 0.6rem;
  background: rgba(28, 27, 27, 0.8);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
}

.lesson__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.lesson__desc {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--on-ink-mute);
}

/* --- Автор ---------------------------------------------------------------- */

.author {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--paper-2);
  border-radius: var(--radius-lg);
}

.author__points {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.35rem;
  padding: 0;
  list-style: none;
}

.author__points li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.98rem;
  line-height: 1.45;
}

.author__points li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--lime-dim);
  font-weight: 700;
}

/* Лаймова секція: темні картки на кислотному тлі — контраст із референсів.
   Без цього заголовки всередині карток лишались темними на темному. */
.section--lime .card {
  color: var(--on-ink);
}

.section--lime .eyebrow {
  background: var(--ink);
  color: var(--lime);
}

.section--lime .lead {
  color: rgba(28, 27, 27, 0.72);
}

.section--lime .statusbar {
  color: rgba(28, 27, 27, 0.7);
  border-top-color: rgba(28, 27, 27, 0.22);
}

/* --- Бонуси ---------------------------------------------------------------- */

.bonuses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.bonus {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.bonus__badge {
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 6px;
}

.bonus__text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--on-ink-mute);
}

.bonus__value {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(245, 247, 239, 0.16);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--lime);
}

/* --- Відгуки --------------------------------------------------------------- */

/* Стрічка, а не сітка: шість карток стовпчиком з'їдали пів екрана на телефоні */
.reviews {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

.reviews::-webkit-scrollbar {
  display: none;
}

.reviews__hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-paper-mute);
}

.reviews__hint em {
  font-style: normal;
  animation: hintSlide 1.8s var(--ease) infinite;
}

@keyframes hintSlide {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(4px); opacity: 1; }
}

.review {
  flex: 0 0 auto;
  width: clamp(258px, 76vw, 336px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.35rem, 2.2vw, 1.8rem);
  background: var(--paper-2);
  border-radius: var(--radius-lg);
}

.review__stars {
  color: var(--lime-dim);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}

.review__text {
  font-size: 0.97rem;
  line-height: 1.55;
}

.review__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(28, 27, 27, 0.14);
}

.review__name {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.review__role {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--on-paper-mute);
}

/* --- Оффер ----------------------------------------------------------------- */

.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.offer__includes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.offer__includes li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid rgba(245, 247, 239, 0.16);
  font-size: 0.98rem;
}

.offer__includes b {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--on-ink-mute);
}

.offer__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.offer__total b {
  font-size: 1rem;
  color: var(--lime);
}

.offer__card {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--lime);
  color: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.offer__old {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-decoration: line-through;
  opacity: 0.65;
}

.offer__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-block: 0.35rem 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 2rem + 4.5vw, 5.2rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.offer__cur {
  font-size: 0.28em;
  font-weight: 700;
  letter-spacing: 0;
}

.offer__compare {
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 500;
}

.offer__urgency {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.offer__urgency::before {
  content: "•";
  color: var(--lime);
  font-size: 1.2em;
  line-height: 1;
}

.offer__after {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

/* --- Місток до великого курсу --------------------------------------------- */

.upsell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--radius-lg);
}

.upsell__tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.8rem;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 6px;
}

.upsell__text {
  margin-top: 0.85rem;
  max-width: 54ch;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--on-ink-mute);
}

/* --- Герой без знімка: несе градієнт ---------------------------------------- */

.hero--mesh {
  align-items: center;
  min-height: 88svh;
  padding-block: 8rem 4rem;
}

.hero--mesh .mesh__blob {
  opacity: 0.5;
  filter: blur(80px);
}

.hero--mesh .hero__copy {
  max-width: 40rem;
}

/* --- Кроки окупності --------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step {
  padding: clamp(1.4rem, 2.4vw, 2rem);
  background: var(--ink-2);
  border-radius: var(--radius-lg);
}

.section--paper .step {
  background: var(--paper-2);
}

.step__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 1rem;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
}

.step__text {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--on-ink-mute);
}

.section--paper .step__text {
  color: var(--on-paper-mute);
}

/* --- Напрями в професії ------------------------------------------------------
   Темні плашки на лаймовому тлі. Стрічка, а не сітка: у ряд стають дві картки,
   решта гортається вбік — так блок коротший і його не нудно читати.
   ---------------------------------------------------------------------------- */

.dirs {
  display: flex;
  gap: clamp(0.6rem, 1.4vw, 1rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

.dirs::-webkit-scrollbar {
  display: none;
}

.dir {
  /* дві картки в ряд на будь-якому екрані */
  flex: 0 0 auto;
  width: calc((100% - clamp(0.6rem, 1.4vw, 1rem)) / 2);
  max-width: 340px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: clamp(1.1rem, 2.2vw, 1.7rem);
  background: var(--ink-2);
  color: var(--on-ink);
  border-radius: var(--radius-lg);
}

.dir__num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--on-ink-mute);
}

/* Назва напряму — лаймовим, ціна — рожевим: два акценти на темному */
.dir__name {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.85rem + 0.45vw, 1.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--on-ink);
}

.dir__text {
  margin-top: 0.6rem;
  font-size: clamp(0.82rem, 0.78rem + 0.2vw, 0.93rem);
  line-height: 1.45;
  color: var(--on-ink-mute);
}

.dir__price {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 247, 239, 0.16);
}

.dir__price b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.55rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--lime);
}

.dir__price span {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-ink-mute);
}

.dirs__note {
  max-width: 46rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.7;
  color: rgba(28, 27, 27, 0.7);
}

/* підказка «гортай убік» на лаймовому тлі */
.section--lime .reviews__hint {
  color: rgba(28, 27, 27, 0.7);
}

/* --- Виноска про нішу -------------------------------------------------------- */

.callout {
  position: relative;
  max-width: 46rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--ink-2);
  border: 1.5px solid var(--lime);
  border-radius: var(--radius-lg);
}

.section--paper .callout {
  background: var(--paper-2);
}

.callout__flag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.8rem;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
}

.callout__text {
  margin-top: 1rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--on-ink-mute);
}

.section--paper .callout__text {
  color: var(--on-paper-mute);
}

/* --- Обсяг програми ---------------------------------------------------------- */

.scope {
  max-width: 46rem;
  /* Блок переїхав під модулі: відступ тепер зверху, а не знизу. */
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 3px solid var(--lime);
}

.scope__text {
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.15rem);
  line-height: 1.6;
}

.scope__text + .scope__text {
  margin-top: 1rem;
  color: var(--on-paper-mute);
}

.section--ink .scope__text + .scope__text {
  color: var(--on-ink-mute);
}

.final__lead + .final__lead {
  margin-top: 1rem;
}

/* --- Окупність -------------------------------------------------------------- */

.roi {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--ink-2);
  border-radius: var(--radius-lg);
}

.section--paper .roi {
  background: var(--paper-2);
}

.roi__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid rgba(245, 247, 239, 0.14);
}

.section--paper .roi__row {
  border-bottom-color: rgba(28, 27, 27, 0.14);
}

.roi__label {
  font-size: 0.98rem;
}

.roi__value {
  flex: none;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
}

.roi__row--total .roi__label {
  font-weight: 700;
}

.roi__value--price {
  color: var(--lime);
  font-size: 1.15rem;
}

.section--paper .roi__value--price {
  color: var(--ink);
}

.roi__out {
  margin-top: 1.25rem;
  font-size: 1.02rem;
  line-height: 1.5;
}

.roi__out b {
  display: block;
  margin-top: 0.35rem;
  color: var(--lime);
}

.section--paper .roi__out b {
  color: var(--ink);
}

/* --- Лічильники програми ---------------------------------------------------- */

.program-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.program-stat {
  padding: clamp(1.1rem, 2vw, 1.5rem);
  background: var(--paper-2);
  border-radius: var(--radius);
  text-align: center;
}

.section--ink .program-stat {
  background: var(--ink-2);
}

.program-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.program-stat span {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-paper-mute);
}

.section--ink .program-stat span {
  color: var(--on-ink-mute);
}

/* Кількість уроків у шапці модуля */
.module__lessons {
  flex: none;
  padding: 0.3rem 0.7rem;
  background: rgba(28, 27, 27, 0.08);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* Позначка «теорія» / «практика» біля уроку */
.module__list i,
.skill__text i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--on-paper-mute);
  white-space: nowrap;
}

.section--ink .skill__text i {
  color: var(--lime);
}

/* --- Калькулятор доходу ------------------------------------------------------ */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: stretch;
}

.calc__controls {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--ink-2);
  border-radius: var(--radius-lg);
}

.section--paper .calc__controls {
  background: var(--paper-2);
}

.calc__field {
  display: flex;
  flex-direction: column;
}

.calc__label {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
}

.calc__value {
  margin-block: 0.5rem 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--lime);
}

.section--paper .calc__value {
  color: var(--ink);
}

/* Повзунок. Доріжка заливається лаймовим до положення ручки —
   значення видно навіть краєм ока. */
.calc__range {
  --fill: 0%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  margin: 0;
  background: linear-gradient(to right,
    var(--lime) 0 var(--fill),
    rgba(245, 247, 239, 0.16) var(--fill) 100%);
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.section--paper .calc__range {
  background: linear-gradient(to right,
    var(--ink) 0 var(--fill),
    rgba(28, 27, 27, 0.14) var(--fill) 100%);
}

.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  background: var(--lime);
  border: 4px solid var(--ink-2);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s var(--ease);
}

.calc__range::-webkit-slider-thumb:active {
  transform: scale(1.12);
  cursor: grabbing;
}

.calc__range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--lime);
  border: 4px solid var(--ink-2);
  border-radius: 50%;
  cursor: grab;
}

.calc__range:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 6px;
}

.calc__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--on-ink-mute);
}

.section--paper .calc__scale {
  color: var(--on-paper-mute);
}

.calc__hint {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--on-ink-mute);
}

.section--paper .calc__hint {
  color: var(--on-paper-mute);
}

.calc__hint b {
  color: var(--on-ink);
  font-weight: 600;
}

.section--paper .calc__hint b {
  color: var(--on-paper);
}

/* Результат — лаймова панель: саме заради неї сюди й дивляться */
.calc__out {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--lime);
  color: var(--ink);
  border-radius: var(--radius-lg);
}

.calc__cap {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.calc__money {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.calc__money i {
  font-style: normal;
  font-size: 0.32em;
  font-weight: 700;
  letter-spacing: 0;
}

.calc__time {
  margin-top: 1rem;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  line-height: 1.4;
}

.calc__time b {
  font-weight: 700;
}

.calc__sub {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.calc__warn {
  margin-top: 1.1rem;
  padding: 0.8rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.6;
}

.calc__notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.calc__note {
  padding-left: 1rem;
  border-left: 3px solid var(--lime);
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--on-ink-mute);
}

.section--paper .calc__note {
  color: var(--on-paper-mute);
}

.calc__note b {
  color: var(--on-ink);
  font-weight: 600;
}

.section--paper .calc__note b {
  color: var(--on-paper);
}

/* --- Тарифи ----------------------------------------------------------------- */

.tariffs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.tariff {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--ink-2);
  border: 1.5px solid rgba(245, 247, 239, 0.14);
  border-radius: var(--radius-lg);
}

.section--paper .tariff {
  background: var(--paper-2);
  border-color: rgba(28, 27, 27, 0.12);
}

/* Рекомендований тариф підсвічений — саме його беруть найчастіше */
.tariff--featured {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.tariff__flag {
  position: absolute;
  top: -0.75rem;
  left: clamp(1.5rem, 3vw, 2.25rem);
  padding: 0.35rem 0.8rem;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
}

.tariff__name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tariff__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.tariff__cur {
  font-size: 0.32em;
  font-weight: 700;
  letter-spacing: 0;
}

.tariff__note {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--on-ink-mute);
}

.tariff--featured .tariff__note {
  color: rgba(28, 27, 27, 0.65);
}

.tariff__list {
  flex: 1;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.tariff__list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.tariff__list li::before {
  position: absolute;
  left: 0;
  top: 0.05em;
  font-weight: 700;
}

.tariff__list .is-in::before {
  content: "✓";
  color: var(--lime);
}

.tariff--featured .tariff__list .is-in::before {
  color: var(--ink);
}

/* Чого в тарифі немає — показуємо чесно, а не ховаємо */
.tariff__list .is-out {
  opacity: 0.5;
}

.tariff__list .is-out::before {
  content: "—";
}

/* На лаймовій картці лаймова кнопка невидима — робимо її темною */
.tariff--featured .btn--primary {
  background: var(--ink);
  color: var(--lime);
}

.tariff--featured .btn--primary:hover {
  background: var(--ink-3);
}

.tariff--featured .btn--ghost:hover .btn__label {
  color: var(--lime);
}

.tariffs__after {
  max-width: 46rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--on-ink-mute);
}

.section--paper .tariffs__after {
  color: var(--on-paper-mute);
}

/* --- FAQ ------------------------------------------------------------------- */

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.faq__item {
  border-top: 1px solid rgba(28, 27, 27, 0.16);
}

.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  padding-block: 1.15rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.faq__sign {
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--on-paper-mute);
  transition: transform 0.3s var(--ease), color 0.2s var(--ease);
}

.faq__item.is-open .faq__sign {
  transform: rotate(45deg);
  color: var(--ink);
}

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq__item.is-open .faq__panel {
  grid-template-rows: 1fr;
}

.faq__panel > div {
  overflow: hidden;
}

.faq__a {
  padding-bottom: 1.25rem;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--on-paper-mute);
}

/* --- Фінальний блок -------------------------------------------------------- */

.final {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.final::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -55%;
  translate: -50% 0;
  width: min(1000px, 120vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(190, 255, 0, 0.22), transparent 60%);
  pointer-events: none;
}

.final__inner {
  position: relative;
}

.final__title {
  margin-bottom: 1.5rem;
}

.final__lead {
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

.final__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* --- Футер ----------------------------------------------------------------- */

.footer {
  padding-block: 3rem 6.5rem;
  background: var(--ink);
  border-top: 1px solid rgba(245, 247, 239, 0.14);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--on-ink-mute);
}

.footer__links a:hover {
  color: var(--lime);
}

.footer__legal {
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 247, 239, 0.12);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--on-ink-mute);
}

/* --- Липка панель на мобільних --------------------------------------------- */

.stickybar {
  /* панель темна — колір тексту задаємо явно, інакше він успадкує
     темний колір body і стане невидимим */
  color: var(--on-ink);
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 1.25rem);
  padding-bottom: max(0.7rem, env(safe-area-inset-bottom));
  background: rgba(28, 27, 27, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(245, 247, 239, 0.16);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}

.stickybar.is-visible {
  transform: none;
}

.stickybar__price {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.stickybar__price b {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* тільки прямий нащадок: інакше перекреслення чіпляє і <span data-price> усередині <b> */
.stickybar__price > span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-ink-mute);
}

.stickybar .btn {
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
}

/* 6. АДАПТИВ =============================================================== */

@media (max-width: 1080px) {
  .bonuses,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav {
    display: none;
  }
}

@media (max-width: 900px) {
  .offer,
  .author,
  .tariffs,
  .calc,
  .calc__notes,
  .module__body {
    grid-template-columns: minmax(0, 1fr);
  }

  /* кількість уроків ховаємо: у вузькій шапці модуля вона тисне заголовок */
  .module__lessons {
    display: none;
  }

  .upsell {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .skills {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare {
    grid-template-columns: minmax(0, 1fr);
  }

  .stickybar {
    display: flex;
  }

  /* нижня панель уже дає кнопку покупки — у шапці вона зайва */
  .header__cta {
    display: none;
  }
}

@media (max-width: 620px) {
  /* дешевше розмиття на слабких пристроях */
  .mesh__blob {
    filter: blur(44px);
  }

  /* Крапки під кадром, а не збоку: інакше вони з'їдають ширину знімка */
  .stack {
    flex-direction: column;
    gap: 0;
  }

  .stack__counter {
    display: none;
  }

  .stack__dots {
    flex-direction: row;
    justify-content: center;
    margin-top: 1.1rem;
  }

  .stack__dot.is-active {
    width: 24px;
    height: 8px;
  }

  .bonuses,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn {
    width: 100%;
  }

  .stickybar .btn,
  .header__cta {
    width: auto;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .compare__row {
    flex-direction: column;
    gap: 0.15rem;
  }

  .compare__row dd {
    text-align: left;
  }

  .offer__includes li {
    flex-direction: column;
    gap: 0.2rem;
  }
}

/* Повага до налаштувань руху */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee__track,
  .mesh__blob {
    animation: none;
  }
}

/* Друк — на випадок, якщо хтось збереже сторінку в PDF */
@media print {
  .header,
  .stickybar,
  .marquee {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ── Герой зі знімком ─────────────────────────────────────────────────────
   Знімок показаний повністю, без обрізання: горизонтальний кадр 1232×928.
   Низ кадру розчиняється маскою, а підкладка під ним тим же градієнтом
   переходить у колір паперу — тому шва не видно ні знизу, ні з боків. */
.hero--shot {
  display: block;
  align-items: initial;
  min-height: 0;
  padding-block: 0 clamp(2.25rem, 7vw, 3.75rem);
  background: var(--paper);
  color: var(--on-paper);
  overflow: visible;
}
.hero--shot::before { display: none; }

.hero__shot {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: clamp(0.5rem, 2vw, 1.5rem);
  background: linear-gradient(
    to bottom,
    var(--shot-bg) 0%,
    var(--shot-bg) 55%,
    color-mix(in srgb, var(--shot-bg) 45%, var(--paper)) 82%,
    var(--paper) 100%
  );
}
/* Світла димка під шапкою: логотип потрапляє на темне волосся і без неї
   майже не читається. */
.hero__shot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6.5rem;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(245, 247, 239, 0.94) 0%,
    rgba(245, 247, 239, 0.66) 42%,
    rgba(245, 247, 239, 0) 100%
  );
}

.hero__shot img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, rgba(0, 0, 0, 0.55) 86%, transparent 99%);
          mask-image: linear-gradient(to bottom, #000 60%, rgba(0, 0, 0, 0.55) 86%, transparent 99%);
}

/* На великих екранах кадр не розтягуємо на всю ширину — інакше він з'їдає
   весь перший екран і текст іде під зріз. Підкладка лишається на всю ширину. */
@media (min-width: 768px) {
  .hero__shot img { max-width: 32rem; }
}
@media (min-width: 1100px) {
  .hero__shot img { max-width: 38rem; }
}

.hero--shot .hero__copy { max-width: 40rem; }
.hero--shot .hero__title {
  text-transform: uppercase;
  letter-spacing: -0.015em;   /* капс у Unbounded ширший — трохи підтягуємо */
}
.hero--shot .hero__lead { color: var(--on-paper-mute); }
.hero--shot .hero__note { color: var(--on-paper-mute); }
.hero--shot .btn--ghost:hover .btn__label,
.hero--shot .btn--ghost:hover .btn__arrow { color: var(--paper); }

/* Шапка тепер лежить на світлому — темні написи замість світлих. */
.header .logo { color: var(--on-paper); }
.header .nav { color: var(--on-paper-mute); }
.header .nav a:hover { color: var(--on-paper); }

/* М'який з'їзд на короткий курс. Тонша за тарифні картки — щоб не перебивала
   основну пропозицію, а ловила лише тих, хто вже вирішив не купувати. */
.upsell--down {
  margin-top: clamp(2rem, 4vw, 3rem);
  background: transparent;
  border: 1.5px solid rgba(245, 247, 239, 0.16);
}
.upsell--down .upsell__tag {
  background: transparent;
  color: var(--lime);
  border: 1px solid var(--lime);
}

/* Підпис під іменем автора */
.author__role {
  margin-top: 0.6rem;
  margin-bottom: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-paper-mute);
}
.author__points li b {
  color: var(--on-paper);
  font-weight: 700;
}

/* --- Пакети послуг під калькулятором --------------------------------------
   Повзунок показує число, а картки — за що це число платять. Клік по картці
   ставить повзунок у відповідний діапазон. */

.calc__tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
}

.calc__tier {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
  text-align: left;
  background: var(--ink-2);
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.calc__tier:hover {
  border-color: rgba(190, 255, 0, 0.45);
}

.calc__tier.is-on {
  border-color: var(--lime);
  background: var(--ink-3);
}

.calc__tier-price {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.95rem + 0.7vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--lime);
}

.calc__tier-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--on-ink);
}

.calc__tier-text {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--on-ink-mute);
}

@media (max-width: 760px) {
  .calc__tiers {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Ролики: вертикальний формат 9:16 ---------------------------------------
   Фото на сайті — 2:3, а відео знімається під Reels і TikTok, тобто вужче
   й вище. Міняємо і пропорцію картки, і висоту сцени, інакше сусідні кадри
   вилізуть за межі блока. Ширину трохи зменшуємо: при 9:16 та сама ширина
   дала б завелику висоту на десктопі. */
.stack--video {
  --card-w: clamp(230px, 80vw, 330px);
  --card-h: calc(var(--card-w) * 16 / 9);
}
.stack--video .stack__card {
  aspect-ratio: 9 / 16;
}

/* --- Сторінки після оплати (thanks.html, payment-failed.html) --------------
   Один екран, усе по центру, нічого зайвого: людина щойно заплатила або
   щойно не змогла — їй потрібна одна дія, а не сторінка з розділами. */

.status {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(2rem, 6vw, 4rem);
  background: var(--paper);
  color: var(--on-paper);
  overflow: hidden;
}

.status--dark {
  background: var(--ink-deep);
  color: var(--on-ink);
}
.status--dark .mesh { --blob: var(--paper); }

.status__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 34rem;
  text-align: center;
}

.status__logo {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  /* базовий .logo світлий — він розрахований на темну шапку */
  color: var(--on-paper);
}
.status--dark .status__logo { color: var(--on-ink); }

.status__photo {
  width: clamp(126px, 33vw, 168px);
  margin-bottom: clamp(1.1rem, 2.5vw, 1.5rem);
  border-radius: var(--radius-lg);
}

/* Знак оклику на сторінці невдалої оплати. Не червоний хрест: людина нічого
   не зламала, це просто не пройшов платіж. */
/* Кадр із першого екрана великого курсу — горизонтальний, тож рамка ширша
   за вертикальну з маленького сайту. */
.status__photo--wide {
  width: clamp(240px, 76vw, 380px);
  aspect-ratio: 1600 / 1091;
}

.status__sign {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 1.5rem;
  color: var(--lime);
  border: 1.5px solid rgba(190, 255, 0, 0.35);
  border-radius: 50%;
}

.status__badge {
  margin-bottom: 1.1rem;
}
.status__badge--muted {
  background: transparent;
  color: var(--lime);
  border: 1px solid rgba(190, 255, 0, 0.4);
}

.status__title {
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 1.2rem + 4vw, 3.6rem);
}

.status__lead {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
}
.status--dark .status__lead { color: rgba(245, 247, 239, 0.82); }
.status__lead b { font-weight: 700; }

.status__text {
  margin-top: clamp(1.5rem, 3.5vw, 2rem);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--on-paper-mute);
}
.status--dark .status__text { color: var(--on-ink-mute); }

/* Головна дія сторінки — робимо її помітно більшою за звичайну кнопку. */
.status__cta {
  width: 100%;
  max-width: 26rem;
  margin-top: 0.5rem;
  padding: 1.25rem 2rem;
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.18rem);
  border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(190, 255, 0, 0.6);
}
.status--dark .status__cta { box-shadow: 0 10px 34px -12px rgba(190, 255, 0, 0.45); }

.status__note {
  margin-top: 1.5rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--on-paper-mute);
}
.status--dark .status__note { color: var(--on-ink-mute); }
.status__note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.status__note a:hover { color: var(--lime-dim); }
.status--dark .status__note a:hover { color: var(--lime); }

.status__back {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status__back a { color: var(--on-paper-mute); }
.status__back a:hover { color: var(--on-paper); }


/* --- Юридичні сторінки (оферта, політика) ---------------------------------
   Читабельність важливіша за красу: вузька колонка, спокійний кегль,
   помітні місця, які власниця має заповнити своїми даними. */

.doc {
  background: var(--paper);
  color: var(--on-paper);
  padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 8vw, 5rem);
}

.doc__inner {
  max-width: 44rem;
}

.doc__logo {
  color: var(--on-paper);
  margin-bottom: 1.5rem;
}

.doc__back {
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.doc__back a { color: var(--on-paper-mute); }
.doc__back a:hover { color: var(--on-paper); }
.doc__back--bottom {
  margin-top: 3rem;
  margin-bottom: 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(28, 27, 27, 0.12);
}

.doc__title {
  margin-bottom: 0.9rem;
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem);
  line-height: 1.15;
}

.doc__meta {
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--on-paper-mute);
}

.doc__note {
  margin-bottom: 2.5rem;
  padding: clamp(1rem, 2.5vw, 1.4rem);
  background: var(--paper-2);
  border-left: 3px solid var(--lime);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.doc__h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.doc p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.65;
}
.doc p b { font-weight: 700; }

.doc__list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  list-style: none;
}
.doc__list li {
  position: relative;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.doc__list li::before {
  content: "—";
  position: absolute;
  left: -1.1rem;
  color: var(--lime-dim);
}

/* Місця під власні дані. Спеціально помітні: поки вони жовті — сторінку
   не можна публікувати. */
.doc__fill {
  padding: 0.05em 0.35em;
  background: #fff3a3;
  color: var(--ink);
  font-weight: 600;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.doc__req {
  margin-top: 1rem;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  background: var(--paper-2);
  border-radius: var(--radius-lg);
}
.doc__req p { margin-bottom: 0.5rem; }
.doc__req p:last-child { margin-bottom: 0; }
.doc__req a {
  color: var(--on-paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Таблиця «навіщо збираємо» в політиці. На телефоні перетворюється
   на список карток — три колонки в 375 px не читаються. */
.doc__table {
  width: 100%;
  margin: 0 0 1.5rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.doc__table th,
.doc__table td {
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
  border-bottom: 1px solid rgba(28, 27, 27, 0.12);
}
.doc__table th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-paper-mute);
  border-bottom-color: rgba(28, 27, 27, 0.24);
}

@media (max-width: 640px) {
  .doc__table thead { display: none; }
  .doc__table,
  .doc__table tbody,
  .doc__table tr,
  .doc__table td { display: block; width: 100%; }
  .doc__table tr {
    margin-bottom: 0.75rem;
    padding: 0.9rem 1rem;
    background: var(--paper-2);
    border-radius: var(--radius);
  }
  .doc__table td { padding: 0; border: 0; }
  .doc__table td:first-child {
    margin-bottom: 0.4rem;
    font-weight: 700;
  }
  .doc__table td:nth-child(2)::before { content: "Дані: "; color: var(--on-paper-mute); }
  .doc__table td:nth-child(3)::before { content: "Підстава: "; color: var(--on-paper-mute); }
  .doc__table td:nth-child(2),
  .doc__table td:nth-child(3) { font-size: 0.86rem; }
}
