/* DocHelper — токены */
:root {
  --ink: #20261f;
  --ink-soft: #5c655a;
  --paper: #f5f6f2;      /* фон страницы */
  --sheet: #ffffff;      /* лист документа */
  --line: #dde1d8;
  --accent: #0e6b4f;     /* «нотариальный» зелёный */
  --accent-soft: #e3efe9;
  --danger: #a32d2d;
  --sans: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --serif: "Times New Roman", "Liberation Serif", Georgia, serif; /* голос документа */
  --radius: 10px;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
}
main { max-width: 1060px; margin: 0 auto; padding: 0 20px 64px; }
a { color: var(--accent); }
h1 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; font-weight: 650; }
h2 { font-size: 20px; margin: 32px 0 12px; font-weight: 600; }

/* Шапка и футер */
.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1060px; margin: 0 auto; padding: 16px 20px;
}
.brand { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand-mark {
  display: inline-block; width: 28px; height: 28px; border-radius: 7px;
  background: var(--accent); color: #fff; text-align: center; line-height: 28px;
  font-family: var(--serif); margin-right: 4px;
}
.country-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pill {
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
  font-size: 13px; text-decoration: none; color: var(--ink-soft); background: var(--sheet);
}
.pill-active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.bottom {
  border-top: 1px solid var(--line); margin-top: 40px; padding: 20px;
  text-align: center; font-size: 13px; color: var(--ink-soft);
}

/* Лендинг */
.hero { text-align: center; padding: 44px 0 8px; }
.hero p.sub { color: var(--ink-soft); max-width: 560px; margin: 0 auto 24px; }
.search {
  max-width: 520px; margin: 0 auto; display: block; width: 100%;
  padding: 14px 20px; font-size: 16px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--sheet); outline: none;
}
.search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.trust { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 28px; }
.card {
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
}
.card h3 { margin: 0; font-size: 17px; }
.card p { margin: 0; font-size: 14px; color: var(--ink-soft); flex: 1; }
.card .price { font-weight: 650; color: var(--accent); font-size: 15px; }
.card.hidden { display: none; }

/* Кнопки */
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  font-size: 15px; font-weight: 600; padding: 12px 22px; border-radius: 8px;
  background: var(--accent); color: #fff; font-family: var(--sans);
}
.btn:hover { background: #0b5940; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }

/* Страница документа: форма + живой лист */
.doc-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; margin-top: 24px; }
@media (max-width: 860px) { .doc-layout { grid-template-columns: 1fr; } }

.form-card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.form-card label { display: block; font-size: 13px; color: var(--ink-soft); margin: 14px 0 4px; }
.form-card input {
  width: 100%; padding: 10px 12px; font-size: 15px; border: 1px solid var(--line);
  border-radius: 8px; font-family: var(--sans);
}
.form-card input:focus { outline: none; border-color: var(--accent); }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 16px; }

/* Фирменный элемент: живой лист A4 */
.sheet-wrap { position: sticky; top: 16px; }
.sheet {
  background: var(--sheet); border: 1px solid var(--line);
  border-radius: 4px; padding: 42px 46px; min-height: 520px;
  font-family: var(--serif); font-size: 13.5px; line-height: 1.75;
  box-shadow: 0 1px 0 var(--line), 0 12px 28px rgba(32,38,31,.08);
  white-space: pre-wrap; position: relative; overflow: hidden;
}
.sheet .doc-title { text-align: center; font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.sheet .blank { color: #9aa295; }
.sheet-label { text-align: center; font-size: 12px; color: var(--ink-soft); margin: 10px 0 0; }
.stamp {
  position: absolute; top: 18px; right: 18px; transform: rotate(8deg);
  border: 2px solid var(--accent); color: var(--accent); border-radius: 6px;
  font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 8px; opacity: .75;
}

/* Заказ, советы, оплата */
.lawyer-note {
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  padding: 12px 16px; font-size: 14px; margin: 20px 0; border-radius: 0 8px 8px 0;
}
.tips { padding-left: 20px; font-size: 15px; }
.tips li { margin-bottom: 8px; }
.paybox {
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  justify-content: space-between; margin-top: 24px;
}
.paybox .amount { font-size: 26px; font-weight: 700; }
.status-paid { color: var(--accent); font-weight: 650; }
.status-fail { color: var(--danger); font-weight: 650; }
.muted { color: var(--ink-soft); font-size: 14px; }

/* SEO-дополнения: крошки, FAQ, футер */
.crumbs { font-size: 13px; color: var(--ink-soft); margin: 8px 0 16px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.faq {
  background: var(--sheet); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 16px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.faq p { margin: 10px 0 2px; font-size: 15px; color: var(--ink-soft); }
.footer-links { margin-top: 6px; }
.footer-links a { color: var(--ink-soft); }
