:root {
  --bg: #fbf7f2;
  --surface: #ffffff;
  --text: #1f1a17;
  --muted: #6b625b;
  --line: #e8dfd6;
  --accent: #d9480f;
  --accent-ink: #ffffff;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15110f;
    --surface: #1f1a17;
    --text: #f3ece6;
    --muted: #a99e95;
    --line: #342c27;
    --accent: #ff7a3d;
    --accent-ink: #1b0d05;
  }
}

* { 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); }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap;
}
.brand { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; }
nav a:first-child { margin-left: 0; }
nav a:hover { color: var(--text); }

.hero { padding: 56px 0 24px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; }
.hero p { color: var(--muted); font-size: 19px; max-width: 640px; margin: 0; }

h2 { font-size: 26px; letter-spacing: -0.01em; margin: 48px 0 18px; }

.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.game {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.game img { display: block; width: 100%; height: auto; aspect-ratio: 460 / 215; object-fit: cover; }
.game .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game h3 { margin: 0; font-size: 21px; }
.game p { margin: 0; }
.game .meta { color: var(--muted); font-size: 15px; }
.stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.stores a, .stores span {
  display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 15px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--accent);
}
.stores a { background: var(--accent); color: var(--accent-ink); }
.stores a:hover { filter: brightness(1.08); }
.stores span { color: var(--muted); border-color: var(--line); font-weight: 500; }

.contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.contact p { margin: 0; }

footer.site { margin-top: 64px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer.site .wrap { padding-top: 20px; padding-bottom: 32px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); }

/* Политика конфиденциальности */
.doc { max-width: 720px; padding: 40px 0 0; }
.doc h1 { font-size: clamp(28px, 4.5vw, 38px); margin: 0 0 6px; letter-spacing: -0.02em; }
.doc .date { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 21px; margin: 36px 0 10px; }
.doc .summary { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 18px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
