:root {
  --bg: #f6f8fa; --card: #ffffff; --ink: #1b2430; --muted: #5b6675; --line: #e3e8ee;
  --navy: #0f2a44; --accent: #1565c0; --accent-ink: #ffffff; --soft: #eef3f8; --danger: #b42318;
  --excel: #1d6f42; --word: #2b579a; --pdf: #c62828;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e141b; --card: #161e27; --ink: #e6edf3; --muted: #9aa7b4; --line: #27323e; --navy: #dbe7f3; --accent: #4f9cf0; --accent-ink: #0b1220; --soft: #1b2733; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); min-height: 100dvh; display: flex; flex-direction: column; }
a { color: var(--accent); }
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; max-width: 980px; width: 100%; margin: 0 auto; }
.brand { color: var(--ink); text-decoration: none; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.logo { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: #0f2a44; color: #fff; font-weight: 800; }
.top nav a { margin-left: 16px; color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--accent); }
.wrap { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 8px 16px 48px; }
.hero { padding: 24px 0 8px; }
.hero h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.01em; }
.hero p { color: var(--muted); margin: 0; max-width: 60ch; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 24px; }
.card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card { display: flex; flex-direction: column; gap: 10px; }
.card h2 { font-size: 18px; margin: 4px 0 0; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.badge { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; color: #fff; background: var(--muted); }
.badge-excel { background: var(--excel); } .badge-word { background: var(--word); } .badge-pdf { background: var(--pdf); }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; padding: 10px 16px; border-radius: 10px; border: 0; cursor: pointer; font-size: 15px; text-align: center; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-secondary { background: var(--soft); color: var(--ink); }
.btn-big { font-size: 18px; padding: 14px 24px; width: 100%; margin-top: 8px; }
.panel { max-width: 560px; margin: 32px auto; text-align: center; }
.panel h1 { font-size: 26px; line-height: 1.2; margin: 10px 0 8px; }
.lead { color: var(--ink); font-size: 17px; margin: 8px 0; }
.hint { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.back { display: inline-block; margin-top: 22px; color: var(--muted); text-decoration: none; font-size: 14px; }
.error { color: var(--danger); font-weight: 600; margin-top: 14px; }
.steps { list-style: none; display: flex; justify-content: center; gap: 8px; padding: 0; margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--soft); }
.steps li span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--ink); font-weight: 700; font-size: 12px; }
.steps li.active { color: var(--ink); font-weight: 700; }
.steps li.active span, .steps li.done span { background: var(--accent); color: var(--accent-ink); }
.steps li.done span::before { content: "✓"; } .steps li.done span { font-size: 0; } .steps li.done span::before { font-size: 12px; }
.ring { width: 110px; height: 110px; margin: 18px auto 10px; border-radius: 50%; border: 6px solid var(--accent); display: grid; place-items: center; }
.ring strong { font-size: 40px; font-variant-numeric: tabular-nums; }
.ring.small { width: 70px; height: 70px; border-width: 4px; } .ring.small strong { font-size: 24px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 16px; border-top: 1px solid var(--line); }
.foot p { margin: 0; }
@media (max-width: 480px) { .top nav a { margin-left: 12px; } .steps li { padding: 4px 8px; } }
