:root {
  --bg: #f4f1ea;
  --ink: #17130f;
  --muted: #6f675c;
  --card: #fffaf1;
  --line: #d8cdbc;
  --accent: #111111;
  --gold: #c99233;
  --green: #235c43;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(201,146,51,.22), transparent 35%),
    linear-gradient(135deg, #f7f2e7 0%, #ebe1d0 100%);
}
button, input { font: inherit; }
button { min-height: 44px; cursor: pointer; border-radius: 0; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0; }
.hero {
  border: 1px solid var(--line);
  background: rgba(255,250,241,.82);
  padding: clamp(28px, 5vw, 64px);
  box-shadow: 16px 16px 0 rgba(23,19,15,.08);
}
.badge { display: inline-block; padding: 9px 12px; background: var(--ink); color: white; letter-spacing: .12em; font-size: 12px; font-weight: 800; }
h1 { margin: 22px 0 14px; max-width: 760px; font-size: clamp(38px, 7vw, 84px); line-height: .92; letter-spacing: -.06em; }
.lead { max-width: 680px; color: var(--muted); font-size: clamp(17px, 2vw, 22px); line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.primary, .secondary, .input-row button, .phone-btn {
  border: 1px solid var(--ink); padding: 0 18px; font-weight: 800;
}
.primary, .input-row button, .phone-btn { background: var(--ink); color: white; }
.secondary { background: transparent; color: var(--ink); }
.grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-top: 18px; }
.panel { border: 1px solid var(--line); background: rgba(255,250,241,.9); padding: 24px; min-height: 320px; }
.panel.dark { background: #17130f; color: white; border-color: #17130f; }
.panel.wide { grid-column: 1 / -1; min-height: auto; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h2 { margin: 0 0 18px; font-size: 22px; letter-spacing: -.03em; }
#count { color: var(--muted); font-weight: 800; }
.form label { display: block; font-weight: 800; margin-bottom: 8px; }
.input-row { display: flex; gap: 8px; }
.input-row input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); background: white; border-radius: 0; }
.hint { color: var(--muted); font-size: 14px; }
.items { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.items li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); background: white; padding: 12px; }
.items li.done { background: #eef7f0; border-color: rgba(35,92,67,.35); }
.item-actions { display: flex; gap: 8px; }
.item-actions button { min-height: 36px; padding: 0 10px; border: 1px solid var(--line); background: #fffaf1; }
.phone { width: min(280px, 100%); margin: 10px auto 0; min-height: 520px; border: 1px solid rgba(255,255,255,.28); padding: 18px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(180deg, #2b241d, #111); }
.phone-top { width: 72px; height: 6px; background: rgba(255,255,255,.35); margin: 0 auto; }
.preview-card { border: 1px solid rgba(255,255,255,.18); padding: 18px; background: rgba(255,255,255,.08); }
.preview-card small { display: block; color: #d9c6aa; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .12em; }
.preview-card strong { display: block; font-size: 30px; line-height: 1; }
.preview-card p { color: #eee0cc; line-height: 1.5; }
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rules div { border: 1px solid var(--line); background: white; padding: 16px; }
.rules strong, .rules span { display: block; }
.rules span { margin-top: 6px; color: var(--muted); line-height: 1.4; }
@media (max-width: 820px) {
  .grid, .rules { grid-template-columns: 1fr; }
  .input-row { flex-direction: column; }
  .hero { box-shadow: 8px 8px 0 rgba(23,19,15,.08); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
