:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --ink: #0f172a;
  --body: #3f4d63;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #1d4ed8;
  --brand-dark: #0f2a5c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.75;
  font-size: 16px;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 44px; height: 44px; display: block; }
.brand-name { font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: .2px; }
.brand-sub { font-size: .82rem; color: var(--muted); }

nav.site { margin-left: auto; display: flex; gap: 18px; font-size: .92rem; font-weight: 600; }

.hero {
  background: linear-gradient(135deg, #0f2a5c 0%, #1e40af 55%, #2563eb 100%);
  color: #e8f1ff;
  padding: 54px 22px 50px;
}

.hero-inner { max-width: 940px; margin: 0 auto; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.hero svg.mark { width: 92px; height: 92px; flex: 0 0 auto; }
.hero h1 { font-size: 2.1rem; color: #ffffff; line-height: 1.25; margin-bottom: 10px; }
.hero p { max-width: 620px; color: #cfe0ff; font-size: 1.02rem; }

.wrap { max-width: 940px; margin: 0 auto; padding: 38px 22px 56px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 30px;
  margin-bottom: 22px;
  box-shadow: 0 6px 18px -12px rgba(15, 23, 42, .35);
}

h1, h2, h3 { color: var(--ink); line-height: 1.3; }
h1 { font-size: 1.85rem; margin-bottom: 10px; }
h2 { font-size: 1.25rem; margin: 0 0 14px; }
h3 { font-size: 1.02rem; margin: 18px 0 6px; }

p { margin-bottom: 14px; }
ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 9px; }

.meta { color: var(--muted); font-size: .9rem; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 22px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.tile h3 { margin-top: 0; }
.tile p { margin-bottom: 0; font-size: .95rem; }

table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: .93rem; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f1f5fb; color: var(--ink); font-weight: 600; }
code { background: #eef2f9; border-radius: 5px; padding: 2px 6px; font-size: .88em; color: #1e293b; }

.note {
  background: #eef4ff;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: .95rem;
  margin-bottom: 16px;
}

.steps { counter-reset: s; list-style: none; margin-left: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 42px; margin-bottom: 14px; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 1px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: .85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

footer.site {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 26px 22px;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}
footer.site a { margin: 0 9px; }

@media (max-width: 620px) {
  .hero h1 { font-size: 1.6rem; }
  .hero svg.mark { width: 68px; height: 68px; }
  .card { padding: 22px 20px; }
}
