:root {
  --bg: #f4f6f9; --fg: #171a21; --muted: #626b7a; --card: #fff; --line: #e2e6ec; --soft: #eef2f8;
  --accent: #2f6cf0; --accent-hover: #2459cf; --accent-fg: #fff;
  --ok: #18a058; --ok-soft: #e7f7ee; --wait: #c27803; --wait-soft: #fff5e1; --bad: #c0392b;
  --r: 16px; --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111318; --fg: #eceff4; --muted: #9aa3b2; --card: #1b1e25; --line: #2a2f38; --soft: #232833;
          --accent: #4f86ff; --accent-hover: #6b99ff; --ok: #34c77b; --ok-soft: #15291f; --wait: #f2b23a; --wait-soft: #2c2412;
          --shadow: none; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; }
h2 { font-size: 21px; margin: 0 0 14px; }
h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 26px 0 10px; }
p { margin: 0 0 10px; }
.lead { font-size: 19px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
svg { width: 24px; height: 24px; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* шапка */
.top { background: var(--card); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 18px; }
.logo img { border-radius: 9px; }
.account { display: flex; gap: 14px; align-items: center; font-size: 15px; color: var(--muted); }

/* кнопки */
.btn { font: inherit; font-size: 16px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); font-weight: 600; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.big { font-size: 18px; padding: 14px 28px; border-radius: 14px; }
.btn:disabled { opacity: .45; cursor: default; }
.link { font: inherit; border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; margin-bottom: 18px; box-shadow: var(--shadow); }
.banner { background: var(--wait-soft); color: var(--fg); border: 1px solid var(--wait); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* шаги сверху */
.stepper { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; counter-reset: s; font-size: 14px; }
.stepper li { flex: 1; color: var(--muted); padding-top: 10px; border-top: 4px solid var(--line); }
.stepper li::before { counter-increment: s; content: counter(s) ". "; }
.stepper li.done { color: var(--fg); border-color: var(--ok); }
.stepper li.now { color: var(--fg); font-weight: 600; border-color: var(--accent); }

/* главная */
.hero { padding: 24px 0 30px; }
.hero h1 { font-size: 40px; max-width: 640px; }
.hero .lead { max-width: 620px; margin-bottom: 24px; color: var(--muted); }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.steps3 > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.steps3 b { display: block; font-size: 18px; margin: 10px 0 4px; }
.steps3 p { color: var(--muted); font-size: 15px; margin: 0; }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--soft); color: var(--accent); font-weight: 700; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-grid svg { color: var(--ok); width: 28px; height: 28px; }
.trust-grid b { display: block; margin: 6px 0 4px; }
.trust-grid p { color: var(--muted); font-size: 15px; margin: 0; }
.faq { margin: 30px 0; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.kicker { display: inline-block; font-size: 14px; font-weight: 600; color: var(--wait); background: var(--wait-soft); border-radius: 20px; padding: 4px 12px; margin-bottom: 14px; }
.sec { font-size: 26px; margin: 36px 0 16px; }
.pain h2 { margin-bottom: 10px; }
.pain ul { margin: 0; padding: 0; list-style: none; }
.pain li { position: relative; padding: 8px 0 8px 32px; border-top: 1px solid var(--line); }
.pain li:first-child { border-top: 0; }
.pain li::before { content: "✕"; position: absolute; left: 4px; top: 8px; color: var(--bad); font-weight: 700; }
.family { margin-top: 18px; background: linear-gradient(135deg, var(--soft), var(--card)); }
.family p { color: var(--muted); max-width: 680px; }
.family .rule { color: var(--fg); margin: 16px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.chips span { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 4px 14px; font-size: 15px; }
.explain { color: var(--muted); max-width: 700px; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.why > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.why svg { color: var(--accent); width: 30px; height: 30px; }
.why b { display: block; font-size: 18px; margin: 8px 0 6px; }
.why p { color: var(--muted); font-size: 15px; margin: 0; }
.proof { display: flex; gap: 24px; align-items: center; margin-top: 18px; background: var(--ok-soft); border-color: transparent; }
.proof-num { flex: none; text-align: center; }
.proof-num b { display: block; font-size: 44px; line-height: 1; color: var(--ok); }
.proof-num span { font-size: 14px; color: var(--muted); }
.proof p { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.compare th, .compare td { padding: 12px 14px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.compare thead th { border-top: 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.compare td:first-child { font-weight: 600; }
.compare .no { color: var(--muted); }
.compare .us { background: var(--soft); }
.compare thead .us { color: var(--accent); }
.compare td.us { font-weight: 600; color: var(--fg); }
.compare td.us.yes::before { content: "✓ "; color: var(--ok); }
.steps3 { margin-top: 30px; }
.cta { margin-top: 18px; }
.cta p { max-width: 520px; margin: 14px auto 0; }

/* настройка */
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 14px; align-items: center; border: 2px solid var(--line); border-radius: 14px; padding: 16px 18px; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice svg { color: var(--muted); width: 30px; height: 30px; }
.choice b { display: block; }
.choice small { color: var(--muted); font-size: 15px; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.choice:has(input:checked) svg { color: var(--accent); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.folder { display: flex; align-items: center; gap: 12px; border: 2px dashed var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 8px; }
.folder svg { color: var(--muted); width: 30px; height: 30px; }
.folder span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder.set { border-style: solid; border-color: var(--ok); }
.folder.set svg { color: var(--ok); }
.folder.set span { color: var(--fg); font-weight: 600; }
.advanced { margin: 18px 0 24px; color: var(--muted); font-size: 15px; }
.advanced summary { cursor: pointer; }
.advanced label { display: block; margin-top: 10px; }
select { font: inherit; margin-left: 8px; padding: 4px 8px; border-radius: 8px; }

/* опись */
.spinner { width: 44px; height: 44px; margin: 6px auto 18px; border-radius: 50%; border: 4px solid var(--soft); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* работа */
.status-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.status-head h1 { font-size: 26px; margin: 0 0 2px; }
.status-head p { margin: 0; }
.status-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--accent); flex: none; }
.status-icon svg { width: 28px; height: 28px; }
.status-icon.run { background: none; border: 4px solid var(--soft); border-top-color: var(--accent); animation: spin 1.2s linear infinite; }
.status-icon.ok { background: var(--ok-soft); color: var(--ok); }
.status-icon.wait { background: var(--wait-soft); color: var(--wait); }
.bar { height: 14px; background: var(--soft); border-radius: 7px; overflow: hidden; }
.bar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--ok), #35c98a); border-radius: 7px; transition: width .6s; }
.bar-legend { display: flex; gap: 12px; align-items: baseline; margin: 10px 0 20px; flex-wrap: wrap; }
.bar-legend b { font-size: 22px; }
.bar-legend #eta { margin-left: auto; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { background: var(--soft); border-radius: 14px; padding: 14px 16px; }
.tile b { display: block; font-size: 26px; line-height: 1.2; }
.tile span { color: var(--muted); font-size: 15px; }
.tile.ok b { color: var(--ok); }
.tile.wait b { color: var(--wait); }
.hint { display: flex; gap: 10px; align-items: flex-start; background: var(--wait-soft); border-radius: 12px; padding: 12px 14px; margin: 14px 0 0; font-size: 15px; }
.hint svg { color: var(--wait); width: 20px; height: 20px; margin-top: 2px; }
.actions { margin-top: 22px; }
.note { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; }
.note svg { color: var(--accent); width: 28px; height: 28px; margin-top: 2px; }
.note p { color: var(--muted); font-size: 15px; margin: 4px 0 0; }
.more summary { cursor: pointer; font-weight: 600; }
.more h3:first-of-type { margin-top: 16px; }
.active, .log { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.active li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.active .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active .tag { color: var(--wait); font-size: 12px; margin-left: 8px; }
.active progress { grid-column: 1 / -1; width: 100%; height: 4px; accent-color: var(--ok); }
.active:empty::after { content: "Сейчас ничего не скачивается"; color: var(--muted); }
.links { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 0; align-items: flex-start; font-size: 15px; }
.log li { color: var(--muted); padding: 2px 0; }
.donate { border-style: dashed; text-align: center; }
.donate p { color: var(--muted); margin: 6px 0 0; }
.donate a { margin: 0 6px; font-weight: 600; }

.foot { color: var(--muted); font-size: 13px; padding-top: 10px; padding-bottom: 40px; }
.foot a { color: inherit; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1, .hero h1 { font-size: 28px; }
  .card { padding: 20px; }
  .steps3, .trust-grid, .tiles, .why { grid-template-columns: 1fr; }
  .proof { flex-direction: column; text-align: center; }
  .sec { font-size: 22px; }
  .stepper { font-size: 12px; }
  .btn.big { width: 100%; }
}
