/* РЫЛС — сайт курса. Стиль по презентации мастер-класса.

   Шрифты
   - заголовки: Bounded (лежит в fonts/bounded) или Google Sans — атрибут data-head на <html>;
   - текст: Wix Madefor Text;
   - рукописный акцент: атрибут data-hand на <html> (vasek по умолчанию, caveat, pacifico, shantell, neucha, none).
   Размер рукописного задаётся через --hs, а --hk подгоняет его под конкретный шрифт.

   Цвета секций
   Фон задаёт класс bg-* на секции. Цвет текста, карточек и линий берётся из переменных
   --fg, --fg-2, --card, --line, поэтому фон любой секции можно поменять в редакторе. */

@font-face { font-family: "Bounded"; src: url("../fonts/bounded/Bounded-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bounded"; src: url("../fonts/bounded/Bounded-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Bounded"; src: url("../fonts/bounded/Bounded-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Bounded"; src: url("../fonts/bounded/Bounded-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bounded"; src: url("../fonts/bounded/Bounded-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Bounded"; src: url("../fonts/bounded/Bounded-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
/* Vasek Italic (Designgsta, бесплатный и для коммерции). Наклон уже в рисунке, поэтому объявлен как normal: так браузер не добавит второй наклон. */
@font-face { font-family: "Vasek"; src: url("../fonts/vasek/vasek-italic.woff2") format("woff2"), url("../fonts/vasek/vasek-italic.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ink: #0b0d12;
  --ink-2: #171a22;
  --ink-3: #252934;
  --paper: #ffffff;
  --mist: #f3f3f5;
  --coral: #fe5471;
  --violet: #b65af9;
  --lime: #e1f74c;
  --sky: #8ac2f1;
  --pastel-y: #fff1a1;
  --pastel-g: #ccf2c4;
  --pastel-b: #d3e7fb;

  --f-head: "Bounded", system-ui, sans-serif;
  --f-body: "Wix Madefor Text", system-ui, sans-serif;
  --f-hand: "Vasek", cursive;
  --hk: 1.8;
  --hand-w: 400;

  /* тон секции по умолчанию: светлый */
  --fg: var(--ink);
  --fg-2: #4a4e5a;
  --line: #e2e3e8;
  --card: var(--mist);
  --card-2: var(--paper);
  --hand-c: currentColor;

  --wrap: 1200px;
  --pad: 20px;
  --sec: 80px;
  --r: 22px;
  --r-lg: 32px;
}
@media (min-width: 768px) { :root { --pad: 40px; --sec: 120px; --r: 28px; } }

/* Шрифт заголовков */
html[data-head="gsans"] { --f-head: "Google Sans", system-ui, sans-serif; }

/* Рукописный шрифт */
html[data-hand="caveat"] { --f-hand: "Caveat", cursive; --hk: 1.12; --hand-w: 600; }
html[data-hand="pacifico"] { --f-hand: "Pacifico", cursive; --hk: 0.68; --hand-w: 400; }
html[data-hand="shantell"] { --f-hand: "Shantell Sans", cursive; --hk: 0.74; --hand-w: 600; }
html[data-hand="neucha"] { --f-hand: "Neucha", cursive; --hk: 1; --hand-w: 400; }
/* Vasek мелкий и тонкий при том же кегле: строчные как у Caveat примерно при ×1,6. Поэтому кегль больше, а межстрочный меньше, чтобы блоки не раздувались. */
html[data-hand="vasek"] { --f-hand: "Vasek", cursive; --hk: 1.8; --hand-w: 400; }
html[data-hand="vasek"] .hand { line-height: 0.72 !important; -webkit-text-stroke: 0.014em currentColor; }
html[data-hand="vasek"] .about__quote .hand { line-height: 0 !important; }
html[data-hand="vasek"] .about__name .hand { margin-bottom: 0.14em; }
html[data-hand="none"] { --f-hand: var(--f-head); --hk: 0.6; --hand-w: 800; }

*, *::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;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 18px; } }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sec { padding: var(--sec) 0; position: relative; overflow: hidden; color: var(--fg); background: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Скрытая в редакторе секция */
html:not(.editing) [data-hidden] { display: none !important; }

/* ——— Фоны секций ——— */
.bg-white { background: var(--paper); }
.bg-mist { background: var(--mist); --card: var(--paper); }
.bg-ink {
  background: var(--ink);
  --fg: #ffffff; --fg-2: #b9bcc6; --line: var(--ink-3);
  --card: var(--ink-2); --card-2: var(--ink-3); --hand-c: var(--lime);
}
.bg-lime, .bg-sky, .bg-violet, .bg-coral, .bg-pastel-y, .bg-pastel-g, .bg-pastel-b {
  --fg: var(--ink); --fg-2: rgba(11, 13, 18, 0.74); --line: rgba(11, 13, 18, 0.16);
  --card: rgba(255, 255, 255, 0.6); --card-2: var(--paper); --hand-c: currentColor;
}
.bg-lime { background: var(--lime); }
.bg-sky { background: var(--sky); }
.bg-violet { background: var(--violet); }
.bg-coral { background: var(--coral); }
.bg-pastel-y { background: var(--pastel-y); }
.bg-pastel-g { background: var(--pastel-g); }
.bg-pastel-b { background: var(--pastel-b); }

/* ——— Типографика ——— */
.hand {
  font-family: var(--f-hand);
  font-weight: var(--hand-w);
  font-size: calc(var(--hs, 1em) * var(--hk));
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
}
/* Без рукописного: акцент маркером */
html[data-hand="none"] .hand {
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.25 !important;
  color: var(--ink) !important;
  background: var(--lime);
  padding: 0.06em 0.28em;
  border-radius: 0.18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
html[data-hand="none"] .bg-lime .hand { background: var(--ink); color: var(--lime) !important; }

.h2 {
  font-family: var(--f-head);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(30px, 7.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.lead { font-size: clamp(18px, 2.4vw, 22px); line-height: 1.5; }
.muted { color: var(--fg-2); }

/* Заголовок секции: гротеск капсом + рукописная подпись */
.sec-head { text-align: center; margin: 0 auto 48px; max-width: 900px; }
.sec-head .hand {
  --hs: clamp(38px, 8vw, 72px);
  display: block;
  line-height: 1;
  margin-top: 4px;
  color: var(--hand-c);
  transform: rotate(-3deg);
}
html[data-hand="none"] .sec-head .hand { display: inline-block; margin-top: 14px; }
.sec-head .hand--top { margin: 0 0 0.24em; }
.sec-head p { margin-top: 24px; }
.sec-head p + p { margin-top: 12px; }
@media (min-width: 768px) { .sec-head { margin-bottom: 72px; } }

/* Ручные акценты цвета из редактора */
.c-lime { color: var(--lime); }
.c-coral { color: var(--coral); }
.c-violet { color: var(--violet); }
.c-sky { color: var(--sky); }

/* ——— Пометки ✎ и пустые слоты: только на localhost, с ?dev или в редакторе ——— */
.tbd {
  display: inline-block;
  font-style: normal;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.72em;
  line-height: 1;
  color: var(--violet);
  background: rgba(182, 90, 249, 0.14);
  border-radius: 6px;
  padding: 3px 5px;
  margin-left: 4px;
  vertical-align: 0.2em;
  cursor: help;
  text-transform: none;
  letter-spacing: 0;
}
.bg-violet .tbd, .bg-coral .tbd, .bg-lime .tbd, .bg-sky .tbd { color: var(--ink); background: rgba(255, 255, 255, 0.55); }
html:not(.dev) .tbd, html:not(.dev) .ph, .no-tbd .tbd { display: none !important; }

.ph {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  border: 2px dashed currentColor;
  opacity: 0.55;
  background: rgba(255, 255, 255, 0.18);
  font: 600 14px/1.3 var(--f-body);
  cursor: pointer;
}

/* ——— Кнопки ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 16px 28px;
  border-radius: 999px;
  font: 700 14px/1.1 var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #ecff6e; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-3); }
.btn--ghost { border-color: color-mix(in srgb, var(--fg) 40%, transparent); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--wide { width: 100%; }
.btn .arr { font-family: var(--f-body); font-size: 18px; }

/* ——— Шапка ——— */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--paper); transition: background-color 0.25s ease, box-shadow 0.25s ease; }
.top.is-solid { background: rgba(11, 13, 18, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.brand b { font: 700 14px/1.1 var(--f-head); white-space: nowrap; text-transform: uppercase; letter-spacing: -0.01em; }
.brand span { font-size: 13px; color: #a9adb9; }
.nav { display: none; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; opacity: 0.8; transition: opacity 0.15s; }
.nav a:hover { opacity: 1; }
.top .btn { min-height: 44px; padding: 12px 20px; font-size: 12px; }
@media (min-width: 1000px) { .nav { display: flex; } }
@media (min-width: 1000px) and (max-width: 1199px) { .nav { gap: 20px; font-size: 14px; } }

/* ——— Первый экран ——— */
.hero { position: relative; z-index: 2; padding: 104px 0 0; overflow: hidden; color: var(--fg); }
/* С лентой низ не обрезаем: лента заходит в следующий блок */
.hero[data-variant="ribbon"] { display: flow-root; overflow: visible; overflow-x: clip; }
.hero__in { display: grid; gap: 40px; align-items: center; }
.hero__text { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.notifs { display: flex; justify-content: center; align-items: flex-start; gap: clamp(6px, 2vw, 22px); margin-bottom: clamp(18px, 3vw, 34px); }
.hero__title { font-family: var(--f-head); text-transform: uppercase; letter-spacing: -0.04em; position: relative; }
.hero__kicker { --hs: clamp(40px, 9vw, 72px); display: block; line-height: 1; color: var(--fg); transform: rotate(-5deg); margin: 0 0 0.17em; }
html[data-hand="none"] .hero__kicker { display: inline-block; margin-bottom: 14px; }
.hero__ryls { display: block; font-size: clamp(76px, 22.5vw, 280px); line-height: 0.84; font-weight: 800; }
/* «Раскрепощение / и харизма в блоге»: две строки одной ширины, «харизма» строчными рукописными высотой с прописные, хвосты уходят вниз */
.hero__sub { display: block; width: max-content; max-width: 100%; margin: 0.32em auto 0; font-size: clamp(25px, 7.3vw, 60px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.hero__sub-1, .hero__sub-2 { display: block; white-space: nowrap; }
.hero__sub-2 { display: flex; align-items: baseline; justify-content: space-between; gap: 0.16em; margin-top: 0.22em; }
/* Рукописное слово не раздвигает строки: высота строки 0, а отрицательные поля не дают ему
   поднять строку над соседними словами. У Vasek буквы нарисованы выше линии шрифта на 0,14 em,
   поэтому опускаем слово на эту величину, и низ букв встаёт на одну линию с «И» и «В БЛОГЕ». */
html .hero__sub .hand, html[data-hand] .hero__sub .hand { --hs: 1.7em; color: var(--hand-c); line-height: 0 !important; letter-spacing: 0.01em; padding: 0 0.04em; margin-block: -1em; position: relative; top: var(--hand-drop, 0); }
html[data-hand="vasek"] { --hand-drop: 0.14em; }
.hero__sub-2 { padding-bottom: 0.62em; }
html[data-hand="none"] .hero__sub .hand { line-height: 1.1 !important; }
.hero__lead { margin: 26px auto 0; max-width: 38ch; font-size: clamp(19px, 2.5vw, 25px); line-height: 1.42; color: var(--fg-2); }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px 0 0; }
.hero__meta li { font-size: clamp(15px, 1.6vw, 18px); font-weight: 600; padding: 11px 20px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.hero__cta { display: flex; flex-direction: column; gap: 14px; margin-top: 34px; width: 100%; max-width: 380px; }
/* Кнопки первого экрана крупнее остальных на сайте */
.hero__cta .btn { min-height: 64px; padding: 20px 36px; font-size: 15px; }
@media (min-width: 900px) { .hero__cta .btn { min-height: 72px; padding: 24px 46px; font-size: 17px; } }
@media (min-width: 560px) { .hero__cta { flex-direction: row; justify-content: center; max-width: none; width: auto; } }
@media (min-width: 768px) { .hero { padding-top: 128px; } }

/* Варианты первого экрана: data-variant на секции */
.hero__split, .hero__fan, .hero__photo, .hero > .ribbon { display: none; }
.hero[data-variant="ribbon"] > .ribbon { display: block; }
.hero[data-variant="fan"] .hero__fan { display: flex; }
.hero[data-variant="split"] .hero__split { display: block; }
.hero[data-variant="eyes"] .hero__photo { display: block; }

/* Вариант «веер из фото» */
.hero__fan {
  --card-w: clamp(150px, 19vw, 262px);
  position: relative;
  justify-content: center;
  align-items: flex-end;
  margin: 56px 0 calc(var(--card-w) * -0.32);
  padding: 0 var(--pad);
}
.fan-card {
  position: relative;
  flex: none;
  width: var(--card-w);
  aspect-ratio: 2 / 3;
  margin: 0 calc(var(--card-w) * -0.13);
  border-radius: clamp(16px, 2vw, 26px);
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  transform-origin: 50% 100%;
  transform: translateY(calc(var(--ak, 0) * 11%)) rotate(calc(var(--k, 0) * 7deg));
  z-index: calc(10 - var(--ak, 0));
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fan-card img { width: 100%; height: 100%; object-fit: cover; }
.fan-card:hover { transform: translateY(calc(var(--ak, 0) * 11% - 22px)) rotate(calc(var(--k, 0) * 5deg)); z-index: 20; }
@media (min-width: 768px) { .hero__fan { margin-top: 72px; } }

/* Вариант «лента рилсов»: лента садится на стык с первым блоком под экраном, половина в чёрном, половина в следующем цвете */
.hero > .ribbon { --half: calc(var(--rib-h) / 2); margin: clamp(28px, 5vw, 56px) 0 calc(var(--half) * -1); z-index: 3; }
.hero > .ribbon.is-static { margin-bottom: 0; }
.hero[data-variant="ribbon"] + .sec { padding-top: calc(var(--rib-h) / 2 + clamp(48px, 6vw, 80px)); }
.hero[data-variant="ribbon"]:has(> .ribbon.is-static) + .sec { padding-top: var(--sec); }
html.editing .hero[data-variant="ribbon"] + .sec { padding-top: var(--sec); }

/* Вариант «фото справа» */
.hero__split { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; width: 100%; max-width: 560px; justify-self: center; }
.hero__split img { width: 100%; height: 100%; object-fit: cover; }
.hero[data-variant="split"] { padding-bottom: 64px; }
@media (min-width: 960px) {
  .hero[data-variant="split"] { padding-bottom: 96px; }
  .hero[data-variant="split"] .hero__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; }
  .hero[data-variant="split"] .hero__text { align-items: flex-start; text-align: left; }
  .hero[data-variant="split"] .notifs,
  .hero[data-variant="split"] .hero__meta,
  .hero[data-variant="split"] .hero__cta { justify-content: flex-start; }
  .hero[data-variant="split"] .hero__ryls { font-size: clamp(84px, 10.4vw, 150px); }
  .hero[data-variant="split"] .hero__sub { font-size: clamp(26px, 3.3vw, 44px); }
  .hero[data-variant="split"] .hero__sub,
  .hero[data-variant="split"] .hero__lead { margin-left: 0; }
  .hero[data-variant="split"] .hero__split { max-height: calc(100vh - 160px); aspect-ratio: auto; height: 100%; min-height: 560px; }
}

/* Вариант «полоса с глазами» */
.hero__photo { position: relative; margin: 56px auto 0; max-width: 980px; aspect-ratio: 804 / 370; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--ink), transparent 35%), linear-gradient(90deg, var(--ink), transparent 18%, transparent 82%, var(--ink)); z-index: 1; pointer-events: none; }
@media (min-width: 768px) { .hero__photo { margin-top: 72px; } }

/* Уведомления инстаграма: картинки из Фигмы. Левое наклонено против часовой, правое по часовой, среднее ровно и чуть выше */
.notif {
  --nw: clamp(88px, 12vw, 158px);
  flex: none;
  width: var(--nw);
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(255, 48, 64, 0.28));
  animation: bob 5s ease-in-out infinite;
}
.notif:nth-child(3n+1) { width: calc(var(--nw) * 1.04); rotate: -10deg; margin-top: 0.12em; animation-delay: -1.6s; }
.notif:nth-child(3n+2) { width: var(--nw); }
.notif:nth-child(3n) { width: calc(var(--nw) * 1.1); rotate: 10deg; margin-top: 0.12em; animation-delay: -3.2s; }
@media (min-width: 768px) { .notif:nth-child(3n+1), .notif:nth-child(3n) { margin-top: 22px; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .notif { animation: none; } }

/* ——— Цифры + лента рилсов ——— */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.stat b { display: block; font: 800 clamp(28px, 7.4vw, 52px)/0.95 var(--f-head); letter-spacing: -0.04em; white-space: nowrap; }
.stat > span { display: block; margin-top: 10px; font-size: 16px; line-height: 1.35; max-width: 22ch; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats--live { grid-template-columns: 1fr; gap: 28px; }
.stats--live .stat b { font-size: clamp(40px, 9vw, 56px); line-height: 1; letter-spacing: -0.03em; }
.stats--live .stat > span { font-size: 17px; max-width: 26ch; }
.stats--live .stat i:not(.tbd) { font-style: normal; }
@media (min-width: 1000px) { .stats--live { grid-template-columns: repeat(3, 1fr); gap: 48px; } .stats--live .stat b { font-size: clamp(34px, 3.6vw, 52px); } }
/* Счётчик: у каждой цифры ширина итогового знака, строка не дрожит */
.odo-d { display: inline-block; text-align: center; }
.stats-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 48px; }
.stats-live { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 16px 8px 12px; border-radius: 999px; background: #fff; color: var(--ink); font: 600 14px/1.2 var(--f-body); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); animation: livePulse 2s ease-out infinite; flex: none; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(254, 84, 113, 0.6); } 70% { box-shadow: 0 0 0 9px rgba(254, 84, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(254, 84, 113, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.stats-note { margin: 0; font-size: 15px; color: var(--fg-2); }
@media (min-width: 1000px) { .stats-note { white-space: nowrap; } }
.stats-title { display: flex; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 56px; }
.stats-title .hand { --hs: clamp(44px, 8.5vw, 76px); transform: rotate(-3deg); display: inline-block; }

:root { --rib-h: clamp(330px, 36vw, 480px); }
.ribbon { --reel-w: clamp(104px, 11.5vw, 156px); position: relative; height: var(--rib-h); margin-top: 32px; }
.ribbon__items { position: absolute; inset: 0; }
.reel {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--reel-w);
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 18px 36px rgba(11, 13, 18, 0.28);
  will-change: transform;
}
.reel img { width: 100%; height: 100%; object-fit: cover; }
/* Без JS, при «уменьшить движение» и в редакторе: ровный ряд с прокруткой */
html:not(.js) .ribbon, .ribbon.is-static { height: auto; }
html:not(.js) .ribbon__items, .ribbon.is-static .ribbon__items {
  position: static;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 10px var(--pad) 24px;
  scroll-snap-type: x mandatory;
}
html:not(.js) .reel, .ribbon.is-static .reel { position: relative; flex: none; transform: none !important; scroll-snap-align: start; }

/* ——— Для кого ——— */
.who { display: grid; gap: 16px; }
.who__card { border-radius: var(--r); padding: 32px 26px 36px; text-align: center; min-height: 220px; display: flex; flex-direction: column; justify-content: center; color: var(--ink); background: var(--coral); }
.who__card h3 { font: 800 clamp(22px, 5.4vw, 30px)/1.05 var(--f-head); text-transform: uppercase; letter-spacing: -0.03em; }
.who__card p { margin-top: 18px; font-size: 19px; font-weight: 500; }
.who__card:nth-child(3n+2) { background: var(--violet); }
.who__card:nth-child(3n) { background: var(--lime); }
@media (min-width: 860px) { .who { grid-template-columns: repeat(3, 1fr); gap: 24px; } .who__card { min-height: 320px; } }
.who-note { text-align: center; margin-top: 44px; font: 700 clamp(21px, 2.6vw, 28px)/1.3 var(--f-body); text-wrap: balance; }

/* ——— Тараканы ——— */
.bugs { display: grid; border-top: 1px solid var(--line); }
.bug { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.bug__n { font: 800 40px/1 var(--f-head); color: var(--coral); letter-spacing: -0.04em; }
.bug h3 { grid-column: 2; font: 700 clamp(20px, 4.6vw, 30px)/1.1 var(--f-head); text-transform: uppercase; letter-spacing: -0.02em; }
.bug p { grid-column: 2; margin-top: 8px; color: var(--fg-2); font-size: 17px; }
@media (min-width: 860px) {
  .bug { grid-template-columns: 140px 1fr 1fr; gap: 32px; padding: 32px 0; align-items: center; }
  .bug__n { font-size: 72px; }
  .bug p { grid-column: 3; margin: 0; }
}
.bugs-after { margin-top: 48px; display: grid; gap: 20px; align-items: center; }
.bugs-after .hand { --hs: clamp(40px, 8vw, 64px); color: var(--hand-c); line-height: 1; transform: rotate(-3deg); display: inline-block; justify-self: start; }
.bugs-after p { font-size: 19px; max-width: 40ch; }
@media (min-width: 860px) { .bugs-after { grid-template-columns: auto 1fr; gap: 48px; } }

/* ——— Откуда охваты ——— */
.myths { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin: 0 auto 28px; max-width: 900px; }
.myths span { position: relative; font: 700 clamp(18px, 4.4vw, 34px)/1.1 var(--f-head); text-transform: uppercase; letter-spacing: -0.02em; color: color-mix(in srgb, var(--fg) 35%, transparent); padding: 4px 6px; }
.myths span::after { content: ""; position: absolute; left: -4px; right: -4px; top: 52%; height: 4px; background: var(--coral); transform: rotate(-4deg); border-radius: 4px; }
.myths-answer { text-align: center; }
.myths-answer .hand { --hs: clamp(56px, 13vw, 120px); display: inline-block; line-height: 1; transform: rotate(-4deg); color: var(--hand-c); }
.myths-answer p { max-width: 44ch; margin: 20px auto 0; }
.whales-title { margin: 56px auto 0; max-width: 30ch; text-align: center; font: 700 clamp(19px, 2.6vw, 26px)/1.25 var(--f-head); text-transform: uppercase; letter-spacing: -0.02em; text-wrap: balance; }

.whales { display: grid; gap: 16px; margin-top: 28px; }
.whale { border-radius: var(--r); padding: 30px 26px; color: var(--ink); background: var(--pastel-y); }
.whale:nth-child(3n+2) { background: var(--pastel-g); }
.whale:nth-child(3n) { background: var(--pastel-b); }
.whale small { display: inline-flex; align-items: center; min-height: 30px; padding: 0.35rem 0.8rem; margin-bottom: 18px; border: 1.5px solid currentColor; border-radius: 999px; font: 600 12px/1.3 var(--f-head); letter-spacing: 0.08em; text-transform: uppercase; }
.whale h3 { font: 800 clamp(26px, 6vw, 40px)/1 var(--f-head); text-transform: uppercase; letter-spacing: -0.03em; }
.whale h3 .hand { --hs: 1.2em; display: inline-block; text-transform: none; transform: rotate(-3deg) translateY(0.06em); margin-left: 0.08em; }
.whale p { margin-top: 16px; }
@media (min-width: 860px) { .whales { grid-template-columns: repeat(3, 1fr); gap: 24px; } .whale { padding: 36px 32px 40px; } }

/* ——— Аватарки ——— */
.ava {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--violet);
  color: var(--ink);
  font: 800 14px/1 var(--f-head);
  letter-spacing: -0.02em;
}
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava--coral { background: var(--coral); }
.ava--lime { background: var(--lime); }
.ava--sky { background: var(--sky); }
.ava--violet { background: var(--violet); }

/* ——— Путь ——— */
.path { position: relative; display: grid; gap: 20px; }
.step { position: relative; display: grid; gap: 20px; padding: 28px 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.step__num { font: 800 64px/0.85 var(--f-head); color: var(--hand-c); letter-spacing: -0.05em; }
.step__body h3 { font: 800 clamp(22px, 5vw, 34px)/1.05 var(--f-head); text-transform: uppercase; letter-spacing: -0.03em; }
.step__body p { margin-top: 14px; color: var(--fg-2); }
/* Итог этапа: фраза на лаймовом фоне, как маркером */
.step__body .step__out { margin-top: 20px; color: var(--fg); font-size: 18px; font-weight: 600; line-height: 1.6; }
.step__out mark { background: var(--lime); color: var(--ink); padding: 0.14em 0.4em; border-radius: 0.32em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.case-mini { border-radius: 18px; background: var(--card-2); padding: 20px; align-self: start; }
.case-mini__label { display: inline-block; font: 600 13px/1 var(--f-body); color: var(--ink); background: var(--violet); padding: 7px 11px; border-radius: 999px; }
.who-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.case-mini h4 { font: 600 15px/1.3 var(--f-body); color: var(--fg-2); }
.case-mini h4 b { display: block; color: var(--fg); font-size: 18px; font-weight: 700; }
.case-mini .growth { display: block; margin-top: 12px; font: 800 26px/1 var(--f-head); letter-spacing: -0.03em; }
.case-mini .growth small { font: 500 13px/1 var(--f-body); color: var(--fg-2); letter-spacing: 0; margin-left: 4px; }
.case-mini p { margin-top: 10px; font-size: 15px; color: var(--fg-2); }
@media (min-width: 900px) {
  .path::before { content: ""; position: absolute; left: 64px; top: 40px; bottom: 40px; width: 2px; background: var(--violet); opacity: 0.6; }
  .step { grid-template-columns: 128px 1.3fr 1fr; gap: 40px; padding: 40px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .step:last-child { border-bottom: 0; }
  .step__num { font-size: 64px; position: relative; z-index: 1; padding: 10px 0; text-align: center; align-self: start; background: var(--sec-bg, var(--ink)); }
}
.bg-ink { --sec-bg: var(--ink); }
.bg-white { --sec-bg: var(--paper); }
.bg-mist { --sec-bg: var(--mist); }
.bg-lime { --sec-bg: var(--lime); }
.bg-sky { --sec-bg: var(--sky); }
.bg-violet { --sec-bg: var(--violet); }
.bg-coral { --sec-bg: var(--coral); }
.bg-pastel-y { --sec-bg: var(--pastel-y); }
.bg-pastel-g { --sec-bg: var(--pastel-g); }
.bg-pastel-b { --sec-bg: var(--pastel-b); }

/* ——— Кейсы ——— */
.cases { display: grid; gap: 16px; }
.case { display: flex; flex-direction: column; border-radius: var(--r); background: var(--card); color: var(--fg); padding: 26px 22px; }
/* Сомнение участника: сообщение в мессенджере, острый угол со стороны отправителя */
.case__q { align-self: flex-start; max-width: 92%; margin: 0 0 20px; padding: 12px 18px; border-radius: 22px 22px 22px 0; background: var(--ink); color: var(--paper); font-size: 17px; font-weight: 600; line-height: 1.35; }
.case__q::first-letter { text-transform: uppercase; }
.case__who { display: flex; align-items: center; gap: 14px; }
.case__who .ava { width: 56px; height: 56px; font-size: 17px; }
.case h3 { font: 700 20px/1.2 var(--f-body); letter-spacing: -0.01em; }
.case__role { margin-top: 6px; color: var(--fg-2); font-size: 15px; line-height: 1.35; }
.case__nums { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 8px; margin: 20px 0; }
.case__nums div { border-radius: 16px; padding: 14px 14px 12px; }
.case__nums small { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.7; }
.case__nums b { display: block; margin-top: 6px; font: 800 clamp(20px, 5.4vw, 24px)/1 var(--f-head); letter-spacing: -0.03em; white-space: nowrap; }
.case__before { background: var(--paper); color: var(--ink); }
.case__after { background: var(--lime); color: var(--ink); }
.case__nums .arrow { align-self: center; font: 800 22px/1 var(--f-head); }
.case p { font-size: 16px; }
.case p b { font-weight: 700; color: var(--fg); background: linear-gradient(transparent 58%, var(--lime) 58%); padding: 0 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* Фиолетовый блок «все кейсы»: на всю ширину сетки */
.case--more { background: var(--violet); color: var(--ink); gap: 28px; padding: 32px 24px; }
.case-more__text .case-more__title { margin: 0; font: 800 clamp(19px, 2.7vw, 34px)/1.05 var(--f-head); text-transform: uppercase; letter-spacing: -0.02em; white-space: nowrap; color: var(--ink); }
.case__go { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.ava-stack { display: flex; flex-wrap: wrap; row-gap: 6px; padding-left: 12px; }
.ava-stack .ava { width: 52px; height: 52px; border: 3px solid var(--violet); margin-left: -12px; }
@media (min-width: 1000px) {
  .case--more { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 40px; padding: 48px 44px; }
  .case--more .case__go { flex-direction: column; align-items: flex-start; }
  .case--more .ava-stack .ava { width: 46px; height: 46px; margin-left: -10px; }
}

@media (min-width: 720px) { .cases { grid-template-columns: repeat(2, 1fr); gap: 20px; } .case--wide { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .cases { gap: 24px; } .case { padding: 32px 30px; } }

/* Бегущая лента отзывов. Клоны для бесшовного цикла добавляет скрипт (data-runtime) */
.reviews { margin-top: clamp(56px, 8vw, 96px); }
.reviews__title { text-align: center; margin: 0 0 24px; }
.reviews__title .hand { --hs: clamp(38px, 7vw, 64px); display: inline-block; line-height: 1; transform: rotate(-3deg); color: var(--hand-c); }
.reviews__track { display: flex; align-items: center; gap: 16px; width: max-content; padding: 8px 0 24px; animation: marquee var(--dur, 160s) linear infinite; }
.reviews:hover .reviews__track { animation-play-state: paused; }
.review { flex: none; width: clamp(240px, 24vw, 300px); border-radius: 18px; overflow: hidden; background: var(--ink-2); box-shadow: 0 16px 34px rgba(11, 13, 18, 0.18); }
.review img { width: 100%; height: auto; max-height: 520px; object-fit: cover; object-position: top; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
/* В редакторе, без JS и при «уменьшить движение»: ровный ряд с прокруткой */
html.editing .reviews__track, html:not(.js) .reviews__track, .reviews__track.is-static { animation: none; width: auto; overflow-x: auto; padding-left: var(--pad); padding-right: var(--pad); scroll-snap-type: x proximity; }
html.editing .review, .reviews__track.is-static .review { scroll-snap-align: start; }
@media (prefers-reduced-motion: reduce) { .reviews__track { animation: none; width: auto; overflow-x: auto; padding-left: var(--pad); padding-right: var(--pad); } }

/* ——— Как устроен курс ——— */
.bento { display: grid; gap: 14px; }
.tile { border-radius: var(--r); padding: 26px 22px; background: var(--card); color: var(--fg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.tile h3 { font: 800 clamp(18px, 4.4vw, 21px)/1.15 var(--f-head); overflow-wrap: break-word; text-transform: uppercase; letter-spacing: -0.02em; }
.tile p { color: var(--fg-2); font-size: 16px; }
.tile__img { margin: 8px -22px -26px; }
.tile__img img { width: 100%; }
.tile--lime, .tile--violet, .tile--coral, .tile--sky, .tile--pastel-y, .tile--pastel-g, .tile--pastel-b, .tile--white { color: var(--ink); }
.tile--lime { background: var(--lime); border-color: var(--lime); }
.tile--violet { background: var(--violet); border-color: var(--violet); }
.tile--coral { background: var(--coral); border-color: var(--coral); }
.tile--sky { background: var(--sky); border-color: var(--sky); }
.tile--pastel-y { background: var(--pastel-y); border-color: var(--pastel-y); }
.tile--pastel-g { background: var(--pastel-g); border-color: var(--pastel-g); }
.tile--pastel-b { background: var(--pastel-b); border-color: var(--pastel-b); }
.tile--white { background: var(--paper); border-color: var(--paper); }
.tile--lime p, .tile--violet p, .tile--coral p, .tile--sky p, .tile--pastel-y p, .tile--pastel-g p, .tile--pastel-b p, .tile--white p { color: var(--ink); }
.tile__badge { align-self: flex-start; font: 700 11px/1 var(--f-head); text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--paper); color: var(--ink); }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); gap: 18px; } .tile--big { grid-column: span 2; } }
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .tile--tall { grid-row: span 2; }
  .tile { padding: 30px 28px; }
  .tile__img { margin: 8px -28px -30px; }
  .tile--split { display: grid; grid-template-columns: 0.8fr 1.2fr; grid-template-rows: auto auto 1fr; column-gap: 28px; }
  .tile--split > :not(.tile__img) { grid-column: 1; }
  .tile--split .tile__img { grid-column: 2; grid-row: 1 / -1; margin: 0 -28px -30px 0; align-self: end; border-top-left-radius: 14px; overflow: hidden; }
}

/* ——— Программа курса ——— */
.program { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-auto-flow: row dense; }
.lec { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 22px; border-radius: var(--r); background: var(--mist); color: var(--ink); }
.lec__n { font: 800 15px/1 var(--f-head); letter-spacing: -0.01em; opacity: 0.45; }
.lec h3 { font: 700 17px/1.25 var(--f-body); text-wrap: balance; }
.lec p { font-size: 15px; line-height: 1.4; color: #4a4e5a; }
.lec__badge { position: absolute; top: 16px; right: 16px; font: 700 10px/1 var(--f-head); text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--ink); color: #fff; }
.lec--wide h3, .lec--full h3 { font: 800 clamp(20px, 2.4vw, 26px)/1.1 var(--f-head); text-transform: uppercase; letter-spacing: -0.02em; }
.lec--wide .lec__n, .lec--full .lec__n { font-size: 22px; opacity: 0.6; }
.lec--wide p { color: var(--ink); font-size: 16px; max-width: 46ch; }
.lec--lime { background: var(--lime); } .lec--violet { background: var(--violet); } .lec--coral { background: var(--coral); }
.lec--sky { background: var(--sky); } .lec--pastel-y { background: var(--pastel-y); } .lec--pastel-g { background: var(--pastel-g); }
.lec--pastel-b { background: var(--pastel-b); } .lec--white { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.lec--lime p, .lec--violet p, .lec--coral p, .lec--sky p, .lec--pastel-y p, .lec--pastel-g p, .lec--pastel-b p { color: var(--ink); }
.lec--full { background: var(--ink); color: var(--paper); }
.lec--full .lec__n { color: var(--lime); opacity: 1; }
.lec--full p { color: #b9bcc6; }
.lec--full .lec__badge { background: var(--lime); color: var(--ink); }
.lec:has(.lec__badge) .lec__n { min-height: 20px; }
@media (min-width: 640px) {
  .program { grid-template-columns: repeat(2, 1fr); }
  .lec--wide, .lec--full { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .program { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .lec--wide { grid-column: span 2; }
  .lec--wide, .lec--full { padding: 26px 26px 28px; }
  .lec--full { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 32px; row-gap: 10px; align-items: center; }
  .lec--full .lec__n { grid-column: 1; grid-row: 1 / 3; font-size: 48px; }
  .lec--full .lec__badge { position: static; grid-column: 2; grid-row: 1; justify-self: start; }
  .lec--full h3 { grid-column: 2; grid-row: 2; font-size: clamp(26px, 2.9vw, 38px); text-wrap: nowrap; }
  .lec--full p { grid-column: 2; grid-row: 3; }
}

/* ——— Кураторы ——— */
.curators { display: grid; gap: 24px; margin-bottom: 40px; }
.curators__title { font-weight: inherit; }
.curators__title .hand { --hs: clamp(44px, 9vw, 84px); display: block; line-height: 1; transform: rotate(-3deg); transform-origin: 0 50%; color: var(--hand-c); margin-bottom: 0.12em; }
.curators__title .h2 { display: block; font-size: clamp(28px, 5.6vw, 56px); }
.curators__text p { max-width: 46ch; }
.curators__text .lead { font-weight: 600; }
.ticks li { position: relative; padding: 4px 0 4px 22px; margin-bottom: 12px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; border-radius: 4px; background: var(--violet); }
.bg-sky .ticks li::before, .bg-lime .ticks li::before, .bg-violet .ticks li::before { background: var(--ink); }
@media (min-width: 960px) { .curators { grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: end; } }

.cur-shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px var(--pad) 36px; margin: 0 calc(var(--pad) * -1); scrollbar-width: none; }
.cur-shots::-webkit-scrollbar { display: none; }
.shot {
  flex: none;
  width: clamp(168px, 44vw, 214px);
  aspect-ratio: 362 / 730;
  border-radius: 26px;
  overflow: hidden;
  background: var(--paper);
  border: 6px solid var(--paper);
  box-shadow: 0 22px 44px rgba(11, 13, 18, 0.24);
  scroll-snap-align: center;
  transform: rotate(var(--tilt, 0deg));
  color: var(--ink);
}
.shot:nth-child(odd) { --tilt: -2deg; }
.shot:nth-child(even) { --tilt: 2deg; margin-top: 22px; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 20px; }
.shot.ph { border-style: dashed; border-color: var(--ink); background: rgba(255, 255, 255, 0.4); }
@media (min-width: 1100px) { .cur-shots { justify-content: center; overflow: visible; } }

/* ——— Сомнения ——— */
.doubts-title .hand { --hs: clamp(56px, 12vw, 120px); display: inline-block; line-height: 1; font-weight: var(--hand-w); transform: rotate(-4deg); color: var(--hand-c); }
.doubts { display: grid; gap: 56px; max-width: 860px; margin: 0 auto; }
.doubt__label { --hs: 30px; display: block; text-align: right; line-height: 1; margin: 0 8px 10px 0; color: var(--violet); }
.bubble { position: relative; max-width: 88%; padding: 16px 20px; border-radius: 24px; font-size: 17px; }
.bubble--me { margin-left: auto; background: var(--lime); color: var(--ink); border-bottom-right-radius: 0; font: 700 clamp(17px, 3.6vw, 21px)/1.3 var(--f-body); }
.bubble--vadim { margin-top: 14px; background: var(--card); border-bottom-left-radius: 0; }
.bubble-row { display: flex; align-items: flex-end; gap: 10px; }
.bubble-row > img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.bubble--vadim b.who-says { display: block; font: 700 15px/1.2 var(--f-body); color: var(--fg); margin-bottom: 6px; }
@media (min-width: 768px) { .bubble { max-width: 76%; padding: 18px 24px; } }

/* ——— Об авторе ——— */
.about { display: grid; gap: 40px; align-items: start; }
.about__photo { position: relative; border-radius: var(--r-lg); overflow: hidden; max-width: 520px; aspect-ratio: 2 / 3; background: var(--card); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__name .hand { --hs: clamp(38px, 8vw, 64px); display: inline-block; line-height: 1; transform: rotate(-3deg); color: var(--hand-c); }
.about__quote { font: 600 clamp(22px, 4.4vw, 32px)/1.3 var(--f-body); letter-spacing: -0.01em; margin: 24px 0 32px; }
.about__quote .hand { --hs: 1.6em; color: var(--hand-c); line-height: 0; vertical-align: -0.2em; }
html[data-hand="none"] .about__quote .hand { background: none; color: var(--lime) !important; }
.facts li { position: relative; padding: 2px 0 2px 24px; margin-bottom: 16px; }
.facts li::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 4px; background: var(--violet); }
.facts b { font-weight: 700; }
@media (min-width: 960px) { .about { grid-template-columns: 0.85fr 1.15fr; gap: 64px; } .about__photo { position: sticky; top: 100px; } }

/* Полароиды стоят на стыке со следующим блоком: секция кончается на середине карточек */
:root { --pw: clamp(180px, 50vw, 236px); --pol-h: calc((var(--pw) - 20px) * 1.25 + 54px); }
@media (min-width: 1100px) { :root { --pw: clamp(180px, 16vw, 236px); } }
#about { padding-bottom: 0; display: flow-root; overflow: visible; overflow-x: clip; z-index: 2; }
#about + .sec { padding-top: calc(var(--pol-h) / 2 + clamp(64px, 8vw, 110px)); }
.collage { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px var(--pad) 40px; margin: 56px 0 calc(var(--pol-h) / -2 - 40px); scrollbar-width: none; }
.collage::-webkit-scrollbar { display: none; }
.polaroid {
  position: relative;
  flex: none;
  width: var(--pw);
  padding: 10px 10px 44px;
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.38);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  scroll-snap-align: center;
}
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.polaroid figcaption { --hs: 21px; position: absolute; left: 10px; right: 10px; bottom: 8px; text-align: center; line-height: 1.1; }
.polaroid:nth-child(6n+1) { --tilt: -5deg; }
.polaroid:nth-child(6n+2) { --tilt: 4deg; margin-top: 18px; }
.polaroid:nth-child(6n+3) { --tilt: -2deg; }
.polaroid:nth-child(6n+4) { --tilt: 5deg; margin-top: 24px; }
.polaroid:nth-child(6n+5) { --tilt: -4deg; margin-top: 6px; }
.polaroid:nth-child(6n) { --tilt: 3deg; margin-top: 20px; }
.polaroid.ph { background: rgba(255, 255, 255, 0.12); color: #fff; aspect-ratio: 4 / 5.6; }
@media (min-width: 1100px) {
  .collage { justify-content: center; overflow: visible; }
  .polaroid { margin-left: -14px; margin-right: -14px; }
  .polaroid:hover { transform: rotate(0deg) translateY(-10px) scale(1.04); z-index: 2; }
}

/* ——— Подкасты ——— */
.pods { display: grid; gap: 16px; }
.pod { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--card); color: var(--fg); }
.pod > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pod > div:last-child { padding: 18px 22px 22px; }
.pod h3 { font: 800 19px/1.1 var(--f-head); text-transform: uppercase; letter-spacing: -0.02em; }
.pod p { margin-top: 6px; color: var(--fg-2); font-size: 15px; }
.pod--secret { background: var(--ink); color: #fff; }
.pod--secret p { color: #b9bcc6; }
.pod__secret {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 35%, rgba(182, 90, 249, 0.95), transparent 52%),
    radial-gradient(circle at 76% 68%, rgba(254, 84, 113, 0.9), transparent 50%),
    var(--ink-2);
}
.pod__secret span { font: 900 clamp(84px, 11vw, 132px)/1 var(--f-head); color: var(--lime); text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); }
.pod__secret i { position: absolute; left: 14px; top: 14px; font: 700 11px/1 var(--f-head); font-style: normal; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; background: var(--lime); color: var(--ink); }
@media (min-width: 860px) { .pods { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ——— Комьюнити: галерея ——— */
.masonry { columns: 2; column-gap: 12px; }
.m-item { break-inside: avoid; margin: 0 0 12px; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, 0.18); }
.m-item img { width: 100%; height: auto; }
.m-item.ph { aspect-ratio: 4 / 5; border-radius: 18px; }
.m-item.ph--wide { aspect-ratio: 4 / 3; }
.m-item.ph--tall { aspect-ratio: 3 / 4.4; }
@media (min-width: 720px) { .masonry { columns: 3; column-gap: 16px; } .m-item { margin-bottom: 16px; } }
@media (min-width: 1100px) { .masonry { columns: 4; } }

/* Увеличение фото по клику */
.zoomable img { cursor: zoom-in; }
/* Попап с формой GetCourse на тарифах */
html.gc-open { overflow: hidden; }
.gc-modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; background: rgba(11, 13, 18, 0.82); animation: lb 0.2s ease; }
.gc-modal[hidden] { display: none; }
.gc-modal__box { position: relative; width: min(100%, 600px); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: 28px 22px 22px; }
.gc-modal__title { margin: 0 48px 10px 4px; font: 800 clamp(22px, 4vw, 30px)/1.05 var(--f-head); text-transform: uppercase; letter-spacing: -0.02em; }
.gc-modal__x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--mist); color: var(--ink); font: 400 28px/1 var(--f-body); cursor: pointer; }
.gc-modal__x:hover { background: var(--lime); }
.gc-modal__note { margin: 0 4px 18px; font-size: 16px; line-height: 1.4; color: var(--ink); max-width: 44ch; }
.gc-modal__wait, .gc-modal__alt { margin: 0 4px 12px; font-size: 16px; color: #4a4e5a; }
.gc-modal__alt a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.gc-modal__slot { min-height: 40px; }
.gc-modal__slot iframe { display: block; }
@media (min-width: 700px) { .gc-modal__box { padding: 36px 32px 28px; } }

.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(11, 13, 18, 0.92); cursor: zoom-out; animation: lb 0.2s ease; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
@keyframes lb { from { opacity: 0; } }

/* ——— Тарифы ——— */
.tariffs { display: grid; gap: 20px; max-width: 1000px; margin: 0 auto; }
.tariff { border-radius: var(--r-lg); padding: 32px 24px; display: flex; flex-direction: column; position: relative; }
.tariff--light { background: var(--ink); color: #fff; border: 2px solid rgba(255, 255, 255, 0.28); }
.tariff--std { background: var(--paper); color: var(--ink); }
.tariff__badge { position: absolute; top: -14px; right: 24px; font: 700 12px/1 var(--f-head); text-transform: uppercase; background: var(--coral); color: var(--ink); padding: 9px 14px; border-radius: 999px; }
.tariff h3 { font: 800 clamp(30px, 7vw, 44px)/1 var(--f-head); text-transform: uppercase; letter-spacing: -0.03em; }
.tariff__for { margin-top: 10px; font-size: 16px; opacity: 0.75; }
.tariff__price { margin: 28px 0 6px; font: 800 clamp(36px, 8vw, 52px)/1 var(--f-head); letter-spacing: -0.04em; }
.tariff__split { font-size: 15px; opacity: 0.75; margin-bottom: 26px; }
.tariff ul { display: grid; gap: 12px; margin-bottom: 32px; flex: 1; align-content: start; }
.tariff li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 16px; line-height: 1.4; }
.tariff li::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 800; background: var(--lime); color: var(--ink); margin-top: -1px; }
.tariff li.no { opacity: 0.45; }
.tariff li.no::before { content: "✕"; background: transparent; border: 1.5px solid currentColor; color: inherit; }
.tariff--light .btn--ghost { --fg: #fff; }
@media (min-width: 860px) { .tariffs { grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; } .tariff { padding: 44px 40px; } }
.tariffs-note { text-align: center; margin-top: 32px; color: var(--fg-2); font-size: 15px; }

/* ——— Вопросы ——— */
.faq { max-width: 900px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card-2); color: var(--fg); border-radius: 20px; }
.bg-sky .faq details, .bg-lime .faq details, .bg-violet .faq details, .bg-coral .faq details { color: var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 32px; align-items: center; gap: 16px; padding: 20px 22px; font: 700 clamp(16px, 3.6vw, 19px)/1.3 var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 400 22px/1 var(--f-body); transition: transform 0.2s ease; }
.bg-ink .faq summary::after { background: var(--paper); color: var(--ink); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--violet); color: var(--ink); }
.faq .ans { padding: 0 22px 22px; opacity: 0.85; }
.faq .ans p + p { margin-top: 1em; }
@media (min-width: 768px) { .faq summary { padding: 24px 28px; } .faq .ans { padding: 0 28px 26px; max-width: 70ch; } }
.faq-tg { max-width: 900px; margin: 40px auto 0; text-align: center; font-size: clamp(19px, 2.4vw, 23px); line-height: 1.45; font-weight: 500; }
.faq-tg a { font-weight: 700; text-underline-offset: 0.18em; }

/* ——— Финал ——— */
.final { text-align: center; }
.final .h2 { font-size: clamp(30px, 7.4vw, 72px); margin: 0 auto; text-wrap: balance; }
@media (min-width: 900px) { .final .h2 { white-space: nowrap; font-size: clamp(48px, 5.6vw, 76px); } }
.final .hand { --hs: clamp(44px, 10vw, 96px); display: inline-block; line-height: 1; transform: rotate(-4deg); margin-top: 14px; color: var(--hand-c); }
.final p.lead { max-width: 40ch; margin: 32px auto 36px; }


/* ——— Шаблоны секций из редактора ——— */
.duo { display: grid; gap: 36px; align-items: center; }
.duo .hand { --hs: clamp(38px, 8vw, 64px); display: inline-block; line-height: 1; transform: rotate(-3deg); color: var(--hand-c); margin: 6px 0 20px; }
.duo p { margin-bottom: 24px; }
.duo__img { border-radius: var(--r); overflow: hidden; min-height: 280px; }
.duo__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ——— Подвал ——— */
.foot { position: relative; overflow: hidden; background: var(--ink); color: #a9adb9; padding: 56px 0 calc(19vw * 0.8 + 32px); font-size: 14px; }
.foot__word { position: absolute; left: 50%; bottom: -0.08em; transform: translateX(-50%); font: 900 clamp(70px, 19vw, 400px)/0.8 var(--f-head); text-transform: uppercase; letter-spacing: -0.05em; color: #14171f; white-space: nowrap; pointer-events: none; user-select: none; }
.foot__grid { position: relative; }
.foot__grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .foot { padding: 80px 0 clamp(120px, 16vw, 240px); } }
.foot b { color: var(--paper); font-weight: 700; }
.foot a { color: var(--paper); text-decoration: none; opacity: 0.85; }
.foot a:hover { opacity: 1; text-decoration: underline; }
.foot__links { display: grid; gap: 8px; align-content: start; }
@media (min-width: 860px) { .foot__grid { grid-template-columns: 1.2fr 1fr 1fr; } }

/* ——— Появление при прокрутке ——— */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }

/* ——— Панель разработчика: только на localhost или с ?dev ——— */
.devdock { position: fixed; left: 12px; bottom: 12px; z-index: 60; display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; max-width: calc(100vw - 24px); font: 600 13px/1 system-ui, sans-serif; }
.devdock > button, .devdock > a { color: var(--ink); background: var(--paper); border: 1.5px solid var(--violet); border-radius: 999px; padding: 10px 14px; cursor: pointer; text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); font: inherit; }
.devdock > button[aria-pressed="true"] { background: var(--violet); color: #fff; }
.devdock__fonts { position: absolute; left: 0; bottom: calc(100% + 8px); width: min(340px, calc(100vw - 24px)); padding: 16px; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25); }
.devdock__fonts[hidden] { display: none; }
.devdock__fonts p { margin: 0 0 8px; font-size: 12px; color: #6a6e7a; text-transform: uppercase; letter-spacing: 0.04em; }
.devdock__fonts div { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.devdock__fonts div:last-child { margin-bottom: 0; }
.devdock__fonts button { border: 1.5px solid #dcdde3; background: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer; font-size: 15px; color: var(--ink); }
.devdock__fonts button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
