/* =====================================================================
   TIMMONTAGE — стили. Mobile-first: базовые стили для телефона,
   ниже @media — для планшета и компьютера.
   ===================================================================== */
:root {
  --bg: #060709;
  --panel: #0d0f14;
  --panel-2: #131720;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef1f6;
  --muted: #959cab;
  --cyan: #22e6ff;
  --cyan-ink: #001318;
  --magenta: #ff2bd6;
  --radius: 20px;
  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Onest", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 7vw, 52px); }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: var(--header-h); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.container--narrow { max-width: 880px; }
.mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.02em; }
.text-cyan { color: var(--cyan); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--cyan); color: var(--cyan-ink);
  font: 700 16px/1 var(--f-body); white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(34, 230, 255, .4), 0 10px 30px -10px rgba(34, 230, 255, .6);
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(34, 230, 255, .6), 0 16px 40px -10px rgba(34, 230, 255, .8); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 60px; font-size: 17px; padding: 0 30px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.btn__arrow { transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Чип «REC» */
.rec-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .45); border: 1px solid var(--line-2);
  font: 500 12px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.rec-chip i { width: 8px; height: 8px; border-radius: 50%; background: #ff3348; box-shadow: 0 0 10px #ff3348; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* Тег секции — как подпись дорожки */
.tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan);
}
.tag::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(6, 7, 9, .78); border-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 16px/1 var(--f-display); letter-spacing: .02em; }

