:root {
  --bg: #fbfaf7; --card: #ffffff; --ink: #1f2330; --muted: #6b7080; --line: #e6e3dc;
  --accent: #b5532f; --accent-ink: #ffffff; --ok: #2f7a4b; --warn: #a3631b; --err: #b3261e;
  --radius: 14px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 24px rgba(0,0,0,.05);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14161c; --card: #1c1f27; --ink: #ecebe7; --muted: #a2a5b0; --line: #2c303b;
          --accent: #e0805c; --accent-ink: #14161c; --shadow: none; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
header.top { border-bottom: 1px solid var(--line); background: var(--card); }
header.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; margin-right: auto; }
nav a { color: var(--muted); text-decoration: none; margin-left: 14px; }
nav a:hover { color: var(--ink); }
main { padding: 32px 0 64px; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: 1.35rem; margin: 32px 0 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
        padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px;
       padding: 12px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: var(--err); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: inherit; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 14px 0; }
.check input { margin-top: 5px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.flash { background: #fff4e5; color: #6a3b00; border: 1px solid #f3d6a8; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
@media (prefers-color-scheme: dark) { .flash { background: #3a2a14; color: #f6d8a8; border-color: #5a4320; } }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .85rem; border: 1px solid var(--line); }
.badge.done { color: var(--ok); border-color: var(--ok); }
.badge.failed { color: var(--err); border-color: var(--err); }
.progress { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 12px 0 6px; }
.progress > div { height: 100%; background: var(--accent); transition: width .6s; }
.price { font-size: 2rem; font-weight: 700; }
.voice-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 12px; align-items: center;
             padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .voice-row { grid-template-columns: 1fr; } nav a { margin: 0 12px 0 0; } }
audio { width: 100%; }
footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .9rem; }
footer a { color: var(--muted); margin-right: 14px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; padding-left: 44px; position: relative; margin-bottom: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
                    background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
.legal h2 { font-size: 1.1rem; }
