/* =====================================================================
   10 дни iPhone Filmmaker — лендинг (тестова концепция)
   Цветове и шрифтове се сменят от променливите в :root.
   ===================================================================== */

@font-face {
  font-family: "Onest";
  src: url("assets/fonts/Onest-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #050505;
  --bg-2: #0c0b0a;
  --card: #111010;
  --line: rgba(242, 242, 240, 0.10);
  --line-2: rgba(242, 242, 240, 0.18);
  --ink: #f2f2f0;
  --ink-2: #c9c7c2;
  --muted: #8a8780;

  /* Палитра (червено → оранжево). Сменя се само тук:
     hex за текст/градиенти, RGB за сияния и прозрачности. */
  --red: #d42718;      /* червената точка на Hustle Media */
  --ember: #e8361e;    /* основен акцент */
  --amber: #ff6b2c;    /* оранжево: край на градиентите, номера, малки надписи */
  --red-rgb: 212 39 24;
  --ember-rgb: 232 54 30;
  --glow-rgb: 240 72 36;    /* сияния, рамки при ховър */
  --amber-rgb: 255 107 44;
  --grad-start: #d42718;    /* начало на градиента в „iPhone“ */
  --btn-start: #c41f10;     /* основният бутон: от → до */
  --btn-end: #f2561f;
  --warm-dark: #1e0e0a;     /* тъмен фон на картите (видео, ховър, финален проект) */

  --todo: #f5c542;     /* цвят на бележките „Добави“ */

  --font-display: "Montserrat", "Onest", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 22px;
  --section: clamp(84px, 11vw, 152px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Дискретен блед грид върху целия фон */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(242,242,240,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242,242,240,0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 85%);
}

/* Светли линии, които текат по грида (рисува ги script.js, т. 5) */
.grid-flow {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 85%);
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
b, strong { font-weight: 650; color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

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

.muted { color: var(--muted); }
.accent {
  background: linear-gradient(90deg, var(--ember), var(--amber));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.dot {
  display: inline-block;
  width: .6em; height: .6em;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 14px rgb(var(--red-rgb) / .7);
  flex: none;
}

/* ----------------------------- Типография ----------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: -0.02em;
  font-size: clamp(48px, 8.4vw, 124px);
  margin: 0;
}
.display--md { font-size: clamp(36px, 6vw, 88px); line-height: 1.02; }
.display__accent {
  background: linear-gradient(95deg, var(--grad-start) 0%, var(--ember) 35%, var(--amber) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.015em;
  font-size: clamp(32px, 5vw, 64px);
  margin: 0;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  font-size: clamp(24px, 3vw, 36px);
  margin: 0;
}

.eyebrow, .kicker, .label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.kicker { color: var(--amber); }

.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink); }

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

.btn {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 650 16px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 58px; padding: 0 30px; font-size: 17px; }
.btn--block { width: 100%; }

.btn--primary {
  color: #fff;
  background: linear-gradient(100deg, var(--btn-start) 0%, var(--ember) 55%, var(--btn-end) 100%);
  box-shadow: 0 10px 34px -8px rgb(var(--ember-rgb) / .6), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--primary:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 18px 50px -8px rgb(var(--ember-rgb) / .85), inset 0 1px 0 rgba(255,255,255,.25); }

/* Бутоните под видеото са еднакво големи; главният леко „диша“, за да се отличава,
   а при ховър се уголемява (виж .btn--primary:hover) */
.hero .cta-row .btn { min-width: 220px; }
.hero .cta-row .btn--primary { animation: cta-breathe 2.8s ease-in-out infinite; }
.hero .cta-row .btn--primary:hover { animation: none; }
@keyframes cta-breathe {
  0%, 100% { scale: 1;    box-shadow: 0 10px 34px -8px rgb(var(--ember-rgb) / .6),  inset 0 1px 0 rgba(255,255,255,.25); }
  50%      { scale: 1.035; box-shadow: 0 14px 54px -6px rgb(var(--ember-rgb) / .85), inset 0 1px 0 rgba(255,255,255,.25); }
}
@media (prefers-reduced-motion: reduce) { .hero .cta-row .btn--primary { animation: none; } }

.btn--ghost { color: var(--ink); border-color: var(--line-2); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: rgba(242,242,240,.4); background: rgba(255,255,255,.06); }

/* --------------------------- Бележки „Добави“ --------------------------- */

.todo {
  display: inline-block;
  font: 600 12px/1.35 var(--font-body);
  letter-spacing: .02em;
  text-transform: none;
  color: var(--todo);
  background: rgba(245, 197, 66, .08);
  border: 1px dashed rgba(245, 197, 66, .6);
  border-radius: 6px;
  padding: 3px 8px;
  vertical-align: middle;
}
.todo::before { content: "✎ "; }
.todo--block { display: block; padding: 10px 12px; font-size: 13px; margin: 14px 0 0; }
body.hide-todo .todo { display: none; }

/* --------------------------- Тестова лента --------------------------- */

.testbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 8px var(--gutter);
  font-size: 13px;
  color: #1a1405;
  background: var(--todo);
  text-align: center;
}
.testbar b { color: inherit; }
.testbar__toggle {
  font: 600 12px/1 var(--font-body);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.35);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

/* ------------------------------ Header ------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5,5,5,.72);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand img { height: 15px; width: auto; }
.site-login { margin-left: 8px; color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 8px 4px; }
.site-login:hover { color: var(--ink); }
.site-login + .btn { margin-left: 0; }
.test-dialog .btn + .btn { margin-top: 10px; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { text-decoration: none; font-size: 14px; color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); }

/* ------------------------------ Glows ------------------------------ */

.glow {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
}
.glow--hero {
  width: min(900px, 120vw); height: min(900px, 120vw);
  right: -18%; top: -12%;
  background: radial-gradient(circle at 40% 45%, rgb(var(--ember-rgb) / .55), rgb(var(--red-rgb) / .28) 35%, rgb(var(--amber-rgb) / .08) 60%, transparent 70%);
}
.glow--project {
  width: 620px; height: 620px; right: -200px; bottom: -320px;
  background: radial-gradient(circle, rgb(var(--glow-rgb) / .5), rgb(var(--red-rgb) / .18) 45%, transparent 70%);
}
.glow--offer {
  width: min(1000px, 140vw); height: 700px;
  left: 50%; top: 50%; transform: translate(-30%, -50%);
  background: radial-gradient(ellipse at center, rgb(var(--ember-rgb) / .38), rgb(var(--red-rgb) / .16) 40%, transparent 70%);
}
.glow--final {
  width: min(1100px, 150vw); height: 520px;
  left: 50%; bottom: -260px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgb(var(--glow-rgb) / .55), rgb(var(--red-rgb) / .25) 40%, transparent 70%);
}

/* ------------------------------- Hero ------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 3.6vw, 52px) 0 clamp(48px, 6vw, 80px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "video" "result";
  row-gap: clamp(26px, 3vw, 40px);
}
.hero__head { grid-area: head; container-type: inline-size; }
/* Заглавието се мащабира спрямо колоната */
.hero__head .display { font-size: clamp(40px, 14.2cqi, 124px); }
.hero__video { grid-area: video; margin: 0; }
.hero__result { grid-area: result; }
.hero__result .label { margin: 34px 0 12px; }

/* Десктоп: заглавие на един ред, голямо видео в центъра, цена и CTA под него */
@media (min-width: 901px) {
  .hero__head { text-align: center; }
  .hero__head br { display: none; }
  .hero__head .display { font-size: clamp(40px, 6.1cqi, 90px); white-space: nowrap; }
  .hero__head .hero__lead { margin: 18px auto 0; max-width: 62ch; font-size: 18px; }
  .glow--hero { right: auto; left: 50%; top: 8%; transform: translateX(-50%); width: min(1300px, 110vw); height: 900px; }

  .hero__video {
    justify-self: center;
    /* Колкото може по-широко, но да се вижда цялото на първия екран */
    width: min(100%, max(680px, min(1120px, (100svh - 360px) * 16 / 9)));
  }

  .hero__result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "price cta" "label label" "list list";
    align-items: center;
    column-gap: 40px;
    max-width: 1120px; width: 100%; justify-self: center;
    padding-top: 8px;
  }
  .hero__result .price-row { grid-area: price; margin: 0; }
  .hero__result .cta-row { grid-area: cta; justify-content: flex-end; }
  .hero__result .label { grid-area: label; margin: 40px 0 12px; }
  .hero__result .result-list { grid-area: list; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
}

.hero__lead { max-width: 40ch; margin: 22px 0 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }

.video-slot {
  position: relative;
  aspect-ratio: var(--ratio, 4/5);
  /* --ratio-mobile: друга пропорция за телефон (по желание) */
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 20%, rgb(var(--glow-rgb) / .28), transparent 60%),
    linear-gradient(160deg, var(--warm-dark), #0a0908 60%);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -40px rgb(var(--ember-rgb) / .45);
}
.video-slot video { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; background: #000; }
.video-slot__empty {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px; text-align: center;
}
.video-slot.is-empty video { display: none; }
.video-slot.is-empty .video-slot__empty { display: flex; }
.video-slot__play {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line-2);
  position: relative;
}
.video-slot__play::after {
  content: ""; position: absolute; left: 31px; top: 25px;
  border-left: 20px solid var(--ink);
  border-top: 13px solid transparent; border-bottom: 13px solid transparent;
}
.video-slot__label { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; font-size: 14px; letter-spacing: .04em; max-width: 22ch; }

.hero__caption {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; font-size: 14px; color: var(--muted);
}

.result-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.result-list li {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.result-list__n { font: 600 13px/1.9 var(--font-display); color: var(--amber); }

.price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 18px; }
.price { display: inline-flex; align-items: baseline; gap: 14px; }
.price__now { font: 800 clamp(44px, 5vw, 60px)/1 var(--font-display); letter-spacing: -0.02em; }
.price__was { font: 500 clamp(20px, 2vw, 26px)/1 var(--font-display); color: var(--muted); text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.price--xl .price__now { font-size: clamp(64px, 8vw, 96px); }
.price--sm .price__now { font-size: 26px; }
.price--sm .price__was { font-size: 15px; }
.price__note { font-size: 14px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.facts {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(48px, 6vw, 80px);
  margin-bottom: 0;
  padding-top: 0; padding-bottom: 0;
}
.facts li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 22px 0;
  border-top: 1px solid var(--line-2);
}
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.facts b { font: 800 clamp(34px, 4vw, 52px)/1 var(--font-display); }
.facts span { color: var(--muted); font-size: 15px; }

/* ----------------------------- Секции ----------------------------- */

.section { position: relative; isolation: isolate; padding: var(--section) 0; }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }

.about { border-top: 1px solid var(--line); padding-top: clamp(64px, 8vw, 112px); }
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.about__text p { margin: 0 0 18px; color: var(--ink-2); }
.about__text .lead { color: var(--ink); }
.tools { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.tools li { font-size: 14px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }

/* Програма */
.program { background: linear-gradient(to bottom, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent); }
.modules {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.module {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 32px);
  position: relative; isolation: isolate; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s ease, box-shadow .35s ease;
}
/* Оранжев градиент при ховър — слой отдолу, за да се анимира плавно */
.module::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 0% 0%, rgb(var(--glow-rgb) / .26), transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgb(var(--red-rgb) / .22), transparent 60%),
    linear-gradient(150deg, var(--warm-dark), #121010 65%);
  opacity: 0; transition: opacity .35s ease;
}
.module:hover { border-color: rgb(var(--glow-rgb) / .55); }
.module:hover::before { opacity: 1; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .module:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 30px 80px -40px rgb(var(--ember-rgb) / .55);
    z-index: 1;
  }
}
.module__head { display: flex; align-items: flex-start; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.module__n {
  font: 800 clamp(34px, 3.4vw, 46px)/0.9 var(--font-display);
  background: linear-gradient(180deg, var(--amber), var(--ember) 60%, var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  min-width: 2ch;
}
.module__title { margin: 2px 0 0; font: 700 clamp(17px, 1.6vw, 20px)/1.2 var(--font-display); text-transform: uppercase; letter-spacing: -0.005em; }

.lessons { list-style: none; margin: 0; padding: 0; }
.lessons li {
  display: grid; grid-template-columns: 52px 1fr; gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px; line-height: 1.45; color: var(--ink-2);
}
.lessons li:last-child { border-bottom: 0; padding-bottom: 0; }
.lessons__n { font: 600 13px/1.75 var(--font-display); color: var(--muted); letter-spacing: .02em; }

.project {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: 16px;
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 64px);
  padding: clamp(26px, 4vw, 52px);
  border-radius: var(--radius);
  border: 1px solid rgb(var(--glow-rgb) / .35);
  background: linear-gradient(140deg, var(--warm-dark), #0c0908 60%);
}
.project__steps { list-style: none; margin: 0; padding: 0; }
.project__steps li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.project__steps li:first-child { padding-top: 0; }
.project__steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.project__steps b { display: block; font-size: 17px; margin-bottom: 2px; }
.project__steps span { color: var(--ink-2); font-size: 15px; }
.project__steps .lessons__n { color: var(--amber); }

.center-cta { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }

/* Бонуси */
.bonus-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bonus {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
}
.bonus--wide { grid-column: span 2; background: radial-gradient(ellipse at 100% 0%, rgb(var(--glow-rgb) / .22), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)); }
.bonus__n { font: 700 13px/1 var(--font-display); color: var(--amber); letter-spacing: .06em; }
.bonus__title { font: 700 18px/1.25 var(--font-display); text-transform: uppercase; margin: 18px 0 10px; }
.bonus p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* Оферта */
.offer { overflow: hidden; border-top: 1px solid var(--line); }
.offer__grid { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.offer__copy .h2 { font-size: clamp(30px, 4.2vw, 56px); max-width: 15ch; }
.offer__copy .lead { margin-top: 24px; color: var(--ink-2); max-width: 36ch; }

.offer-card {
  padding: clamp(26px, 3vw, 40px);
  border-radius: 28px;
  background: rgba(14, 12, 11, .82);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border: 1px solid rgb(var(--glow-rgb) / .35);
  box-shadow: 0 50px 140px -50px rgb(var(--ember-rgb) / .7);
}
.offer-card__name { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 700 14px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.offer-card__save { margin: 8px 0 24px; color: var(--amber); font-weight: 600; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.checklist { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line); }
.checklist li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 19px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--ember); border-bottom: 2px solid var(--ember);
  transform: rotate(-45deg);
}
.offer-card__terms { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.faq__list { border-top: 1px solid var(--line-2); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0;
  font-size: clamp(17px, 1.6vw, 20px); font-weight: 600;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform .25s ease, background-color .25s ease;
}
.qa[open] summary::after { transform: rotate(45deg); background-color: rgb(var(--ember-rgb) / .2); border-color: rgb(var(--ember-rgb) / .6); }
.qa__a { padding: 0 52px 24px 0; color: var(--ink-2); }
.qa__a p { margin: 0 0 10px; }

/* Финален CTA */
.final { position: relative; isolation: isolate; overflow: hidden; padding: var(--section) 0 calc(var(--section) * 1.1); border-top: 1px solid var(--line); text-align: center; }
.final__in { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.final__cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer__in { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; }
.site-footer__brand img { height: 16px; width: auto; }
.site-footer__brand p { margin: 10px 0 0; }
.site-footer__nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer__nav a { text-decoration: none; color: var(--ink-2); }
.site-footer__nav a:hover { color: var(--ink); }
.site-footer__legal { grid-column: 1 / -1; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Мобилна лента */
.sticky-cta { display: none; }

/* Тестов прозорец */
.test-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgb(var(--glow-rgb) / .4);
  background: #0e0c0b;
  color: var(--ink);
  box-shadow: 0 40px 120px -30px rgb(var(--ember-rgb) / .6);
}
.test-dialog::backdrop { background: rgba(0,0,0,.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.test-dialog p { color: var(--ink-2); margin: 12px 0 24px; }
.test-dialog .kicker { margin: 0 0 10px; }

/* ============================== Адаптивност ============================== */

@media (max-width: 1080px) {
  .site-nav { display: none; }
  .site-header .btn { margin-left: 0; }
  .site-login { margin-left: auto; }
  .bonus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bonus--wide { grid-column: span 2; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "video" "result";
    row-gap: 28px;
  }
  .hero__video { max-width: 520px; width: 100%; justify-self: center; }
  .hero__video .video-slot { aspect-ratio: var(--ratio-mobile, var(--ratio, 4/5)); }
  .hero__lead { margin-top: 20px; }

  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }

  .about__grid,
  .faq__grid,
  .offer__grid,
  .project { grid-template-columns: minmax(0, 1fr); }

  .modules { grid-template-columns: minmax(0, 1fr); }
  .offer-card { max-width: 520px; }
}

@media (max-width: 600px) {
  :root { --radius: 18px; }

  .site-header__in { height: 58px; }
  .eyebrow { font-size: 11px; letter-spacing: .08em; }
  .brand img { height: 12px; }

  .display--md { font-size: clamp(30px, 9.6vw, 48px); }


  .cta-row .btn { width: 100%; }

  .facts li { padding: 18px 0; gap: 8px; }
  .facts li + li { padding-left: 16px; }
  .facts li:nth-child(3) { padding-left: 0; }

  .bonus-grid { grid-template-columns: minmax(0, 1fr); }
  .bonus--wide { grid-column: auto; }
  .bonus { padding: 22px; }

  .lessons li, .project__steps li { grid-template-columns: 44px 1fr; font-size: 15px; }
  .qa__a { padding-right: 0; }

  .final__cta { flex-direction: column; gap: 18px; }
  .final__cta .btn { width: 100%; }

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

  /* Мобилна лента с цена */
  .sticky-cta {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 18px;
    border-radius: 999px;
    background: rgba(16, 13, 12, .9);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid rgb(var(--glow-rgb) / .35);
    box-shadow: 0 20px 50px -10px rgba(0,0,0,.8);
    transform: translateY(140%);
    transition: transform .35s ease;
  }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta .price { gap: 8px; }
  body { padding-bottom: 84px; }
}

/* ------------------------- Появяване при скрол ------------------------- */
/* script.js, т. 6 добавя data-reveal; използваме translate, за да не пречи на transform при ховър */
[data-reveal] {
  opacity: 0;
  translate: 0 22px;
  transition:
    opacity .7s ease var(--reveal-delay, 0ms),
    translate .8s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; translate: 0 0; }
@media (max-width: 600px) { [data-reveal] { translate: 0 14px; } }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; translate: none; transition: none; } }
@media print { [data-reveal] { opacity: 1 !important; translate: none !important; } }
