:root {
  --bg: #fbf7f2;
  --surface: #ffffff;
  --ink: #2b2230;
  --muted: #6f6574;
  --line: #ece4dc;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --accent-soft: #fde8dc;
  --ok: #15803d;
  --ok-soft: #e3f4e8;
  --warn: #a16207;
  --warn-soft: #fdf3d8;
  --err: #b91c1c;
  --err-soft: #fde4e4;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(43, 34, 48, .06), 0 8px 24px rgba(43, 34, 48, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Lora", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--font);
}
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

header.site { border-bottom: 1px solid var(--line); background: rgba(251, 247, 242, .92);
  position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 60px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink);
  text-decoration: none; }
.logo span { color: var(--accent); }

footer.site { margin-top: 64px; padding: 32px 0 48px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px; }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
footer.site a { color: var(--muted); }

h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 6vw, 48px); }
h2 { font-size: clamp(24px, 4vw, 32px); margin-top: 1.6em; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink); font: 600 16px var(--font);
  text-decoration: none; cursor: pointer; transition: transform .05s, filter .15s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.small { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: default; }

.hero { padding: 56px 0 24px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.price-tag { font-weight: 700; font-size: 22px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700;
  margin-bottom: 8px; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }

/* Форма */
form.stack { display: grid; gap: 22px; }
.field label.title { display: block; font-weight: 600; margin-bottom: 8px; }
.field .hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.field .error { font-size: 14px; color: var(--err); margin-top: 6px; }
input[type=text], input[type=date], input[type=password], textarea, select {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); font: 16px var(--font); color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  cursor: pointer; user-select: none; }
.chips input:checked + label { background: var(--accent); border-color: var(--accent);
  color: var(--accent-ink); }
.chips input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }

/* Заказ */
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 14px;
  font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.status-pill.ok { background: var(--ok-soft); color: var(--ok); }
.alert { padding: 14px 18px; border-radius: 12px; margin: 16px 0; }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.err { background: var(--err-soft); color: var(--err); }
.lyrics { white-space: pre-wrap; font-family: var(--display); font-size: 18px; line-height: 1.7;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; }
.copy-link { display: flex; gap: 8px; }
.copy-link input { flex: 1; font-size: 14px; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--accent-soft);
  border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite;
  display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { display: flex; gap: 12px; align-items: center; }
audio { width: 100%; margin: 8px 0; }
.track { display: grid; gap: 8px; }
.timeline { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; font-size: 14px; }
.timeline span { padding: 4px 10px; border-radius: 999px; background: var(--line);
  color: var(--muted); }
.timeline span.done { background: var(--ok-soft); color: var(--ok); }
.timeline span.now { background: var(--accent); color: var(--accent-ink); }
.cover { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; }

/* Документы */
.doc h2 { font-size: 22px; }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; }

/* Админка */
table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left;
  vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input { width: auto; min-height: 36px; padding: 6px 10px; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 16px; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } .hero { padding-top: 32px; } }
