:root { --ink:#15171c; --muted:#646b78; --line:#e2e5ea; --bg:#f5f6f8; --card:#fff; --brand:#0f4c81; --brand-ink:#fff; --ok:#17794a; --warn:#a15c00; --bad:#b3261e; --radius:12px; }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; color:var(--ink); background:var(--bg); }
header.site { background:var(--ink); color:#fff; padding:18px 16px; }
header.site .in, main { max-width:760px; margin:0 auto; }
main.wide, header.site .in.wide { max-width:1080px; }
header.site a { color:#fff; text-decoration:none; font-weight:700; font-size:18px; letter-spacing:.2px; }
header.site small { display:block; color:#b9c0cc; font-weight:400; }
main { padding:24px 16px 64px; }
h1 { font-size:28px; line-height:1.2; margin:0 0 6px; }
h2 { font-size:18px; margin:0 0 12px; }
p.lead { color:var(--muted); margin:0 0 20px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:20px; margin-bottom:16px; }
label { display:block; font-weight:600; font-size:14px; margin-bottom:4px; }
label .opt { font-weight:400; color:var(--muted); }
input[type=text],input[type=email],input[type=tel],input[type=date],input[type=time],input[type=number],input[type=password],select,textarea {
  width:100%; padding:11px 12px; border:1px solid #c9ced6; border-radius:8px; font:inherit; background:#fff; color:inherit; }
input:focus,select:focus,textarea:focus { outline:2px solid var(--brand); outline-offset:1px; border-color:var(--brand); }
.grid { display:grid; gap:14px; grid-template-columns:1fr 1fr; }
.grid .full { grid-column:1/-1; }
@media (max-width:600px) { .grid { grid-template-columns:1fr; } h1 { font-size:24px; } }
.choice { display:flex; gap:12px; align-items:flex-start; padding:14px; border:1px solid var(--line); border-radius:10px; margin-bottom:8px; cursor:pointer; font-weight:400; }
.choice:has(input:checked) { border-color:var(--brand); background:#f0f6fb; }
.choice input { margin-top:4px; accent-color:var(--brand); flex:none; }
.choice .t { font-weight:600; } .choice .d { color:var(--muted); font-size:14px; }
.choice .price { margin-left:auto; font-weight:700; white-space:nowrap; }
.btn { display:inline-block; background:var(--brand); color:var(--brand-ink); border:0; border-radius:8px; padding:12px 20px; font:inherit; font-weight:600; cursor:pointer; text-decoration:none; }
.btn:hover { filter:brightness(1.1); }
.btn.ghost { background:#fff; color:var(--ink); border:1px solid #c9ced6; }
.btn.small { padding:7px 12px; font-size:14px; }
.btn.danger { background:#fff; color:var(--bad); border:1px solid var(--bad); }
.btn.block { display:block; width:100%; text-align:center; }
.note { font-size:14px; color:var(--muted); }
.alert { padding:12px 14px; border-radius:8px; margin-bottom:16px; border:1px solid; }
.alert.bad { background:#fdecea; border-color:#f3b9b4; color:var(--bad); }
.alert.ok { background:#e8f5ee; border-color:#b3dcc6; color:var(--ok); }
.alert.test { background:#fff5e0; border-color:#f0d08a; color:var(--warn); }
.contract { max-height:420px; overflow:auto; border:1px solid var(--line); border-radius:8px; padding:18px; background:#fcfcfd; font-size:15px; }
.contract h3 { font-size:15px; margin:16px 0 6px; } .contract h3:first-child { margin-top:0; font-size:17px; }
.contract p { margin:0 0 10px; }
canvas.sig { width:100%; height:150px; border:1px dashed #9aa2ae; border-radius:8px; background:#fff; touch-action:none; display:block; }
.check { display:flex; gap:10px; align-items:flex-start; font-weight:400; margin:14px 0; }
.check input { margin-top:4px; flex:none; accent-color:var(--brand); }
dl.sum { display:grid; grid-template-columns:auto 1fr; gap:6px 16px; margin:0; }
dl.sum dt { color:var(--muted); } dl.sum dd { margin:0; text-align:right; }
dl.sum .tot { font-weight:700; border-top:1px solid var(--line); padding-top:8px; }
.pill { display:inline-block; padding:3px 10px; border-radius:99px; font-size:13px; font-weight:600; background:#e9edf2; color:#3b4350; white-space:nowrap; }
.pill.ok { background:#e8f5ee; color:var(--ok); } .pill.warn { background:#fff5e0; color:var(--warn); } .pill.bad { background:#fdecea; color:var(--bad); }
.steps { display:flex; gap:8px; margin:0 0 20px; padding:0; list-style:none; font-size:14px; color:var(--muted); flex-wrap:wrap; }
.steps li { padding:4px 12px; border-radius:99px; background:#e9edf2; } .steps li.on { background:var(--brand); color:#fff; font-weight:600; }
.tablewrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:14px; }
th,td { text-align:left; padding:10px 8px; border-bottom:1px solid var(--line); vertical-align:top; }
th { color:var(--muted); font-weight:600; font-size:13px; }
td.num,th.num { text-align:right; white-space:nowrap; }
tr.dim td { color:#9aa2ae; }
.row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.row.between { justify-content:space-between; }
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:16px; }
.stats .card { margin:0; padding:14px; } .stats b { display:block; font-size:22px; } .stats span { color:var(--muted); font-size:13px; }
@media (max-width:700px) { .stats { grid-template-columns:1fr 1fr; } }
.hp { position:absolute; left:-9999px; }
ul.feat { margin:6px 0 6px; padding-left:18px; font-size:14px; color:#3b4350; }
.choice s { color:var(--muted); font-weight:400; margin-right:4px; }
.choice select { width:auto; flex:none; padding:6px 8px; }
.choice.plain { cursor:default; align-items:center; }
.offer { background:#f0f6fb; border:1px solid #b9d3e8; color:var(--brand); padding:12px 14px; border-radius:8px; margin-bottom:16px; font-weight:600; }
.rowcard { border:1px solid var(--line); border-radius:10px; padding:14px; margin-bottom:10px; }
.g4 { display:grid; gap:10px; grid-template-columns:2fr 1fr 1fr 1fr; } .g3 { display:grid; gap:10px; grid-template-columns:2fr 1fr 1fr; }
@media (max-width:700px) { .g4,.g3 { grid-template-columns:1fr 1fr; } .g4 > :first-child,.g3 > :first-child { grid-column:1/-1; } }
.linkbox { font-family:ui-monospace,Menlo,Consolas,monospace; font-size:13px; }
.choice .price { text-align:right; } .choice s { display:block; margin:0; font-size:13px; }
