:root {
  --bg: #f6f7f8; --surface: #ffffff; --text: #141416; --muted: #5f6570; --border: #e3e5e8;
  --brand: #0f9d8a; --brand-btn: #0b7f70; --brand-soft: #e2f5f2; --brand-ink: #0a6b5d;
  --danger: #c93a3a; --warn-bg: #fff6e0; --warn-text: #7a4a00; --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #101214; --surface: #191c1f; --text: #eceef0; --muted: #a1a7af; --border: #2a2e33;
    --brand: #2bc2ac; --brand-btn: #0f8f7d; --brand-soft: #143a35; --brand-ink: #5fe0cb; --danger: #ef6b6b; --warn-bg: #2e2510; --warn-text: #f0c66a; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand-ink); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: clamp(22px, 3.2vw, 30px); }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.fine { color: var(--muted); font-size: 13px; }

.top { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.logo { font-weight: 800; font-size: 20px; text-decoration: none; color: var(--brand-ink); }
.logo span { color: var(--text); font-weight: 600; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
nav a { text-decoration: none; color: var(--muted); padding: 8px 10px; border-radius: 10px; }
nav a:hover { color: var(--text); }
nav a[aria-current="page"] { color: var(--brand-ink); background: var(--brand-soft); font-weight: 600; }
nav a.btn { color: #fff; }

.btn { display: inline-block; background: var(--brand-btn); color: #fff; border: 0; border-radius: 12px; padding: 12px 22px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.hero { padding: 56px 0 40px; background: linear-gradient(180deg, var(--brand-soft), transparent); }
.kicker { color: var(--brand-ink); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.lead { font-size: 19px; max-width: 720px; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }

.block { padding: 36px 16px; }
.block.first { padding-top: 40px; }
.final { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin: 24px auto 48px; padding: 36px 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
ul { margin: 8px 0 0; padding-left: 20px; }
li { margin: 4px 0; }
.steps { padding-left: 22px; }
.steps li { margin: 10px 0; }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; font-weight: 700; margin-right: 6px; }
.tag.ok { background: var(--brand-soft); color: var(--brand-ink); }
.tag.soon { background: var(--warn-bg); color: var(--warn-text); }
.notice { background: var(--brand-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 16px 0; }
.plan .price { font-size: 30px; font-weight: 800; margin: 4px 0 8px; }
.plan .price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan.best { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

.form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.field label, .hp label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=tel], input[type=email], select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; min-height: 44px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 4px; width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { font-size: 15px; min-height: 22px; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--brand-ink); font-weight: 600; }

footer { border-top: 1px solid var(--border); background: var(--surface); padding: 24px 0; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-direction: column; gap: 8px; }

/* Public business page (/b/<name>) */
.tag.full { background: #fbe3e3; color: var(--danger); }
@media (prefers-color-scheme: dark) { .tag.full { background: #3b1c1c; } }
.bp-photo { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; }
.bp-text { white-space: pre-line; overflow-wrap: anywhere; margin: 16px 0; }
.bp-facts { display: grid; gap: 12px; margin: 16px 0; overflow-wrap: anywhere; }
.bp-prices { width: 100%; border-collapse: collapse; }
.bp-prices td { padding: 8px 0; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
.bp-amount { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 12px; }
