:root {
  --bg: #ffffff; --bg-alt: #f3f6fb; --card: #ffffff; --text: #0b1324; --muted: #586378;
  --line: #e1e6ef; --accent: #2563eb; --accent-2: #16a34a; --accent-text: #ffffff;
  --hero-a: #eef4ff; --hero-b: #ffffff; --shadow: 0 1px 2px rgba(11, 19, 36, .05), 0 12px 32px rgba(11, 19, 36, .08);
  --frame: #0f172a; --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1c; --bg-alt: #0e1526; --card: #121a2d; --text: #e7ebf3; --muted: #9aa5ba;
    --line: #222c44; --accent: #4f8cff; --accent-2: #4ade80; --hero-a: #0f1a33; --hero-b: #0a0f1c;
    --shadow: 0 12px 32px rgba(0, 0, 0, .35); --frame: #1c2540; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f1c; --bg-alt: #0e1526; --card: #121a2d; --text: #e7ebf3; --muted: #9aa5ba;
  --line: #222c44; --accent: #4f8cff; --accent-2: #4ade80; --hero-a: #0f1a33; --hero-b: #0a0f1c;
  --shadow: 0 12px 32px rgba(0, 0, 0, .35); --frame: #1c2540; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
p { margin: 0 0 12px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); } .small { font-size: 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700;
  color: var(--accent); margin-bottom: 12px; }
.sub { color: var(--muted); font-size: 18px; max-width: 720px; margin-bottom: 32px; }
.note { color: var(--muted); margin-top: 28px; max-width: 860px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600;
  text-decoration: none; border-radius: 12px; padding: 14px 22px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn.primary { background: var(--accent); color: var(--accent-text); box-shadow: 0 6px 18px rgba(37, 99, 235, .3); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 99, 235, .35); }
.btn.ghost { border-color: var(--line); color: var(--text); background: var(--card); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.small { padding: 8px 14px; font-size: 15px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* Шапка */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px;
  color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.logo.small { font-size: 17px; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #7c3aed); color: #fff; font-size: 15px; font-weight: 800; }
.logo.small .mark { width: 28px; height: 28px; font-size: 13px; border-radius: 8px; }
.links { display: flex; gap: 28px; }
.links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.links a:hover { color: var(--text); }

/* Первый экран */
.hero { background: radial-gradient(1100px 500px at 85% 0%, var(--hero-a), var(--hero-b)); padding: 72px 0 88px; }
.hero-in { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero .lead { font-size: 19px; color: var(--muted); margin: 20px 0 28px; max-width: 560px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.hero-points li::before { content: "✓"; color: var(--accent-2); font-weight: 800; margin-right: 10px; }
.hero-shot { position: relative; padding-bottom: 40px; }
.frame { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--frame); box-shadow: var(--shadow); }
.hero-shot .desk { transform: perspective(1400px) rotateY(-6deg); }
.hero-shot .tablet { position: absolute; width: 27%; right: -8px; bottom: 0; border: 6px solid #0b1020;
  border-radius: 18px; }

/* Секции и карточки */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.cards { display: grid; gap: 18px; margin-top: 28px; }
.cards.six { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card .ico { font-size: 28px; display: block; margin-bottom: 12px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); font-size: 16px; }
.ticks li b { color: var(--text); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent-2) 18%, transparent); box-shadow: inset 0 0 0 1.5px var(--accent-2); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: calc(.35em + 4px); width: 6px; height: 3px;
  border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); transform: rotate(-45deg); }

/* Возможности */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; margin-top: 72px; }
.feature.rev .f-text { order: 2; }
.feature .f-text > p { color: var(--muted); font-size: 18px; }
.feature .frame.tall { max-width: 340px; justify-self: center; border: 8px solid #0b1020; border-radius: 22px; }
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 72px; }
.thumb { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: zoom-in;
  background: var(--frame); transition: transform .15s; }
.thumb:hover { transform: translateY(-2px); }
.thumb img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
dialog#lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); }
dialog#lightbox::backdrop { background: rgba(5, 8, 16, .85); }
dialog#lightbox img { border-radius: 12px; max-height: 90vh; width: auto; }
dialog#lightbox .close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 26px; cursor: pointer; line-height: 1; }

/* Запуск */
.launch { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
.steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--accent); color: #fff; font-weight: 800; }
.steps b { font-size: 18px; } .steps span { color: var(--muted); }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo { margin: 0; } .photo img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.photo figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Демо и форма */
.demo { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.demo-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form { padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.6em; margin: 12px 0 4px; font-weight: 600; }
.form-msg.ok { color: var(--accent-2); } .form-msg.bad { color: #e5484d; }

/* Подвал */
.foot { border-top: 1px solid var(--line); padding: 28px 0; }
.foot-in { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 15px; }

@media (max-width: 1000px) {
  .hero-in, .feature, .launch, .demo-in { grid-template-columns: 1fr; gap: 36px; }
  .feature.rev .f-text { order: 0; }
  .cards.four, .cards.six, .cards.three { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .links { display: none; }
  .hero-shot .desk { transform: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .hero { padding: 44px 0 56px; }
  .section { padding: 60px 0; }
  .feature { margin-top: 52px; }
  .cards.four, .cards.six, .cards.three, .row2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cta .btn { flex: 1 1 100%; }
  .hero-shot .tablet { width: 30%; right: 0; }
  .form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.feature h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 12px; }
