:root {
  --ink:#16201c; --muted:#5b6661; --line:#dfe4e1; --bg:#f5f4ef; --card:#fff;
  --brand:#1b5e4a; --brand-2:#0f3d30; --accent:#e8873a; --accent-soft:#fdf0e4; --brand-soft:#e6f1ec;
  --on-brand:#fff; --shadow:0 1px 2px rgba(16,40,32,.06), 0 8px 24px rgba(16,40,32,.08);
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body { margin:0; font:16px/1.55 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color:var(--ink); background:var(--bg); }
a { color:var(--brand); }
h1, h2, h3 { letter-spacing:-.02em; }
svg { display:block; }

/* Header */
.top { position:sticky; top:0; z-index:10; background:rgba(245,244,239,.85); backdrop-filter:saturate(1.4) blur(10px); -webkit-backdrop-filter:saturate(1.4) blur(10px); border-bottom:1px solid var(--line); }
.top-in, .foot-in, .hero-in, .band-in, .wrap { max-width:1180px; margin:0 auto; padding-left:16px; padding-right:16px; }
.top-in { display:flex; justify-content:space-between; align-items:center; height:60px; }
.brand { display:flex; align-items:center; gap:10px; font-weight:800; font-size:19px; text-decoration:none; color:var(--ink); letter-spacing:-.02em; }
.brand .dot { color:var(--accent); }
.logo { width:34px; height:34px; border-radius:10px; background:var(--brand); color:#fff; display:grid; place-items:center; }
.logo svg { width:22px; height:22px; }
.lang { font-weight:600; text-decoration:none; padding:7px 12px; border:1px solid var(--line); border-radius:999px; background:var(--card); color:var(--ink); font-size:14px; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #2b8a6b 0%, transparent 60%), linear-gradient(135deg, var(--brand-2), var(--brand)); color:#fff; overflow:hidden; }
.hero-in { display:grid; grid-template-columns:1.1fr .9fr; gap:24px; align-items:center; padding-top:56px; padding-bottom:56px; }
.hero h1 { font-size:clamp(32px, 5vw, 52px); line-height:1.05; margin:0 0 16px; font-weight:800; }
.hero-lead { font-size:19px; opacity:.9; max-width:560px; margin:0 0 24px; }
.hero-cta { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:22px; }
.hero-art { width:100%; max-width:440px; justify-self:center; }
.hero-art .ink { stroke-dasharray:140; stroke-dashoffset:140; animation:draw 1.4s ease-out .3s forwards; }
.hero-art .d2 { animation-delay:1s; } .hero-art .d3 { animation-delay:1.7s; }
@keyframes draw { to { stroke-dashoffset:0; } }
@media (prefers-reduced-motion: reduce) { .hero-art .ink { animation:none; stroke-dashoffset:0; } }
@media (max-width:820px) { .hero-in { grid-template-columns:1fr; padding-top:36px; padding-bottom:36px; } .hero-art { max-width:300px; } }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:13px 20px; border-radius:12px; font:inherit; font-weight:700; text-decoration:none; background:var(--accent); color:#2a1503; border:0; cursor:pointer; box-shadow:0 6px 16px rgba(232,135,58,.35); transition:transform .15s, box-shadow .15s; }
.btn:hover { transform:translateY(-1px); box-shadow:0 10px 22px rgba(232,135,58,.4); }
.btn.ghost { background:rgba(255,255,255,.12); color:#fff; box-shadow:none; border:1px solid rgba(255,255,255,.35); }
.btn:disabled { opacity:.6; cursor:default; transform:none; }
.chips { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:8px; }
.chips li { font-size:14px; font-weight:600; padding:6px 12px; border-radius:999px; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.25); }
.chips li::before { content:"✓ "; color:#9fe3c6; }

/* Steps + cards */
.wrap { padding-bottom:40px; }
.steps { list-style:none; padding:0; margin:-28px 0 36px; display:grid; grid-template-columns:repeat(3,1fr); gap:12px; position:relative; }
.steps li { background:var(--card); border-radius:14px; padding:16px; box-shadow:var(--shadow); font-weight:600; display:flex; gap:12px; align-items:center; }
.steps .n { flex:none; width:32px; height:32px; border-radius:50%; background:var(--brand-soft); color:var(--brand); display:grid; place-items:center; font-weight:800; }
@media (max-width:720px) { .steps { grid-template-columns:1fr; margin-top:-20px; } }
.sec { font-size:24px; margin:8px 0 14px; }
.cards { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:14px; }
.card { display:flex; flex-direction:column; gap:6px; height:100%; background:var(--card); border:1px solid var(--line); border-radius:16px; padding:18px; text-decoration:none; color:var(--ink); transition:transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { transform:translateY(-3px); box-shadow:var(--shadow); border-color:transparent; }
.ic { width:44px; height:44px; border-radius:12px; background:var(--accent-soft); color:#b8571a; display:grid; place-items:center; margin-bottom:6px; }
.ic svg { width:26px; height:26px; }
.ic.big { width:64px; height:64px; border-radius:18px; flex:none; background:rgba(255,255,255,.14); color:#fff; }
.ic.big svg { width:36px; height:36px; }
.card-t { font-weight:800; font-size:18px; }
.card-d { color:var(--muted); font-size:14.5px; flex:1; }
.card-go { color:var(--brand); font-weight:700; font-size:14.5px; margin-top:6px; }

/* Form page band */
.band { background:linear-gradient(135deg, var(--brand-2), var(--brand)); color:#fff; }
.band-in { display:flex; gap:18px; align-items:flex-start; padding-top:32px; padding-bottom:44px; }
.band h1 { margin:0 0 6px; font-size:clamp(28px,4vw,40px); line-height:1.1; font-weight:800; }
.band p { margin:0 0 14px; opacity:.9; max-width:720px; }
@media (max-width:600px) { .band-in { flex-direction:column; gap:10px; } }

.grid { display:grid; grid-template-columns:330px 1fr; gap:22px; align-items:start; margin-top:-24px; }
@media (max-width:900px) { .grid { grid-template-columns:1fr; } }
.panel { background:var(--card); border-radius:16px; padding:18px; box-shadow:var(--shadow); position:sticky; top:76px; max-height:calc(100vh - 92px); overflow:auto; }
@media (max-width:900px) { .panel { position:static; max-height:none; } }
.panel h3 { font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin:18px 0 8px; }
.fld { display:block; margin:10px 0; }
.fld span { display:block; font-size:13px; font-weight:600; color:var(--muted); margin-bottom:5px; }
input[type=text], input[type=number], textarea { width:100%; font:inherit; padding:9px 11px; border:1px solid var(--line); border-radius:10px; background:#fbfbf9; color:var(--ink); transition:border-color .15s, box-shadow .15s; }
input:focus, textarea:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(27,94,74,.15); background:#fff; }
.pair { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-bottom:6px; }
.colrow { display:flex; gap:8px; align-items:center; margin-bottom:6px; }
.colrow input[type=checkbox], .chk input { width:20px; height:20px; flex:none; accent-color:var(--brand); }
.chk { display:flex; gap:8px; align-items:center; margin:12px 0; font-weight:600; }
button { font:inherit; cursor:pointer; }
.primary { width:100%; margin-top:14px; padding:14px; border-radius:12px; background:var(--accent); color:#2a1503; border:0; font-weight:800; font-size:16px; box-shadow:0 6px 16px rgba(232,135,58,.35); }
.primary:hover { filter:brightness(1.04); }
.link { background:none; border:0; color:var(--muted); text-decoration:underline; padding:8px 0; }
.hint { font-size:13px; color:var(--muted); margin:8px 0 0; }
.label { font-size:12px; text-transform:uppercase; letter-spacing:.08em; font-weight:700; color:var(--muted); margin:28px 0 8px; }
@media (max-width:900px) { .label { margin-top:4px; } }
.sheet-wrap { min-width:0; overflow-x:auto; }
.sheet { background:#fff; color:#000; border-radius:4px; box-shadow:0 2px 4px rgba(0,0,0,.06), 0 18px 40px rgba(16,40,32,.14); padding:12mm; width:100%; max-width:210mm; min-height:280mm; }
.sheet.land { max-width:297mm; min-height:200mm; }
.st { text-align:center; font-size:18pt; margin:0 0 6mm; }
.sh { display:grid; grid-template-columns:1fr 1fr; gap:3mm 8mm; margin-bottom:5mm; font-size:10.5pt; }
.sf { display:flex; gap:2mm; border-bottom:1px solid #000; padding-bottom:1mm; min-height:7mm; align-items:flex-end; }
.sl { font-weight:600; white-space:nowrap; }
.tb { width:100%; border-collapse:collapse; table-layout:fixed; font-size:9.5pt; }
.tb th, .tb td { border:1px solid #000; padding:1mm 1.5mm; overflow:hidden; word-wrap:break-word; }
.tb th { background:#eee; text-align:left; font-weight:600; }
.tb td { height:9mm; }
.tb tr { break-inside:avoid; }
.note { margin:5mm 0 0; font-size:10pt; }
.signs { display:grid; grid-template-columns:1fr 1fr; gap:12mm; margin-top:10mm; font-size:10pt; }
.sign .line { border-bottom:1px solid #000; height:16mm; }
.sign span { color:#444; font-size:9pt; }
.made { margin:4mm 0 0; font-size:7.5pt; color:#888; text-align:right; }

/* App callout */
.app { margin:36px 0 8px; display:grid; grid-template-columns:auto 1fr; gap:24px; align-items:center; background:linear-gradient(135deg, var(--accent-soft), #fff); border:1px solid #f3d9bf; border-radius:20px; padding:24px; }
.app h2 { margin:0 0 6px; font-size:24px; }
.app p { margin:0 0 14px; color:var(--muted); max-width:620px; }
.app-art .tab { width:120px; height:160px; border-radius:16px; background:#1d2421; padding:8px; box-shadow:var(--shadow); transform:rotate(-6deg); }
.app-art .tab-s { width:100%; height:100%; border-radius:10px; background:#fff; color:var(--brand); display:grid; place-items:center; }
.app-art .tab-s svg { width:56px; height:56px; }
@media (max-width:600px) { .app { grid-template-columns:1fr; } .app-art { display:none; } }
.thanks { color:var(--brand); font-weight:700; margin-top:10px !important; }
.more { margin-top:28px; }

.prose { padding-top:24px; } .prose h1 { font-size:34px; }
footer { border-top:1px solid var(--line); margin-top:24px; }
.foot-in { padding-top:18px; padding-bottom:28px; color:var(--muted); font-size:14px; }

@media (prefers-color-scheme: dark) {
  :root { --ink:#e9ecea; --muted:#a3ada8; --line:#2f3633; --bg:#141816; --card:#1d2220; --brand-soft:#21362e; --accent-soft:#3a2a1c; --shadow:0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); }
  .top { background:rgba(20,24,22,.85); }
  input[type=text], input[type=number], textarea { background:#232927; }
  input:focus, textarea:focus { background:#262c2a; }
  a { color:#7fd3b2; } .card-go { color:#7fd3b2; }
  .ic { color:#f0a465; }
  .app { background:linear-gradient(135deg, #2a2119, var(--card)); border-color:#463424; }
  .lang { color:var(--ink); }
}
@media print {
  .no-print, header, footer { display:none !important; }
  body { background:#fff; }
  .wrap { padding:0; max-width:none; }
  .grid { display:block; margin:0; }
  .sheet, .sheet.land { border:0; box-shadow:none; padding:0; max-width:none; min-height:0; }
  .tb thead { display:table-header-group; }
}
