:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --text: #13203a;
  --muted: #51607a;
  --line: #dde4ee;
  --accent: #2563eb;
  --accent-text: #ffffff;
  --navy: #0f1e4d;
  --radius: 14px;
  --wrap: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1424;
    --bg-soft: #141d31;
    --text: #e8edf6;
    --muted: #a3b0c6;
    --line: #26324a;
    --accent: #4f8bff;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; height: auto; display: block; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px; z-index: 2; }

.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 19px; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.site-header nav { display: flex; align-items: center; gap: 18px; }
.site-header nav a { text-decoration: none; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
}
.button.small { padding: 8px 14px; font-size: 15px; }
.button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }

.hero { padding: 56px 0 40px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 16px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 720px; margin: 0 0 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { color: var(--muted); font-size: 15px; }

section { padding: 40px 0; }
section.soft { background: var(--bg-soft); }
h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.25; margin: 0 0 16px; }
h3 { font-size: 20px; margin: 24px 0 8px; }

.steps { display: grid; gap: 28px; }
.step { display: grid; gap: 18px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .step { grid-template-columns: 5fr 7fr; }
}
.step .num { color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--navy); }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg); }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }

table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--bg-soft); }
.table-scroll { overflow-x: auto; }

details { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 10px 0; }
pre { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
summary { cursor: pointer; font-weight: 600; }

article { max-width: 760px; margin: 0 auto; padding: 40px 16px; }
article h1 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.2; margin: 8px 0 12px; }
article .meta { color: var(--muted); font-size: 15px; }
article h2 { margin-top: 36px; }
article figure { margin: 24px 0; }
article figcaption { color: var(--muted); font-size: 15px; margin-top: 8px; }
.answer { border-left: 4px solid var(--accent); background: var(--bg-soft); padding: 14px 18px; border-radius: 0 10px 10px 0; }
.breadcrumb { font-size: 15px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.cta-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 32px 0; background: var(--bg-soft); }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.site-footer a { color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 6px 0 0; }
.site-footer li { margin: 4px 0; }
