:root {
  --navy: #12355b;
  --navy-2: #1d4a7a;
  --orange: #e8792b;
  --orange-2: #cf6517;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #dfe3ea;
  --bg: #f4f5f7;
  --ok: #1f8a4c;
  --bad: #c0392b;
  --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
header.bar { background: var(--navy); color: #fff; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
header.bar a { color: #fff; text-decoration: none; font-weight: 600; }
header.bar .brand { font-size: 18px; font-weight: 700; letter-spacing: 0.2px; }
main { max-width: 760px; margin: 0 auto; padding: 20px 16px 60px; }
.card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(18,53,91,.06); margin-bottom: 16px; }
h1 { font-size: 26px; margin: 4px 0 6px; }
h2 { font-size: 19px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 18px 0 6px; color: var(--navy); }
p.sub { color: var(--muted); margin: 0 0 18px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
label small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=password], select, textarea {
  width: 100%; padding: 11px 12px; font-size: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy-2); outline-offset: 0; border-color: var(--navy-2); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.sizes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 560px) { .sizes { grid-template-columns: 1fr; } }
.size { border: 2px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; background: #fff; text-align: left; font: inherit; color: inherit; }
.size b { display: block; }
.size span { font-size: 13px; color: var(--muted); }
.size[aria-pressed=true] { border-color: var(--orange); background: #fff7f0; }
button.btn, a.btn { display: inline-block; background: var(--orange); color: #fff; border: 0; border-radius: 8px; padding: 13px 22px; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; }
button.btn:hover, a.btn:hover { background: var(--orange-2); }
button.btn[disabled] { opacity: .55; cursor: wait; }
button.ghost { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; font-size: 15px; cursor: pointer; color: var(--ink); }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.estimate { background: #f0f5fb; border: 1px solid #d6e3f2; border-radius: 10px; padding: 16px; margin-top: 16px; }
.estimate .big { font-size: 28px; font-weight: 800; color: var(--navy); }
.estimate .note { color: var(--muted); font-size: 13px; }
table.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
table.kv td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.kv td:last-child { text-align: right; font-weight: 600; }
table.kv tr.total td { font-size: 16px; border-bottom: 0; }
.err { color: var(--bad); font-weight: 600; margin-top: 12px; }
.ok { color: var(--ok); font-weight: 700; }
.muted { color: var(--muted); font-size: 13px; }
.steps { display: flex; gap: 6px; margin-bottom: 16px; }
.steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps i.on { background: var(--orange); }
.hidden { display: none !important; }
.contract { font-size: 14px; }
.contract h3 { margin-top: 20px; }
.contract .flag { background: #fff3cd; padding: 0 3px; border-radius: 3px; }
.sigpad { border: 2px dashed #b9c2d0; border-radius: 10px; background: #fff; touch-action: none; width: 100%; height: 170px; display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 14px; }
.consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: #eef1f5; color: var(--muted); }
.job { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 10px; cursor: pointer; background: #fff; width: 100%; text-align: left; font: inherit; color: inherit; }
.job:hover { border-color: var(--navy-2); }
.hp { position: absolute; left: -9999px; }
footer.legal { text-align: center; font-size: 12px; color: var(--muted); padding: 10px 16px 30px; }
