/* «Трибуна+» — дизайн-система. Светлый бело-синий стиль в духе
   ФК «Оренбург» / «Динамо»: белое поле, глубокий синий бренда,
   эфирный красный ТОЛЬКО для LIVE-статуса. Видеокадры остаются темными. */

:root {
  --bg: #f2f6fc;
  --bg-2: #e9f0f9;
  --card: #ffffff;
  --card-2: #f6f9fe;
  --line: #d5e1f0;
  --ink: #0e2242;
  --muted: #56698a;
  --brand: #0d5cc7;
  --brand-dim: #0a4ba3;
  --brand-ink: #ffffff;
  --live: #e03131;
  --ok: #148a52;
  --warn: #b97b0a;
  --radius: 14px;
  --wrap: 1160px;
  --font-display: 'Unbounded', 'Arial Black', sans-serif;
  --font-text: 'Manrope', 'Segoe UI', sans-serif;
  --shadow: 0 18px 46px rgba(13, 60, 130, .12);
  /* темные «эфирные» рамки (hero-кадр, плееры) */
  --tv-1: #123568;
  --tv-2: #0a1f42;
  --tv-line: #23477e;
  --tv-text: #8fa8cd;
  --tv-accent: #7fb5ff;
}

/* Темная тема: тот же синий бренд на глубоком navy. Атрибут data-theme
   ставит инлайн-скрипт в <head> каждой страницы (сохраненный выбор
   пользователя либо prefers-color-scheme) — до первой отрисовки. */