/* Телефон и планшет: вместо логотипа и кнопки — закреплённая навигация по разделам */
@media (max-width: 959px) {
  :root { --header-h: 54px; }
  .header { background: rgba(6, 7, 9, .86); border-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .header__inner { padding-inline: 0; }
  .header .logo, .header .btn--sm { display: none; }
  .header__nav {
    display: flex; align-items: center; gap: 6px; width: 100%; height: 100%;
    padding: 0 16px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
  }
  .header__nav::-webkit-scrollbar { display: none; }
  .header__nav a {
    flex: none; padding: 8px 13px; border-radius: 999px; white-space: nowrap;
    font: 600 14px/1 var(--f-body); color: var(--muted);
    border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
    transition: color .2s, background .2s, border-color .2s;
  }
  .header__nav a.is-active { color: var(--cyan-ink); background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 16px -4px rgba(34, 230, 255, .7); }
  .header__nav a:last-child { margin-right: 16px; }
}
@media (min-width: 960px) {
  .header__nav-home { display: none; }
}

/* ---------- 1. HERO ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + 24px) 0 28px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(420px 320px at 100% 8%, rgba(34, 230, 255, .16), transparent 70%),
    radial-gradient(380px 300px at 0% 55%, rgba(255, 43, 214, .12), transparent 70%);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; display: none; }
.hero__bgvideo { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,7,9,.7) 0%, rgba(6,7,9,.45) 18%, rgba(6,7,9,.72) 40%, rgba(6,7,9,.88) 60%, rgba(6,7,9,.97) 80%, var(--bg) 100%);
}
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__content { display: flex; flex-direction: column; align-items: flex-start; }
.hero__title { margin-top: 18px; font-size: clamp(28px, 8.4vw, 72px); font-weight: 800; line-height: 1.06; }
.hero__sub { margin-top: 16px; color: #c3c8d3; font-size: 16px; max-width: 560px; }
.hero__actions { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 22px; }
.hero__actions .btn { width: 100%; }

/* Плеер с кейсом */
.monitor {
  border-radius: 20px; overflow: hidden;
  background: #0a0c10; border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(34, 230, 255, .35);
}
.monitor__bar { display: flex; justify-content: space-between; padding: 10px 14px; font: 500 12px/1 var(--f-mono); color: var(--muted); border-bottom: 1px solid var(--line); }
.monitor__bar .mono { color: var(--cyan); }
.monitor__screen { aspect-ratio: 9 / 16; background: #000; }
.monitor__screen video { width: 100%; height: 100%; object-fit: cover; }
.monitor__scrub { height: 4px; background: rgba(255,255,255,.08); }
.monitor__scrub i { display: block; height: 100%; width: 0; background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }

/* Сцена: фото автора + плеер + плавающие иконки */
.stage {
  position: relative; width: 100%; aspect-ratio: 1 / 1.08; container-type: inline-size;
}
.stage__panel {
  position: absolute; inset: 15% 0 0 0; border-radius: 26px; overflow: hidden;
  background:
    radial-gradient(70% 60% at 30% 100%, rgba(34, 230, 255, .22), transparent 70%),
    radial-gradient(60% 55% at 100% 0%, rgba(255, 43, 214, .2), transparent 70%),
    linear-gradient(160deg, #11151d, #0a0c11);
  border: 1px solid var(--line-2);
}
.stage__word {
  position: absolute; left: 50%; top: 6%; transform: translateX(-50%);
  font: 800 26cqw/1 var(--f-display); letter-spacing: -0.03em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .09);
}
.stage__person {
  position: absolute; left: -7%; bottom: 0; height: 76%; width: auto; max-width: none;
  /* плечи в исходном фото обрезаны кадром — плавно растворяем края слева/справа и снизу */
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 16%, #000 86%, transparent 100%),
    linear-gradient(180deg, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 16%, #000 86%, transparent 100%),
    linear-gradient(180deg, #000 78%, transparent 100%);
  mask-composite: intersect;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45));
}
.stage__tile {
  position: absolute; display: grid; place-items: center;
  width: 15%; aspect-ratio: 1; border-radius: 26%;
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255,255,255,.35);
  animation: tile-float 6s ease-in-out infinite;
}
.stage__tile svg { width: 46%; height: 46%; fill: currentColor; }
.stage__tile--1 { top: 13%; right: 30%; background: linear-gradient(145deg, #ff5ae0, #c80fa6); color: #fff; transform: rotate(-12deg); --r: -12deg; }
.stage__tile--2 { top: 4%; right: 13%; width: 17%; background: linear-gradient(145deg, #ffffff, #d9e3ea); color: #0b1016; transform: rotate(6deg); --r: 6deg; animation-delay: -2s; }
.stage__tile--2 img { width: 62%; height: auto; }
.stage__tile--3 { top: 17%; right: -1%; background: linear-gradient(145deg, #5af0ff, #0aa9c4); color: #00141a; transform: rotate(14deg); --r: 14deg; animation-delay: -4s; }
.stage__tile--3 svg { fill: none; }
@keyframes tile-float { 50% { transform: translateY(-8px) rotate(var(--r)); } }
.stage .monitor {
  position: absolute; right: 1%; bottom: 3%; width: 36%;
  border-radius: 14px; transform: rotate(3deg);
}
.stage .monitor__bar { padding: 7px 9px; font-size: 9px; }

/* Телефон и планшет: сцена отдельным блоком между описанием и ценой */
@media (max-width: 959px) {
  .hero__grid { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
  .hero__content { display: contents; }
  .stage { order: 4; align-self: center; max-width: 440px; margin-top: 22px; }
  .offer { order: 5; }
  .hero__actions { order: 6; }
}

/* ---------- Блок цены ---------- */
.offer { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; width: 100%; }
.price { position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; }
.price__row { display: flex; align-items: center; gap: 10px; }
.price__old {
  position: relative; font: 600 20px/1 var(--f-display); color: var(--muted);
}
.price__old::after {
  content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 3px; border-radius: 2px;
  background: var(--magenta); transform: rotate(-8deg); box-shadow: 0 0 8px rgba(255, 43, 214, .7);
}
.price__badge {
  padding: 5px 9px; border-radius: 8px;
  background: var(--magenta); color: #fff; font: 700 14px/1 var(--f-display);
  box-shadow: 0 0 20px rgba(255, 43, 214, .5);
}
.price__new {
  margin-top: 6px; font: 800 clamp(48px, 15vw, 96px)/1 var(--f-display); letter-spacing: -0.04em;
  color: var(--cyan); text-shadow: 0 0 30px rgba(34, 230, 255, .45);
  white-space: nowrap;
}
/* Стикер-скотч */
.price__sticker {
  position: relative; margin-top: 12px; margin-left: 6px;
  padding: 8px 16px; transform: rotate(-4deg);
  background: #fff3a8; color: #17140a;
  font: 700 15px/1.2 var(--f-body); white-space: nowrap;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .6);
  clip-path: polygon(0 4%, 3% 0, 6% 6%, 9% 0, 100% 2%, 98% 50%, 100% 98%, 97% 100%, 94% 94%, 91% 100%, 0 97%, 2% 50%);
}
.price__sticker s { opacity: .6; }
.price__sticker span { color: #c4009f; }
.price__sticker::before, .price__sticker::after {
  content: ""; position: absolute; top: -6px; width: 38px; height: 16px;
  background: rgba(255, 255, 255, .35); transform: rotate(-12deg);
}
.price__sticker::before { left: -10px; }
.price__sticker::after { right: -12px; top: auto; bottom: -6px; transform: rotate(-12deg); }
.price--center { align-items: center; }

/* ---------- Таймер-таймкод ---------- */
.timer-box { width: 100%; }
.timer-box__label { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.timer-box--center { text-align: center; }
.timer {
  display: inline-flex; align-items: flex-start; gap: 4px;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(0, 0, 0, .55); border: 1px solid rgba(34, 230, 255, .3);
  box-shadow: inset 0 0 20px rgba(34, 230, 255, .06);
  font-family: var(--f-mono);
}
.timer > i { font-style: normal; color: var(--cyan); opacity: .6; font-size: 26px; line-height: 34px; }
.timer__cell { display: flex; flex-direction: column; align-items: center; min-width: 44px; }
.timer__cell span { font-size: 30px; line-height: 34px; font-weight: 700; color: var(--cyan); font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(34, 230, 255, .5); }
.timer__cell small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

/* ---------- Таймлайн ---------- */
.timeline {
  position: relative; margin-top: 28px; padding: 10px 10px 12px;
  border-radius: 14px; background: rgba(13, 15, 20, .9); border: 1px solid var(--line);
  overflow: hidden;
}
.timeline__ruler {
  position: relative; height: 16px; margin-left: 30px; margin-bottom: 6px;
  font: 500 9px/1 var(--f-mono); color: var(--muted);
  background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 5%) bottom / 100% 5px no-repeat;
}
.timeline__ruler span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.timeline__ruler span:first-child { transform: none; }
.timeline__ruler span:last-child { transform: translateX(-100%); }
.timeline__ruler span:nth-child(even) { display: none; }
.timeline__track { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.timeline__track b { width: 22px; flex: none; font: 700 10px/1 var(--f-mono); color: var(--muted); }
.lane { position: relative; flex: 1; height: 26px; }
.lane span { position: absolute; top: 0; bottom: 0; border-radius: 6px; overflow: hidden; white-space: nowrap; }
.lane--video span {
  background: linear-gradient(180deg, rgba(34,230,255,.9), rgba(0,170,200,.85));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  font: 600 9px/26px var(--f-mono); color: var(--cyan-ink); padding-left: 6px;
}
.lane--text { height: 20px; }
.lane--text span {
  background: rgba(255, 43, 214, .22); border: 1px solid rgba(255, 43, 214, .7);
  font: 600 9px/18px var(--f-mono); color: #ffc2f3; padding-left: 5px; letter-spacing: .06em;
}
.lane--audio { display: flex; align-items: center; gap: 2px; height: 24px; padding: 0 4px; border-radius: 6px; background: rgba(139, 123, 255, .1); border: 1px solid rgba(139, 123, 255, .35); }
.lane--audio i { flex: 1; min-width: 1px; border-radius: 1px; background: #8b7bff; }
.timeline__playhead {
  position: absolute; top: 6px; bottom: 6px; left: -1px; width: 2px;
  background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.8); will-change: transform;
}
.timeline__playhead i { position: absolute; top: 0; left: 50%; width: 12px; height: 12px; transform: translateX(-50%); background: #fff; clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }

/* ---------- Секции ---------- */
.section { padding: 72px 0 0; }
.section--last { padding-bottom: 24px; }
.section-head { margin-bottom: 28px; max-width: 760px; }
.section-head__lead { margin-top: 14px; color: var(--muted); }

/* ---------- 2. Для кого ---------- */
.audience { display: grid; gap: 14px; }
.aud {
  position: relative; padding: 22px 20px 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); overflow: hidden;
}
.aud::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--c); box-shadow: 0 0 20px var(--c); }
.aud__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.aud__head .mono { padding: 4px 7px; border-radius: 6px; font-size: 11px; background: var(--c); color: #000; font-weight: 700; }
.aud__head h3 { font-size: 19px; }
.aud__label { margin: 14px 0 4px; font: 600 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.aud__label:first-of-type { margin-top: 0; }
.aud__label--after { color: var(--c); }
.aud p:not(.aud__label) { color: #c9cdd6; font-size: 15px; }

/* ---------- 3. Что внутри ---------- */
.bento { display: grid; gap: 12px; }
.bento__item {
  position: relative; padding: 22px 20px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s;
}
.bento__item:hover { border-color: rgba(34, 230, 255, .4); }
.bento__item .ico { width: 40px; height: 40px; padding: 9px; border-radius: 11px; margin-bottom: 16px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; background: rgba(34, 230, 255, .1); }
.bento__item p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.bento__item p b { color: var(--text); font-weight: 600; }
.bento__item--wide { background: radial-gradient(420px 220px at 100% 0%, rgba(34,230,255,.14), transparent 70%), var(--panel-2); }
.bento__item--cta {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, rgba(34,230,255,.18), rgba(255,43,214,.18)), var(--panel-2);
  border-color: rgba(34, 230, 255, .35);
}
.bento__item--cta .mono { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.bento__item--cta strong { font: 800 40px/1 var(--f-display); color: var(--cyan); letter-spacing: -0.03em; }
.bento__go { margin-top: 8px; font-weight: 700; }

/* ---------- 4. Программа ---------- */
.modules { display: grid; gap: 12px; }
.module { border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: border-color .25s; }
.module[open] { border-color: rgba(34, 230, 255, .35); }
.module summary, .faq__item summary { list-style: none; cursor: pointer; }
.module summary::-webkit-details-marker, .faq__item summary::-webkit-details-marker { display: none; }
.module summary {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "num title toggle" "num count toggle";
  gap: 4px 14px; align-items: center; padding: 18px 16px;
}
.module__num { grid-area: num; align-self: start; padding: 8px 9px; border-radius: 9px; font-size: 13px; font-weight: 700; background: rgba(34,230,255,.12); color: var(--cyan); }
.module__title { grid-area: title; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.module__title b { font: 700 16px/1.25 var(--f-display); }
.module__title small { color: var(--muted); font-size: 14px; }
.module__count { grid-area: count; font-size: 12px; color: var(--magenta); }
.module__toggle { grid-area: toggle; position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; transition: transform .3s, background .3s; }
.module__toggle::before, .module__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.module__toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
details[open] > summary .module__toggle { background: var(--cyan); color: var(--cyan-ink); border-color: var(--cyan); }
details[open] > summary .module__toggle::after { transform: translate(-50%, -50%) rotate(0); }
.lessons { list-style: none; margin: 0; padding: 0 16px 16px; display: grid; gap: 6px; }
.lessons li {
  display: flex; gap: 12px; align-items: baseline; padding: 11px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .03); border-left: 3px solid var(--cyan); font-size: 15px;
}
.lessons li .mono { color: var(--cyan); font-size: 12px; flex: none; }
.module:nth-child(2) .lessons li { border-left-color: var(--magenta); }
.module:nth-child(2) .lessons li .mono, .module:nth-child(2) .module__num { color: var(--magenta); }
.module:nth-child(2) .module__num { background: rgba(255, 43, 214, .12); }
.module:nth-child(3) .lessons li { border-left-color: #8b7bff; }
.module:nth-child(3) .lessons li .mono, .module:nth-child(3) .module__num { color: #a99cff; }
.module:nth-child(3) .module__num { background: rgba(139, 123, 255, .14); }

/* ---------- 5. Работы ---------- */
.works-wrap { position: relative; }
.works {
  display: grid; grid-auto-flow: column; grid-auto-columns: 66%; column-gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 4px 16px 8px; scroll-padding-inline: 16px; scrollbar-width: none;
}
.works::-webkit-scrollbar { display: none; }
.work {
  position: relative; margin: 0; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); scroll-snap-align: start; cursor: pointer;
}
.work video { width: 100%; height: 100%; object-fit: cover; }
.work__top {
  position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between;
  font-size: 11px; text-shadow: 0 1px 6px rgba(0,0,0,.8);
}
.work__top .mono:first-child { padding: 4px 7px; border-radius: 6px; background: rgba(0,0,0,.55); color: var(--cyan); }
.work__tc { padding: 4px 7px; border-radius: 6px; background: rgba(0,0,0,.55); }
.work__sound {
  position: absolute; right: 10px; bottom: 58px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.work__sound.is-on { background: var(--cyan); color: var(--cyan-ink); }
.work__meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .9));
  display: flex; flex-direction: column; gap: 2px;
}
.work__meta small { font: 600 11px/1.2 var(--f-mono); color: var(--cyan); text-transform: uppercase; letter-spacing: .06em; }
.work__meta b { font-size: 15px; line-height: 1.25; }
.work__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); }
.work__bar i { display: block; height: 100%; width: 0; background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }
.works-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.works-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-2); transition: width .3s, background .3s; }
.works-dots i.is-active { width: 22px; background: var(--cyan); }

/* ---------- 6. Об авторе ---------- */
.author { display: grid; gap: 28px; }
.author__card { order: 2; }
@media (min-width: 960px) { .author__card { order: 0; } }
.author__card {
  padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
}
.author__photo {
  width: 96px; height: 96px; border-radius: 24px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  font: 800 44px/1 var(--f-display); color: #05060a;
  box-shadow: 0 0 40px -6px rgba(34, 230, 255, .5);
}
.author__photo img { width: 100%; height: 100%; object-fit: cover; }
.author__meta { margin: 0; display: grid; gap: 0; }

/* фото автора под текстом «Об авторе» */
.author__text { position: relative; }
.author__copy { position: relative; z-index: 1; }
/* телефон: фото лежит под нижней частью текста, текст накладывается на него */
.author__bg {
  position: absolute; z-index: 0; right: -16px; bottom: 0; margin: 0;
  width: auto; height: 300px; max-width: none;
  opacity: .7;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 30%),
    linear-gradient(180deg, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 30%),
    linear-gradient(180deg, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.author--photo .author__copy p,
.author--photo .author__copy h2 { text-shadow: 0 1px 3px rgba(6, 7, 9, .95), 0 2px 16px rgba(6, 7, 9, .9); }
.author--photo .author__copy .btn { background: rgba(6, 7, 9, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* телефон: промежуток между 1-м и 2-м абзацем, в который попадает лицо (позицию фото считает script.js) */
@media (max-width: 959px) {
  .author--photo .author__copy p:nth-of-type(2) { margin-top: 64px; }
}
.author--photo .author__text::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: 0; bottom: 0; width: 80%; height: 55%;
  background:
    radial-gradient(60% 70% at 60% 100%, rgba(34, 230, 255, .22), transparent 70%),
    radial-gradient(50% 60% at 90% 40%, rgba(255, 43, 214, .16), transparent 70%);
  filter: blur(10px);
}
/* компьютер: фото справа, правый край текста заходит на него */
@media (min-width: 960px) {
  .author--photo .author__text { min-height: 500px; display: flex; align-items: center; }
  .author--photo .author__copy { max-width: 64%; margin: 0; }
  .author--photo .author__text::before { width: 60%; height: 90%; }
  .author__bg {
    right: 0; top: auto !important; bottom: 0; height: 96%; max-height: 480px; opacity: 1;
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, #000 14%),
      linear-gradient(180deg, #000 88%, transparent 100%);
    mask-image:
      linear-gradient(90deg, transparent 0%, #000 14%),
      linear-gradient(180deg, #000 88%, transparent 100%);
  }
}

/* название тарифа */
.price__plan {
  margin-bottom: 10px; padding: 6px 12px; border-radius: 999px;
  font: 600 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--cyan); background: rgba(34, 230, 255, .1); border: 1px solid rgba(34, 230, 255, .3);
}
.pricing h2.plan-name { margin-bottom: 6px; color: var(--cyan); text-transform: uppercase; text-shadow: 0 0 24px rgba(34, 230, 255, .35); }
.plan-tagline { color: var(--muted); margin-bottom: 22px; font-size: 15px; }
.author__meta div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.author__meta dt { font: 500 11px/1.6 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.author__meta dd { margin: 0; font-size: 15px; font-weight: 500; }
.author__text p { margin-top: 14px; color: #c3c8d3; }
.author__text p b { color: var(--text); }
.author__text .btn { margin-top: 24px; }
.btn--ig svg { flex: none; }


/* ---------- 7. Отзывы ---------- */
.reviews {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 8px; scroll-padding-inline: 16px; scrollbar-width: none;
}
.reviews::-webkit-scrollbar { display: none; }
.review { padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); cursor: zoom-in; scroll-snap-align: start; }
.review img { width: 100%; height: auto; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .9); }
.lightbox img { max-height: 88vh; width: auto; border-radius: 14px; }
.lightbox__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.08); cursor: pointer; font-size: 18px; }

/* ---------- 8. Цена ---------- */
.pricing {
  display: grid; gap: 28px; padding: 26px 18px; border-radius: 26px;
  background:
    radial-gradient(500px 280px at 0% 0%, rgba(34, 230, 255, .14), transparent 70%),
    radial-gradient(500px 280px at 100% 100%, rgba(255, 43, 214, .12), transparent 70%),
    var(--panel);
  border: 1px solid rgba(34, 230, 255, .25);
}
.pricing h2 { font-size: clamp(24px, 6.4vw, 40px); margin-bottom: 20px; }
.price--big .price__new { font-size: clamp(54px, 17vw, 110px); }
.pricing .timer-box { margin-top: 26px; }
.pricing__title { font: 600 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.checklist { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; font-size: 15px; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px;
  background: rgba(34, 230, 255, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322e6ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.pricing__note { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- 9. FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); transition: border-color .25s; }
.faq__item[open] { border-color: var(--line-2); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 16px; font-weight: 600; font-size: 16px; }
.faq__item p { padding: 0 16px 18px; color: var(--muted); font-size: 15px; }

/* ---------- 10. Финал ---------- */
.final {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
  padding: 40px 18px; border-radius: 26px; position: relative; overflow: hidden;
  background:
    radial-gradient(400px 260px at 50% 0%, rgba(34, 230, 255, .2), transparent 70%),
    radial-gradient(400px 260px at 50% 110%, rgba(255, 43, 214, .18), transparent 70%),
    var(--panel);
  border: 1px solid var(--line);
}
.final h2 { max-width: 760px; font-size: clamp(24px, 6.6vw, 48px); }
.final .btn { width: 100%; max-width: 420px; }

/* ---------- Футер ---------- */
.footer { margin-top: 56px; padding: 32px 0 calc(100px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer__inner { display: grid; gap: 20px; }
.footer__brand .logo { color: var(--text); }
.footer__brand p { margin-top: 8px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: var(--text); }
.footer__links a span { color: var(--cyan); }
.footer__links a:hover span { text-decoration: underline; }

/* ---------- Липкая кнопка (телефон) ---------- */
.sticky-buy {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: 18px;
  background: rgba(13, 15, 20, .92); border: 1px solid rgba(34, 230, 255, .3);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
  transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.sticky-buy.is-shown { transform: none; }
.sticky-buy__price { display: flex; flex-direction: column; line-height: 1.15; }
.sticky-buy__price b { font: 800 20px/1.1 var(--f-display); color: var(--cyan); white-space: nowrap; }
.sticky-buy__price s { font-size: 13px; color: var(--muted); }
.sticky-buy .btn { min-height: 48px; padding: 0 20px; }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* =====================================================================
   Планшет
   ===================================================================== */
@media (min-width: 640px) {
  .container { padding-inline: 24px; }
  .hero__actions { flex-direction: row; width: auto; }
  .hero__actions .btn { width: auto; }
  .offer { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 28px; }
  .timer-box { width: auto; }
  .audience { grid-template-columns: repeat(2, 1fr); }
  .audience .aud:last-child { grid-column: 1 / -1; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--wide { grid-column: 1 / -1; }
  .bento__item--cta { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 18px; }
  .bento__item--cta .bento__go { margin: 0 0 0 auto; padding: 14px 22px; border-radius: 12px; background: var(--cyan); color: var(--cyan-ink); }
  .works { grid-auto-columns: 42%; padding-inline: 24px; scroll-padding-inline: 24px; }
  .reviews { grid-auto-columns: 40%; padding-inline: 24px; }
  .author__card { flex-direction: row; align-items: flex-start; }
  .author__meta { flex: 1; }
  .pricing { padding: 36px; }
  .final { padding: 56px 32px; }
  .footer__inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer__links { flex-direction: row; gap: 24px; }
  .footer__copy { grid-column: 1 / -1; }
}

/* =====================================================================
   Компьютер
   ===================================================================== */
@media (min-width: 960px) {
  :root { --header-h: 72px; }
  body { font-size: 17px; }
  .header__nav { display: flex; gap: 24px; font-size: 15px; color: var(--muted); }
  .header__nav a.is-active { color: var(--text); }
  .header__nav a:hover { color: var(--text); }
  .btn--sm { min-height: 44px; padding: 0 20px; }

  .hero { justify-content: center; padding-bottom: 36px; min-height: 100svh; background: none; }
  .hero__bg { display: block; }
  .hero__bgvideo { filter: blur(28px) saturate(1.2); transform: scale(1.15); opacity: .55; }
  .hero__bg::after { background: linear-gradient(90deg, rgba(6,7,9,.95) 0%, rgba(6,7,9,.7) 55%, rgba(6,7,9,.55) 100%), linear-gradient(180deg, transparent 60%, var(--bg)); }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 48px; }
  .hero__title { font-size: clamp(42px, 4.3vw, 64px); }
  .hero__sub { font-size: 19px; }
  .stage .monitor__bar { padding: 9px 12px; font-size: 11px; }

  .timeline { margin-top: 40px; padding: 12px 14px 14px; }
  .timeline__ruler span:nth-child(even) { display: block; }
  .lane { height: 30px; }
  .lane--video span { line-height: 30px; font-size: 10px; }

  .section { padding-top: 120px; }
  .section-head { margin-bottom: 44px; }
  .audience { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .audience .aud:last-child { grid-column: auto; }
  .aud { padding: 28px 26px; }
  .bento { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .bento__item { padding: 28px; }
  .bento__item--wide { grid-column: span 2; }
  .bento__item:hover { transform: translateY(-4px); }

  .module summary { grid-template-columns: auto 1fr auto auto; grid-template-areas: "num title count toggle"; padding: 22px 24px; gap: 18px; }
  .module__title b { font-size: 19px; }
  .lessons { padding: 0 24px 24px 86px; }

  .works { grid-auto-flow: row; grid-template-columns: repeat(var(--cols, 4), 1fr); overflow: visible; max-width: min(1200px, calc(var(--cols, 4) * 320px)); margin-inline: auto; padding-inline: 24px; gap: 18px; }
  .works-dots { display: none; }
  .work:hover { border-color: rgba(34, 230, 255, .4); }

  .author { grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
  .author__card { flex-direction: column; padding: 28px; }
  .author__photo { width: 120px; height: 120px; font-size: 56px; }

  .reviews { grid-auto-columns: 300px; max-width: 1200px; margin-inline: auto; }

  .pricing { grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 56px; align-items: center; }
  .final { padding: 72px 40px; }
  .final .btn { width: auto; }

  .footer { padding-bottom: 40px; }
  .sticky-buy { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
