:root {
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --text: #111827;
  --muted: #5b6475;
  --line: #e3e7ef;
  --brand: #2563eb;
  --brand-ink: #ffffff;
  --rec: #dc2626;
  --ok: #15803d;
  --warn-bg: #fff7e6;
  --warn-line: #f5c46b;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 8px 24px rgba(17, 24, 39, .06);
  --radius: 14px;
  --ss-blue: #0b5fbf;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1218;
    --bg-soft: #161b24;
    --text: #e8ebf2;
    --muted: #9aa3b5;
    --line: #262d3a;
    --brand: #4f8cff;
    --card: #171c26;
    --warn-bg: #2a2214;
    --warn-line: #7a5a1c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }

header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.logo img { width: 28px; height: 28px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav a:hover { color: var(--text); }

.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--brand); color: var(--brand-ink);
  padding: 14px 24px; border-radius: 10px; font-weight: 600; font-size: 17px; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: var(--rec); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.hero { padding: 72px 0 56px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.02em; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .fine { color: var(--muted); font-size: 14px; margin-top: 14px; }

.demo {
  margin-top: 40px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; display: grid; gap: 16px;
}
.demo .row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.key {
  display: inline-block; min-width: 92px; text-align: center; padding: 10px 14px;
  border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 8px; background: var(--card);
  font-weight: 600; font-size: 15px;
}
.key.on { border-color: var(--rec); color: var(--rec); }
.bubble { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; flex: 1; min-width: 220px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); display: inline-block; margin-right: 6px; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

section { padding: 56px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 30px; margin: 0 0 24px; letter-spacing: -.01em; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.apps { color: var(--muted); }

.price { text-align: center; }
.price .amount { font-size: 56px; font-weight: 800; letter-spacing: -.02em; }
.price .amount small { font-size: 20px; font-weight: 500; color: var(--muted); }

.steps { counter-reset: step; display: grid; gap: 28px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 700;
}
.step h3 { margin: 6px 0 6px; }
.step p { margin: 0 0 12px; color: var(--muted); }
.why { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 12px; padding: 14px 16px; font-size: 15px; }

/* Схематичные окна Windows для инструкции */
.mock { border-radius: 8px; overflow: hidden; max-width: 460px; box-shadow: var(--shadow); font-family: "Segoe UI", system-ui, sans-serif; }
.mock.ss { background: var(--ss-blue); color: #fff; padding: 22px 24px 18px; }
.mock.ss .t { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.mock.ss .b { font-size: 14px; opacity: .92; }
.mock.ss .link { margin-top: 10px; font-size: 14px; text-decoration: underline; }
.mock.ss .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.mock.ss .wbtn { border: 1px solid rgba(255, 255, 255, .7); padding: 6px 14px; font-size: 14px; }
.hl { outline: 3px solid #facc15; outline-offset: 3px; border-radius: 3px; }
.mock.dl { background: var(--card); border: 1px solid var(--line); padding: 16px; font-size: 14px; }
.mock.dl .menu { margin-top: 10px; display: inline-block; border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; }
.tray { display: inline-flex; gap: 8px; align-items: center; background: #1f2937; color: #e5e7eb; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.tray img { width: 18px; height: 18px; }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

form.pay { display: grid; gap: 16px; }
label { font-weight: 600; font-size: 15px; }
input[type=email] {
  width: 100%; padding: 12px 14px; font-size: 17px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.notice { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--warn-line); background: var(--warn-bg); font-size: 15px; }
.stat { font-size: 15px; color: var(--muted); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 14px; font-weight: 600; border: 1px solid var(--line); }
.badge.active { color: var(--ok); border-color: var(--ok); }
.badge.trial { color: var(--brand); border-color: var(--brand); }
.badge.expired { color: var(--rec); border-color: var(--rec); }

.doc h1 { font-size: 30px; }
.doc h2 { font-size: 20px; margin-top: 28px; }
.doc p, .doc li { color: var(--text); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); margin-right: 16px; }

@media (max-width: 600px) {
  nav a:not(.keep) { display: none; }
  .hero { padding: 44px 0 36px; }
  section { padding: 40px 0; }
  .step { grid-template-columns: 36px 1fr; gap: 12px; }
  .step::before { width: 36px; height: 36px; }
}
