:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #1d2433;
  --muted: #5d6578;
  --line: #e6e1d8;
  --brand: #1f3a5f;
  --brand-ink: #ffffff;
  --accent: #b8863b;
  --ok: #2e7d4f;
  --warn: #a15c00;
  --err: #b3261e;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.logo span { color: var(--accent); }

.btn {
  display: inline-block; background: var(--brand); color: var(--brand-ink); border: 0;
  padding: 12px 22px; border-radius: 10px; font-size: 16px; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.1); }
.btn.secondary { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn.small { padding: 8px 14px; font-size: 14px; }

.hero { padding: 72px 0 48px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 16px; max-width: 760px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

section { padding: 48px 0; }
section h2 { font-size: 28px; margin: 0 0 24px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.step-no { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .05em; }

.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat b { display: block; font-size: 32px; color: var(--brand); }
.stat span { color: var(--muted); font-size: 15px; }

.price { font-size: 30px; font-weight: 700; margin: 8px 0; }
.price small { font-size: 15px; color: var(--muted); font-weight: 400; }
.card ul { padding-left: 20px; margin: 12px 0 20px; color: var(--ink); }
.card.featured { border: 2px solid var(--accent); }
.badge { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 99px; background: #f3ead9; color: var(--warn); }
.badge.ok { background: #e3f2e8; color: var(--ok); }
.badge.muted { background: #eceef2; color: var(--muted); }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { color: var(--muted); margin: 10px 0 0; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }

form .field { margin-bottom: 20px; }
form label.title { display: block; font-weight: 600; margin-bottom: 6px; }
form .hint { color: var(--muted); font-size: 14px; margin: -2px 0 8px; }
input[type=text], input[type=email], input[type=tel], input[type=url], textarea, select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--surface); color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.checks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.checks label { display: flex; gap: 8px; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.pkg-options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pkg-options label { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); cursor: pointer; }
.pkg-options input { margin-right: 6px; }
.pkg-options .p { color: var(--muted); font-size: 14px; }
.error { color: var(--err); font-size: 14px; margin-top: 6px; }
.alert { background: #fdecea; color: var(--err); border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font-size: 20px; font-weight: 700; margin-bottom: 14px; }

.pay { text-align: center; }
.pay img.qr { width: 240px; height: 240px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.banks a { display: flex; justify-content: space-between; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 16px; margin: 8px 0; text-decoration: none; color: var(--ink); }
dl.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 16px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }

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

@media (max-width: 600px) {
  .hero { padding: 44px 0 28px; }
  dl.kv { grid-template-columns: 1fr; }
  dl.kv dt { margin-top: 8px; }
}

.sample-form { max-width: 760px; }
.sample-form > p { margin-bottom: 18px; }
.sample-grid { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }
.sample-grid .wide { grid-column: 1 / -1; }
.sample-form details summary { cursor: pointer; margin-top: 8px; }
.sample-form details textarea { min-height: 80px; margin-top: 6px; }
.sample-form .actions, .narrow .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 600px) { .sample-grid { grid-template-columns: 1fr; } }

table.fit td.score { width: 180px; white-space: nowrap; }
.bar { display: inline-block; width: 110px; height: 8px; background: var(--line); border-radius: 99px; margin-right: 8px; vertical-align: middle; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); }
@media print {
  header.site, footer.site, .no-print { display: none !important; }
  .segments .bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
