/* Сова Соня — дизайн-система в стиле SportLink «Табло»: графит + лайм. */
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url(/fonts/onest-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url(/fonts/onest-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap; src: url(/fonts/onest-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap; src: url(/fonts/onest-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url(/fonts/onest-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url(/fonts/onest-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "Onest"; font-weight: 700; font-display: swap; src: url(/fonts/onest-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 700; font-display: swap; src: url(/fonts/onest-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url(/fonts/unbounded-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url(/fonts/unbounded-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "Caveat"; font-weight: 500; font-display: swap; src: url(/fonts/caveat-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-weight: 500; font-display: swap; src: url(/fonts/caveat-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url(/fonts/caveat-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url(/fonts/caveat-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url(/fonts/caveat-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url(/fonts/caveat-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url(/fonts/unbounded-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url(/fonts/unbounded-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url(/fonts/unbounded-cyrillic-800-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url(/fonts/unbounded-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url(/fonts/caveat-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url(/fonts/caveat-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url(/fonts/caveat-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url(/fonts/caveat-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }

:root {
  --bg: #0b0c0e; --card: #131518; --card-border: #202328; --bg-elevated: #1a1c20;
  --text: #f3f4f1; --text-muted: #a3a6a0; --text-dim: #6f736c;
  --accent: #c8f53a; --accent-hover: #d6fb5c; --brand: #c8f53a; --brand-ink: #0b0c0e;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --btn-primary: #c8f53a; --btn-primary-ink: #0b0c0e; --btn-primary-hover: #d6fb5c; --btn-secondary: #25282d;
  --line: #22252a; --line-strong: #32363c; --input-bg: #15171a; --input-border: #32363c;
  --danger: #ed4956; --success: #58c322; --warn: #ffb02e; --heat: #ff3040;
  --glass-bg: rgba(11, 12, 14, .78);
  --radius-sm: 8px; --radius: 12px; --radius-lg: 16px; --radius-card: 20px; --radius-media: 14px; --radius-pill: 999px;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, .7); --glow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), 0 10px 40px -10px color-mix(in srgb, var(--accent) 45%, transparent);
  --dur-fast: 120ms; --dur: 200ms; --dur-slow: 360ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-spring: cubic-bezier(.3, 1.5, .5, 1);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --chalk: "Caveat", "Comic Sans MS", cursive;
  --board-bg: #10261c; --board-frame: #c8f53a; --chalk-ink: #f4f7ee;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f3f4f1; --card: #ffffff; --card-border: #e6e7e2; --bg-elevated: #ffffff;
  --text: #0b0c0e; --text-muted: #6b6f68; --text-dim: #9a9e96;
  --accent: #3b7a0c; --accent-hover: #2f6309; --accent-soft: color-mix(in srgb, #3b7a0c 10%, transparent);
  --btn-primary: #0b0c0e; --btn-primary-ink: #f3f4f1; --btn-primary-hover: #26292e; --btn-secondary: #efefec;
  --line: #ededea; --line-strong: #dadbd6; --input-bg: #f7f7f5; --input-border: #dadbd6;
  --danger: #c62f3c; --success: #2e9e45;
  --glass-bg: rgba(255, 255, 255, .82);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, .12); --glow: 0 0 0 1px #dadbd6, 0 10px 30px -14px rgba(0, 0, 0, .25);
  --board-bg: #18392a;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; min-height: 100dvh; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.center-page { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px; }
.center-page .display { font-size: 96px; color: var(--accent); margin: 0; }

/* ---------- кнопки ---------- */
.btn { --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: var(--h); padding: 0 1.2rem; border-radius: var(--radius-pill); border: 1px solid transparent; background: var(--btn-secondary); color: var(--text); font-weight: 650; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform var(--dur-fast) var(--ease-out), background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); white-space: nowrap; user-select: none; }
.btn:hover { background: color-mix(in srgb, var(--btn-secondary) 80%, var(--text) 8%); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary { background: var(--btn-primary); color: var(--btn-primary-ink); }
.btn.primary:hover { background: var(--btn-primary-hover); box-shadow: var(--glow); }
.btn.ghost { background: transparent; border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--btn-secondary); }
.btn.danger { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.btn.lg { --h: 56px; padding: 0 1.6rem; font-size: 1.05rem; }
.btn.sm { --h: 34px; padding: 0 .9rem; font-size: .85rem; }
.btn.icon { width: var(--h); padding: 0; }
.btn.block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .9rem; }
.link:hover { color: var(--text); }
.link.danger { color: var(--danger); }

/* ---------- карточки, поля ---------- */
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-card); padding: 24px; }
.pill { display: inline-flex; align-items: center; gap: .4em; padding: .3em .8em; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-weight: 650; font-size: .82rem; }
.pill.gray { background: var(--btn-secondary); color: var(--text-muted); }
.badge-live { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.badge-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
label.field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.input, input[type=text], input[type=email], input:not([type]), input[type=search], input[type=number], input[type=password], textarea, select { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--input-border); background: var(--input-bg); outline: none; transition: border-color var(--dur), box-shadow var(--dur); }
.input:focus, input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--text-muted); cursor: pointer; line-height: 1.45; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--input-bg); display: grid; place-content: center; cursor: pointer; transition: background var(--dur), border-color var(--dur); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2.2px solid var(--brand-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check a { color: var(--text); }
.err { color: var(--danger); font-size: .9rem; min-height: 1.2em; margin: 0; }
.ok-text { color: var(--success); }

/* ---------- верхняя стеклянная панель ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--glass-bg); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border-bottom: 1px solid var(--line); }
.topbar .wrap { height: 60px; display: flex; align-items: center; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 1.05rem/1 var(--display); text-decoration: none; letter-spacing: -.01em; }
.logo .owl { width: 34px; height: 34px; }
.logo b { color: var(--accent); }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topbar nav a:not(.btn) { padding: 8px 12px; border-radius: var(--radius-pill); text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: .92rem; }
.topbar nav a:not(.btn):hover { color: var(--text); background: var(--btn-secondary); }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--text-muted); display: grid; place-content: center; cursor: pointer; }
.theme-btn:hover { background: var(--btn-secondary); color: var(--text); }

/* ---------- модальные окна ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); animation: fade var(--dur) var(--ease-out); }
.modal-card { width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--bg-elevated); border: 1px solid var(--card-border); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-soft); animation: rise var(--dur-slow) var(--ease-spring); }
.modal-card h2 { font: 700 1.3rem/1.2 var(--display); margin: 0 0 14px; }
.modal-card .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ---------- cookie-баннер ---------- */
.cookie { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 70; width: min(640px, 100% - 24px); display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius-card); background: var(--glass-bg); border: 1px solid var(--line-strong); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); box-shadow: var(--shadow-soft); font-size: .88rem; color: var(--text-muted); animation: rise var(--dur-slow) var(--ease-out); }
.cookie p { margin: 0; flex: 1; }
.cookie[hidden] { display: none; }
.cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .cookie { flex-direction: column; align-items: stretch; } .cookie-btns .btn { flex: 1; } }

/* ---------- подвал ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 32px 0 40px; color: var(--text-muted); font-size: .88rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }
.age { display: inline-grid; place-content: center; min-width: 34px; height: 24px; padding: 0 6px; border: 1.5px solid currentColor; border-radius: 6px; font: 700 .75rem/1 var(--display); }

/* ---------- юридические страницы ---------- */
.legal { width: min(780px, 100% - 32px); margin: 40px auto; }
.legal h1 { font: 800 clamp(1.6rem, 4vw, 2.2rem)/1.15 var(--display); margin: 0 0 6px; }
.legal h2 { font: 700 1.1rem/1.3 var(--display); margin: 34px 0 10px; }
.legal p, .legal li { color: color-mix(in srgb, var(--text) 85%, var(--text-muted)); }
.legal .note { padding: 14px 16px; border-radius: var(--radius); background: var(--accent-soft); color: var(--text); font-size: .92rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal td, .legal th { border: 1px solid var(--line-strong); padding: 8px 10px; text-align: left; vertical-align: top; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- всплывающие подсказки ---------- */
.toast { position: fixed; left: 50%; top: 76px; transform: translateX(-50%); z-index: 80; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--bg-elevated); border: 1px solid var(--line-strong); box-shadow: var(--shadow-soft); font-weight: 600; font-size: .92rem; animation: rise var(--dur) var(--ease-out); transition: opacity .3s, transform .3s; }
.toast.ok { border-color: color-mix(in srgb, var(--success) 50%, transparent); }
.toast.bad { border-color: color-mix(in srgb, var(--danger) 50%, transparent); color: var(--danger); }
.toast.out { opacity: 0; transform: translate(-50%, -8px); }

/* таблицы в документах на телефоне листаются вбок, а не растягивают страницу */
.legal table { display: block; max-width: 100%; overflow-x: auto; }
