:root {
  --bg: #091a40;
  --bg2: #06112c;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --ball: #dbf538;
  --ink: #081a42;
  --radius: 28px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  line-height: 1.5; font-size: 17px; overflow-x: hidden;
}
a { color: var(--ball); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(9, 26, 64, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 22px; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.spacer { flex: 1; }
.langs { display: flex; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--text); font: 700 14px var(--font);
  padding: 6px 30px 6px 12px; border-radius: 999px; cursor: pointer; max-width: 46vw; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--ball) 50%), linear-gradient(135deg, var(--ball) 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .langs select { padding: 6px 12px 6px 30px; background-position: 16px 55%, 11px 55%; }
.langs select option { color: #081a42; background: #fff; }
.langs select:focus-visible { outline: 2px solid var(--ball); outline-offset: 2px; }
/* голоса: 17 карточек */
.voices .voice q { font-size: 14px; }
.langs button { all: unset; cursor: pointer; font-weight: 700; font-size: 13px; padding: 6px 10px; border-radius: 999px; color: var(--muted); }
.langs button[aria-pressed="true"] { background: var(--ball); color: var(--ink); }
.langs button:focus-visible { outline: 2px solid var(--ball); outline-offset: 2px; }

/* первый экран */
.hero { padding: 64px 0 32px; text-align: center; background: radial-gradient(900px 420px at 50% -10%, rgba(219, 245, 56, 0.14), transparent 70%); }
.hero h1 { font-size: clamp(38px, 7vw, 72px); line-height: 1.04; margin: 0 0 18px; font-weight: 900; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--ball); }
.hero p.lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); max-width: 680px; margin: 0 auto 28px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 800; font-size: 17px; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.primary { background: var(--ball); color: var(--ink); }
.btn.ghost { border: 1px solid var(--line); color: var(--text); background: var(--card); }
.soon { cursor: default; }
.hero .shot { margin: 40px auto 0; width: 100%; max-width: 900px; }

/* блоки */
section { padding: 56px 0; }
h2 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.1; margin: 0 0 12px; font-weight: 900; letter-spacing: -0.01em; }
.sub { color: var(--muted); font-size: 19px; margin: 0 0 32px; max-width: 720px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.card h3 { margin: 0; font-size: 22px; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); }
.card .pic { margin: -24px -24px 8px; background: var(--bg); display: flex; justify-content: center; }
.card .pic img { max-height: 230px; width: auto; }
.voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.voice { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; text-align: center; }
.voice .flag { font-size: 40px; line-height: 1; }
.voice b { display: block; font-size: 22px; margin-top: 8px; }
.voice span { color: var(--muted); font-size: 15px; }
.voice q { display: inline-block; margin-top: 10px; background: var(--ball); color: var(--ink); font-weight: 800; border-radius: 999px; padding: 6px 12px; font-size: 14px; quotes: "«" "»"; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { border: 1px solid var(--line); background: var(--card); padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.split img { width: 300px; }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; text-align: center; } .split img { margin: 0 auto; width: 260px; } .split .sub { margin-inline: auto; } }

/* живой счёт */
.live { background: linear-gradient(180deg, var(--bg), var(--bg2)); }
.live .box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
form.code { display: flex; gap: 10px; }
form.code input { flex: 1; min-width: 0; font: inherit; font-size: 22px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); color: var(--text); }
form.code input:focus { outline: 2px solid var(--ball); }
form.code button { font: inherit; font-weight: 800; border: 0; border-radius: 16px; padding: 0 22px; background: var(--ball); color: var(--ink); cursor: pointer; }

/* текстовые страницы */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.1; margin: 0 0 6px; font-weight: 900; }
.doc .date { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 24px; margin: 34px 0 10px; }
.doc p, .doc li { color: rgba(255, 255, 255, 0.86); }
.doc ul { padding-left: 22px; }
.doc .tldr { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px; }
.faq details p { margin: 10px 0 0; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }

/* подвал */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

[hidden] { display: none !important; }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .voices { grid-template-columns: 1fr 1fr; }
  .live .box { grid-template-columns: 1fr; padding: 24px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .top .wrap { gap: 10px; }
  .brand span { display: none; }
  .langs button { padding: 6px 8px; }
  .contact { grid-template-columns: 1fr; }
  section { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
