:root {
  --bg: #ffffff; --bg2: #f5f6fb; --fg: #161a2e; --muted: #5b6078; --line: #e3e5ef;
  --brand: #3f51d8; --brand2: #2a2f8f; --gold: #ffd24d; --gold2: #f5b301; --ok: #2e7d32;
  --radius: 14px; --shadow: 0 12px 40px rgba(22, 26, 46, .12);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11131f; --bg2: #181b2b; --fg: #eceefa; --muted: #a3a8c3; --line: #2a2e45; --brand: #7d8cff; --brand2: #5b68e0;
          --shadow: 0 12px 40px rgba(0, 0, 0, .45); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 12px; }
section { padding: 72px 0; }
section.alt { background: var(--bg2); }
.lead { color: var(--muted); font-size: 19px; max-width: 720px; }

/* шапка */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
             backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 20px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--fg); text-decoration: none; }
.logo img { width: 30px; height: 30px; }
nav.menu { display: flex; gap: 18px; margin-left: auto; }
nav.menu a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav.menu a:hover { color: var(--fg); }
.langs { display: flex; gap: 4px; font-size: 14px; }
.langs a { color: var(--muted); text-decoration: none; padding: 2px 6px; border-radius: 6px; }
.langs a.on { color: var(--fg); background: var(--bg2); font-weight: 600; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 650;
       text-decoration: none; border: 0; cursor: pointer; font-size: 16px; }
.btn:hover { background: var(--brand2); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
@media (max-width: 760px) { nav.menu { display: none; } header.top .btn.small { display: none; } .langs { margin-left: auto; } }

/* первый экран */
.hero { padding: 64px 0 40px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); margin: 0 0 18px; max-width: 900px; }
.hero .note { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* карточки */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 32px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.alt .card { background: var(--bg); }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 12px;
             background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); font-weight: 800; }
ol.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 28px; }
ol.steps li { counter-increment: s; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 62px; position: relative; }
ol.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%;
                      background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* цены */
.pricing { display: grid; grid-template-columns: 1fr 2fr; gap: 18px; margin-top: 32px; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg); }
.tier.pro { border: 2px solid var(--brand); }
.tier h3 { margin: 0 0 4px; font-size: 22px; }
.tier .big { font-size: 34px; font-weight: 800; }
.tier ul { padding-left: 20px; margin: 14px 0 0; color: var(--muted); }
.tier li { margin: 4px 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 16px 12px; text-align: center; position: relative; }
.plan.best { border: 2px solid var(--brand); }
.plan .name { font-weight: 650; }
.plan .price { font-size: 28px; font-weight: 800; margin: 4px 0 0; }
.plan .per { color: var(--muted); font-size: 13px; min-height: 2.4em; }
.plan .btn { width: 100%; margin-top: 8px; padding: 10px; }
.price-note { color: var(--muted); font-size: 15px; margin-top: 18px; }

/* вопросы */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 650; font-size: 18px; list-style: none; }
details summary::after { content: "+"; float: right; color: var(--muted); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 10px 0 0; }

.cta { text-align: center; }
.cta .btn { margin-top: 10px; }
.alert { background: #fff3cd; color: #6b4c00; border: 1px solid var(--gold2); border-radius: 10px; padding: 10px 14px; margin: 16px 0; }

footer { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 10px; }
footer a { color: var(--muted); }

/* простые страницы (условия, политика, после оплаты) */
.doc { max-width: 780px; padding: 48px 20px 72px; margin: 0 auto; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); margin-top: 0; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc .muted { color: var(--muted); }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg2); margin: 18px 0; }
.key { font: 700 22px ui-monospace, Menlo, monospace; letter-spacing: .04em; user-select: all; }
input.field { font: 16px ui-monospace, Menlo, monospace; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
              background: var(--bg); color: var(--fg); width: min(320px, 100%); }
textarea.field { font: 16px system-ui, sans-serif; width: 100%; min-height: 110px; }
.ok { color: var(--ok); font-weight: 600; }

