:root {
  --bg: #ffffff;
  --surface: #f4f6f8;
  --text: #16202a;
  --muted: #55636f;
  --line: #dbe1e6;
  --accent: #0b5cad;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10161c;
    --surface: #18212a;
    --text: #e8edf1;
    --muted: #9aa8b4;
    --line: #2b3844;
    --accent: #6db1f2;
  }
}
* { box-sizing: border-box; }
html[data-lang="en"] body [lang="ru"],
html[data-lang="ru"] body [lang="en"] { display: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
header { border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { font-size: 22px; font-weight: 700; letter-spacing: .04em; color: var(--text); text-decoration: none; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 15px; }
a { color: var(--accent); }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
button.lang {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.hero { padding: 48px 0 32px; }
h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.2; }
h2 { margin: 40px 0 12px; font-size: 23px; line-height: 1.3; }
h3 { margin: 24px 0 6px; font-size: 17px; }
.lead { margin: 0; color: var(--muted); font-size: 18px; }
.notice {
  margin: 24px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 12px; }
.card { padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
dl { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 8px 18px; margin: 12px 0 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
ul { padding-left: 20px; }
li { margin-bottom: 6px; }
footer { margin-top: 56px; padding: 24px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer p { margin: 0 0 8px; }
@media (max-width: 560px) {
  header .wrap { align-items: flex-start; flex-direction: column; }
  h1 { font-size: 28px; }
  dl { grid-template-columns: 1fr; gap: 2px; }
  dd { margin-bottom: 10px; }
}
