:root {
  --ink: #1c2430;
  --muted: #5d6875;
  --bg: #f6f3ec;
  --card: #ffffff;
  --line: #e2ddd2;
  --brand: #0f6b5c;
  --brand-dark: #0b4f44;
  --accent: #f2a541;
  --bad: #b3261e;
  --good: #1f7a4d;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

/* header and footer */
.top { background: var(--brand-dark); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.brand b { color: var(--accent); }
.top nav { margin-left: auto; display: flex; gap: 18px; font-size: .95rem; }
.top nav a { color: #fff; text-decoration: none; opacity: .9; }
.top nav a:hover { opacity: 1; text-decoration: underline; }
.foot { border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--muted); }
.foot p { margin-bottom: .5em; }
.foot a { color: inherit; }

/* hero */
.hero { background: var(--brand-dark); color: #fff; padding: 32px 0 44px; }
.hero p { font-size: 1.1rem; opacity: .9; max-width: 600px; }
.hero .btn { margin-top: 6px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; padding: 0; margin: 0 0 28px; list-style: none; counter-reset: step; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); font-weight: 700; margin-bottom: 8px; }
.steps strong { display: block; }

main, main.wrap { padding-top: 28px; padding-bottom: 56px; }
section { margin-bottom: 32px; }

/* cards and forms */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 16px; }
input[type="text"], input[type="email"], input[type="tel"], input:not([type]), textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px; font: inherit; font-weight: 400;
  color: var(--ink); background: #fff; border: 1px solid #c4bfb3; border-radius: 10px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.q { margin-bottom: 22px; }
.q:last-child { margin-bottom: 0; }
.q > label, .q legend { font-weight: 600; margin-bottom: 0; padding: 0; }
.q .num { color: var(--brand); }
fieldset.q { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 8px 0 0; padding: 12px; border: 1px solid #c4bfb3; border-radius: 10px; background: #fff; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand); background: #eaf4f1; }
.choice input { margin-top: 5px; accent-color: var(--brand); flex: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .95rem; }
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }

.btn {
  display: inline-block; padding: 14px 22px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--brand); color: #fff; font: inherit; font-weight: 600; text-decoration: none;
}
.btn:hover { background: var(--brand-dark); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.light { background: var(--accent); color: var(--ink); }
.btn.light:hover { background: #e09530; }
.btn.plain { background: transparent; color: var(--brand); padding-left: 0; padding-right: 0; text-decoration: underline; }

.msg { display: none; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; }
.msg.on { display: block; }
.msg.bad { background: #fbe9e7; color: var(--bad); }
.msg.ok { background: #e6f4ec; color: var(--good); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* services and legal pages */
.services li { margin-bottom: .6em; }
.services ul { padding-left: 1.2em; margin: 0; }
.legal h2 { font-size: 1.05rem; margin-top: 1.6em; }
.note { background: #fff7e6; border: 1px solid #f0d9a8; border-radius: 10px; padding: 12px 14px; }