html[data-theme="dark"] {
  --bg: #0a1220;
  --bg-2: #111c30;
  --card: #131f36;
  --card-2: #182642;
  --line: #263852;
  --ink: #edf3fc;
  --muted: #93a4c0;
  --brand: #5798ff;
  --brand-dim: #7fb1ff;
  --brand-ink: #071831;
  --live: #ff5f66;
  --ok: #38cf82;
  --warn: #ffc257;
  --shadow: 0 18px 46px rgba(0, 0, 0, .5);
  --tv-line: #2c4a7c;
}
html[data-theme="dark"] body::after { mix-blend-mode: overlay; opacity: .06; }
html[data-theme="dark"] .site-header { background: rgba(10, 18, 32, .84); }
html[data-theme="dark"] .badge-live { color: #ff8b90; }
html[data-theme="dark"] .badge-today { color: #ffce73; }
html[data-theme="dark"] .badge-upcoming { color: #9fc2f7; }
html[data-theme="dark"] .btn:hover { box-shadow: 0 10px 26px rgba(87, 152, 255, .25); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* классы с display (.btn, .request-grid…) не должны перебивать атрибут hidden */
[hidden] { display: none !important; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 500px at 85% -100px, rgba(13, 92, 199, .08), transparent 60%),
    radial-gradient(900px 420px at -10% 30%, rgba(10, 75, 163, .05), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* зерно поверх страницы */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: .04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.icon { width: 22px; height: 22px; flex: none; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(26px, 4.6vw, 46px); font-weight: 800; }
h2 { font-size: clamp(21px, 3vw, 30px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; }
.section { padding: 72px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.section-sub { color: var(--muted); max-width: 640px; margin-top: -8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--brand); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; border: 0; cursor: pointer;
  font: 700 15px/1 var(--font-text); text-decoration: none;
  background: var(--brand); color: var(--brand-ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(13, 92, 199, .3); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brand); box-shadow: none; color: var(--brand); }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; box-shadow: none; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.logo b {
  background: var(--brand); color: var(--brand-ink);
  border-radius: 7px; padding: 2px 7px; font-weight: 800;
}
.main-nav { display: flex; gap: 20px; margin-left: auto; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 14px; color: var(--muted); }
.main-nav a:hover { color: var(--brand); }
.header-phone { text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); padding: 9px 11px; cursor: pointer; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); padding: 8px; cursor: pointer; transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); }
.theme-toggle .icon { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 72px; overflow: hidden; }
/* minmax(0,…): несжимаемые дети (nowrap-бейджи) не должны распирать колонку */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 44px; align-items: center; }
.hero .badge { white-space: normal; line-height: 1.45; text-align: left; }
.hero h1 { margin: 14px 0 14px; }
.hero-sub { color: var(--muted); font-size: 17px; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.fact b { display: block; font-family: var(--font-display); font-size: 21px; color: var(--brand); }
.fact span { font-size: 13px; color: var(--muted); }

/* стилизованный кадр эфира — остается темным, как видеокадр */
.broadcast {
  width: 100%; min-height: 300px; border-radius: 18px; position: relative;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 2px, transparent 2px 5px),
    linear-gradient(150deg, var(--tv-1) 0%, var(--tv-2) 65%);
  border: 1px solid var(--tv-line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.broadcast::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.045' stroke-width='2'%3E%3Ccircle cx='36' cy='36' r='16'/%3E%3Cpath d='M36 0v72M0 36h72'/%3E%3C/g%3E%3C/svg%3E");
}
.broadcast-live {
  position: absolute; top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(6, 16, 36, .75); border: 1px solid rgba(224, 49, 49, .55);
  color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .12em;
  padding: 7px 12px; border-radius: 9px;
}
.broadcast-cam { position: absolute; top: 16px; right: 16px; color: var(--tv-text); font-size: 12px; font-weight: 600; }
.scorebug {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(6, 16, 36, .88); border: 1px solid var(--tv-line);
  border-radius: 12px; padding: 12px 16px;
}
.scorebug .team { color: #fff; font-weight: 800; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scorebug .team:last-child { text-align: right; }
.scorebug .score { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--tv-accent); white-space: nowrap; }
.scorebug .period { font-size: 11px; color: var(--tv-text); white-space: nowrap; }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(224, 49, 49, .5); }
  70% { box-shadow: 0 0 0 9px rgba(224, 49, 49, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 49, 49, 0); }
}

/* появление hero */
.rise { opacity: 0; transform: translateY(14px); animation: rise .6s ease forwards; }
.rise-2 { animation-delay: .12s; }
.rise-3 { animation-delay: .24s; }
.rise-4 { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Бейджи статусов ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 7px; white-space: nowrap;
}
.badge-live { background: rgba(224, 49, 49, .1); color: #c92a2a; border: 1px solid rgba(224, 49, 49, .38); }
.badge-today { background: rgba(185, 123, 10, .1); color: #96650a; border: 1px solid rgba(185, 123, 10, .32); }
.badge-upcoming { background: rgba(13, 92, 199, .07); color: var(--brand-dim); border: 1px solid rgba(13, 92, 199, .22); }
.badge-finished { background: rgba(86, 105, 138, .08); color: var(--muted); border: 1px solid var(--line); }
.badge-canceled { background: rgba(224, 49, 49, .05); color: var(--muted); border: 1px solid var(--line); text-decoration: line-through; }

/* ---------- «Сейчас в эфире» на главной ---------- */
.live-now {
  margin-bottom: 22px; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(224, 49, 49, .45);
  background: var(--card);
  box-shadow: var(--shadow);
}
.live-now-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px;
}
.live-now-title {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 16px; min-width: 0;
}
.live-now-head .btn { margin-left: auto; }
.live-now .frame {
  aspect-ratio: 16 / 9; position: relative;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 2px, transparent 2px 5px),
    linear-gradient(150deg, var(--tv-1) 0%, var(--tv-2) 65%);
}
.live-now .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Каталог ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--muted); border-radius: 999px; padding: 8px 15px;
  font: 600 13px/1 var(--font-text); cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.chip .icon { width: 17px; height: 17px; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.filter-select {
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 13px; font: 600 13px var(--font-text);
}

.day-group { margin: 26px 0 10px; }
.day-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--brand); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }

.match-list { display: grid; gap: 10px; }
.match-card {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 18px; cursor: pointer; text-decoration: none;
  transition: border-color .15s, transform .15s, background .15s;
}
.match-card:hover { border-color: rgba(13, 92, 199, .45); transform: translateY(-1px); background: var(--card-2); }
.match-time { text-align: center; }
.match-time b { display: block; font-family: var(--font-display); font-size: 19px; }
.match-time span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.match-main { min-width: 0; }
.match-teams { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px; }
.match-teams .icon { color: var(--brand); }
.match-meta { color: var(--muted); font-size: 13px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-side { display: flex; align-items: center; gap: 12px; }

.catalog-note { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--bg-2); border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px 20px; color: var(--muted); font-size: 14px; }

