:root {
  --bg: #f6f7f9; --card: #fff; --ink: #1d2433; --muted: #6b7385; --line: #e3e6ec;
  --accent: #2f6fed; --accent-ink: #fff; --ok: #1f9d55; --warn: #c27c0e; --bad: #c0392b;
  --r: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; line-height: 1.25; margin: 0 0 16px; }
h2 { font-size: 19px; margin: 0 0 12px; }
h3 { font-size: 16px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

header.top { background: var(--card); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 22px; height: 58px; }
.logo { font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -.2px; }
.logo span { color: var(--accent); }
header.top nav { display: flex; gap: 18px; flex: 1; }
header.top nav a { color: var(--muted); }
header.top nav a.on { color: var(--ink); font-weight: 600; }
header.top form { margin: 0; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; text-align: center; }

main { padding: 26px 0 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.flash { background: #fff8e1; border: 1px solid #f3dd9b; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }

.btn, button { display: inline-block; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); border-radius: 9px;
  padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover, button:hover { filter: brightness(1.05); text-decoration: none; }
.btn.ghost, button.ghost { background: transparent; color: var(--accent); }
.btn.quiet, button.quiet { background: transparent; color: var(--muted); border-color: var(--line); font-weight: 500; }
button.danger { background: var(--bad); border-color: var(--bad); }
.linkbtn { background: none; border: 0; color: var(--muted); padding: 0; font-weight: 400; }

label { display: block; font-weight: 600; margin: 14px 0 6px; }
label.check { font-weight: 400; display: flex; align-items: center; gap: 8px; margin: 8px 0; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=time], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font: inherit; background: #fff; color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.hint { color: var(--muted); font-size: 13px; margin-top: 4px; }
.fields2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 700px) { .fields2 { grid-template-columns: 1fr; } }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-color: var(--accent); font-weight: 600; }

table.list { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
table.list th, table.list td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: 13px; color: var(--muted); font-weight: 600; background: #fafbfc; }
table.list tr:last-child td { border-bottom: 0; }
table.list tr.click { cursor: pointer; }
table.list tr.click:hover td { background: #f9fbff; }
.q { max-width: 420px; }

.st { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.st-new { background: #e8f0fe; color: #1a56db; }
.st-done { background: #eef0f3; color: #4b5563; }
.st-won { background: #e3f5ea; color: var(--ok); }
.st-lost { background: #fdecea; color: var(--bad); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chips a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: #fff; font-size: 14px; }
.chips a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.stat { display: flex; gap: 22px; margin: 10px 0 4px; }
.stat div b { display: block; font-size: 22px; }
.stat div { color: var(--muted); font-size: 13px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #b8bec9; margin-right: 6px; vertical-align: 1px; }
.dot.on { background: var(--ok); }
.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--accent); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 700; flex: none; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
pre.snippet { background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 10px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
dl.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 16px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; word-break: break-word; }
@media (max-width: 700px) { dl.kv { grid-template-columns: 1fr; } dl.kv dt { margin-top: 8px; } }
.days label { display: inline-flex; font-weight: 400; margin: 0 10px 0 0; gap: 4px; }
.consent-box { white-space: pre-wrap; background: #fafbfc; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; max-height: 260px; overflow: auto; }

/* главная */
.hero { padding: 56px 0 30px; }
.hero h1 { font-size: 40px; max-width: 760px; letter-spacing: -.5px; }
.hero p.lead { font-size: 19px; color: #3c4456; max-width: 680px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin: 26px 0; }
.steps .card { position: relative; padding-top: 44px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 14px; left: 22px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.price { font-size: 32px; font-weight: 700; }
footer.bottom { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--muted); font-size: 13px; }
@media (max-width: 600px) { .hero h1 { font-size: 30px; } header.top nav { gap: 12px; font-size: 14px; } }
