/* ============================================================
   Resal — сайт. Токены те же, что в окне программы (ui/theme.js).
   Три направления: A — как программа, B — кинографика, C — светлый продукт.
   Переключение: body[data-v="a"|"b"|"c"], в адресе ?v=b
   ============================================================ */

@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Noto"; src: url("fonts/NotoSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0b0d12;
  --bg-2: #11141b;
  --panel: rgba(255,255,255,.045);
  --panel-2: rgba(255,255,255,.07);
  --line: rgba(255,255,255,.10);
  --text: #eef1f6;
  --text-2: #9aa3b2;
  --accent: #ff8a1f;
  --accent-rgb: 255,138,31;
  --accent-2: #ffb35c;
  --accent-0: #ff7a18;
  --accent-3: #ff4d6d;
  --on-accent: #1d0f02;
  --blob-1: #ff7a18;
  --blob-2: #6a3cff;
  --blob-3: #ff3d7f;
  --shadow: 0 30px 80px rgba(0,0,0,.55);
  --radius: 20px;
  --maxw: 1240px;
  --pad: 24px;
  --font-h: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-b: "Noto", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[data-shot] { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-h); font-weight: 800; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4.2vw, 52px); }
h2 { font-size: clamp(26px, 3.2vw, 42px); }
h3 { font-size: clamp(18px, 1.6vw, 23px); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.wrap.narrow { max-width: 860px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--on-accent); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------------- кнопки ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-h); font-weight: 800; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-0) 55%, var(--accent-3) 130%);
  color: var(--on-accent);
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), .28), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover { box-shadow: 0 16px 40px rgba(var(--accent-rgb), .38); }
.btn-ghost { background: var(--panel); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-sm { padding: 9px 18px; font-size: 15px; }

/* ---------------- шапка ---------------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(11,13,18,.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-h); font-weight: 800; font-size: 20px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line); }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; color: var(--text-2); }
.nav a:hover { color: var(--text); }
.top-buy { margin-left: 0; }
@media (max-width: 900px) { .nav { display: none; } .top-buy { margin-left: auto; } }

/* ---------------- герой ---------------- */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; }
.blob.b1 { width: 620px; height: 620px; background: var(--blob-1); top: -240px; right: -140px; }
.blob.b2 { width: 520px; height: 520px; background: var(--blob-2); bottom: -260px; left: -160px; opacity: .28; }
.blob.b3 { width: 420px; height: 420px; background: var(--blob-3); top: 30%; left: 42%; opacity: .22; }
.sparks { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video, .hero-veil { display: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-in > * { min-width: 0; }
.pill {
  display: inline-block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-2); border: 1px solid rgba(var(--accent-rgb), .35);
  background: rgba(var(--accent-rgb), .09); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.grad { background: linear-gradient(120deg, var(--accent) 10%, var(--accent-3) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.3vw, 20px); color: var(--text-2); max-width: 34em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 30px; }
.hero-facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; padding: 0; margin: 0; }
.hero-facts li { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 12px 14px; }
.hero-facts b { display: block; font-family: var(--font-h); font-size: 19px; }
.hero-facts span { font-size: 13px; color: var(--text-2); }

/* визуал героя: окно программы + телефоны */
.hero-visual { position: relative; }
.app-shot { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #0e1118; }
.app-shot img { width: 100%; height: auto; }
.app-glow { position: absolute; inset: -1px; border-radius: 16px; box-shadow: 0 0 60px rgba(var(--accent-rgb), .25); pointer-events: none; }
.phone {
  position: absolute; width: 30%; min-width: 150px; max-width: 240px;
  border-radius: 26px; padding: 8px; background: linear-gradient(180deg, #1a1f29, #0d1015);
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 26px 60px rgba(0,0,0,.6);
}
.phone-a { left: -7%; top: -20%; transform: rotate(-5deg); }
.phone-b { right: -7%; bottom: -17%; transform: rotate(5deg); }
.phone-screen { border-radius: 18px; overflow: hidden; aspect-ratio: 9/16; background: #000; }
.phone-screen video { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- секции ---------------- */
.sec { padding: 92px 0; position: relative; scroll-margin-top: 80px; }
.sec-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.022), transparent); }
.sec-title { margin-bottom: 8px; }
.sec-lead { color: var(--text-2); font-size: 19px; max-width: 46em; margin-bottom: 40px; }

/* шаги */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0; margin: 0 0 40px; }
.steps li { position: relative; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.steps .n {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-0)); color: var(--on-accent);
  font-family: var(--font-h); font-weight: 800; font-size: 20px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--text-2); margin: 0; }