.skeleton { border-radius: var(--radius); background: linear-gradient(100deg, var(--card) 40%, var(--card-2) 50%, var(--card) 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; height: 76px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.state-plate {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 24px; text-align: center; color: var(--muted);
}
.state-plate b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before {
  counter-increment: step; content: '0' counter(step);
  font-family: var(--font-display); font-weight: 800; font-size: 30px;
  color: transparent; -webkit-text-stroke: 1px var(--brand);
  display: block; margin-bottom: 12px;
}
.step b { display: block; font-size: 16px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Услуги ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, transform .15s;
}
.service-card:hover { border-color: rgba(13, 92, 199, .45); transform: translateY(-2px); }
.service-card .icon { width: 30px; height: 30px; color: var(--brand); }
.service-card b { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.service-price { font-family: var(--font-display); font-size: 20px; color: var(--brand); }
.service-price small { font-family: var(--font-text); font-size: 12px; color: var(--muted); font-weight: 600; }
.bundle-note { margin-top: 14px; color: var(--muted); font-size: 14px; }
.bundle-note b { color: var(--brand); }

/* ---------- Форма заявки ---------- */
.request-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px; box-shadow: var(--shadow);
}
.request-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.selected-match {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 16px;
}
.selected-match .match-teams { font-size: 15px; }
.selected-match .match-meta { white-space: normal; }
.selected-match .unselect { background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; padding: 0; margin-top: 8px; text-decoration: underline; }
.selected-match .unselect:hover { color: var(--brand); }

.svc-options { display: grid; gap: 9px; }
.svc-option {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; cursor: pointer; transition: border-color .15s;
}
.svc-option:hover { border-color: rgba(13, 92, 199, .4); }
.svc-option input { margin-top: 3px; accent-color: var(--brand); width: 17px; height: 17px; }
.svc-option.is-on { border-color: var(--brand); }
.svc-option .svc-label { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 14px; }
.svc-option .svc-price { color: var(--brand); white-space: nowrap; font-weight: 800; }
.svc-option p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }

.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; color: var(--muted); margin-top: 6px; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.calc-total b { font-family: var(--font-display); font-size: 22px; color: var(--brand); }
.calc-note { font-size: 12px; color: var(--muted); margin-top: 4px; }

.slot-badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 13px; font-weight: 600; border-radius: 9px; padding: 7px 11px; }
.slot-free { background: rgba(20, 138, 82, .08); color: var(--ok); border: 1px solid rgba(20, 138, 82, .3); }
.slot-busy { background: rgba(185, 123, 10, .09); color: var(--warn); border: 1px solid rgba(185, 123, 10, .3); }

