:root {
  color-scheme: light dark;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #5e6a7d;
  --line: #dfe5ee;
  --accent: #315fe8;
  --accent-soft: #eaf0ff;
  --shadow: 0 18px 55px rgba(30, 48, 85, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

.site-header, main, .site-footer {
  width: min(980px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
}

.brand { color: var(--text); font-weight: 750; text-decoration: none; letter-spacing: -0.02em; }

nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
nav a { font-size: 0.94rem; text-decoration: none; }

.hero, .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero { padding: clamp(30px, 6vw, 66px); margin: 20px 0 28px; }
.hero h1 { max-width: 720px; margin: 0 0 14px; font-size: clamp(2.1rem, 6vw, 4.2rem); line-height: 1.08; letter-spacing: -0.05em; }
.hero p { max-width: 680px; margin: 0; color: var(--muted); font-size: 1.12rem; }

.content { padding: clamp(24px, 5vw, 48px); }
.content h1 { margin-top: 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; letter-spacing: -0.04em; }
.content h2 { margin-top: 2.2em; font-size: 1.35rem; }
.content h3 { margin-top: 1.6em; font-size: 1.05rem; }
.content p, .content li { color: var(--muted); }
.content li + li { margin-top: 0.45em; }
.meta { color: var(--muted); font-size: 0.92rem; }

.language-block { border-top: 1px solid var(--line); margin-top: 42px; padding-top: 12px; }
.language-label { color: var(--accent); font-size: 0.78rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 18px; }
.callout p { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 28px 0; }
.card { box-shadow: none; padding: 22px; }
.card h2, .card h3 { margin-top: 0; }

.site-footer { padding: 32px 0 50px; color: var(--muted); font-size: 0.9rem; }
.site-footer p { margin: 5px 0; }

@media (prefers-color-scheme: dark) {
  :root { --bg: #111522; --surface: #1a2030; --text: #edf2ff; --muted: #b0b9cb; --line: #30394d; --accent-soft: #202f5c; --shadow: 0 18px 55px rgba(0, 0, 0, 0.22); }
}

@media (max-width: 620px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .hero { margin-top: 8px; }
}
