:root {
  --bg: #f6f3ee;
  --text: #1d1b18;
  --muted: #6b655c;
  --card: #ffffff;
  --line: #e4ddd2;
  --accent: #e2531f;
  --accent-text: #ffffff;
  --bad: #b3261e;
  --good: #2e7d32;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161412;
    --text: #f1ece4;
    --muted: #a59d92;
    --card: #211e1b;
    --line: #35302a;
    --accent: #ff6a33;
    --bad: #ff6b60;
    --good: #66bb6a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

main, .hero, footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

section { padding: 48px 0; border-top: 1px solid var(--line); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: 32px; }
h3 { font-size: 20px; }

.hero { padding-top: 72px; padding-bottom: 64px; text-align: center; }
.hero h1 {
  font-size: clamp(96px, 26vw, 200px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin: 0;
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 14px; color: var(--muted); }
.lead { font-size: 22px; max-width: 560px; margin: 8px auto 24px; }

.price-big { font-size: 48px; font-weight: 800; margin: 16px 0; }
.price-big span { font-size: 18px; font-weight: 400; color: var(--muted); margin-left: 6px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.card p { margin: 0; color: var(--muted); }
.card-debt { border-color: var(--bad); }
.avatar { font-size: 40px; margin-bottom: 8px; }

.note { color: var(--muted); }
.fine { color: var(--muted); font-size: 14px; }

.debt-box {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  background: var(--card);
  border: 2px solid var(--bad);
  border-radius: 16px;
  padding: 24px;
  margin: 16px 0;
}
.debt-label { margin: 0; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.debt-sum { margin: 0; font-size: 56px; font-weight: 900; color: var(--bad); font-variant-numeric: tabular-nums; }
.debt-sum.small { font-size: 32px; padding-top: 18px; }

.prices { width: 100%; border-collapse: collapse; }
.prices th, .prices td { text-align: left; padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices th { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.prices td:last-child { white-space: nowrap; font-weight: 700; text-align: right; }
.prices .na td:last-child { color: var(--bad); }
.prices .free td:last-child { color: var(--good); }

.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.rule { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.rule p { margin: 0; color: var(--muted); }

.join { text-align: center; }

footer { padding: 32px 16px 48px; color: var(--muted); font-size: 14px; text-align: center; border-top: 1px solid var(--line); }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .prices td:last-child { white-space: normal; }
  .debt-sum { font-size: 44px; }
}
