:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #5b6270;
  --border: #e3e6eb;
  --accent: #d7262f;
  --link: #0a66d1;
  --code-bg: #f0f2f5;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a20;
    --text: #eceef2;
    --muted: #a3a9b5;
    --border: #2a2f38;
    --accent: #ff4d55;
    --link: #5aa2ff;
    --code-bg: #20242c;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wide { max-width: 1040px; }

header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 60px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.site { display: flex; gap: 18px; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

main { padding: 32px 0 48px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }

h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em; }
h2 { font-size: 24px; line-height: 1.25; margin: 40px 0 12px; }
h3 { font-size: 19px; margin: 28px 0 8px; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 24px; margin: 0 0 16px; }
li { margin-bottom: 8px; }
.lede { font-size: 19px; color: var(--muted); margin-bottom: 24px; }

.answer {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--accent); border-radius: 10px;
  padding: 16px 20px; margin: 0 0 24px; box-shadow: var(--shadow);
}
.answer p:last-child { margin-bottom: 0; }

ol.steps { counter-reset: step; list-style: none; padding-left: 0; }
ol.steps > li {
  counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 14px;
}
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}

figure { margin: 24px 0; }
figure img { border-radius: 12px; border: 1px solid var(--border); display: block; margin: 0 auto; }
figure.phone img { max-width: 320px; }
figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }

.cta {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; margin: 32px 0; display: flex; gap: 16px; align-items: center;
  flex-wrap: wrap; box-shadow: var(--shadow);
}
.cta img.icon { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.cta .text { flex: 1 1 240px; }
.cta .text strong { display: block; font-size: 18px; }
.cta .text span { color: var(--muted); font-size: 15px; }
.badge img { height: 48px; width: auto; display: block; }

table { border-collapse: collapse; width: 100%; margin: 0 0 20px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

.faq dt { font-weight: 700; margin-top: 18px; }
.faq dd { margin: 6px 0 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 16px 0 8px; padding: 0; list-style: none; }
.cards li { margin: 0; }
.cards a {
  display: block; height: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--text);
}
.cards a:hover { border-color: var(--link); }
.cards a span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.hero figure { margin: 0; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 16px 0; }
.features div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.features h3 { margin: 0 0 6px; font-size: 17px; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }

.note { font-size: 14px; color: var(--muted); }
code { background: var(--code-bg); padding: 1px 6px; border-radius: 4px; font-size: .92em; }

footer.site { border-top: 1px solid var(--border); background: var(--surface); font-size: 14px; color: var(--muted); }
footer.site .wrap { padding-top: 20px; padding-bottom: 28px; }
footer.site a { color: var(--muted); }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
