:root {
  --ink: #17212b;
  --muted: #55626f;
  --line: #dde3e8;
  --bg: #ffffff;
  --soft: #f3f7f6;
  --brand: #0f6b5c;
  --brand-dark: #0a4f44;
  --accent: #e8f4f1;
  --warn: #fff4d6;
  --radius: 10px;
  --max: 760px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.site-header .wrap { max-width: 1080px; display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.logo { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 18px; }
.site-header nav { flex: 1; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; font-size: 15px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a[aria-current="page"], .site-header nav a:hover { color: var(--brand); }
.cta-top { background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
.cta-top:hover { background: var(--brand-dark); color: #fff; }
@media (max-width: 720px) {
  .site-header nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .site-header ul { flex-wrap: nowrap; }
  .site-header li { white-space: nowrap; }
  .cta-top { margin-left: auto; }
}

/* Typography */
main { padding-top: 20px; padding-bottom: 48px; }
h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.2; margin: 8px 0 10px; letter-spacing: -0.01em; }
h2 { font-size: 24px; line-height: 1.3; margin: 40px 0 10px; }
h3 { font-size: 19px; margin: 26px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }
.lead { font-size: 19px; color: var(--ink); }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.byline { font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 20px; }

/* Boxes */
.box { background: var(--soft); border-radius: var(--radius); padding: 16px 18px; margin: 20px 0; }
.box-key { background: var(--accent); border-left: 4px solid var(--brand); }
.box-warn { background: var(--warn); border-left: 4px solid #d9a400; }
.box > :last-child { margin-bottom: 0; }
mark.todo { background: #ffe066; color: #5a4300; padding: 0 4px; border-radius: 3px; font-size: 0.9em; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0 20px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--soft); }

/* Steps */
ol.steps { counter-reset: s; list-style: none; padding: 0; }
ol.steps > li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 16px; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }

/* Template letters */
.letter { white-space: pre-wrap; font: 15px/1.6 ui-monospace, Consolas, monospace; background: #fbfbf9; border: 1px dashed #c9cfc8; border-radius: var(--radius); padding: 16px; overflow-x: auto; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; }

/* Form */
.form-box { background: var(--accent); border-radius: 14px; padding: 22px 20px; margin: 40px 0 24px; }
.form-box h2 { margin-top: 0; }
.lead-form label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.lead-form input[type=text], .lead-form input[type=tel], .lead-form input[type=email], .lead-form select, .lead-form textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; font-weight: 400;
  border: 1px solid #b9c6c2; border-radius: 8px; background: #fff;
}
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .lead-form .row { grid-template-columns: 1fr; } }
.lead-form .consent { display: flex; gap: 10px; font-weight: 400; font-size: 14px; align-items: flex-start; }
.lead-form .consent input { margin-top: 4px; flex: none; }
.lead-form button { background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 700; cursor: pointer; width: 100%; }
.lead-form button:hover { background: var(--brand-dark); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.form-legal { font-size: 12px; color: var(--muted); margin-top: 12px; }
.form-ok { background: #fff; border-radius: 8px; padding: 14px; font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.partners { margin: 6px 0; }

/* Hero + CTA */
.btn { display: inline-block; background: var(--brand); color: #fff; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.hero { background: var(--accent); border-radius: 14px; padding: 20px; margin: 8px 0 24px; }
.hero-sub { font-size: 19px; margin-bottom: 14px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 14px; color: var(--muted); }
ol.how { list-style: none; counter-reset: h; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
ol.how li { counter-increment: h; background: #fff; border-radius: var(--radius); padding: 12px 12px 12px 48px; position: relative; margin: 0; font-size: 15px; }
ol.how li::before { content: counter(h); position: absolute; left: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
ol.how strong { display: block; }
ol.how span { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { ol.how { grid-template-columns: 1fr; } }
.cta-inline { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 2px solid var(--brand); border-radius: var(--radius); padding: 14px 16px; margin: 20px 0; }
.cta-inline p { margin: 0; flex: 1 1 300px; }
.form-perks { list-style: none; padding: 0; margin: 0 0 16px; }
.form-perks li { padding-left: 26px; position: relative; }
.form-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.lead-form .upload { background: #fff; border: 2px dashed var(--brand); border-radius: var(--radius); padding: 14px; }
.upload-title { display: block; margin-bottom: 6px; }
.upload input[type=file] { width: 100%; font: inherit; font-size: 15px; }
.upload-hint, .field-hint { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 6px; }
.form-disclaimer, .hero-disclaimer { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.form-trust { font-size: 13px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 6; background: var(--brand); color: #fff; text-align: center; padding: 13px 14px; border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.2); font-size: 15px; }
  .sticky-cta:hover { color: #fff; }
  body { padding-bottom: 72px; }
}

/* Related + footer */
.related { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 8px; }
.related ul { padding-left: 18px; }
.site-footer { background: var(--soft); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); padding: 24px 0; }
.site-footer a { color: var(--muted); }
.disclaimer { font-size: 13px; }