.how-video { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0e1118; box-shadow: var(--shadow); }
.demo-video { width: 100%; height: auto; }
.how-caption { padding: 12px 18px; font-size: 14px; color: var(--text-2); border-top: 1px solid var(--line); }

/* возможности */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feat { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 30px 28px; }
.feat h3 { display: flex; align-items: center; gap: 12px; }
.feat .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .3); }
.feat .lead { font-size: 16px; margin: 0 0 14px; }
.feat ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.feat li { margin-bottom: 7px; }

/* примеры */
.ex-ba { display: grid; grid-template-columns: 1.6fr auto .75fr; gap: 22px; align-items: center; margin-bottom: 46px; }
.ex-fig { margin: 0; }
.ex-fig img, .ex-fig video { width: 100%; border-radius: 16px; border: 1px solid var(--line); background: #0e1118; }
.ex-fig figcaption { font-size: 14px; color: var(--text-2); margin-top: 10px; }
.ex-fig figcaption b { color: var(--text); }
.ex-arrow { font-size: 34px; color: var(--accent); }
.ex-h3 { margin: 46px 0 18px; }
.carousel { position: relative; }
.car-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.car-item { margin: 0; flex: 0 0 260px; scroll-snap-align: start; }
.car-item video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); background: #000; }
.car-item figcaption { font-size: 13px; color: var(--text-2); margin-top: 8px; }
.car-btn { position: absolute; top: 38%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(20,24,32,.85); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; }
.car-prev { left: -12px; } .car-next { right: -12px; }
.ex-long { display: block; }
.ex-fig-video video { aspect-ratio: 16/9; object-fit: cover; }
.ex-covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.ex-covers figure { margin: 0; }
.ex-covers img { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.ex-covers figcaption { font-size: 13px; color: var(--text-2); margin-top: 6px; }

/* почему */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.why-list { list-style: none; padding: 0; margin: 0; }
.why-list li { padding: 16px 0 16px 34px; position: relative; border-bottom: 1px solid var(--line); color: var(--text-2); }
.why-list li:last-child { border-bottom: 0; }
.why-list li::before { content: "✓"; position: absolute; left: 0; top: 15px; color: var(--accent); font-weight: 800; }
.why-list b { color: var(--text); }
.cmp-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-family: var(--font-h); background: rgba(var(--accent-rgb), .08); }
.cmp thead th:first-child { color: var(--accent-2); }
.cmp tbody td:first-child { color: var(--text); font-weight: 500; }
.cmp tbody td:last-child { color: var(--text-2); }

/* требования */
.req-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: start; }
.req { width: 100%; border-collapse: collapse; font-size: 15.5px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.req th, .req td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.req thead th { font-family: var(--font-h); background: rgba(var(--accent-rgb), .08); }
.req tbody tr:last-child td { border-bottom: 0; }
.req td:first-child { font-weight: 500; }
.req td { color: var(--text-2); }
.req-h3 { margin-bottom: 10px; }
.req-note { color: var(--text-2); font-size: 15px; }
.req-side .req-speed { margin: 0 0 18px; font-size: 14.5px; }

/* цена */
.price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; max-width: 1000px; }
.price-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 34px 32px; }
.price-card.main { border-color: rgba(var(--accent-rgb), .45); background: linear-gradient(180deg, rgba(var(--accent-rgb), .10), var(--panel)); box-shadow: var(--shadow); }
.price-name { font-family: var(--font-h); font-weight: 800; font-size: 20px; }
.price-val { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 4px; }
.price-val b { font-family: var(--font-h); font-size: 46px; line-height: 1; }
.price-val span { color: var(--text-2); }
.price-hint { color: var(--text-2); font-size: 14px; margin-bottom: 18px; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.price-card li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--text-2); font-size: 15.5px; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.price-card .btn { width: 100%; }
.price-fine { font-size: 13.5px; color: var(--text-2); margin: 14px 0 0; }
.price-note { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; background: var(--panel); color: var(--text-2); font-size: 15.5px; }
.price-note h3 { color: var(--text); }
.price-note ul { padding-left: 20px; margin: 0 0 12px; }
.price-note li { margin-bottom: 7px; }

