:root {
  --ink: #16201b; --muted: #55605a; --line: #dfe3dc; --bg: #f6f5f0; --card: #ffffff;
  --brand: #1f4d3a; --brand-dark: #173a2c; --brand-soft: #e3eee7;
  --go: #166534; --go-bg: #dcfce7; --maybe: #92400e; --maybe-bg: #fef3c7; --no: #991b1b; --no-bg: #fee2e2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }

header.site { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; gap: 10px; align-items: center; font-weight: 700; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: 0; line-height: 1.2; }
nav a { margin-left: 22px; color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover, nav a.on { color: var(--ink); }

.btn { display: inline-block; background: var(--brand); color: #fff !important; text-decoration: none; padding: 13px 22px; border-radius: 10px; font-weight: 600; transition: background .15s; }
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: transparent; color: var(--brand) !important; border: 1.5px solid var(--brand); }
nav .btn { padding: 10px 16px; }

.hero { padding: 72px 0 60px; background: linear-gradient(180deg, #e9f1ec 0%, var(--bg) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 5px 10px; border-radius: 999px; }
h1 { font-size: clamp(34px, 5vw, 50px); line-height: 1.1; letter-spacing: -.025em; margin: 16px 0 18px; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }

.sheet { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px -20px rgba(22,32,27,.28); overflow: hidden; }
.sheet-head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.sheet-body { padding: 18px; }
.sheet-body h3 { margin: 0 0 4px; font-size: 18px; }
.sheet-body .meta { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.row b { color: var(--muted); font-weight: 600; font-size: 13px; }

.chip { display: inline-block; white-space: nowrap; flex: none; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.chip.go { background: var(--go-bg); color: var(--go); }
.chip.maybe { background: var(--maybe-bg); color: var(--maybe); }
.chip.no { background: var(--no-bg); color: var(--no); }

section { padding: 68px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.02em; margin: 0 0 12px; line-height: 1.2; }
.sub { color: var(--muted); margin: 0 0 36px; max-width: 42em; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
section.alt .card { background: var(--bg); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; font-weight: 800; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.col { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.col.yes { border: 2px solid var(--brand); }
.col h3 { margin: 0 0 12px; }
.col ul { margin: 0; padding-left: 20px; }
.col li { margin: 7px 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
section.alt .step { background: var(--bg); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; margin-bottom: 12px; }
.step p { margin: 0; font-size: 15.5px; }

.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.prices.three { grid-template-columns: repeat(3, 1fr); }
.tool { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.tool-steps { list-style: none; margin: 0; padding: 0; counter-reset: t; display: grid; gap: 12px; }
.tool-steps li { counter-increment: t; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 16px 62px; position: relative; }
.tool-steps li::before { content: counter(t); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.tool-steps b { display: block; }
.tool-steps span { color: var(--muted); font-size: 15px; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.price-card.main { border: 2px solid var(--brand); }
.price { font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 6px; }
.price-card p { color: var(--muted); margin: 0 0 20px; }

.refuse { background: var(--no-bg); border: 1px solid #fecaca; border-radius: 14px; padding: 22px 24px; }
.refuse h3 { margin: 0 0 6px; color: var(--no); }
.refuse p { margin: 0; }

.crosslink { display: flex; justify-content: space-between; align-items: center; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.crosslink p { margin: 0; color: var(--muted); }

.final { background: var(--ink); color: #dfe7e2; text-align: center; border-radius: 20px; padding: 56px 24px; }
.final h2 { color: #fff; }
.final p { color: #c4cec8; max-width: 36em; margin: 0 auto 26px; }
.final a.mail { color: #fff; }

footer.site { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Sample pages */
.banner { background: var(--brand); color: #fff; font-size: 13px; letter-spacing: .04em; padding: 10px 0; }
.banner a { color: #fff; }
.doc { padding: 44px 0 64px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); margin: 10px 0 8px; }
.doc h2 { font-size: 21px; margin: 34px 0 10px; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.verdict { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--maybe); border-radius: 12px; padding: 18px 20px; }
.verdict p { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
td:first-child { font-weight: 600; white-space: nowrap; }
.reply { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; font-size: 15.5px; position: relative; }
.reply .label { position: absolute; top: -11px; left: 16px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.note { color: var(--muted); font-size: 13.5px; margin-top: 26px; }

.hero .wrap > *, .two > *, .prices > *, .cards > *, .steps > *, .tool > * { min-width: 0; }
@media (max-width: 900px) {
  .hero .wrap, .two, .prices, .prices.three, .tool { grid-template-columns: 1fr; }
  .cards, .cards.three, .steps { grid-template-columns: 1fr 1fr; }
  nav a:not(.btn) { display: none; }
  .hero { padding-top: 48px; }
  .crosslink { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .cards, .cards.three, .steps { grid-template-columns: 1fr; }
  td:first-child { white-space: normal; }
}

/* Triage desk */
.prices.four { grid-template-columns: repeat(4, 1fr); }
.price-card ul { padding-left: 18px; margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.price-card li { margin: 5px 0; }
.verdict.go { border-left-color: var(--go); }
.verdict.no { border-left-color: var(--no); }
.reply pre, pre.packet { white-space: pre-wrap; word-wrap: break-word; font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; margin: 0; }
pre.packet { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; max-height: 520px; overflow: auto; }
.form { display: grid; gap: 14px; margin: 18px 0 28px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.form label.check input { width: auto; margin-top: 5px; }
.form input, .form textarea, .form select { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.form textarea { resize: vertical; }
.form .two { gap: 14px; }
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 22px; text-align: center; background: var(--card); color: var(--muted); }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop b { color: var(--ink); }
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
button.btn.ghost { border: 1.5px solid var(--brand); }
.btn.danger { color: var(--no) !important; border-color: var(--no) !important; }
.btn[disabled] { opacity: .6; cursor: wait; }
.notice { background: var(--go-bg); border: 1px solid #bbf7d0; border-radius: 12px; padding: 14px 18px; margin: 16px 0; }
.notice p { margin: 0 0 10px; }
.refuse-inline { background: var(--no-bg); border: 1px solid #fecaca; border-radius: 12px; padding: 12px 16px; }
.result { margin-top: 18px; }
.queue { display: grid; gap: 8px; margin-top: 18px; }
.qrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; color: var(--ink); text-decoration: none; }
.qrow:hover { border-color: var(--brand); }
.qrow small { display: block; color: var(--muted); font-size: 13px; }
.qrow > span:last-child { text-align: right; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
@media (max-width: 900px) {
  .prices.four { grid-template-columns: 1fr 1fr; }
  nav.admin a { display: inline; margin-left: 12px; font-size: 14px; }
  .qrow { flex-direction: column; align-items: flex-start; }
  .qrow > span:last-child { text-align: left; }
}
@media (max-width: 560px) {
  .prices.four { grid-template-columns: 1fr; }
}
