:root {
  --fg: #0f172a; --fg-muted: #475569; --fg-soft: #94a3b8;
  --bg: #f8fafc; --card: #ffffff; --border: #e2e8f0; --border-strong: #cbd5e1;
  --primary: #111827; --primary-strong: #000001; --primary-soft: #11182715;
  --accent: #0ea5e9; --accent-soft: #0ea5e915;
  --success: #10b981; --warning: #f59e0b; --danger: #dc2626;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 32px rgba(15, 23, 42, 0.12);
  font-family: "Manrope", -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--fg); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
*:focus-visible { outline: 3px solid var(--primary-soft); outline-offset: 2px; border-radius: 4px; }
body { margin: 0; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
button, .button { cursor: pointer; border: 0; font: inherit; font-weight: 600; border-radius: 10px; padding: 14px 22px; font-size: 15px; transition: transform .15s ease, box-shadow .15s ease, background .2s; }
.button-primary { background: var(--primary); color: white; box-shadow: var(--shadow-md); }
.button-primary:hover { background: var(--primary-strong); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.button-ghost { background: white; color: var(--fg); border: 1px solid var(--border-strong); }
.button-ghost:hover { border-color: var(--fg-muted); }
.shell { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ───────── Header ───────── */
.topbar { padding: 22px 0; display: flex; justify-content: space-between; align-items: center; backdrop-filter: blur(8px); position: sticky; top: 0; background: #f8fafccc; z-index: 50; border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--border); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { width: 36px; height: 36px; border-radius: 10px; background: var(--primary); display: grid; place-items: center; color: white; font-weight: 800; box-shadow: var(--shadow-sm); overflow: hidden; }
.brand .logo img { width: 100%; height: 100%; object-fit: cover; }
.brand strong { font-size: 17px; letter-spacing: -0.01em; }
.topnav { display: flex; gap: 26px; align-items: center; font-weight: 500; color: var(--fg-muted); }
.topnav a { color: inherit; font-size: 14px; }
.topnav a:hover { color: var(--fg); }
.topnav .button { padding: 10px 18px; font-size: 14px; }

/* ───────── Hero ───────── */
.hero { padding: 60px 0 80px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 54px; align-items: center; }
.hero .eyebrow { display: inline-block; background: var(--primary-soft); color: var(--primary-strong); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 20px; letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 18px; font-weight: 800; }
.hero h1 .accent { color: var(--primary); }
.hero p.lead { font-size: 19px; line-height: 1.5; color: var(--fg-muted); margin: 0 0 32px; max-width: 540px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero .proof { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 12px; }
.hero .proof-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fg); }
.hero .proof-row::before { content: "✓"; color: var(--success); font-weight: 800; flex-shrink: 0; width: 22px; height: 22px; display: grid; place-items: center; background: #76ffe730; border-radius: 50%; font-size: 11px; }
.hero-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 32px; box-shadow: var(--shadow-lg); position: relative; }
.hero-card::before { content: ""; position: absolute; inset: -1px; border-radius: 18px; padding: 1px; background: linear-gradient(135deg, var(--primary)25, transparent 50%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.hero-card .plan-eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.hero-card h3 { margin: 0 0 8px; font-size: 22px; }
.hero-card .price { font-size: 42px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.hero-card .price-period { color: var(--fg-muted); font-size: 14px; margin-bottom: 22px; }
.hero-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 14px; }
.hero-card ul li { display: flex; gap: 10px; align-items: flex-start; }
.hero-card ul li::before { content: "→"; color: var(--primary); font-weight: 700; }
.demo-hero-card .demo-card-text { color: var(--fg-muted); margin: 0 0 18px; }
.hero-visual { padding: 0; overflow: hidden; border-radius: 20px; }
.hero-image { width: 100%; aspect-ratio: 1.12 / 1; object-fit: cover; display: block; background: var(--primary-soft); }
.hero-visual-caption { padding: 18px 20px 20px; background: var(--card); display: grid; gap: 8px; }
.hero-visual-caption strong { font-size: 18px; }
.hero-visual-caption span { color: var(--fg-muted); font-size: 14px; line-height: 1.45; }
.demo-card-sample { background: var(--primary-soft); border: 1px solid #11182725; border-radius: 14px; padding: 16px; margin: 18px 0 22px; }
.demo-card-sample span { color: var(--primary-strong); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.demo-card-sample p { margin: 8px 0 0; color: var(--fg); font-size: 14px; line-height: 1.45; }

/* ───────── Trust bar ───────── */
.trust-bar { padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 20px; }
.trust-bar .row { display: flex; flex-wrap: wrap; gap: 12px 36px; align-items: center; justify-content: center; }
.trust-bar .item { color: var(--fg-soft); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.trust-bar .item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ───────── Sections ───────── */
.template-demo { background: linear-gradient(180deg, white, var(--bg)); scroll-margin-top: 112px; }
.curated-demo, #demo { scroll-margin-top: 112px; }
.template-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.template-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; }
.template-card span { color: var(--fg-muted); font-size: 13px; font-weight: 600; }
.template-card strong { font-size: 24px; letter-spacing: -0.02em; color: var(--primary-strong); word-break: break-word; }
.template-rows { background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 18px; }
.template-row { display: grid; grid-template-columns: minmax(140px, .35fr) 1fr; gap: 18px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--border); }
.template-row:first-child { border-top: 0; }
.template-row span { color: var(--fg-soft); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.template-row p { margin: 0; color: var(--fg); font-weight: 600; }
.template-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.template-panel { background: var(--primary-soft); border: 1px solid #11182730; border-radius: 16px; padding: 22px; }
.template-panel h3 { margin: 0 0 8px; font-size: 18px; }
.template-panel p { margin: 0; color: var(--fg-muted); }
.curated-demo { margin-top: 28px; background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.curated-demo .demo-copy h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -.01em; }
.curated-demo .demo-copy p { margin: 0; color: var(--fg-muted); }
.curated-demo .demo-input { display: grid; gap: 10px; }
.curated-demo label { font-size: 13px; font-weight: 800; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .04em; }
.curated-demo textarea { width: 100%; min-height: 150px; resize: vertical; border: 1px solid var(--border-strong); border-radius: 14px; padding: 14px; font: inherit; line-height: 1.5; }
.curated-demo .demo-output { grid-column: 1 / -1; background: #0f172a; color: #dbeafe; border-radius: 16px; padding: 18px; min-height: 140px; font-size: 14px; }
.curated-demo .demo-output section { border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; margin-top: 12px; }
.curated-demo .demo-output section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.curated-demo .demo-output strong { color: #fff; display: block; margin-bottom: 6px; }
.curated-demo .demo-output pre { white-space: pre-wrap; margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #dbeafe; }
.curated-demo .demo-next { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; justify-content: space-between; background: var(--accent-soft); border: 1px solid #0ea5e930; border-radius: 16px; padding: 16px; }
.curated-demo .demo-next span { color: var(--fg-muted); flex: 1; }
.miniapp { margin-top: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-md); display: grid; gap: 16px; }
.miniapp h3 { margin: 0; font-size: 20px; }
.miniapp p { margin: 0; color: var(--fg-muted); }
.miniapp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.miniapp label { display: grid; gap: 6px; font-size: 13px; color: var(--fg-muted); font-weight: 700; }
.miniapp input[type="text"], .miniapp textarea, .miniapp select { border: 1px solid var(--border-strong); border-radius: 10px; padding: 12px 14px; font: inherit; background: white; color: var(--fg); width: 100%; }
.miniapp textarea { min-height: 120px; resize: vertical; }
.miniapp input[type="file"] { border: 1px dashed var(--border-strong); border-radius: 10px; padding: 12px; background: white; }
.miniapp .button { width: fit-content; }
.miniapp-output { background: #0f172a; color: #e2e8f0; border-radius: 14px; padding: 16px; min-height: 110px; overflow: auto; white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.miniapp-output strong { color: white; }

section.s { padding: 80px 0; }
section.s.alt { background: white; }
section.s .head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
section.s .head .eyebrow { color: var(--primary-strong); background: var(--primary-soft); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; display: inline-block; margin-bottom: 14px; }
section.s h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 16px; letter-spacing: -0.02em; line-height: 1.15; font-weight: 800; }
section.s p.sub { color: var(--fg-muted); font-size: 17px; line-height: 1.5; }

/* Pain/Gain */
.pain-gain { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pain-gain .col { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.pain-gain .col.pain { background: #ff9e9e; border-color: #ff8787; }
.pain-gain .col.gain { background: #74ffff; border-color: #4ee5ff; }
.pain-gain h3 { margin: 0 0 22px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.pain-gain ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pain-gain li { font-size: 15px; line-height: 1.45; display: flex; gap: 12px; align-items: flex-start; }
.pain-gain .pain li::before { content: "✕"; color: var(--danger); font-weight: 800; flex-shrink: 0; width: 22px; height: 22px; display: grid; place-items: center; background: #ff7f7f; border-radius: 50%; font-size: 11px; }
.pain-gain .gain li::before { content: "✓"; color: var(--success); font-weight: 800; flex-shrink: 0; width: 22px; height: 22px; display: grid; place-items: center; background: #5bf2ff; border-radius: 50%; font-size: 11px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 24px; width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: white; display: grid; place-items: center; font-weight: 800; font-size: 16px; box-shadow: var(--shadow-md); }
.step h4 { margin: 12px 0 8px; font-size: 17px; font-weight: 700; }
.step p { margin: 0; color: var(--fg-muted); font-size: 14px; line-height: 1.5; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.plan.primary { border-color: var(--primary); box-shadow: 0 8px 24px #11182725; position: relative; }
.plan.primary::before { content: "Рекомендуем"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; font-size: 12px; padding: 6px 14px; border-radius: 8px; font-weight: 600; }
.plan h3 { margin: 0 0 8px; font-size: 20px; }
.plan .price { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.plan .period { color: var(--fg-muted); font-size: 13px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 14px; flex: 1; }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; }
.plan ul li::before { content: "✓"; color: var(--success); font-weight: 800; flex-shrink: 0; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 22px; box-shadow: var(--shadow-sm); }
.testimonial p { margin: 0 0 16px; color: var(--fg); line-height: 1.55; }
.testimonial strong { color: var(--primary-strong); font-size: 14px; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-row { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 0; transition: border-color .15s; }
.faq-row:hover { border-color: var(--border-strong); }
.faq-row summary { cursor: pointer; padding: 22px 24px; font-weight: 600; font-size: 16px; list-style: none; position: relative; padding-right: 56px; }
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; background: var(--primary-soft); color: var(--primary-strong); border-radius: 50%; display: grid; place-items: center; font-size: 18px; font-weight: 600; transition: transform .15s; }
.faq-row[open] summary::after { content: "−"; }
.faq-row p { margin: 0 24px 22px; color: var(--fg-muted); line-height: 1.55; }

/* Lead form */
.lead-section { background: linear-gradient(135deg, #11182708, #0ea5e908); border-radius: 24px; padding: 60px 40px; max-width: 760px; margin: 0 auto; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.lead-section h2 { text-align: center; }
.lead-form { display: grid; gap: 14px; max-width: 540px; margin: 32px auto 0; }
.lead-form .field { display: grid; gap: 6px; }
.lead-form label { font-size: 14px; font-weight: 500; color: var(--fg); }
.lead-form input, .lead-form select, .lead-form textarea { appearance: none; border: 1px solid var(--border-strong); border-radius: 10px; padding: 14px 16px; font: inherit; background: white; color: var(--fg); transition: border-color .15s, box-shadow .15s; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.lead-form textarea { min-height: 110px; resize: vertical; font-family: inherit; }
.lead-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--fg-muted); padding: 4px 0; }
.lead-form .consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); }
.lead-form .submit { margin-top: 6px; padding: 16px; font-size: 16px; }
.lead-form .feedback { text-align: center; font-size: 14px; min-height: 24px; margin-top: 8px; }
.lead-form .feedback.success { color: var(--success); }
.lead-form .feedback.error { color: var(--danger); }

/* Footer */
footer { padding: 40px 0 60px; color: var(--fg-muted); font-size: 13px; border-top: 1px solid var(--border); margin-top: 40px; background: white; }
footer .legal-links { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-bottom: 14px; }
footer .legal-links a { color: var(--fg-muted); }
footer .legal-links a:hover { color: var(--fg); }
footer .operator { line-height: 1.7; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Mobile */
@media (max-width: 820px) {
  .topnav { gap: 14px; }
  .topnav a:not(.button) { display: none; }
  .hero { grid-template-columns: 1fr; padding: 40px 0 60px; gap: 36px; }
  .hero h1 { font-size: 36px; }
  .hero .proof { grid-template-columns: 1fr; }
  .pain-gain { grid-template-columns: 1fr; gap: 16px; }
  section.s { padding: 56px 0; }
  .lead-section { padding: 36px 20px; }
  .lead-form .row-2 { grid-template-columns: 1fr; }
  .template-row { grid-template-columns: 1fr; gap: 6px; }
  .curated-demo { grid-template-columns: 1fr; padding: 20px; }
  .curated-demo .demo-next { align-items: flex-start; flex-direction: column; }
  .miniapp-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 15px; }
  .topbar { padding: 14px 0; }
  .shell { padding: 0 16px; }
  .hero h1 { font-size: 30px; }
  section.s h2 { font-size: 26px; }
  .plan { padding: 24px 20px; }
  .hero-card { padding: 24px 20px; }
  .hero-card .price { font-size: 32px; }
}
