:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --text: #1a1f24;
  --muted: #5b6670;
  --accent: #0b5cad;
  --accent-text: #ffffff;
  --border: #dde3e8;
  --max: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161a;
    --bg-alt: #1a2026;
    --text: #e8ecef;
    --muted: #a3adb6;
    --accent: #5aa2ec;
    --accent-text: #0b1520;
    --border: #2b333b;
  }
}

* { box-sizing: border-box; }

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

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

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

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

header.top {
  border-bottom: 1px solid var(--border);
}
header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}
nav.top a {
  margin-left: 20px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
nav.top a:hover { color: var(--text); }

.hero { padding: 72px 0 56px; }
.hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.2;
  margin: 0 0 16px;
  max-width: 820px;
}
.hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 28px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

section { padding: 56px 0; }
section.alt { background: var(--bg-alt); }
section h2 { font-size: 28px; margin: 0 0 12px; }
section .lead { color: var(--muted); max-width: 720px; margin: 0 0 28px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
}
section.alt .card { background: var(--bg); }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.example {
  border-left: 4px solid var(--accent);
  padding: 12px 18px;
  margin: 0 0 28px;
  background: var(--bg-alt);
  border-radius: 0 8px 8px 0;
  max-width: 760px;
  font-style: italic;
}

ul.checks { padding-left: 20px; margin: 0; }
ul.checks li { margin-bottom: 8px; }

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  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); }

.brand { white-space: nowrap; }
nav.top { white-space: nowrap; }

@media (max-width: 640px) {
  nav.top a:not(.lang) { display: none; }
  .hero { padding: 48px 0 40px; }
  section { padding: 44px 0; }
}