/* вопросы */
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 12px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-family: var(--font-h); font-weight: 700; font-size: 17px; padding: 16px 0; list-style: none; position: relative; padding-right: 34px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--text-2); margin: 0 0 16px; }

/* подвал */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 24px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.foot-col h3 { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.foot-col a { display: block; padding: 5px 0; color: var(--text-2); font-size: 15px; }
.foot-col a:hover { color: var(--accent-2); }
.foot-text { color: var(--text-2); font-size: 15px; margin-top: 10px; max-width: 30em; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.dots { display: flex; gap: 8px; flex-wrap: wrap; }
.dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.dot[aria-pressed="true"] { border-color: var(--text); transform: scale(1.12); }

/* ============================================================
   НАПРАВЛЕНИЕ B — «кино»: клипы во весь экран, минимум интерфейса
   ============================================================ */
body[data-v="b"] .hero { min-height: 88vh; display: flex; align-items: center; padding: 110px 0 100px; }
body[data-v="b"] .hero-in { grid-template-columns: 1fr; text-align: center; gap: 40px; }
body[data-v="b"] .hero-text { max-width: 940px; margin: 0 auto; }
body[data-v="b"] .lead { margin-left: auto; margin-right: auto; }
body[data-v="b"] .hero-cta { justify-content: center; }
body[data-v="b"] .hero-facts { max-width: 780px; margin: 0 auto; }
body[data-v="b"] .hero-visual { display: none; }
body[data-v="b"] .hero-video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .34; }
body[data-v="b"] .hero-veil { display: block; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,18,.72), rgba(11,13,18,.9) 70%, var(--bg)); }
body[data-v="b"] .blob { opacity: .18; }
body[data-v="b"] .sec { padding: 78px 0; }
body[data-v="b"] .feat { background: transparent; }
body[data-v="b"] .steps li { background: transparent; }

/* ============================================================
   НАПРАВЛЕНИЕ C — «чистый продукт»: светлый, крупная типографика
   ============================================================ */
