:root {
  --ink: #7a3f17;            /* основной медный текст */
  --heading: #6b3512;        /* заголовки */
  --muted: #7d5329;          /* вторичный медный */
  --link: #6b3512;
  --brand: #6b3512;
  --brand-soft: #eaf7eb;     /* светло-зелёная плашка */
  --accent: #a85a24;         /* медь для кнопок */
  --accent-dark: #8f4d1f;
  --bg: #d9ecda;             /* приятный зелёный фон */
  --bg-soft: #cce4cd;        /* зелёная полоса */
  --card: #ffffff;
  --line: #b3d3b4;           /* зелёная линия */
  --red: #c93a3a;
  --yellow: #d99a2b;
  --green: #22c55e;          /* ярко-зелёные точки и галочки */
  --green-dark: #15803d;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.top {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 42px; height: 42px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 19px; color: var(--heading); letter-spacing: -0.01em; }
.brand-org { font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

.nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin: 0 auto; }
.nav a { color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--heading); text-decoration: none; }

main { max-width: 1120px; margin: 0 auto; padding: 0 20px 70px; }

/* Buttons */
.btn {
  display: inline-block;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: #a9c9a9; }
.btn.wide { display: block; width: 100%; text-align: center; margin-top: 14px; padding: 12px 16px; }
.small-btn { padding: 9px 16px; font-size: 14px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: start;
  padding: 36px 0 24px;
}
.hero-copy h1 { font-size: 44px; line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.02em; color: var(--heading); }
h1 { font-size: 38px; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; color: var(--heading); }
h2 { font-size: 26px; margin: 46px 0 18px; letter-spacing: -0.01em; color: var(--heading); }
h3 { font-size: 19px; margin: 0 0 10px; color: var(--heading); }

.badge {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--heading);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.badge-hot {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  float: right;
}

.lead { font-size: 17px; color: var(--muted); margin: 0 0 20px; max-width: 58ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Upload */
.upload-inline { margin: 18px 0 10px; }
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 44px 20px;
  border: 2px dashed #9dc29e;
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  text-align: center;
}
.drop:hover { border-color: var(--green-dark); }
.drop.compact { padding: 22px 16px; gap: 2px; }
.drop input { display: none; }
.drop-icon { font-size: 28px; }
.drop-title { font-weight: 700; }

/* Hero preview */
.hero-preview { padding-top: 10px; }
.preview-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 18px 44px rgba(20, 70, 40, 0.14);
}
.preview-head {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; margin-bottom: 12px; color: var(--heading);
}
.preview-tag {
  font-size: 12px; font-weight: 600; color: var(--green-dark);
  background: var(--brand-soft); border-radius: 999px; padding: 3px 9px;
}
.finding {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.finding span { color: var(--muted); font-size: 13px; }
.finding.red { background: #f9e9e7; border-left: 3px solid var(--red); }
.finding.yellow { background: #fbf1dd; border-left: 3px solid var(--yellow); }
.finding.green { background: #e4f8e9; border-left: 3px solid var(--green); }
.preview-foot { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Trust bar */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 8px 0 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-item { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.trust-item b { color: var(--heading); }
.trust-item b::before { content: "✓ "; color: var(--green); font-weight: 800; }
.trust-item span { color: var(--muted); font-size: 13px; }

/* Steps */
.step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.step-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 15px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #0b3b1a;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 8px;
}

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
}
.chips span::before { content: "● "; color: var(--green); font-size: 11px; }

/* Audience */
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.audience-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.audience-card b { color: var(--heading); }
.audience-card span { color: var(--muted); font-size: 14px; }

/* Pricing */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card.accent { border-color: #9ccf9c; box-shadow: 0 12px 30px rgba(34, 120, 60, 0.14); }
.card ul { padding-left: 18px; color: var(--muted); margin: 12px 0 18px; }
.card li { margin: 4px 0; }
.card li::marker { color: var(--green); }
.price { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--heading); }
.price span { font-size: 15px; font-weight: 500; color: var(--muted); }

/* FAQ */
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
summary { cursor: pointer; font-weight: 600; color: var(--heading); }
summary::marker { color: var(--green); }
details p { color: var(--muted); margin: 10px 0 0; }

/* Check page */
.narrow { max-width: 640px; margin: 0 auto; padding-top: 30px; }
.upload { margin: 24px 0; }

.alert {
  background: #f9e9e7;
  border: 1px solid #eec7c2;
  color: #8f1f1f;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 15px;
}

/* Report */
.report { padding-top: 24px; }
.report-head h1 { font-size: 26px; margin-bottom: 4px; word-break: break-word; }
.counts { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.count {
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  background: var(--card);
  border: 1px solid var(--line);
}
.count.red { color: #a02428; }
.count.yellow { color: #8a5a06; }
.count.green { color: var(--green-dark); }

.report-text {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 70vh;
  overflow: auto;
}

.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 14px; }

/* Legal */
.legal-wrap { max-width: 780px; margin: 0 auto; padding-top: 24px; }
.back { margin: 0 0 18px; }
.legal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.legal h1 { font-size: 28px; margin-top: 0; color: var(--heading); }
.legal h2 { font-size: 20px; margin: 26px 0 10px; color: var(--heading); }
.legal table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.legal code { background: var(--bg-soft); padding: 1px 4px; border-radius: 4px; }

/* Footer */
.foot {
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 24px 20px 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.foot p { margin: 6px 0; }
.foot-title { font-weight: 700; color: var(--heading); margin-bottom: 2px; }
.foot-contacts { font-size: 16px; color: var(--ink); }
.foot-contacts a { color: var(--heading); font-weight: 600; }
.foot-contacts .sep { color: var(--muted); margin: 0 6px; }


/* Why / problems */
.why { padding-top: 6px; }
.section-lead { color: var(--muted); max-width: 72ch; margin: -6px 0 20px; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.problem-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.problem-card b { color: var(--heading); }
.problem-card span { color: var(--muted); font-size: 14px; }
.warn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fbe4e4;
  color: var(--red);
  font-weight: 800;
  margin-bottom: 6px;
}

/* Compare table */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 12px 14px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.compare-table thead th { background: var(--brand-soft); color: var(--heading); font-size: 14px; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td:last-child { color: var(--green-dark); font-weight: 600; }
.compare-table td:last-child b { color: var(--green-dark); }

/* Value */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.value-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.value-card b { color: var(--heading); }
.value-card span { color: var(--muted); font-size: 14px; }

/* Realtime banner */
.realtime {
  margin-top: 44px;
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.realtime-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.realtime h2 { margin: 0 0 8px; }
.realtime p { margin: 0; color: var(--muted); max-width: 70ch; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 26px; }
  .hero-copy h1, h1 { font-size: 32px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .step-list, .cards, .cards.three, .audience-grid, .problem-grid, .value-grid { grid-template-columns: 1fr; }
  .realtime-inner { flex-direction: column; align-items: flex-start; }
  .legal { padding: 20px; }
  .report-text { font-size: 12px; }
}

@media (max-width: 720px) {
  .top { flex-wrap: wrap; row-gap: 10px; }
  .brand { order: 1; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-name { font-size: 17px; }
  .top-cta { order: 2; margin-left: auto; }
  .nav {
    order: 3;
    width: 100%;
    margin: 0;
    gap: 14px;
    justify-content: space-between;
    font-size: 14px;
  }
  .nav a { font-size: 14px; }
}

/* Проверки по типам договоров */
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.check-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink);
}
.check-card:hover { text-decoration: none; border-color: #9dc29e; }
.check-card b { color: var(--heading); }
.check-card span { color: var(--muted); font-size: 14px; }
.check-more { color: var(--green-dark); font-weight: 600; font-size: 14px; }

.risk-list { list-style: none; padding: 0; margin: 0; counter-reset: risk; }
.risk-list li {
  counter-increment: risk;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.risk-list li::before {
  content: counter(risk);
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); color: #0b3b1a;
  font-weight: 800; font-size: 12px;
  margin-bottom: 4px;
}
.risk-list b { color: var(--heading); }
.risk-list span { color: var(--muted); font-size: 14px; }
.risk-list .law { color: var(--green-dark); font-size: 13px; font-weight: 600; }

/* Вопрос по отчёту */
.ask {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0 10px;
}
.ask b { display: block; color: var(--heading); }
.ask span { color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .check-grid { grid-template-columns: 1fr; }
  .ask { flex-direction: column; align-items: flex-start; }
}

/* Админка */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 26px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat-card span { color: var(--muted); font-size: 13px; }
.stat-card b { color: var(--heading); font-size: 22px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* Форма оплаты/заявки */
.pay-form { display: flex; flex-direction: column; gap: 12px; }
.pay-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.pay-form input, .pay-form select {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink);
}
.pay-form .check { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; }
.pay-form .check input { width: 18px; height: 18px; }
