/* Рилсомат — сайт. Цвета и шрифты те же, что в окне программы (reels_program/rilsomat/ui/app.css).
   Фон серый, как окно программы; заголовки — Oswald заглавными с жёлтым выделением, как на обложках. */

@font-face {
  font-family: "Oswald";
  src: url("fonts/Oswald-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
/* Текст — Manrope (выбрала Аня 03.10.2026 в примерочной). Только кириллица и латиница, ₽ берётся из системного шрифта. */
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #EEF0F2;
  --panel: #FFFFFF;
  --ink: #1A1D21;
  --muted: #5B6168;
  --line: #DADDE1;
  --soft: #F4F5F7;
  --accent: #FFD21E;
  --accent-hover: #F5C400;
  --ok: #1F7A3A;
  --danger: #C62828;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --text: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --radius: 12px;
  --wrap: 1200px;
  --wrap-narrow: 1080px;
  --gutter: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--text);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: #000; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- заголовки ---------- */
.h1, .h2, .h-dialog, .logo {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.08;
}
.h1 { font-size: clamp(34px, 7.4vw, 52px); line-height: 1.12; }
.h2 { font-size: clamp(27px, 5vw, 40px); }
.h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.h-dialog { font-size: 26px; }
.hl {
  background: var(--accent);
  padding: 0 .18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl-dark { background: var(--ink); color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 26px;
  border: 0; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: var(--ink);
  font: 700 18px/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-hover); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: var(--accent); }
.btn-dark:hover { background: #000; color: var(--accent); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--panel); }
.btn-small { min-height: 38px; padding: 8px 16px; font-size: 15px; }
.btn-wide { width: 100%; }
.link-button { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.buy-note { font-size: 14px; color: var(--muted); line-height: 1.45; max-width: 420px; }
.cta { display: grid; gap: 10px; justify-items: start; }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(238, 240, 242, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.top-in { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 20px; }
.logo { font-size: 22px; text-decoration: none; letter-spacing: .05em; }
.logo i { font-style: normal; background: var(--accent); padding: 0 2px; border-radius: 2px; }
.logo-small { font-size: 18px; }
.top-nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.top-nav a { text-decoration: none; color: var(--muted); }
.top-nav a:hover { color: var(--ink); }
@media (max-width: 720px) {
  .top-nav { display: none; }
  .top-in .btn { margin-left: auto; }
}

/* ---------- секции ---------- */
.sec { padding-block: 56px; }
.sec + .sec { padding-top: 8px; }
.sec-white { background: var(--panel); }
.sec-white + .sec, .sec + .sec-white { padding-top: 56px; }
.sec-dark { background: var(--ink); color: #fff; }
.sec-dark .muted, .sec-dark .lead { color: #C9CCD1; }
.sec-head { display: grid; gap: 14px; margin-bottom: 28px; }
.stack { display: grid; gap: 16px; }
.cols-2 { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 860px) { .cols-2 { grid-template-columns: minmax(0, 1fr); } }

/* метка «здесь будет…» — заметна, пока каркас не наполнен */
.todo {
  border: 2px dashed #B7BCC2; border-radius: var(--radius);
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(255, 210, 30, .12) 10px 20px);
  padding: 14px 16px; color: var(--muted); font-size: 14px; line-height: 1.45;
}
.todo b { color: var(--ink); }
.draft { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: var(--ink); padding: 1px 6px; border-radius: 4px; vertical-align: 3px; margin-left: 6px; }

/* ---------- первый экран ---------- */
.hero { padding-block: 32px 40px; }
.hero-text { display: grid; gap: 18px; }
/* Заголовок, скриншот и кнопка видны без прокрутки: на компьютере скриншот справа,
   на телефоне — сразу под заголовком, обрезанный до «6 276, +95%». */
.hero-grid {
  display: grid; gap: 20px 44px; align-items: start;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr);
  grid-template-areas: "title shot" "proof shot" "lead shot" "cta shot";
}
.hero-title { grid-area: title; font-size: clamp(30px, 5.2vw, 46px); }
.hero-shot { grid-area: shot; display: grid; gap: 8px; }
.hero-shot img { width: 100%; aspect-ratio: 720 / 1010; object-fit: cover; object-position: top; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 24px 48px -30px rgba(26, 29, 33, .55); }
.hero-shot figcaption { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.hero-proof { grid-area: proof; }
.hero-lead { grid-area: lead; display: grid; gap: 8px; max-width: 620px; }
.hero-cta { grid-area: cta; }
.lead-strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .hero { padding-top: 20px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "shot" "cta" "proof" "lead"; gap: 16px; }
  .hero-shot img { aspect-ratio: 720 / 430; }
}
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.proof div { background: var(--panel); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; align-content: start; }
.proof .proof-main { grid-column: 1 / -1; background: var(--ink); color: #C9CCD1; }
.proof .proof-main b { color: var(--accent); }
.proof b { font-family: var(--display); font-size: 28px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.proof span { font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.proof .proof-main span { color: #C9CCD1; }
.pay-note { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.pay-note svg { width: 22px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.price-card .pay-note { color: #C9CCD1; }
.adv { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.adv li { background: var(--panel); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 4px; border-top: 4px solid var(--accent); }
.adv b { font-family: var(--display); text-transform: uppercase; font-size: 19px; line-height: 1.15; }
.adv span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .adv { grid-template-columns: minmax(0, 1fr); } }
.hero-video { margin-top: 16px; }
.footnote { margin-top: 16px; font-size: 12.5px; color: var(--muted); line-height: 1.45; max-width: 760px; }
.text-col { max-width: 720px; }
.h2-small { font-size: clamp(23px, 4vw, 32px); }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.video-cap { margin-top: 8px; color: var(--ink); font-size: 15px; }
.note-box { background: var(--soft); border-radius: var(--radius); padding: 16px 18px; max-width: 720px; }
.ways-plain { list-style: none; margin: 0; padding: 0; }
.ways-plain .way span { color: var(--ink); font-size: 16.5px; }
.sec-white .way, .sec-white .step, .sec-white .note-box, .sec-white details, .sec-white .notfor { background: var(--bg); }
/* «Одного рилса мало»: три коротких варианта в ряд, длинный про ИИ — во всю ширину под ними */
.ways-problem { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ways-problem .way-wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .ways-problem { grid-template-columns: minmax(0, 1fr); } }
/* что вы получаете: рилс, обложка, подпись, телефон */
.gets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 960px) { .gets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gets { grid-template-columns: minmax(0, 1fr); } }
.get { background: var(--panel); border-radius: var(--radius); padding: 14px; display: grid; gap: 6px; align-content: start; }
.get b { font-size: 17px; }
.get span { color: var(--muted); font-size: 15px; }
.get-pic { height: 200px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; overflow: hidden; margin-bottom: 6px; }
.get-pic img { height: 100%; width: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.get-reel { background: linear-gradient(160deg, #4F7A94, #1B3140); color: #fff; place-items: initial; align-content: center; padding: 14px 18%; gap: 8px; }
.get-reel p { font-family: var(--display); text-transform: uppercase; font-size: 17px; line-height: 1.1; text-align: center; }
.get-reel em { font-style: normal; color: var(--accent); }
.get-reel ul { margin: 0; padding: 0; list-style: none; font-size: 12.5px; line-height: 1.45; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.get-caption { place-items: initial; align-content: center; padding: 22px; gap: 8px; }
.get-caption i { display: block; height: 9px; border-radius: 5px; background: #C9CDD2; }
.get-caption i.short { width: 55%; }
.get-caption span { justify-self: start; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--accent); border-radius: 6px; padding: 4px 9px; }
.get-phone svg { height: 150px; fill: none; stroke: var(--ink); stroke-width: 2.2; }
.get-phone svg rect + rect { fill: var(--accent); stroke-width: 1.5; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 17px; font-weight: 600; }
.ticks li::before { content: "— "; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; }
.facts span { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

/* окно программы (пока нет записи экрана) */
.demo { display: grid; gap: 10px; }
.win { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 48px -28px rgba(26, 29, 33, .55); font-size: 14px; }
.win-bar { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; background: var(--soft); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.win-bar b { font-family: var(--display); color: var(--ink); letter-spacing: .04em; font-size: 15px; }
.win-body { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 14px; padding: 14px; }
.win-steps { display: grid; gap: 8px; align-content: start; }
.win-steps div { display: flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 8px; padding: 8px 10px; }
.win-steps b { font-family: var(--display); background: var(--accent); border-radius: 5px; width: 22px; text-align: center; }
.win-steps span { margin-left: auto; color: var(--ok); font-weight: 600; font-size: 13px; }
.win-frame { aspect-ratio: 9 / 16; border-radius: 8px; padding: 8px 7px; display: grid; align-content: center; gap: 6px; color: #fff; background: linear-gradient(160deg, #3F6B62, #16302B); }
.win-frame p { font-family: var(--display); text-transform: uppercase; font-size: 13px; line-height: 1.1; text-align: center; }
.win-frame em { font-style: normal; color: var(--accent); }
.win-frame ol { margin: 0; padding-left: 14px; font-size: 9.5px; line-height: 1.35; }
.win-progress { margin: 0 14px; height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.win-progress i { display: block; height: 100%; width: 62%; background: var(--ink); }
.win-go { margin: 12px 14px 14px; background: var(--accent); border-radius: 8px; text-align: center; padding: 10px; font-weight: 700; }

/* лента рилсов разных ниш */
.reels { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 12px; overflow-x: auto; padding: 4px var(--gutter) 14px; margin-inline: calc(var(--gutter) * -1); scroll-snap-type: x proximity; scrollbar-width: thin; }
.reel { scroll-snap-align: start; aspect-ratio: 9 / 16; border-radius: 14px; padding: 14px 12px; display: grid; align-content: space-between; color: #fff; background: var(--g, #333); position: relative; }
.reel-niche { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.reel-title { font-family: var(--display); text-transform: uppercase; font-size: 19px; line-height: 1.08; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.reel-title em { font-style: normal; color: var(--accent); }
.reel ul { margin: 0; padding: 0; list-style: none; font-size: 12.5px; line-height: 1.4; display: grid; gap: 3px; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.reel-tag { position: absolute; right: 8px; top: 8px; font-size: 10px; background: rgba(0, 0, 0, .45); padding: 1px 6px; border-radius: 4px; }

/* ---------- кто я ---------- */
.story { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 600px) { .story { grid-template-columns: 1fr; } }
.photo { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; text-align: center; font-size: 13px; color: var(--muted); background: var(--soft); border: 2px dashed #B7BCC2; }
.story-text { display: grid; gap: 14px; max-width: 680px; }
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.timeline div { background: var(--soft); border-radius: var(--radius); padding: 14px; display: grid; gap: 2px; font-size: 14px; color: var(--muted); line-height: 1.35; }
.timeline b { font-family: var(--display); font-size: 30px; color: var(--ink); font-variant-numeric: tabular-nums; }
.timeline div:last-child { background: var(--ink); color: #C9CCD1; }
.timeline div:last-child b { color: var(--accent); }
@media (max-width: 480px) { .timeline b { font-size: 23px; } .timeline div { padding: 10px; font-size: 12.5px; } }

/* ---------- доказательства ---------- */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 14px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; }
.shot { display: grid; gap: 8px; align-content: start; }
.shot img { border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.shot figcaption { font-size: 14px; color: var(--muted); line-height: 1.4; }
.shot figcaption b { color: var(--ink); }
figure { margin: 0; }
.months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
.months figure { display: grid; gap: 8px; }
.months img { border-radius: 12px; border: 1px solid var(--line); }
.months figcaption { font-family: var(--display); font-size: 22px; text-transform: uppercase; }
.months figcaption span { display: block; font-family: var(--text); text-transform: none; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .months { gap: 6px; } .months figcaption { font-size: 16px; } }

.covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 560px; }
.covers img { border-radius: 10px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.covers figure { display: grid; gap: 6px; }
.covers figcaption { font-family: var(--display); text-transform: uppercase; font-size: 18px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border-radius: var(--radius); padding: 16px; display: grid; gap: 4px; }
.stat b { font-family: var(--display); font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.before-after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
.before-after img { border-radius: 12px; border: 1px solid var(--line); }
.caveat { border-left: 4px solid var(--accent); background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; font-size: 15.5px; }

/* ---------- честно о формате ---------- */
.quote { font-size: 19px; line-height: 1.6; max-width: 720px; display: grid; gap: 14px; }

/* ---------- проблема / сравнение ---------- */
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.way { background: var(--panel); border-radius: var(--radius); padding: 18px; display: grid; gap: 6px; align-content: start; }
.way b { font-family: var(--display); font-size: 20px; text-transform: uppercase; }
.way span { color: var(--muted); font-size: 15px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--panel); }
table.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.compare tr.us td { background: #FFF6CC; font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }
/* на телефоне таблица — карточками, без прокрутки вбок */
@media (max-width: 640px) {
  .table-wrap { background: none; overflow: visible; }
  table.compare, .compare tbody, .compare tr, .compare td { display: block; min-width: 0; }
  .compare thead { display: none; }
  .compare tr { background: var(--bg); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px; }
  .compare td { padding: 3px 0; border: 0; }
  .compare td:first-child { font-family: var(--display); text-transform: uppercase; font-size: 18px; padding-bottom: 6px; }
  .compare td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 400; }
  .compare tr.us, .compare tr.us td { background: #FFF6CC; }
}
.h2-airy { line-height: 1.3; }
@media (max-width: 480px) {
  .proof b { font-size: 23px; }
  .proof span { font-size: 12.5px; }
}

/* ---------- как работает ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { background: var(--panel); border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; align-content: start; }
.step::before { counter-increment: s; content: counter(s); font-family: var(--display); font-size: 26px; background: var(--accent); width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; }
.step span { color: var(--muted); font-size: 15px; }

/* ---------- что внутри ---------- */
.inside { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.inside li { background: var(--panel); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 4px; }
.inside li b { font-size: 17px; }
.inside li span { color: var(--muted); font-size: 15px; }

/* ---------- для кого ---------- */
.niches { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.niche { background: var(--panel); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 6px; }
.niche b { font-family: var(--display); text-transform: uppercase; font-size: 19px; }
.niche ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; display: grid; gap: 2px; }
.notfor { background: var(--panel); border-radius: var(--radius); padding: 18px 20px; }
.notfor ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }

/* ---------- цена ---------- */
.price-card { background: var(--ink); color: #fff; border-radius: 18px; padding: 28px 24px; display: grid; gap: 14px; max-width: 520px; }
.price-sum { font-family: var(--display); font-size: 60px; line-height: 1; color: var(--accent); }
.price-sum small { font-size: 24px; color: #C9CCD1; margin-left: 6px; }
.price-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.price-card li::before { content: "— "; color: var(--accent); }
.price-card .buy-note { color: #C9CCD1; }
.price-side { display: grid; gap: 14px; max-width: 520px; }

/* ---------- вопросы (сайт и помощь) ---------- */
details { background: var(--panel); border-radius: var(--radius); margin-bottom: 8px; }
summary { cursor: pointer; padding: 15px 44px 15px 18px; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 700 22px/1 var(--display); }
details[open] summary::after { content: "–"; }
.answer { padding: 0 18px 16px; display: grid; gap: 10px; font-size: 16px; color: #2C3036; }
.answer ul, .answer ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.faq { max-width: 760px; }
.help h3 { font-family: var(--display); text-transform: uppercase; font-size: 22px; margin: 28px 0 12px; }
.help h3:first-child { margin-top: 0; }
.kbd, kbd { font-family: inherit; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-size: .92em; }

/* ---------- обычные страницы, документы ---------- */
.page-head { padding-block: 40px 8px; display: grid; gap: 12px; }
.doc { max-width: 760px; display: grid; gap: 12px; font-size: 16px; }
.doc h2 { font-size: 20px; margin-top: 20px; }
.doc ol, .doc ul { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.box { background: var(--panel); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }

/* ---------- формы ---------- */
.field { display: grid; gap: 4px; font-size: 15px; }
.field span { font-weight: 600; }
.field small { color: var(--muted); font-size: 13px; line-height: 1.4; }
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%; font: 17px/1.3 var(--text); padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); }
input[aria-invalid="true"] { border-color: var(--danger); }
textarea { min-height: 90px; resize: vertical; font-family: Consolas, "Courier New", monospace; font-size: 14px; }
textarea[name=text] { font: 16px/1.4 var(--text); }
details.box > summary { cursor: pointer; }
.computers { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.computers li { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between;
  background: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; }
.found-key { display: grid; gap: 10px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 14.5px; line-height: 1.4; align-items: start; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.form-error { color: var(--danger); font-size: 14.5px; }
.form-ok { color: var(--ok); font-size: 14.5px; }

/* ---------- окно перед оплатой ---------- */
dialog.buy { width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: 18px; padding: 26px 22px 22px; background: var(--panel); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
dialog.buy::backdrop { background: rgba(26, 29, 33, .55); }
.buy-step { display: grid; gap: 14px; }
.buy-choice { display: grid; gap: 10px; }
.buy-form { display: grid; gap: 14px; }
.buy-close-form { position: absolute; right: 10px; top: 8px; margin: 0; }
.buy-close { border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; padding: 4px 10px; color: var(--muted); }

/* ---------- липкая кнопка на телефоне ---------- */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(238, 240, 242, .96); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .2s; }
.buybar.show { transform: none; }
@media (min-width: 861px) { .buybar { display: none; } }
body.page-index { padding-bottom: 80px; }
@media (min-width: 861px) { body.page-index { padding-bottom: 0; } }
body:not(.page-index) .buybar { display: none; }

/* ---------- cookie ---------- */
.cookies { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; max-width: 560px; margin: 0 auto; background: var(--ink); color: #fff; border-radius: 14px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; font-size: 14px; line-height: 1.4; }
.cookies a { color: var(--accent); }

/* ---------- подвал ---------- */
.foot { background: var(--ink); color: #C9CCD1; font-size: 14px; padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: minmax(0, 1fr); } }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot .logo { color: #fff; }
.foot .logo i { color: var(--ink); }
.foot a { color: #fff; }
.foot-note { font-size: 12.5px; color: #9AA0A7; }

/* ---------- спасибо / ключ ---------- */
.key-box { display: grid; gap: 8px; }
.key { font-family: Consolas, "Courier New", monospace; font-size: 14px; word-break: break-all; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.phone-note { background: var(--accent); border-radius: var(--radius); padding: 16px 18px; font-weight: 600; }
.links { display: grid; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .buybar { transition: none; }
}

/* =====================================================================
   Главная (переделка 03.10.2026): классы ld-*. Первый экран — цифры на чёрном,
   дальше блоки чередуются: жёлтый, белый, серый. Кнопка «Купить» — после каждого крупного блока.
   ===================================================================== */
.ld-sec { padding-block: 72px; }
.ld-white { background: var(--panel); }
.ld-gray { background: var(--bg); }
.ld-yellow { background: var(--accent); }
.ld-head { display: grid; gap: 16px; justify-items: center; text-align: center; margin-bottom: 36px; }
.ld-head .h2 { max-width: 900px; }
.ld-lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 680px; }
.ld-h3 { font: 700 24px/1.15 var(--display); text-transform: uppercase; margin: 44px 0 18px; }
.ld-small { font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 14px; }
.ld-gray > .wrap > .ld-small, .ld-white > .wrap > .ld-small { text-align: center; }
.ld-note { margin: 28px auto 0; color: var(--muted); font-size: 15.5px; max-width: 760px; text-align: center; }
.h2 { line-height: 1.22; }

/* кнопка и приписка под ней */
.ld-cta { display: grid; gap: 10px; justify-items: start; margin-top: 32px; }
.ld-cta-center { justify-items: center; text-align: center; }
.ld-btn { min-height: 60px; padding: 16px 34px; font-size: 21px; border-radius: 14px; box-shadow: 0 5px 0 #C9A400; }
.ld-btn:hover { box-shadow: 0 3px 0 #C9A400; transform: translateY(2px); }
.ld-btn-big { min-height: 68px; padding: 18px 44px; font-size: 24px; }
.ld-buy-note { font-size: 14px; color: var(--muted); line-height: 1.45; max-width: 440px; }

/* 1. первый экран: серый, слева текст и цифры, справа телефон с рилсом */
.ld-hero { background: var(--bg); padding-block: 48px 44px; }
.ld-hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: center; }
.ld-h1 { font-size: clamp(38px, 5vw, 70px); line-height: 1.16; }
.ld-sub { font-size: 20px; line-height: 1.5; margin-top: 20px; max-width: 36ch; }
.ld-sub b { font-weight: 800; }
.ld-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; max-width: 600px; }
.ld-chips > div { background: var(--panel); border-radius: 14px; padding: 14px 16px; }
.ld-chips b { display: block; font: 700 34px/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ld-chips span { display: block; font-size: 13.5px; line-height: 1.35; color: var(--muted); margin-top: 6px; }
.ld-chips .dark { background: var(--ink); }
.ld-chips .dark b { color: var(--accent); }
.ld-chips .dark span { color: #C9CCD1; }
.ld-hero .ld-cta { margin-top: 28px; }
.ld-phone-wrap { position: relative; justify-self: center; display: grid; justify-items: center; gap: 14px; }
.ld-phone { width: min(290px, 72vw); aspect-ratio: 9 / 19; background: #0E0F11; border-radius: 44px; padding: 11px; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .55), inset 0 0 0 2px #2B2E33; transform: rotate(2.5deg); }
.ld-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: linear-gradient(185deg, #7FA6C4 0%, #B9A58A 46%, #6E655B 70%, #3D3A36 100%); display: grid; place-items: center; padding: 0 10px; }
.ld-screen::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(45% 30% at 30% 25%, rgba(255, 236, 200, .5), transparent 70%), radial-gradient(40% 25% at 70% 80%, rgba(40, 40, 40, .45), transparent 70%); animation: ld-drift 10s ease-in-out infinite alternate; }
@keyframes ld-drift { to { transform: translate(6%, -5%) scale(1.06); } }
.ld-badge { position: absolute; background: var(--panel); border-radius: 12px; padding: 9px 13px; font-size: 14px; font-weight: 700; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35); display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.ld-badge::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); font: 800 12px/1 system-ui, sans-serif; }
.ld-badge.b1 { top: 14%; left: -54px; } .ld-badge.b2 { top: 46%; right: -58px; } .ld-badge.b3 { bottom: 20%; left: -40px; }
.ld-phone-cap { font-size: 13px; color: var(--muted); }
/* плашка со списком — как в рилсах программы: весь список сразу */
.ld-reel-panel { position: relative; width: 100%; background: rgba(28, 30, 33, .62); border-radius: 18px; padding: 22px 12px 26px; text-align: center; color: #fff; display: grid; gap: 12px; }
.ld-reel-title { font: 700 20px/1.25 var(--display); color: #F6E7B8; text-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.ld-reel-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font: 700 13.5px/1.3 Arial, "Segoe UI", sans-serif; }
/* телефон на первом экране: настоящее фото под лёгким затемнением, заголовок и строки списка схемой */
.ld-screen-photo { background: #333 url("../img/telefon-fon.jpg") center / cover no-repeat; padding: 0 12px; }
.ld-screen-photo::before { inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .32)); animation: none; }
.ld-screen-photo .ld-reel-panel { background: rgba(20, 22, 25, .58); padding: 22px 16px 24px; gap: 16px; }
.ld-screen-photo .ld-reel-title { font-size: 22px; text-transform: uppercase; color: #fff; }
.ld-reel-title em { font-style: normal; color: var(--accent); }
.ld-lines { display: grid; gap: 9px; justify-items: center; }
.ld-lines i { display: block; width: var(--w); height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .85); }
.ld-badge img { width: 72px; height: 128px; object-fit: cover; border-radius: 8px; }
.ld-badge.b2 { flex-direction: column; align-items: center; padding: 8px 8px 10px; gap: 6px; top: 34%; right: -70px; }
.ld-badge.b2::before { position: absolute; top: -8px; right: -8px; }
.ld-adv { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ld-adv li { background: var(--panel); border-radius: 14px; padding: 16px 18px; display: grid; gap: 2px; border-top: 4px solid var(--accent); }
.ld-adv b { font: 700 19px/1.2 var(--display); text-transform: uppercase; }
.ld-adv span { color: var(--muted); font-size: 15px; }
.ld-caveat { margin-top: 18px; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* 2. полоса цифр */
.ld-title { text-align: center; max-width: 980px; margin: 0 auto; line-height: 1.34; }
.ld-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.ld-strip > div { background: var(--ink); border-radius: 18px; padding: 24px 22px; }
.ld-strip b { display: block; font: 700 clamp(44px, 5vw, 64px)/1 var(--display); color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ld-strip span { display: block; color: #C9CCD1; font-size: 15px; line-height: 1.4; margin-top: 10px; }
.ld-strip-note { text-align: center; font-size: 14px; margin-top: 18px; color: #4A4020; }

/* 3. три из четырёх */
.ld-three4 { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: center; }
.ld-minis { display: flex; gap: 14px; }
.ld-minis i { width: 84px; height: 150px; border-radius: 16px; background: var(--accent); display: grid; place-items: center; box-shadow: inset 0 0 0 3px var(--ink); }
.ld-minis i::after { content: "+"; font: 700 40px/1 var(--display); color: var(--ink); }
.ld-minis i.off { background: #E3E6E9; box-shadow: none; }
.ld-minis i.off::after { content: "—"; color: #9AA0A7; }
.ld-three4-text { display: grid; gap: 14px; }
.ld-three4-text p { font-size: 18px; color: var(--muted); max-width: 60ch; }
.ld-three4-text p b { color: var(--ink); }
.ld-three4-text .ld-cta { margin-top: 12px; }

/* 4. ниши: обложки нарисованы самим Рилсоматом (render_cover), ниша — плашкой на картинке */
.ld-niches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ld-niche { margin: 0; }
.ld-niche-cover { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #2A2D31; }
.ld-niche-cover img { width: 100%; height: 100%; object-fit: cover; }
.ld-niche-cover span { position: absolute; left: 10px; top: 10px; font-size: 12.5px; font-weight: 700; line-height: 1.2; color: #fff; background: rgba(20, 22, 25, .55); backdrop-filter: blur(4px); border-radius: 999px; padding: 6px 11px; max-width: calc(100% - 20px); }
#dlya-kogo .ld-small { text-align: center; margin-top: 22px; }

/* 5. как работает */
.ld-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.ld-steps li { background: var(--bg); border-radius: 18px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.ld-steps li::before { counter-increment: s; content: counter(s); font: 700 28px/1 var(--display); background: var(--accent); width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; }
.ld-steps b { font: 700 24px/1.1 var(--display); text-transform: uppercase; }
.ld-steps span { color: var(--muted); font-size: 16px; }
.ld-gets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ld-get { background: var(--bg); border-radius: 18px; padding: 14px 14px 18px; display: grid; gap: 6px; align-content: start; }
.ld-get b { font-size: 18px; }
.ld-get span { color: var(--muted); font-size: 15px; }
.ld-get-pic { width: min(100%, 200px); aspect-ratio: 9 / 16; justify-self: center; border-radius: 14px; background: var(--panel); display: grid; place-items: center; overflow: hidden; margin-bottom: 10px; }
.ld-get-pic img, .ld-get-pic video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ld-get-reel { background: linear-gradient(185deg, #7FA6C4 0%, #B9A58A 46%, #6E655B 70%, #3D3A36 100%); padding: 0 8px; }
.ld-get-reel .ld-reel-panel { padding: 14px 8px 16px; gap: 8px; border-radius: 12px; }
.ld-get-reel .ld-reel-title { font-size: 14px; }
.ld-get-reel ul { font-size: 9.5px; gap: 2px; }
.ld-get-caption { place-items: initial; align-content: center; padding: 24px; gap: 8px; }
.ld-get-caption i { display: block; height: 9px; border-radius: 5px; background: #C9CDD2; }
.ld-get-caption i.short { width: 55%; }
.ld-get-caption span { justify-self: start; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink); background: var(--accent); border-radius: 6px; padding: 5px 10px; }
.ld-get-phone svg { height: 160px; fill: none; stroke: var(--ink); stroke-width: 2.2; }
.ld-get-phone svg rect + rect { fill: var(--accent); stroke-width: 1.5; }
.ld-demo { margin: 32px auto 0; max-width: 920px; }
.ld-demo-frame { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #1A1D21; }
.ld-demo-frame video { display: block; width: 100%; height: auto; }
.ld-demo-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px 14px 18px; border: 0; border-radius: 999px; background: var(--accent); color: var(--ink); font: 800 18px/1 var(--text); cursor: pointer; box-shadow: 0 8px 28px rgba(0, 0, 0, .35); }
.ld-demo-play:hover { background: var(--accent-hover); }
.ld-demo-play svg { width: 34px; height: 34px; fill: currentColor; flex: none; }
.ld-demo-play[hidden] { display: none; }
.ld-demo-play span { white-space: nowrap; }
@media (max-width: 560px) {
  .ld-demo-play { gap: 8px; padding: 9px 16px 9px 10px; font-size: 15px; }
  .ld-demo-play svg { width: 26px; height: 26px; }
}
.ld-demo figcaption { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--muted); text-align: left; }
.ld-demo figcaption b { color: var(--ink); }

/* 6. сравнение */
.ld-alts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ld-alt { background: var(--panel); border-radius: 18px; padding: 22px; display: grid; gap: 8px; }
.ld-alt-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ld-alt b { font: 700 36px/1 var(--display); font-variant-numeric: tabular-nums; }
.ld-alt p { font-size: 15px; line-height: 1.45; color: var(--muted); }
.ld-why { background: none; margin: 4px 0 0; border-radius: 0; }
.ld-why summary { padding: 0; font-size: 15px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ld-why summary::after { content: none; }
.ld-why p { margin-top: 8px; font-size: 14.5px; }
.ld-table-wrap { overflow-x: auto; margin-top: 28px; background: var(--panel); border-radius: 20px; padding: 10px 14px 4px; }
.ld-cmp { width: 100%; min-width: 820px; border-collapse: separate; border-spacing: 0; font-size: 15.5px; }
.ld-cmp th, .ld-cmp td { padding: 16px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ld-cmp thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--ink); vertical-align: bottom; }
.ld-cmp tbody th { font: 700 17px/1.2 var(--display); text-transform: uppercase; width: 14%; }
.ld-cmp tr:last-child th, .ld-cmp tr:last-child td { border-bottom: 0; }
.ld-cmp td.no { color: var(--muted); }
.ld-cmp td.no::before { content: "✕"; color: #C2C6CB; font-weight: 700; margin-right: 6px; }
.ld-cmp .us { background: var(--accent); color: var(--ink); font-weight: 700; width: 22%; }
.ld-cmp td.us::before { content: "✓"; font-weight: 800; margin-right: 6px; }
.ld-cmp thead .us { font: 700 24px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; border-radius: 14px 14px 0 0; color: var(--ink); }
.ld-cmp thead .us i { display: block; width: max-content; font: 800 10.5px/1 var(--text); letter-spacing: .08em; background: var(--ink); color: var(--accent); padding: 4px 7px; border-radius: 4px; margin-bottom: 8px; font-style: normal; }
.ld-cmp tbody tr:last-child .us { border-radius: 0 0 14px 14px; }

/* 7. доказательства */
.ld-covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 780px; margin: 0 auto; }
.ld-covers figure { display: grid; gap: 10px; justify-items: center; }
.ld-covers video { border-radius: 16px; aspect-ratio: 9 / 16; object-fit: cover; width: 100%; height: auto; background: #1A1D21; box-shadow: 0 20px 40px -26px rgba(0, 0, 0, .5); display: block; }
.ld-covers figcaption { font: 700 20px/1 var(--display); text-transform: uppercase; background: var(--accent); padding: 8px 12px; border-radius: 8px; }
.ld-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ld-months figure { background: var(--bg); border-radius: 18px; padding: 12px; display: grid; gap: 10px; align-content: start; }
.ld-months img { border-radius: 10px; width: 100%; cursor: zoom-in; }
.ld-months figcaption { font: 700 22px/1.1 var(--display); text-transform: uppercase; padding: 0 4px 4px; }
.ld-months figcaption span { display: block; font: 400 14px/1.4 var(--text); text-transform: none; color: var(--muted); margin-top: 4px; }
.ld-shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 14px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.ld-shots figure { display: grid; gap: 8px; align-content: start; scroll-snap-align: start; }
.ld-shots img { border-radius: 14px; border: 1px solid var(--line); cursor: zoom-in; }
.ld-shots figcaption { font-size: 14px; color: var(--muted); line-height: 1.4; }
.ld-shots figcaption b { color: var(--ink); }
.ld-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 32px; align-items: start; }
.ld-video-cap { margin-top: 8px; color: var(--ink); font-size: 15px; }
.ld-notify { display: grid; gap: 10px; justify-items: center; align-content: start; }
.ld-notify video { width: min(100%, 300px); height: auto; border-radius: 18px; border: 1px solid var(--line); background: #fff; display: block; }
.ld-notify figcaption { font-size: 14px; color: var(--muted); text-align: center; max-width: 340px; }
.ld-feed video { width: min(100%, 400px); }
.ld-feed figcaption { font-size: 15px; color: var(--ink); text-align: left; max-width: 400px; }
.ld-feed-hint { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
/* компьютер: два видео в ряд, одной высоты, верхние края и подписи на одной линии, пара по центру */
@media (min-width: 961px) {
  .ld-videos { display: flex; justify-content: center; align-items: flex-start; gap: 48px; }
  .ld-videos .ld-notify { width: min-content; justify-items: stretch; }
  .ld-videos .ld-notify video { width: auto; height: 600px; max-width: none; }
  .ld-videos .ld-notify figcaption { max-width: none; text-align: left; font-size: 15px; color: var(--ink); }
  .ld-videos .ld-notify:not(.ld-feed) figcaption { color: var(--muted); font-size: 14px; }
}
/* телефон: полноэкранный режим у ленты не открывается, поэтому подсказку про него не показываем */
@media (max-width: 960px) { .ld-feed-hint { display: none; } }
.ld-caveat-box { margin-top: 28px; border-left: 4px solid var(--accent); background: var(--bg); border-radius: 0 12px 12px 0; padding: 14px 18px; font-size: 15.5px; max-width: 640px; margin-inline: auto; }

/* 8. личный опыт */
.ld-story { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px; align-items: stretch; }
.ld-ladder { background: var(--panel); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; }
.ld-before { font-size: 15px; color: var(--muted); border-bottom: 1px dashed var(--line); padding-bottom: 16px; }
.ld-before b { font: 700 30px/1 var(--display); color: var(--ink); margin-right: 8px; }
.ld-bars { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: end; min-height: 300px; padding-top: 20px; }
.ld-bars > div { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; }
.ld-bars b { font: 700 30px/1 var(--display); margin-bottom: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ld-bars i { display: block; background: var(--ink); border-radius: 8px 8px 0 0; min-height: 5px; max-height: calc(100% - 90px); }
.ld-bars .peak i { background: var(--accent); box-shadow: inset 0 0 0 2px var(--ink); }
.ld-bars span { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.3; min-height: 2.6em; }
.ld-cards { display: grid; gap: 12px; }
.ld-card { background: var(--panel); border-radius: 18px; padding: 22px; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; align-items: start; }
.ld-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font: 800 20px/1 system-ui, sans-serif; background: var(--bg); }
.ld-card.good .ld-ic { background: var(--accent); }
.ld-card h3 { font: 700 22px/1.15 var(--display); text-transform: uppercase; }
.ld-card p { font-size: 16px; line-height: 1.55; color: var(--muted); margin-top: 6px; }
.ld-quote { margin: 28px auto 0; text-align: center; font-size: 20px; font-weight: 600; max-width: 720px; }

/* 9. честно */
.ld-honest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ld-honest-col { border-radius: 20px; padding: 26px; background: var(--bg); }
.ld-honest-col.yes { background: #FFF6CC; }
.ld-honest-col h3 { font: 700 24px/1.1 var(--display); text-transform: uppercase; margin-bottom: 14px; }
.ld-honest-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ld-honest-col li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; font-size: 16px; line-height: 1.5; }
.ld-honest-col li::before { font-weight: 800; }
.ld-honest-col.yes li::before { content: "✓"; }
.ld-honest-col.no li::before { content: "✕"; color: var(--muted); }
.ld-note-box { margin-top: 16px; background: var(--bg); border-radius: 16px; padding: 18px 22px; font-size: 15.5px; color: #2C3036; }

/* 10. цена */
.ld-price { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.ld-price-card { background: var(--ink); color: #fff; border-radius: 24px; padding: 34px 30px; display: grid; gap: 16px; position: sticky; top: 90px; }
.ld-price-label { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9AA0A7; }
.ld-price-sum { font: 700 76px/1 var(--display); color: var(--accent); }
.ld-price-sum small { font-size: 26px; color: #9AA0A7; margin-left: 8px; }
.ld-price-card > p:not([class]) { color: #E4E6E9; }
.ld-price-card .ld-buy-note { color: #A9AEB5; }
.ld-inside { display: grid; gap: 18px; }
.ld-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ld-ticks li { position: relative; padding-left: 40px; font-size: 16.5px; line-height: 1.5; color: var(--muted); }
.ld-ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 800; font-size: 14px; }
.ld-ticks b { color: var(--ink); }
.ld-gift { background: var(--panel); border: 2px dashed var(--ink); border-radius: 16px; padding: 16px 18px; font-size: 15.5px; }

/* 11. вопросы */
.ld-faq { max-width: 860px; margin: 0 auto; }
.ld-faq details { background: var(--bg); border-radius: 14px; margin-bottom: 10px; }
.ld-faq summary { padding: 18px 64px 18px 22px; font-size: 18px; font-weight: 700; }
.ld-faq summary::after { content: "+"; right: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font: 700 22px/1 system-ui, sans-serif; transition: transform .2s; }
.ld-faq details[open] summary::after { content: "+"; transform: translateY(-50%) rotate(45deg); }
.ld-faq .answer { padding: 0 22px 20px; }
.ld-more { display: block; margin: 18px auto 0; background: transparent; border: 2px solid var(--ink); border-radius: 12px; padding: 13px 24px; font: 700 16px/1 var(--text); cursor: pointer; color: var(--ink); }
.ld-more:hover { background: var(--accent); }

/* 12. завершение */
.ld-final { background: #15171A; color: #fff; padding-block: 88px; }
.ld-final-in { display: grid; justify-items: center; text-align: center; gap: 28px; }
.ld-final-title { font-size: clamp(32px, 4.4vw, 56px); max-width: 900px; line-height: 1.32; }
.ld-final-title .hl { color: var(--ink); }
.ld-final-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ld-final-list li { background: #22252A; border-radius: 999px; padding: 10px 18px; font-size: 16px; color: #E4E6E9; }
.ld-final-list li::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.ld-final .ld-cta { margin-top: 0; }
.ld-final .ld-buy-note { color: #A9AEB5; max-width: 520px; }
.ld-final .ld-caveat { margin-top: 0; color: #9AA0A7; }

/* скриншот крупно */
dialog.ld-zoom { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: visible; }
dialog.ld-zoom::backdrop { background: rgba(15, 16, 18, .85); }
dialog.ld-zoom img { max-height: calc(100dvh - 40px); width: auto; border-radius: 14px; }
.ld-zoom form { position: absolute; top: -6px; right: -6px; margin: 0; }
.ld-zoom-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); font-size: 26px; line-height: 1; cursor: pointer; }

/* планшет и телефон */
@media (max-width: 960px) {
  .ld-sec { padding-block: 52px; }
  .ld-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .ld-phone { transform: none; }
  .ld-badge.b1 { left: -10px; } .ld-badge.b2 { right: -10px; } .ld-badge.b3 { left: -6px; }
  .ld-three4, .ld-story, .ld-price, .ld-honest { grid-template-columns: minmax(0, 1fr); }
  .ld-adv { grid-template-columns: minmax(0, 1fr); }
  .ld-strip, .ld-niches, .ld-gets, .ld-alts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-steps { grid-template-columns: minmax(0, 1fr); }
  .ld-price-card { position: static; }
  .ld-three4 { gap: 28px; }
}
@media (max-width: 560px) {
  .ld-head { justify-items: start; text-align: left; }
  .ld-title { text-align: left; }
  .ld-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-chips .dark { grid-column: 1 / -1; }
  .ld-chips b { font-size: 30px; }
  .ld-badge { display: none; }
  .ld-strip, .ld-gets, .ld-alts, .ld-videos { grid-template-columns: minmax(0, 1fr); }
  .ld-niches { gap: 10px; }
  .ld-minis { gap: 8px; }
  .ld-minis i { width: 60px; height: 106px; }
  .ld-covers { gap: 10px; }
  .ld-covers figcaption { font-size: 15px; padding: 6px 8px; }
  .ld-btn { width: 100%; }
  .ld-cta { justify-items: stretch; }
  .ld-price-sum { font-size: 60px; }
  .ld-bars { min-height: 240px; gap: 10px; }
  .ld-bars b { font-size: 22px; }
  /* таблица — карточками */
  .ld-table-wrap { background: none; padding: 0; overflow: visible; }
  .ld-cmp, .ld-cmp tbody, .ld-cmp tr, .ld-cmp th, .ld-cmp td { display: block; min-width: 0; width: auto; }
  .ld-cmp thead { display: none; }
  .ld-cmp tr { background: var(--panel); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; }
  .ld-cmp th, .ld-cmp td { padding: 4px 0; border: 0; }
  .ld-cmp tbody th { width: auto; padding-bottom: 8px; }
  .ld-cmp td[data-label]::after { content: " — " attr(data-label); color: var(--muted); font-weight: 400; font-size: 13px; }
  .ld-cmp td.us { width: auto; border-radius: 10px; padding: 8px 10px; margin-top: 6px; }
  .ld-cmp tbody tr:last-child .us { border-radius: 10px; }
  /* итоги по месяцам — листать вбок, как скриншоты */
  .ld-months { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 10px; }
  .ld-months figure { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .ld-faq summary::after, .ld-btn { transition: none; }
  .ld-screen::before { animation: none; }
}

/* =====================================================================
   Гайд «Мой формат» — скрытая страница (src/pages/gayd.html), классы gd-*.
   Из неё же build.py печатает PDF: правила для печати — в конце блока.
   ===================================================================== */
.gd { max-width: 820px; }
.gd-head { padding-bottom: 24px; }
.gd-h1 { font-size: clamp(40px, 8vw, 64px); }
.gd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gd-sec { border-top: 1px solid var(--line); padding-block: 48px; }
.sec + .gd-sec { padding-top: 48px; }
.gd-h2 { display: flex; gap: 14px; align-items: center; font-size: clamp(25px, 4.4vw, 36px); line-height: 1.15; }
.gd-num { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--accent); font-size: 30px; }
.gd-h3 { margin: 18px 0 0; font-size: 21px; }
.gd-inline { font-family: Consolas, "Courier New", monospace; font-size: .92em; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.gd-list { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.gd-start { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: s; }
.gd-start li { background: var(--panel); border-radius: var(--radius); padding: 12px 16px 12px 58px; position: relative; }
.gd-start li::before { counter-increment: s; content: counter(s); position: absolute; left: 14px; top: 11px; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; font: 700 18px/1 var(--display); }
.gd-start a { color: var(--muted); font-size: 14.5px; white-space: nowrap; }
.gd-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: s; }
.gd-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.gd-steps li::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--accent); display: grid; place-items: center; font: 700 17px/1 var(--display); margin-top: -1px; }
.gd-toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; margin-top: 8px; }
.gd-toc a { display: flex; gap: 12px; align-items: center; background: var(--panel); border-radius: 10px; padding: 10px 14px; text-decoration: none; font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.gd-toc a:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.gd-toc b { flex: none; font: 700 18px/1 var(--display); background: var(--accent); border-radius: 6px; width: 28px; height: 28px; display: grid; place-items: center; }
.gd-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.gd-cards li { background: var(--panel); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 4px; align-content: start; border-top: 4px solid var(--accent); }
.gd-cards b { font: 700 18px/1.2 var(--display); text-transform: uppercase; }
.gd-cards span { color: var(--muted); font-size: 15.5px; }
.gd-box { background: var(--panel); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 10px; }
.gd-box-title { font: 700 20px/1.2 var(--display); text-transform: uppercase; }
.gd-box-title span { display: block; font: 400 14px/1.4 var(--text); text-transform: none; color: var(--muted); margin-top: 2px; }
.gd-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gd-reels { margin: 8px 0; max-width: 620px; }
.gd-months figure { background: var(--panel); }
.gd-months figcaption { font-size: 20px; }
.gd-hooks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gd-hook { background: var(--panel); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; align-content: start; font-size: 15.5px; }
.gd-hook-name { display: flex; gap: 10px; align-items: center; font: 700 21px/1.1 var(--display); text-transform: uppercase; }
.gd-hook-name b { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
.gd-hook-aim { font-weight: 700; }
.gd-hook-ex { color: var(--muted); font-size: 14.5px; border-top: 1px solid var(--line); padding-top: 8px; }
.gd-chains { display: grid; gap: 8px; }
.gd-chains div { background: var(--panel); border-radius: var(--radius); padding: 12px 16px; display: grid; gap: 2px; }
.gd-chains b { font-size: 14px; color: var(--muted); font-weight: 600; }
.gd-what { display: block; font: 400 13px/1.3 var(--text); text-transform: none; color: var(--muted); }
.gd .compare td:first-child { font-weight: 700; }
.gd .compare td:first-child a { text-decoration: none; }
.gd-code { background: var(--ink); color: #EDEFF2; border-radius: var(--radius); overflow: hidden; }
.gd-code-bar { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 10px 10px 10px 16px; border-bottom: 1px solid #343840; }
.gd-code-bar b { font-size: 14.5px; color: var(--accent); }
.gd-code-bar .btn { flex: none; }
.gd-code pre { margin: 0; padding: 14px 16px 16px; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.6 Consolas, "Courier New", monospace; }
.gd-check { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gd-check fieldset { margin: 0; border: 0; background: var(--panel); border-radius: var(--radius); padding: 14px 16px 16px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.gd-check legend { float: left; width: 100%; font: 700 19px/1.2 var(--display); text-transform: uppercase; margin-bottom: 4px; padding: 0; }
.gd-check .check { font-size: 15.5px; cursor: pointer; }
.gd-check .check input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(26, 29, 33, .35); }
.gd-example { display: grid; gap: 10px; margin-top: 18px; scroll-margin-top: 72px; }
.gd-end { background: var(--panel); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; margin-top: 18px; }
/* покупатель уже купил: «Купить» в шапке гайда не нужна */
.page-gayd .top .btn { display: none; }
@media (max-width: 760px) {
  .gd-hooks, .gd-two, .gd-check { grid-template-columns: minmax(0, 1fr); }
  .gd-num { width: 42px; height: 42px; font-size: 24px; }
  .gd-code-bar { flex-wrap: wrap; }
}
/* таблицы гайда на телефоне — белыми карточками на сером фоне */
@media (max-width: 640px) {
  .gd .compare tr { background: var(--panel); }
}
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body { background: #fff; font-size: 10.5pt; line-height: 1.5; }
  .gd-h1 { font-size: 40pt; }
  .gd-h2 { font-size: 20pt; }
  .gd-num { width: 34px; height: 34px; font-size: 20px; }
  .gd.stack { gap: 10px; }
  .gd-code pre { font-size: 9pt; line-height: 1.45; padding: 10px 14px 12px; }
  .compare th, .compare td { padding: 7px 10px; }
  .gd-box, .gd-hook, .gd-cards li, .gd-check fieldset { padding: 10px 14px; }
  .gd-head { padding-top: 0; }
  .top, .foot, .buybar, .cookies, dialog, .gd-actions, .gd-end .btn, .gd-code-bar .btn, .gd-head .footnote { display: none !important; }
  .gd-sec { border-top: 0; padding-block: 16px; }
  .gd-h2, .gd-h3, .gd-box-title, .gd-check legend { break-after: avoid; }
  .gd-box, .gd-hook, .gd-cards li, .gd-check fieldset, .gd-start li, .gd-chains div, .compare tr, .ld-months figure, .ld-covers figure, .caveat { break-inside: avoid; }
  .gd-box, .gd-hook, .gd-cards li, .gd-check fieldset, .gd-start li, .gd-chains div, .gd-toc a, .table-wrap, .caveat, .gd-end, .gd-months figure { background: #F4F5F7; }
  .gd-code { background: #F4F5F7; color: var(--ink); border: 1px solid var(--line); }
  .gd-code-bar { border-bottom-color: var(--line); }
  .gd-code-bar b { color: var(--ink); }
  .gd-example { break-before: page; }
  .gd-code, .gd-steps, .gd-list { break-inside: avoid; }
  .ld-months { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row; overflow: visible; }
  .ld-covers video { box-shadow: none; }
  a { text-decoration: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
