:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --text: #16202c;
  --muted: #5a6776;
  --line: #e2e7ee;
  --accent: #0b5cff;
  --accent-dark: #0846c4;
  --max: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand span { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.nav a { color: var(--muted); font-size: 16px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Hero */
.hero { background: var(--bg-alt); padding: 88px 0; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 18px; max-width: 16em; }
.hero p { font-size: 20px; color: var(--muted); max-width: 36em; margin: 0 0 30px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); margin-left: 8px; }
.btn.ghost:hover { background: #fff; }

/* Sections */
.section { padding: 64px 0; }
.section h2 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 12px; }
.section .lead { color: var(--muted); max-width: 40em; margin: 0 0 32px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: #fff; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Inner pages */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 56px 0; }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; margin: 0; }
.page-head p { color: var(--muted); margin: 10px 0 0; }
.prose { max-width: 720px; padding-top: 48px; padding-bottom: 72px; }
.prose h2 { font-size: 23px; margin: 36px 0 8px; letter-spacing: -0.01em; }
.prose p, .prose li { color: #2c3846; }

.facts { border: 1px solid var(--line); border-radius: 12px; margin: 24px 0; padding: 0; }
.facts div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { width: 150px; color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; font-weight: 500; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 40px 0 28px; font-size: 15px; color: var(--muted); }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }
.site-footer h4 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.copyright { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; }
