/* Цвета клиента: тёмно-синий фон и красный акцент (mkey-flutter/lib/ui/theme.dart). */
:root {
  --bg: #050a15;
  --surface: #0d1627;
  --line: #2b3e5a;
  --text: #ffffff;
  --muted: #8a9bb5;
  --accent: #ed1212;
  --on-accent: #ffffff;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --line: #d5dce8;
    --text: #0f1a2b;
    --muted: #55657e;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Язык: показывается один из двух, выбирает app.js по языку браузера. */
html[data-l="ru"] .en,
html[data-l="en"] .ru { display: none; }

header, main, footer { max-width: 880px; margin: 0 auto; padding: 0 16px; }
header { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { border-radius: 10px; }
#lang {
  min-width: 44px; min-height: 36px; border: 1px solid var(--line); border-radius: 8px;
  background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer;
}
#lang:hover, #lang:focus-visible { color: var(--text); border-color: var(--text); }

section { margin: 40px 0; }
h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 20px; margin: 0 0 10px; }
p { margin: 0 0 12px; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); font-size: 14px; }
.eyebrow { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card p:last-child { margin-bottom: 0; color: var(--muted); }
.card.accent { border-color: var(--accent); }
.card.accent h1 { overflow-wrap: anywhere; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.button {
  display: inline-block; margin: 4px 0 14px; padding: 12px 22px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none;
}
.button:hover, .button:focus-visible { filter: brightness(1.1); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
main a:not(.button) { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; min-width: 480px; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
th { color: var(--muted); font-size: 13px; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td:last-child { color: var(--muted); }

.limits { margin: 0 0 12px; padding-left: 20px; }
.limits li { margin-bottom: 8px; }

footer { color: var(--muted); font-size: 13px; padding-top: 16px; padding-bottom: 40px; border-top: 1px solid var(--line); margin-top: 56px; }
