:root {
  color-scheme: dark;
  --bg: #10151d;
  --panel: #171f2a;
  --text: #edf2f7;
  --muted: #9eabb9;
  --line: #2a3746;
  --accent: #8de0bd;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
.site-header, .site-footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header { padding: 28px 0; border-bottom: 1px solid var(--line); }
.brand { font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
nav { display: flex; gap: 28px; color: var(--muted); font-size: 14px; }
nav a:hover, .text-link:hover, .site-footer a:hover { color: var(--accent); }

main { width: min(1120px, calc(100% - 48px)); margin: 0 auto; flex: 1; }
.hero { padding: 118px 0 100px; max-width: 820px; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; max-width: 850px; font-size: clamp(42px, 7vw, 82px); line-height: 1.02; letter-spacing: -.045em; }
.lead { max-width: 620px; margin: 30px 0 36px; color: var(--muted); font-size: 20px; }
.button { display: inline-block; padding: 12px 20px; border: 1px solid var(--accent); border-radius: 999px; color: var(--bg); background: var(--accent); font-weight: 700; }
.button:hover { background: #b5f2d9; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 90px; }
.card { min-height: 230px; padding: 26px; border: 1px solid var(--line); background: var(--panel); }
.card-number { color: var(--accent); font-size: 13px; }
.card h2 { margin: 38px 0 8px; font-size: 22px; }
.card p, .content-page p { color: var(--muted); }
.content-page { max-width: 760px; padding: 110px 0; }
.content-page h1 { font-size: clamp(42px, 6vw, 68px); margin-bottom: 30px; }
.content-page p { max-width: 650px; font-size: 18px; }
.text-link { display: inline-block; margin-top: 24px; color: var(--accent); font-weight: 700; }
.error-page { text-align: center; margin: auto; }
.error-page h1 { margin-inline: auto; }
.site-footer { padding: 22px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer a { color: var(--muted); }

@media (max-width: 700px) {
  .site-header, .site-footer, main { width: min(100% - 32px, 1120px); }
  .site-header { align-items: flex-start; gap: 20px; }
  nav { flex-direction: column; gap: 4px; text-align: right; }
  .hero { padding: 76px 0 70px; }
  .lead { font-size: 18px; }
  .cards { grid-template-columns: 1fr; padding-bottom: 60px; }
  .content-page { padding: 76px 0; }
  .site-footer { align-items: flex-start; gap: 16px; }
}
