/* The game's own palette (warm cream by day, the night theme's dusk violet in dark mode). */
:root {
  --bg: #f6e8d8;
  --surface: #fffaf3;
  --text: #4b3f38;
  --text-2: #725f54;
  --accent: #9c5130;
  --border: #ead6c0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #3a394c;
    --surface: #48475d;
    --text: #f2e9df;
    --text-2: #c2b7aa;
    --accent: #c4b0ea;
    --border: #57566d;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 72px;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main { max-width: 680px; margin: 0 auto; }

/* Both languages are in the page; ?lang= or the browser language picks one (Russian without JS). */
body.en main[lang="ru"], body:not(.en) main[lang="en"] { display: none; }

header { position: relative; padding: 56px 0 32px; }

.mark {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 21px;
}

.lang {
  position: absolute;
  top: 56px;
  right: 0;
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
}
.lang a { padding: 4px 12px; border-radius: 99px; color: var(--text-2); text-decoration: none; }
.lang a[aria-current] { background: var(--accent); color: var(--surface); }

/* «конфиденциальности» is one long word: shrink on phones instead of running into the gutter */
h1 { font-size: clamp(26px, 7.4vw, 34px); line-height: 1.2; letter-spacing: -.02em; margin: 26px 0 6px; }
h2 { font-size: 20px; letter-spacing: -.01em; margin: 38px 0 10px; }
.sub { color: var(--text-2); margin: 0; font-size: 18px; }
.updated { color: var(--text-2); font-size: 15px; margin-top: 4px; }

p, li { color: var(--text); }
ul { padding-left: 22px; }
li { margin: 7px 0; }

a { color: var(--accent); }
a[href^="tel:"] { white-space: nowrap; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 22px 0;
}
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

nav.links { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 15px; }
nav.links a { margin-right: 18px; }

footer { margin-top: 44px; color: var(--text-2); font-size: 14px; }
