:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1f1b16;
  --muted: #6b635a;
  --line: #e7e0d6;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --accent-soft: #fdeee4;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
/* текстовые разделы - той же левой кромкой, что и первый экран */
.wrap.narrow { max-width: 960px; }
.wrap.narrow > * { max-width: 720px; }

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

/* первый экран */
.hero { padding: 56px 0 40px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.hero h1 { margin: 0 0 16px; font-size: clamp(32px, 6vw, 52px); line-height: 1.1; letter-spacing: -.01em; }
.lead { margin: 0 0 28px; font-size: 20px; color: var(--muted); max-width: 640px; }

.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 18px; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.price-now { font-size: 26px; font-weight: 700; }
.price-note { display: block; font-size: 15px; font-weight: 400; color: var(--muted); }

/* разделы */
section { padding: 40px 0; border-top: 1px solid var(--line); }
section h2 { margin: 0 0 20px; font-size: 28px; line-height: 1.2; }
section p { margin: 0 0 14px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card h3:last-child { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { position: relative; padding: 18px 20px 18px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 18px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; text-align: center; line-height: 30px;
}

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.price.is-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price .sum { font-size: 34px; font-weight: 700; line-height: 1.1; margin: 6px 0; }
.price .when { color: var(--muted); font-size: 16px; }
.small { font-size: 15px; color: var(--muted); }

dl.contacts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
dl.contacts dt { color: var(--muted); }
dl.contacts dd { margin: 0; }

/* документы */
.doc { padding: 40px 0 56px; }
.doc h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.2; margin: 0 0 24px; }
.doc h2 { font-size: 22px; margin: 32px 0 12px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { margin: 0 0 10px; }
.doc ul { padding-left: 22px; }

/* подвал */
footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 36px; font-size: 15px; color: var(--muted); }
footer .wrap { display: grid; gap: 10px; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
footer nav a { display: inline-block; padding: 10px 0; }
footer a { color: var(--ink); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .top nav { display: none; }
  .hero { padding: 36px 0 28px; }
  .lead { font-size: 18px; }
  .btn { width: 100%; text-align: center; }
  section { padding: 32px 0; }
  section h2 { font-size: 24px; }
  dl.contacts { grid-template-columns: 1fr; gap: 2px; }
  dl.contacts dd { margin-bottom: 10px; }
}