body[data-v="c"] {
  --bg: #f4f5f8; --bg-2: #ffffff; --panel: #ffffff; --panel-2: #fbfbfd;
  --line: rgba(12,16,26,.10); --text: #101319; --text-2: #59616f;
  --shadow: 0 24px 60px rgba(16,20,30,.10);
}
body[data-v="c"] .top { background: rgba(244,245,248,.82); }
body[data-v="c"] .hero { padding: 90px 0 100px; }
body[data-v="c"] .hero-in { grid-template-columns: 1fr; text-align: center; }
body[data-v="c"] .hero-text { max-width: 900px; margin: 0 auto; }
body[data-v="c"] .lead { margin: 0 auto 8px; color: var(--text-2); }
body[data-v="c"] .hero-cta { justify-content: center; }
body[data-v="c"] .hero-facts { max-width: 800px; margin: 0 auto; }
body[data-v="c"] .hero-facts li { background: #fff; box-shadow: 0 8px 24px rgba(16,20,30,.06); }
body[data-v="c"] .hero-visual { max-width: 980px; margin: 40px auto 0; }
body[data-v="c"] .app-shot { box-shadow: var(--shadow); border-color: var(--line); }
body[data-v="c"] .blob { opacity: .16; filter: blur(110px); }
body[data-v="c"] .sec-alt { background: #fff; }
body[data-v="c"] .feat, body[data-v="c"] .steps li, body[data-v="c"] .price-card, body[data-v="c"] .faq details,
body[data-v="c"] .price-note, body[data-v="c"] .cmp-wrap { box-shadow: 0 10px 30px rgba(16,20,30,.06); }
body[data-v="c"] .phone { background: #fff; border-color: rgba(12,16,26,.10); }
body[data-v="c"] .foot { background: #fff; }

/* ---------------- режим сравнения направлений ---------------- */
/* ?only=sample — только герой, один блок возможностей и цена (для снимков) */
body.sample-only .sec:not(#sec-features):not(#sec-price) { display: none; }
body.sample-only #sec-features .feat:not(:first-child) { display: none; }
body.sample-only .hero { min-height: 0; padding-bottom: 56px; }
body.sample-only[data-v="b"] .hero { min-height: 760px; }
body.sample-only #sec-features, body.sample-only #sec-price { padding: 56px 0; }
body.sample-only .foot { display: none; }

/* ---------------- адаптив ---------------- */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { max-width: 720px; margin: 30px auto 0; }
  .phone { width: 26%; }
  .steps, .feat-grid, .why-grid, .req-grid, .price-wrap, .ex-ba { grid-template-columns: 1fr; }
  .ex-arrow { display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .sec { padding: 64px 0; }
  .hero { padding: 44px 0 60px; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-visual { display: none; }
  .phone { display: none; }
  .car-item { flex: 0 0 68vw; }
  .ex-covers { grid-template-columns: 1fr; }
  .car-btn { display: none; }
  .foot-in { grid-template-columns: 1fr; }
  .price-val b { font-size: 38px; }
  .wrap { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}

/* ---------------- цены: 3 тарифа (shop.json) + окно покупки ---------------- */
.price-wrap { grid-template-columns: repeat(3, 1fr); max-width: 1100px; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card .btn { margin-top: auto; }
.price-badge { position: absolute; top: -13px; left: 28px; background: var(--accent); color: var(--on-accent); font-family: var(--font-h);
  font-weight: 800; font-size: 12.5px; letter-spacing: .02em; padding: 4px 12px; border-radius: 999px; }
.price-inc { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 24px 28px; }
.price-inc ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.price-inc li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 15.5px; }
.price-inc li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.price-free { margin: 10px 0 0; color: var(--text); }
.price-free a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1080px) { .price-inc ul { grid-template-columns: 1fr; } .price-card { margin-top: 10px; } }

.buy-dlg { width: min(520px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  color: var(--text); padding: 30px 30px 26px; box-shadow: var(--shadow); }
.buy-dlg::backdrop { background: rgba(5,6,10,.7); backdrop-filter: blur(4px); }
.buy-dlg h3 { margin-bottom: 14px; padding-right: 30px; }
.buy-dlg p { color: var(--text-2); }
.buy-dlg a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.buy-dlg .btn { text-decoration: none; }
.buy-x { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--panel);
  color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.buy-x:hover { background: var(--panel-2); }
.buy-wait { display: flex; align-items: center; gap: 12px; color: var(--text) !important; font-weight: 700; }
.buy-small { font-size: 14px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(var(--accent-rgb), .25); border-top-color: var(--accent);
  animation: buy-spin .8s linear infinite; flex: none; }
@keyframes buy-spin { to { transform: rotate(360deg); } }
.buy-key { font-family: Consolas, "Courier New", monospace; font-size: clamp(18px, 4.6vw, 24px); letter-spacing: 1px; text-align: center;
  padding: 16px; margin: 0 0 12px; border-radius: 14px; background: rgba(var(--accent-rgb), .10); border: 1px solid rgba(var(--accent-rgb), .4);
  color: var(--accent-2); user-select: all; word-break: break-all; }
.buy-how { color: var(--text-2); padding-left: 20px; margin: 18px 0 0; font-size: 15px; }
.buy-how li { margin-bottom: 6px; }
.price-val { flex-wrap: wrap; column-gap: 10px; row-gap: 2px; }
.price-val b { white-space: nowrap; font-size: clamp(34px, 3.4vw, 46px); }
.price-val span { white-space: nowrap; }
.price-hint { min-height: 1.6em; }
.nav a { white-space: nowrap; }
@media (max-width: 1180px) { .nav { gap: 16px; font-size: 14px; } }
@media (max-width: 1040px) { .nav { display: none; } .top-buy { margin-left: auto; } }
.buy-dlg a.btn { color: var(--text); } .buy-dlg a.btn-primary { color: var(--on-accent); }
@media (max-width: 1080px) { .price-wrap { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------------- 08.11: первый экран, примеры, требования (ровно и понятно) ---------------- */
.hero-in { grid-template-columns: .95fr 1.05fr; }
.hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hero-facts li { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 15px; }
.hero-facts b { font-size: 16px; line-height: 1.25; }
.hero-facts span { font-size: 13.5px; line-height: 1.45; }
.hero-free { margin: 16px 0 0; color: var(--text-2); font-size: 15px; }
.hero-visual { padding: 0 0 70px; }
.hero-visual .app-shot img { aspect-ratio: 2880 / 1280; object-fit: cover; }
.hero-visual .phone { right: 4%; left: auto; top: auto; bottom: 0; width: 34%; max-width: 210px; transform: none; }

.ex-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.ex-clip { margin: 0; display: flex; flex-direction: column; }
.ex-screen { aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.ex-screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-clip figcaption { margin-top: 12px; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.ex-clip figcaption b { display: block; color: var(--text); font-family: var(--font-h); font-size: 16px; margin-bottom: 2px; }
.ex-note { margin: 22px 0 0; color: var(--text-2); font-size: 13.5px; }

#req-table { table-layout: fixed; }
#req-table th:nth-child(1), #req-table td:nth-child(1) { width: 20%; }
#req-table th:nth-child(2), #req-table td:nth-child(2) { width: 40%; }
.req-h3 { margin: 44px 0 16px; }
.speed-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.speed-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 22px 22px 20px; }
.speed-card:first-child { border-color: rgba(var(--accent-rgb), .45); background: linear-gradient(180deg, rgba(var(--accent-rgb), .10), var(--panel)); }
.speed-time { font-family: var(--font-h); font-weight: 800; font-size: 28px; line-height: 1.1; }
.speed-card:first-child .speed-time { color: var(--accent-2); }
.speed-gpu { margin-top: 10px; font-weight: 600; color: var(--text); }
.speed-hint { color: var(--text-2); font-size: 14px; }
#req-weak { margin-top: 16px; }

@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; }
  .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hero-facts, .speed-cards { grid-template-columns: 1fr; }
  .hero-visual .phone { width: 38%; right: 2%; }
  #req-table th:nth-child(1), #req-table td:nth-child(1) { width: 28%; }
  #req-table th, #req-table td { padding: 10px 10px; font-size: 14px; }
}
/* первый экран: текст сверху, окно программы крупно под ним */
.hero-in { grid-template-columns: 1fr; gap: 48px; }
.hero-text { max-width: 980px; }
.hero-text h1 { max-width: 15em; }
.hero-visual { max-width: 1120px; width: 100%; margin: 0 auto; padding: 0 0 40px; }
.hero-visual .app-shot { width: 84%; }
.hero-visual .phone { right: 0; bottom: 0; width: 22%; max-width: 250px; min-width: 120px; }
@media (max-width: 720px) { .hero-visual .app-shot { width: 92%; } .hero-visual .phone { width: 34%; } }
.hero-visual .app-shot { width: 76%; } .hero-visual .phone { width: 21%; bottom: -10px; } @media (max-width: 720px) { .hero-visual .app-shot { width: 100%; } .hero-visual .phone { display: none; } }

/* отзывы (site/app.js loadReviews) */
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.rv-item { margin: 0; display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.rv-img { flex: none; width: 72px; aspect-ratio: 9 / 16; border-radius: 12px; background: var(--panel-2) center / cover no-repeat; }
.rv-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rv-stars { color: var(--accent); letter-spacing: 2px; font-size: 17px; }
.rv-item blockquote { margin: 0; color: var(--text); line-height: 1.55; overflow-wrap: anywhere; }
.rv-item figcaption { margin-top: auto; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-weight: 600; }
.rv-item figcaption a { color: var(--accent-2); text-decoration: none; }
.rv-item figcaption span { color: var(--text-3, var(--text-2)); font-weight: 400; font-size: 14px; }
@media (max-width: 720px) { .rv-grid { grid-template-columns: 1fr; } }

/* скидка за друга */
.ref-banner { grid-column: 1 / -1; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(var(--accent-rgb), .45);
  background: rgba(var(--accent-rgb), .10); color: var(--text); font-size: 15.5px; }
.ref-banner b { color: var(--accent-2); letter-spacing: 1px; }
.price-val .price-was { margin-left: 8px; color: var(--text-2); font-size: 16px; text-decoration: line-through; }

/* страница «Аналог OpusClip» (opusclip.html) */
.alt-kicker { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(var(--accent-rgb), .45);
  color: var(--accent-2); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.alt-h1 { font-family: var(--font-h); font-size: clamp(30px, 5vw, 52px); line-height: 1.1; margin: 0 0 20px; max-width: 18em; }
.alt-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.alt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.alt-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.alt-card b { display: block; font-family: var(--font-h); font-size: 18px; margin-bottom: 8px; }
.alt-card p { margin: 0; color: var(--text-2); line-height: 1.55; }
.alt-steps { margin: 0; padding-left: 22px; display: grid; gap: 12px; max-width: 46em; color: var(--text-2); font-size: 17px; }
.alt-steps b { color: var(--text); }
.foot a { color: var(--accent-2); }
@media (max-width: 900px) { .alt-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .alt-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   Редизайн 13.11.2026 (Soft Swiss, тот же бренд, что окно программы — ui/system.css).
   Сайт — светлый: тёплая бумага, графитовый текст; видео — на тёмной сцене. Акцент — фирменный цвет темы,
   затемнённый для текста на светлом (контраст ≥ 4,5:1). Перекрывает всё выше, на всех страницах сайта.
   ============================================================================ */
@font-face { font-family: "Golos Text"; src: url("fonts/GolosText.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
:root {
  --bg: #ebe8e2; --bg-2: #f5f3ef; --panel: #f5f3ef; --panel-2: #ffffff; --surface-3: #e2dfd8;
  --line: #d8d4cc; --line-strong: #b9b4aa; --text: #1f1d23; --text-2: #5f5b68; --text-3: #77737f;
  --stage: #121116; --stage-2: #1a191f; --ok: #23734a;
  --shadow: 0 18px 40px rgba(31, 29, 35, .14);
  --radius: 14px;
  --font-h: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --font-b: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --s-acc: #b3460e; --s-on: #ffffff;
  color-scheme: light;
}
html[data-theme="pink"] { --s-acc: #c7367a; } html[data-theme="violet"] { --s-acc: #6d5ce7; } html[data-theme="blue"] { --s-acc: #2f6fc4; }
html[data-theme="mint"] { --s-acc: #17775f; } html[data-theme="red"] { --s-acc: #cf3f3f; } html[data-theme="gold"] { --s-acc: #8a5d09; }
html[data-theme="lime"] { --s-acc: #4b720b; }
body, body[data-v] { background: var(--bg); color: var(--text); font-family: var(--font-b); font-size: 17px; line-height: 1.55; }
/* яркие варианты акцента (их ставит app.js на <html>) на светлом не читаются — на <body> подменяем затемнённым */
body { --accent: var(--s-acc); --accent-2: var(--s-acc); --accent-0: var(--s-acc); --accent-3: var(--s-acc); --on-accent: #fff; --accent-rgb: 179, 70, 14; }
html[data-theme="pink"] body { --accent-rgb: 199, 54, 122; } html[data-theme="violet"] body { --accent-rgb: 109, 92, 231; }
html[data-theme="blue"] body { --accent-rgb: 47, 111, 196; } html[data-theme="mint"] body { --accent-rgb: 23, 119, 95; }
html[data-theme="red"] body { --accent-rgb: 207, 63, 63; } html[data-theme="gold"] body { --accent-rgb: 138, 93, 9; } html[data-theme="lime"] body { --accent-rgb: 75, 114, 11; }
h1, h2, h3 { font-family: var(--font-h); font-weight: 700; letter-spacing: -.025em; }
.blob, .sparks, .hero-bg { display: none !important; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--s-acc); outline-offset: 2px; }
.grad { background: none !important; -webkit-text-fill-color: currentColor !important; color: inherit !important; }

/* шапка */
.top { background: color-mix(in srgb, var(--bg) 92%, transparent) !important; border-bottom: 1px solid var(--line); backdrop-filter: none; }
.brand { font-family: var(--font-h); font-weight: 700; }
.nav a { color: var(--text-2); } .nav a:hover { color: var(--text); }

/* кнопки: нажатие с весом, без свечения */
.btn { font-family: var(--font-b); font-weight: 600; border-radius: 10px; box-shadow: 0 1px 2px rgba(31, 29, 35, .06); transition: transform 120ms cubic-bezier(.34, 1.3, .64, 1), background 120ms, border-color 120ms; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary { background: var(--s-acc) !important; color: var(--s-on) !important; border: 1px solid transparent !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1), 0 8px 18px -10px var(--s-acc) !important; animation: none !important; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: #fff !important; color: var(--text) !important; border: 1px solid var(--line-strong) !important; }
.btn-ghost:hover { border-color: var(--text-3) !important; }
.pill, .alt-kicker { background: transparent; border: 1px solid var(--line-strong); color: var(--text-2); }

/* секции: листы вместо стекла */
.sec-alt { background: var(--bg-2) !important; }
.sec { border-top: 1px solid var(--line); }
.sec-lead, .lead { color: var(--text-2); }
.steps li, .feat, .alt-card, .price-note, .cmp-wrap, .faq details, .ex-card, .rv { background: var(--panel-2) !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
.cmp thead th, .req thead th { background: var(--bg-2) !important; }
.cmp td, .cmp th, .req td, .req th { border-color: var(--line) !important; }
.foot { background: var(--bg-2); }
.foot a { color: var(--s-acc); }

/* цены */
.price-card { background: var(--panel-2) !important; border: 1px solid var(--line-strong) !important; box-shadow: none !important; border-radius: var(--radius) !important; }
.price-card.main { box-shadow: inset 0 3px 0 var(--s-acc) !important; }
.price-badge { background: color-mix(in srgb, var(--s-acc) 14%, #fff) !important; color: var(--s-acc) !important; box-shadow: none !important; font-family: var(--font-b) !important; }
.price-val b { font-family: var(--font-h); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.03em; }
.price-inc li::before { content: "" !important; background: none !important; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); width: 10px !important; height: 5px !important; transform: rotate(-45deg); border-radius: 0 !important; }
.price-free a, .ref-banner b { color: var(--s-acc); }

/* ---------- герой: запись входит — клипы выходят (strip.js) ---------- */
.hero2 { padding: 64px 0 56px; }
.hero2-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero2 h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.03; letter-spacing: -.035em; max-width: 12ch; margin: 0; }
.hero2 .lead { font-size: 18px; margin: 20px 0 0; max-width: 46ch; }
.hero2 .hero-cta { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero2 .hero-cta .btn { padding: 15px 24px; font-size: 17px; }
.hero2 .hero-free { margin-top: 14px; color: var(--text-2); font-size: 15px; }
.hero2 .hero-free b { color: var(--text); }
.hero2-show { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.hero2-cap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--text-3); font-size: 13px; }
.hero2-facts { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.hero2-facts b { display: block; font-size: 16px; } .hero2-facts span { color: var(--text-2); font-size: 15px; }
.sfilm { background: var(--stage); border-radius: 16px; padding: 14px 14px 10px; }
.sfilm-strip { position: relative; padding: 8px 0; border-radius: 4px; overflow: hidden;
  background: radial-gradient(circle, var(--stage) 0 2px, transparent 2.4px) 0 0 / 11px 8px repeat-x, radial-gradient(circle, var(--stage) 0 2px, transparent 2.4px) 0 100% / 11px 8px repeat-x, #2a2930; }
.sfilm-frames { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; }
.sfilm-frames i { aspect-ratio: 16 / 9; background: linear-gradient(var(--a), hsl(var(--h) 28% 34%), hsl(calc(var(--h) + 20) 26% 20%) 60%, hsl(var(--h) 20% 14%)); opacity: .12; transition: opacity 200ms; }
.sfilm-frames i.in { opacity: 1; }
.sfilm-m { position: absolute; z-index: 2; top: 8px; bottom: 8px; border: 2px solid var(--s-acc-d, #ff9a52); border-left-width: 3px; border-right-width: 3px; border-radius: 3px;
  opacity: 0; transform: scaleY(.6); transition: opacity 200ms, transform 220ms cubic-bezier(.34, 1.3, .64, 1); }
.sfilm-m.in { opacity: 1; transform: none; }
.sfilm-m.cut { background: var(--stage); border-color: rgba(244, 242, 247, .7); border-top-color: transparent; border-bottom-color: transparent; border-left-width: 1.5px; border-right-width: 1.5px; }
.sfilm-head { position: absolute; z-index: 3; top: 2px; bottom: 2px; left: 0; width: 2px; background: var(--s-acc-d, #ff9a52); opacity: 0; }
.sfilm-head.in { opacity: 1; }
.sfilm-wave { display: flex; align-items: center; gap: 2px; height: 20px; margin-top: 8px; overflow: hidden; }
.sfilm-wave i { flex: 1; height: var(--v); border-radius: 1.5px; background: rgba(244, 242, 247, .26); transform: scaleY(0); transition: transform 200ms; }
.sfilm-wave i.in { transform: scaleY(1); } .sfilm.hot .sfilm-wave i.hot.in { background: var(--s-acc-d, #ff9a52); }
.stray { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stray .sp { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--stage-2); opacity: 0; transform: translateY(-12px) scale(.94);
  transition: opacity 220ms, transform 360ms cubic-bezier(.34, 1.3, .64, 1); box-shadow: 0 10px 24px -14px rgba(31, 29, 35, .6); }
.stray .sp.in { opacity: 1; transform: none; }
.stray .sp img, .stray .sp video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stray .sp .veil { position: absolute; inset: 0; background: var(--stage-2); transform-origin: 50% 100%; transition: transform 500ms linear; }
html[data-theme="pink"] { --s-acc-d: #f07aae; } html[data-theme="violet"] { --s-acc-d: #a89cf5; } html[data-theme="blue"] { --s-acc-d: #7fb0f0; }
html[data-theme="mint"] { --s-acc-d: #6fd3b8; } html[data-theme="red"] { --s-acc-d: #f28383; } html[data-theme="gold"] { --s-acc-d: #e5bd62; } html[data-theme="lime"] { --s-acc-d: #b5d86a; }
.sticky-cta { display: none; }
@media (max-width: 900px) {
  .hero2 { padding: 28px 0 40px; }
  .hero2-in { grid-template-columns: 1fr; gap: 20px; }
  .hero2-text { display: contents; }
  .hero2 h1 { order: 1; } .hero2-show { order: 2; } .hero2 .lead { order: 3; margin: 0; } .hero2 .hero-cta { order: 4; margin: 0; } .hero2 .hero-free { order: 5; margin: 0; }
  .stray { grid-template-columns: repeat(4, 40%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .stray .sp { scroll-snap-align: start; }
  .hero2-facts { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: color-mix(in srgb, var(--bg) 94%, transparent); border-top: 1px solid var(--line); }
  .sticky-cta .btn { display: block; width: 100%; text-align: center; padding: 15px; font-size: 17px; }
  body { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { .stray .sp, .sfilm-m, .sfilm-frames i, .sfilm-wave i { transition: none !important; } }
