:root {
  color-scheme: light dark;
  --bg: #f5faf9;
  --surface: #ffffff;
  --text: #102a2a;
  --muted: #526a69;
  --line: #cfe1df;
  --brand: #0f766e;
  --brand-dark: #0b5f59;
  --soft: #e1f3f0;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --shadow: 0 18px 50px rgba(17, 64, 61, .08);
}

* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.65; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: var(--brand); text-underline-offset: .18em; }
.site-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px max(20px, calc((100vw - 980px) / 2)); background: color-mix(in srgb, var(--surface) 92%, transparent); border-bottom: 1px solid var(--line); }
.brand { color: var(--text); font-size: 1.25rem; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
nav { display: flex; flex-wrap: wrap; gap: 8px; }
nav a { padding: 8px 12px; color: var(--muted); border-radius: 10px; text-decoration: none; font-weight: 650; }
nav a:hover, nav a:focus-visible, nav a[aria-current="page"] { color: var(--brand); background: var(--soft); }
.shell { width: min(920px, calc(100% - 36px)); margin: 0 auto; }
.landing { min-height: calc(100vh - 150px); padding: clamp(70px, 12vw, 140px) 0; }
.article { max-width: 780px; padding: 64px 0 90px; }
.eyebrow { margin: 0 0 10px; color: var(--brand); font-size: .82rem; font-weight: 800; letter-spacing: .1em; }
h1 { max-width: 800px; margin: 0; font-size: clamp(2.2rem, 7vw, 4.7rem); line-height: 1.05; letter-spacing: -.045em; }
.article h1 { font-size: clamp(2.1rem, 6vw, 3.8rem); }
.lead { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 52px; }
.card { display: grid; gap: 12px; min-height: 220px; padding: 28px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.card:hover, .card:focus-visible { transform: translateY(-3px); border-color: var(--brand); }
.card strong { font-size: 1.25rem; }
.card span:last-child { color: var(--muted); }
.card-icon { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; background: var(--brand); border-radius: 14px; font-size: 1.5rem; font-weight: 900; }
.card-icon.danger { background: var(--danger); }
section { margin-top: 48px; }
h2 { margin: 0 0 14px; font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.25; letter-spacing: -.02em; }
p { margin: 0 0 16px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.step-number { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--brand); border-radius: 14px; font-weight: 850; }
.button { display: inline-block; margin: 8px 0 18px; padding: 13px 18px; color: #fff; background: var(--brand); border-radius: 12px; font-weight: 750; text-decoration: none; }
.button:hover, .button:focus-visible { background: var(--brand-dark); }
.danger-button { background: var(--danger); }
.small { color: var(--muted); font-size: .95rem; }
.notice { margin-top: 52px; padding: 22px; background: var(--soft); border-left: 5px solid var(--brand); border-radius: 12px; }
code { padding: .12em .35em; background: var(--soft); border-radius: 5px; font-family: ui-monospace, monospace; font-size: .92em; }
footer { padding: 32px 20px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); }

@media (max-width: 660px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 4px; }
  nav a { padding-left: 0; }
  .cards { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; padding: 22px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071716;
    --surface: #0d2422;
    --text: #ecf7f5;
    --muted: #acc4c1;
    --line: #24413e;
    --brand: #5eead4;
    --brand-dark: #2dd4bf;
    --soft: #123330;
    --danger: #ff7b72;
    --danger-soft: #391b19;
    --shadow: none;
  }
  .button { color: #05201d; }
  .danger-button { color: #250704; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
