:root {
  --ink: #0f1b2d;
  --ink-2: #3a4a60;
  --muted: #6b7a8f;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --navy: #10243f;
  --accent: #1f6feb;
  --accent-2: #0e9f6e;
  --warn: #b4531a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 36, 63, .06), 0 8px 24px rgba(16, 36, 63, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-wrap: break-word; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 15px; letter-spacing: .5px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer; transition: background .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #1a5fd0; box-shadow: 0 4px 14px rgba(31, 111, 235, .3); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c5cfdb; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* первый экран */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #dfeaff 0%, rgba(223, 234, 255, 0) 60%), linear-gradient(180deg, #f7f9fc 0%, #fff 100%); padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.hero-grid > *, .grid-3 > *, .grid-2 > *, .compare > *, .price-wrap > *, .cta > * { min-width: 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
h1 { font-size: 46px; line-height: 1.12; margin: 0 0 18px; letter-spacing: -.02em; }
h2 { font-size: 34px; line-height: 1.2; margin: 0 0 14px; letter-spacing: -.01em; }
h3 { font-size: 20px; margin: 0 0 8px; }
.lead { font-size: 19px; color: var(--ink-2); margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-shot { border-radius: var(--radius); box-shadow: 0 20px 60px rgba(16, 36, 63, .18); border: 1px solid var(--line); overflow: hidden; background: #fff; }
.promo-strip { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; background: #fff6ec; color: var(--warn); border: 1px solid #f6d7b8; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }

section { padding: 80px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--ink-2); margin: 0; font-size: 18px; }

/* карточки */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.card .num { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .06em; margin-bottom: 10px; }
.pain { border-left: 4px solid #e0624b; }
.pain h3 { font-size: 18px; }

/* примеры */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab { border: 1px solid var(--line); background: #fff; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.example { display: none; }
.example.active { display: block; }
.example .story { font-size: 17px; color: var(--ink-2); margin: 0 0 20px; max-width: 900px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.shot { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.shot figcaption { padding: 12px 16px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.shot img { cursor: zoom-in; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.red { background: #e0624b; }
.dot.green { background: var(--accent-2); }
.why { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent-2); border-radius: 10px; padding: 18px 22px; color: var(--ink-2); font-size: 16px; }
.why b { color: var(--ink); }
.single { max-width: 640px; }

/* возможности */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; margin: 0; padding: 0; list-style: none; }
.feature-list li { padding-left: 30px; position: relative; color: var(--ink-2); font-size: 16px; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 4px; background: var(--accent-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.feature-list b { color: var(--ink); }
.feature-group { margin-bottom: 44px; }
.feature-group h3 { font-size: 22px; margin-bottom: 18px; }

/* шаги */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.step::before { counter-increment: step; content: counter(step); width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.step h3 { font-size: 16px; }
.step p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* цена */
.price-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch; }
.price-card { background: var(--navy); color: #fff; border-radius: 18px; padding: 36px; position: relative; overflow: hidden; }
.price-card .badge { display: inline-block; background: #ffb84d; color: #3a2400; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.price-old { font-size: 22px; color: #9fb0c8; text-decoration: line-through; }
.price-new { font-size: 52px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 4px 0 6px; }
.price-sub { color: #c5d2e4; font-size: 15px; margin-bottom: 24px; }
.price-card ul { margin: 0 0 28px; padding: 0; list-style: none; }
.price-card li { padding: 7px 0 7px 26px; position: relative; color: #dfe7f2; font-size: 15px; border-top: 1px solid rgba(255, 255, 255, .08); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: #5ee0a8; font-weight: 700; }
.countdown { font-size: 14px; color: #ffd08a; margin-top: 14px; }
.terms { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.terms h3 { margin-bottom: 14px; }
.terms dl { margin: 0; }
.terms dt { font-weight: 600; font-size: 15px; margin-top: 14px; }
.terms dd { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }

/* вопросы */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; position: relative; padding-right: 30px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; color: var(--muted); }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 18px; color: var(--ink-2); font-size: 16px; }

/* документы и контакты */
.doc-card { display: flex; gap: 16px; align-items: flex-start; }
.doc-icon { flex: none; width: 42px; height: 52px; border-radius: 6px; background: #eef3fb; border: 1px solid #d6e2f5; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--accent); }
.cta { background: linear-gradient(135deg, #10243f 0%, #183a66 100%); color: #fff; border-radius: 20px; padding: 48px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: #c5d2e4; margin: 0; }
.contacts { display: grid; gap: 10px; }
.contacts a { color: #fff; font-size: 18px; font-weight: 600; }
.contacts span { color: #9fb0c8; font-size: 13px; display: block; }
footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--ink-2); }

/* документ (оферта, соглашение) */
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: 32px; }
.doc h2 { font-size: 21px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; }
.doc p { margin: 0 0 10px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.doc .box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 20px 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 12px 0 18px; font-size: 15px; }
.doc td, .doc th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; color: var(--ink-2); }
.doc th { background: var(--bg-2); color: var(--ink); }
.toc { columns: 2; padding-left: 18px; font-size: 15px; }

/* увеличение снимка */
.lightbox { position: fixed; inset: 0; background: rgba(10, 18, 30, .86); display: none; align-items: center; justify-content: center; z-index: 50; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; }

@media (max-width: 960px) {
  h1 { font-size: 34px; }
  h2 { font-size: 27px; }
  .hero-grid, .price-wrap, .cta, .compare, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .toc { columns: 1; }
  section { padding: 56px 0; }
  .cta { padding: 32px; }
}

.sold { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; font-size: 15px; color: var(--ink-2); }
.sold b { flex: none; min-width: 52px; height: 52px; padding: 0 10px; border-radius: 14px; background: #e8f6ee; color: #137a43; font-size: 26px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.product .sold { margin: 0; }