.field { margin-bottom: 13px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input[type="text"], .field input[type="tel"], .field textarea, .field select {
  width: 100%; background: var(--bg-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px;
  font: 500 15px var(--font-text); outline: none; transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 76px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); }
.field.is-error input, .field.is-error textarea { border-color: var(--live); }
.field-error { display: none; color: var(--live); font-size: 12.5px; margin-top: 5px; }
.field.is-error .field-error { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 14px 0; cursor: pointer; }
.consent input { margin-top: 2px; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.consent a { color: var(--ink); }
.consent.is-error { color: var(--live); }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; pointer-events: none; }

.form-done { text-align: center; padding: 34px 10px; }
.form-done .icon { width: 52px; height: 52px; color: var(--brand); }
.form-done h3 { font-size: 21px; margin: 14px 0 8px; }
.form-done p { color: var(--muted); max-width: 420px; margin: 0 auto; }

/* ---------- Портфолио ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.video-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.video-card .frame { aspect-ratio: 16/9; position: relative; background: linear-gradient(150deg, var(--tv-1), var(--tv-2)); }
.video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--tv-text); font-size: 13px; font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='2'%3E%3Ccircle cx='28' cy='28' r='12'/%3E%3C/g%3E%3C/svg%3E");
}
.video-placeholder .icon { width: 34px; height: 34px; color: var(--tv-accent); }
.video-card figcaption { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 3px; }
.video-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.video-meta { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.video-load {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--tv-text); font: 600 13px var(--font-text);
}
.video-load .icon { width: 42px; height: 42px; color: var(--tv-accent); transition: transform .15s; }
.video-load:hover .icon { transform: scale(1.12); }

/* ambient-превью: размытый muted-плеер тихо играет под кнопкой карточки —
   «за мутным стеклом»; клик тот же — открывает настоящий плеер */
.video-card .frame { overflow: hidden; }
/* селектор сильнее «.video-card iframe» — иначе inset:0/100% съедают запас под blur */
.video-card .frame iframe.ambient-frame {
  position: absolute; left: -8%; top: -8%; width: 116%; height: 116%; /* запас под blur по краям */
  border: 0; pointer-events: none;
  filter: blur(7px) saturate(1.1) brightness(.72);
}
.frame.has-ambient .video-load {
  background: rgba(6, 18, 38, .28); /* легкая тонировка стекла поверх видео */
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

/* Эмблемки клубов */
.badge-pair { display: inline-flex; align-items: center; flex: none; }
.badge-pair .club-badge + .club-badge { margin-left: -7px; }
.club-badge { flex: none; filter: drop-shadow(0 1px 2px rgba(10, 30, 70, .3)); }
.club-badge--img { width: auto; object-fit: contain; }
.match-title .badge-pair { vertical-align: -4px; margin-right: 6px; }
.portfolio-disclaimer { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; max-width: 780px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 17px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-display); color: var(--brand); font-size: 19px; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 17px; color: var(--muted); font-size: 14.5px; }

/* ---------- Контакты и футер ---------- */
.contacts-card { display: flex; gap: 30px; flex-wrap: wrap; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.contacts-card .contact-line { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.contacts-card .contact-line .icon { color: var(--brand); }
.contacts-card .contact-line:hover { color: var(--brand); }

.site-footer { border-top: 1px solid var(--line); padding: 30px 0 90px; margin-top: 40px; color: var(--muted); font-size: 13px; }
.site-footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brand); }

/* ---------- Липкая мобильная CTA ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none; text-align: center;
  box-shadow: 0 12px 34px rgba(13, 60, 130, .35);
}

/* ---------- Страница матча ---------- */
.match-hero { padding: 46px 0 30px; }
.match-hero .badge { margin-bottom: 14px; }
.match-title { font-size: clamp(23px, 3.6vw, 38px); }
.match-hero .facts { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14.5px; margin-top: 10px; }
.match-hero .facts span { display: inline-flex; align-items: center; gap: 7px; }
.match-hero .facts .icon { width: 17px; height: 17px; color: var(--brand); }
.player-frame { aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; border: 1px solid var(--tv-line); background: #000; position: relative; box-shadow: var(--shadow); }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-plate {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 2px, transparent 2px 5px),
    linear-gradient(150deg, var(--tv-1), var(--tv-2));
  color: var(--tv-text); text-align: center; padding: 20px;
}
.player-plate .icon { width: 40px; height: 40px; color: var(--tv-accent); }
.player-plate b { color: #fff; font-size: 16px; }
.match-actions { display: flex; gap: 12px; margin: 22px 0; flex-wrap: wrap; }

/* ---------- Разное ---------- */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--card-2); border: 1px solid var(--brand); color: var(--ink);
  border-radius: 12px; padding: 12px 18px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 80;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  .rise, .rise-2, .rise-3, .rise-4 { animation: none; opacity: 1; transform: none; }
  .live-dot { animation: none; }
  .skeleton { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Мобильная версия ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .steps, .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .request-grid { grid-template-columns: 1fr; gap: 20px; }
  .main-nav, .header-phone { display: none; }
  .burger { display: inline-flex; margin-left: 0; }
  .theme-toggle { margin-left: auto; }
  .main-nav.is-open {
    display: flex; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-2);
    border-bottom: 1px solid var(--line); padding: 8px 20px 14px;
  }
  .main-nav.is-open a { padding: 11px 0; font-size: 15px; color: var(--ink); }
  .sticky-cta { display: block; }
  .sticky-cta.is-hidden { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  /* <16px в полях ввода включает авто-зум iOS Safari при фокусе */
  .field input[type="text"], .field input[type="tel"], .field textarea,
  .field select, .filter-select { font-size: 16px; }
  .hero { padding: 46px 0 40px; }
  .match-card { grid-template-columns: 58px 1fr; }
  .match-side { grid-column: 1 / -1; justify-content: space-between; }
  .match-time b { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .request-panel { padding: 20px 16px; }
  .contacts-card { padding: 22px; gap: 16px; }
  .broadcast { min-height: 240px; }
}