/* ---------- тёмные блоки: первый экран и призыв в конце ---------- */
.dark { position: relative; overflow: hidden; color: #fff; background: #0b0e22; }
.dark::before { content: ""; position: absolute; inset: -10%; pointer-events: none;
  background: radial-gradient(55% 60% at 8% 0%, rgba(91,141,239,.55), transparent 62%),
              radial-gradient(45% 55% at 100% 8%, rgba(166,123,214,.45), transparent 60%),
              radial-gradient(60% 45% at 50% 108%, rgba(255,184,40,.22), transparent 62%);
  animation: drift 16s ease-in-out infinite alternate; }
.dark::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.4px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
@keyframes drift { to { transform: translate3d(3%, 2%, 0) scale(1.05); } }
.dark .wrap { position: relative; z-index: 1; }
.hero.dark { padding: 76px 0 90px; text-align: center; }
.hero.dark h1 { color: #fff; margin: 0 auto 18px; font-size: clamp(36px, 5.6vw, 64px); letter-spacing: -.03em; }
.hero.dark .lead { color: #c3c9ee; margin: 0 auto; }
.hero.dark .note { color: #9aa3d6; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.btn.gold { background: linear-gradient(92deg, #ffe08a, #ffb627 55%, #ff9d1a); color: #1d1400; box-shadow: 0 14px 40px rgba(255,170,0,.3);
  transition: transform .2s, box-shadow .2s; }
.btn.gold:hover { background: linear-gradient(92deg, #ffe08a, #ffb627 55%, #ff9d1a); transform: translateY(-2px); box-shadow: 0 18px 50px rgba(255,170,0,.42); }
.btn.glass { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn.glass:hover { background: rgba(255,255,255,.16); }
.hero-media { max-width: 1060px; margin: 48px auto 0; }
.cta.dark { padding: 90px 0; }
.cta.dark h2 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); }
.cta.dark .btn { margin-top: 18px; }

/* ---------- окно браузера вокруг снимков и видео ---------- */
.frame { border-radius: 14px; overflow: hidden; background: #fff; text-align: left;
  box-shadow: 0 30px 80px rgba(22,26,46,.28), 0 0 0 1px rgba(22,26,46,.08); }
.dark .frame { box-shadow: 0 40px 110px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.14), 0 0 90px rgba(91,141,239,.2); }
.frame .bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 13px; background: #eceef4; border-bottom: 1px solid #d9dce6; }
.frame.dk .bar { background: #24262d; border-bottom-color: #34363e; }
.frame .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.frame .bar i:nth-child(2) { background: #febc2e; } .frame .bar i:nth-child(3) { background: #28c840; }
.frame .bar span { margin-left: 10px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #5f6368; background: #fff; border-radius: 7px; padding: 2px 11px; }
.frame.dk .bar span { background: #33353d; color: #b8bcc6; }
.frame .bar img { width: 13px; height: 13px; }
.frame .vp { position: relative; }
.frame .vp > img, .frame video { display: block; width: 100%; height: auto; }
.sound { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; cursor: pointer;
  font: 600 14px system-ui, sans-serif; color: #fff; background: rgba(13,17,40,.72); border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: 8px 14px; backdrop-filter: blur(6px); }
.sound:hover { background: rgba(13,17,40,.9); }
.sound .waves { display: none; } .sound.on .waves { display: inline; } .sound.on .mute { display: none; }

/* ---------- «как это выглядит»: снимки с живой подсветкой ---------- */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.show { display: grid; gap: 88px; margin-top: 48px; }
.row { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: center; }
.row.flip .txt { order: 2; }
.row h3 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 12px; }
.row p { color: var(--muted); font-size: 18px; margin: 0; }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; gap: 20px; } .row.flip .txt { order: 0; } .show { gap: 56px; } }
.ov { position: absolute; inset: 0; pointer-events: none; }
.ov .glow { position: absolute; border-radius: 3px; box-shadow: 0 0 0 2px rgba(255,205,70,.95), 0 0 18px 5px rgba(255,170,0,.5); animation: glow 2.2s ease-in-out infinite; }
.ov .glow.pill { border-radius: 12px; }
@keyframes glow { 50% { box-shadow: 0 0 0 2px rgba(255,205,70,.55), 0 0 6px 1px rgba(255,170,0,.2); } }
.ov .spk { position: absolute; overflow: visible; }
.ov .spk rect { fill: none; stroke: #fff6c2; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 9 41;
  filter: drop-shadow(0 0 3px #ffc400) drop-shadow(0 0 6px #ff9d00); animation: run 1.8s linear infinite; }
@keyframes run { to { stroke-dashoffset: -100; } }
.fxchip { position: absolute; transform: translateY(-100%); white-space: nowrap; font: 600 clamp(10px, 1.1vw, 14px) ui-monospace, Consolas, monospace;
  color: #eef1ff; background: rgba(13,17,40,.94); border: 1px solid rgba(255,255,255,.2); border-radius: 9px; padding: .5em .85em;
  box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 0 4px rgba(91,141,239,.18); }
.fxchip u { text-decoration: none; font: italic 600 1em Georgia, serif; color: #8ea2d8; margin-right: .6em; }
.fxchip b { color: #ffc94d; } .fxchip i { font-style: normal; color: #8ab4f8; }

/* ---------- темы ---------- */
.themes { margin-top: 34px; }
.tbtns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.tbtns button { display: flex; align-items: center; gap: 8px; font: 600 15px system-ui, sans-serif; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--fg); transition: background .2s, color .2s; }
.tbtns button i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.tbtns button.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tstack { aspect-ratio: 1600 / 1000; }
.tstack img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .7s ease; }
.tstack img.on { opacity: 1; }

/* ---------- появление при прокрутке ---------- */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .dark::before, .ov .glow, .ov .spk rect { animation: none; }
}
@media (max-width: 560px) { .sound { right: 8px; bottom: 8px; padding: 7px; } .sound span { display: none; } }

/* отдельный блок «формулы между листами одним кликом» и раздел с короткими роликами */
.pick .pickrow { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
.pick h2 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.02em; line-height: 1.12; }
.pick .lead { color: #c3c9ee; }
.badge { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #1d1400;
  background: linear-gradient(92deg, #ffe08a, #ffb627); border-radius: 20px; padding: 4px 12px; margin-bottom: 14px; }
.checks { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 36px; color: #e4e7fb; font-size: 18px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 201, 77, .18); color: #ffc94d; font-weight: 800; font-size: 14px; }
.checks code { font: 600 .92em "Cascadia Mono", Consolas, monospace; color: #ffc94d; white-space: nowrap; }
.phone { width: 100%; max-width: 340px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden; background: #090b1b;
  border: 8px solid #1c2036; box-shadow: 0 40px 100px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .12); }
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 36px; }
.case { margin: 0; }
.case .phone { max-width: 260px; border-width: 6px; border-radius: 26px; box-shadow: var(--shadow); }
.case figcaption { text-align: center; margin: 14px auto 0; max-width: 260px; font-weight: 650; line-height: 1.35; }
@media (max-width: 960px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .pick .pickrow { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 480px) { .cases { grid-template-columns: 1fr; } }
