:root {
  --bg: #ffffff;
  --surface: #f6f7fb;
  --text: #1f2330;
  --muted: #5b6075;
  --border: #dcdfe8;
  --accent: #2563eb;
  --accent-text: #ffffff;
  --ok: #0f9d58;
  --radius: 10px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161d;
    --surface: #1d2029;
    --text: #e8eaf0;
    --muted: #a3a8b8;
    --border: #2e3240;
    --accent: #5b8cff;
    --accent-text: #0b0d12;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

a { color: var(--accent); }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

header.site {
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}

.brand { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }

nav.site a { margin-left: 16px; color: var(--muted); text-decoration: none; font-size: 15px; }
nav.site a:hover { color: var(--text); }

main { padding: 40px 0 56px; }

h1 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 22px; margin: 36px 0 10px; }
h3 { font-size: 18px; margin: 24px 0 8px; }

.lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; }
.muted { color: var(--muted); }

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 32px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }

ol.steps li, ul li { margin-bottom: 6px; }

.note {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 4px;
}

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }

footer.site { border-top: 1px solid var(--border); padding: 20px 0 32px; color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); margin-right: 14px; }
