:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --text: #1f2a37;
  --muted: #5b6676;
  --slate: #3f4e63;
  --accent: #d9661c;
  --accent-strong: #a8431a;
  --line: #e3e7ed;
  --on-accent: #ffffff;
  --radius: 14px;
  --max: 920px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121820;
    --surface: #1a222d;
    --text: #e8edf3;
    --muted: #a3aebb;
    --slate: #c9d3df;
    --accent: #f28a3a;
    --accent-strong: #ffa25c;
    --line: #2b3542;
    --on-accent: #1a1208;
  }
}

* { box-sizing: border-box; }

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

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

a { color: var(--accent-strong); text-underline-offset: 2px; }
a:hover { color: var(--accent); }

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

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--slate); }
.brand img { width: 36px; height: 36px; }
.brand span { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 15px; }
.brand span small { display: block; font-weight: 600; letter-spacing: .28em; font-size: 10px; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: var(--slate); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-strong); }

main { padding: 40px 0 56px; }

.hero { text-align: center; padding: 24px 0 8px; }
.hero img { width: 120px; height: 120px; }
.hero h1 { margin: 12px 0 4px; color: var(--slate); font-size: clamp(30px, 6vw, 44px); letter-spacing: .04em; text-transform: uppercase; }
.hero p { margin: 0 auto; max-width: 560px; color: var(--muted); font-size: 19px; }

h1, h2, h3 { line-height: 1.25; color: var(--slate); }
h2 { margin-top: 2em; font-size: 24px; }
h3 { margin-top: 1.6em; font-size: 19px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 32px; }
.card h2 { margin-top: 0; }

.button { display: inline-block; background: var(--accent-strong); color: var(--on-accent); padding: 10px 18px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.button:hover { background: var(--accent); color: var(--on-accent); }
.button.secondary { background: transparent; color: var(--accent-strong); border: 1px solid var(--accent-strong); }

.badge { display: inline-block; font-size: 13px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.grid .card { margin-top: 0; }

.legal { max-width: 760px; }
.legal .meta { color: var(--muted); font-size: 15px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 8px 8px 8px 0; }
.legal th { width: 34%; color: var(--muted); font-weight: 600; }
.lang-switch { font-size: 15px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; }
.site-footer .wrap { padding-top: 24px; padding-bottom: 32px; }
.site-footer p { margin: 4px 0; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.site-footer a { color: var(--muted); }
