:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --text: #2b2a28;
  --muted: #6b665e;
  --line: #e6e0d6;
  --accent: #2f6f6a;
  --accent-soft: #e7f0ee;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* шапка */
.top { border-bottom: 1px solid var(--line); background: var(--card); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 19px; color: var(--text); text-decoration: none; }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--accent); }

/* первый экран */
.hero { padding: 64px 0 40px; }
.hero h1 { font-family: var(--serif); font-weight: normal; font-size: clamp(30px, 5vw, 44px); line-height: 1.2; margin: 0 0 16px; }
.hero p { font-size: 19px; color: var(--muted); margin: 0; max-width: 640px; }

section { padding: 32px 0; }
section h2 { font-family: var(--serif); font-weight: normal; font-size: 28px; margin: 0 0 20px; }

/* тарифы */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; }
.price h3 { font-size: 18px; margin: 0 0 8px; }
.price .meta { color: var(--muted); font-size: 15px; margin: 0 0 20px; flex: 1; }
.price .sum { font-family: var(--serif); font-size: 28px; color: var(--accent); margin: 0; white-space: nowrap; }

/* порядок */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }

/* документы и реквизиты */
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.docs a { display: block; background: var(--accent-soft); border-radius: 10px; padding: 14px 18px; text-decoration: none; font-weight: 500; }
.docs a:hover { background: #dbe9e6; }
.req { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin: 0; }
.req dt { color: var(--muted); font-size: 14px; }
.req dd { margin: 0 0 10px; }
.req dd:last-child { margin-bottom: 0; }

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

/* страницы документов */
.doc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 40px 48px; margin: 32px 0; text-align: justify; hyphens: auto; }
.doc h1 { font-family: var(--serif); font-weight: normal; font-size: 32px; text-align: center; margin: 0 0 24px; }
.doc h2 { font-size: 17px; text-align: center; text-transform: none; margin: 32px 0 16px; letter-spacing: .02em; }
.doc h3 { font-size: 17px; margin: 24px 0 10px; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 14px; padding-left: 26px; }
.doc li { margin-bottom: 8px; }
.doc li p { margin: 8px 0 0; }
.doc .doc-place { text-align: left; color: var(--muted); }
.doc .req { text-align: left; border: 0; padding: 0; background: none; }
.doc dl.terms { margin: 0 0 16px; text-align: left; }
.doc dl.terms dt { font-weight: 600; margin-top: 10px; }
.doc dl.terms dd { margin: 2px 0 0 0; }
.back { display: inline-block; margin-top: 24px; font-size: 15px; }

@media (max-width: 760px) {
  .prices { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 24px; }
  .doc { padding: 24px 18px; text-align: left; }
  .wrap { padding: 0 16px; }
  .top nav { gap: 14px; }
}
@media print {
  .top, footer, .back { display: none; }
  body { background: #fff; }
  .doc { border: 0; padding: 0; }
}
