/* Всероссийский слёт юных спасателей 2026 — стили страницы.
   Цвета взяты с эмблемы ШСО: синий #124B87, оранжевый #EC7403.
   Шрифты системные — ни одного байта на загрузку шрифтов. */

:root {
  --bg: #07152b;
  --bg-2: #0a1d3a;
  --surface: #0e2647;
  --surface-2: #133260;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --brand: #124b87;
  --brand-2: #1f66b5;
  --accent: #ec7403;
  --accent-2: #ff8d26;
  --text: #eef3fb;
  --muted: #a3b5d2;
  --dim: #7187a9;
  --live: #ff3b3b;
  --gold: #f6c445;
  --silver: #cfd8e3;
  --bronze: #e0915a;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Arial Narrow", "Roboto Condensed", "sans-serif-condensed", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

.ic { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

/* ── Кнопки ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(236, 116, 3, .35); }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-live { background: var(--live); color: #fff; box-shadow: 0 8px 24px rgba(255, 59, 59, .3); }
.btn-sm { padding: .55em 1.05em; font-size: .86rem; }

/* ── Шапка ──────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .25s, box-shadow .25s, backdrop-filter .25s;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(7, 21, 43, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand-logo { width: 46px; height: 46px; }
.brand-title { font: italic 800 1.02rem/1.05 var(--font-display); text-transform: uppercase; max-width: 9.5em; letter-spacing: .01em; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--muted); transition: color .2s, background-color .2s; }
.nav a:hover, .nav a.is-current { color: #fff; background: rgba(255, 255, 255, .08); }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 59, 59, .15); border: 1px solid rgba(255, 59, 59, .45);
  color: #ffd3d3; font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; flex: 0 0 auto;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255, 59, 59, .7); animation: pulse 1.6s infinite; flex: 0 0 auto; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, .7); } 70% { box-shadow: 0 0 0 10px rgba(255, 59, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); } }
.burger { display: none; margin-left: 4px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .06); cursor: pointer; align-items: center; justify-content: center; }
.burger .ic { width: 22px; height: 22px; }

/* ── Главный экран ──────────────────────────────────────────────────────── */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 40px) 0 40px; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--bg-2); }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity 1.2s ease; }
.hero-video.is-playing { opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 21, 43, calc(var(--overlay) + .25)) 0%, rgba(7, 21, 43, var(--overlay)) 55%, rgba(7, 21, 43, calc(var(--overlay) - .15)) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 21, 43, 0) 35%);
}
.hero-stripe { position: absolute; z-index: -1; left: -10%; right: -10%; bottom: 23%; height: 14px; background: var(--accent); transform: rotate(-6deg); opacity: .85; box-shadow: 0 0 40px rgba(236, 116, 3, .5); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; }
.hero-plate {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 22px;
  padding: 10px 18px; border-radius: 999px; background: rgba(7, 21, 43, .55); border: 1px solid var(--line-2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-weight: 700; font-size: clamp(.86rem, 1.6vw, 1rem);
}
.hero-plate span { display: inline-flex; align-items: center; gap: 8px; }
.hero-plate .ic { color: var(--accent-2); }
.hero-plate .sep { color: var(--accent); opacity: .8; }
.hero-title { font: italic 800 clamp(2.3rem, 6.2vw, 5.1rem)/.98 var(--font-display); text-transform: uppercase; letter-spacing: -.005em; max-width: 13em; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.hero-slogan { margin-top: 18px; font: italic 800 clamp(1.15rem, 2.6vw, 1.75rem)/1.2 var(--font-display); text-transform: uppercase; color: var(--accent-2); letter-spacing: .02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-emblem { width: clamp(150px, 26vw, 340px); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); }
.hero-logo { width: 100%; height: auto; }
.hero-note {
  margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
  padding: 18px 22px; border-radius: var(--radius); background: rgba(7, 21, 43, .6);
  border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-note p { flex: 1 1 420px; color: #d7e2f3; font-size: .95rem; }
.hero-partners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-partners li { height: 62px; min-width: 62px; padding: 8px 14px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; color: #12305a; font-weight: 700; font-size: .78rem; line-height: 1.15; text-align: center; max-width: 170px; }
.hero-partners img { max-height: 46px; width: auto; }

/* ── Секции ─────────────────────────────────────────────────────────────── */
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section:nth-of-type(even) { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.sec-head { margin-bottom: clamp(24px, 4vw, 40px); max-width: 820px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--accent); }
.sec-title { font: italic 800 clamp(1.9rem, 4.4vw, 3.1rem)/1.02 var(--font-display); text-transform: uppercase; }
.sec-sub { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }
.sub-head { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin: 34px 0 16px; }
.sub-head .ic { color: var(--accent-2); }
.sub-head:first-child { margin-top: 0; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* Прячем до появления на экране только если JS работает (класс js на <html>). */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Цифры ──────────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.stat { padding: 28px; border-radius: var(--radius); background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(236, 116, 3, .22), transparent 70%); }
.stat-num { font: italic 800 clamp(3rem, 7vw, 4.6rem)/1 var(--font-display); color: var(--accent-2); font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 10px; font-weight: 800; font-size: 1.12rem; }
.stat-desc { margin-top: 6px; color: var(--muted); font-size: .94rem; }

/* ── Прямо сейчас ───────────────────────────────────────────────────────── */
.live-card { border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 190px; }
.live-card.is-live { border-color: rgba(255, 59, 59, .45); background: linear-gradient(135deg, #3a1630, var(--surface) 60%); }
.live-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.live-badge { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: .86rem; color: var(--muted); }
.live-badge .dot { display: none; }
.is-live .live-badge { color: #ffb4b4; }
.is-live .live-badge .dot { display: inline-block; }
.live-time { color: var(--dim); font-size: .86rem; }
.live-body { display: grid; gap: 12px; }
.live-item { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline; }
.live-item-time { font: italic 800 1.35rem/1 var(--font-display); color: var(--accent-2); }
.live-item-title { font-size: clamp(1.1rem, 2.2vw, 1.45rem); font-weight: 800; }
.live-item-meta { grid-column: 2; color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.live-item-meta span { display: inline-flex; align-items: center; gap: 6px; }
.live-big { font: italic 800 clamp(1.5rem, 3.4vw, 2.3rem)/1.1 var(--font-display); text-transform: uppercase; }
.live-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ── Переключатели ──────────────────────────────────────────────────────── */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); max-width: 100%; }
.seg-btn { border: 0; background: transparent; padding: 10px 18px; border-radius: 12px; font-weight: 700; cursor: pointer; color: var(--muted); transition: background-color .2s, color .2s; }
.seg-btn:hover { color: #fff; }
.seg-btn.is-active { background: var(--brand-2); color: #fff; box-shadow: 0 6px 18px rgba(31, 102, 181, .4); }
.seg-sm .seg-btn { padding: 7px 12px; font-size: .86rem; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 14px 0 6px; scrollbar-width: thin; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--muted); transition: all .2s; }
.chip:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.chip.is-active { background: #fff; color: var(--bg); border-color: #fff; }
.chip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--accent)); }

/* ── Турнирные таблицы ──────────────────────────────────────────────────── */
.board-title { margin-top: 14px; color: var(--muted); font-weight: 600; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.search { display: flex; align-items: center; gap: 10px; flex: 1 1 280px; max-width: 420px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); }
.search .ic { color: var(--dim); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 11px 0; outline: none; }
.results-updated { color: var(--dim); font-size: .86rem; }
.table-wrap { overflow: auto; max-height: 72vh; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); -webkit-overflow-scrolling: touch; }
.rtable { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 560px; font-size: .94rem; font-variant-numeric: tabular-nums; }
.rtable th, .rtable td { padding: 11px 14px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rtable thead th { position: sticky; top: 0; z-index: 2; background: #10294e; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
.rtable th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.rtable th button:focus-visible { outline: 2px solid var(--accent-2); }
.rtable thead th[aria-sort] { color: #fff; }
.rtable .col-name { text-align: left; position: sticky; left: 0; z-index: 1; background: var(--surface); font-weight: 700; white-space: normal; min-width: 180px; max-width: 320px; box-shadow: 1px 0 0 var(--line); }
.rtable thead th.col-name { z-index: 3; background: #10294e; }
.rtable tbody tr:nth-child(even) td { background-color: rgba(255, 255, 255, .025); }
.rtable tbody tr:nth-child(even) td.col-name { background-color: #102a4d; }
.rtable tbody tr:hover td { background-color: rgba(31, 102, 181, .18); }
.rtable .col-place { font-weight: 900; font-size: 1.05rem; }
.place-badge { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 999px; font-weight: 900; color: var(--text); background: rgba(255, 255, 255, .07); }
.p1 .place-badge, .p2 .place-badge, .p3 .place-badge { color: #10294e; }
.p1 .place-badge { background: var(--gold); }
.p2 .place-badge { background: var(--silver); }
.p3 .place-badge { background: var(--bronze); }
.rtable tr.p1 td.col-name { box-shadow: inset 4px 0 0 var(--gold), 1px 0 0 var(--line); }
.rtable tr.p2 td.col-name { box-shadow: inset 4px 0 0 var(--silver), 1px 0 0 var(--line); }
.rtable tr.p3 td.col-name { box-shadow: inset 4px 0 0 var(--bronze), 1px 0 0 var(--line); }
.rtable mark { background: rgba(236, 116, 3, .35); color: inherit; border-radius: 3px; }
.table-note { margin-top: 12px; color: var(--muted); font-size: .9rem; }
.table-empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.table-empty .ic { width: 40px; height: 40px; color: var(--accent-2); margin: 0 auto 12px; display: block; }

/* ── Герой дня ──────────────────────────────────────────────────────────── */
.hero-card { display: grid; grid-template-columns: minmax(0, 420px) 1fr; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-card-photo { position: relative; min-height: 280px; background: var(--brand); }
.hero-card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card-ph { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, var(--brand-2), var(--brand)); }
.hero-card-ph .ic { width: 96px; height: 96px; color: var(--gold); }
.hero-card-body { padding: clamp(22px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.kind-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(246, 196, 69, .14); color: var(--gold); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.hero-card-name { font: italic 800 clamp(1.7rem, 4vw, 2.7rem)/1.05 var(--font-display); text-transform: uppercase; }
.hero-card-sub { color: var(--muted); font-weight: 600; }
.hero-card-metric { font: italic 800 clamp(2rem, 5vw, 3.2rem)/1 var(--font-display); color: var(--accent-2); }
.hero-card-text { color: #d7e2f3; }
.rail { display: flex; gap: 14px; overflow-x: auto; padding: 18px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.mini-card { flex: 0 0 300px; display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.mini-card-photo { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; background: var(--brand); display: grid; place-items: center; font-weight: 800; }
.mini-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.mini-kind { color: var(--accent-2); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.mini-card h4 { font-size: 1rem; margin-top: 2px; }
.mini-metric { font-weight: 800; color: var(--gold); }
.mini-sub { color: var(--muted); font-size: .86rem; }

/* ── Спикеры ────────────────────────────────────────────────────────────── */
.speakers { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.speaker { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .25s, border-color .25s; }
.speaker:hover { transform: translateY(-4px); border-color: var(--line-2); }
.speaker-photo { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(135deg, var(--brand-2), var(--brand)); display: grid; place-items: center; }
.speaker-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.speaker-initials { font: italic 800 3.4rem var(--font-display); opacity: .85; }
.speaker-group { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.speaker-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.speaker-name { font-size: 1.12rem; }
.speaker-pos { color: var(--muted); font-size: .9rem; }
.speaker-session { display: flex; gap: 8px; color: var(--accent-2); font-weight: 600; font-size: .9rem; }
.speaker-bio summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
.speaker-bio p { margin-top: 8px; font-size: .9rem; color: #d7e2f3; }
.speaker-ask { margin-top: auto; align-self: flex-start; }

/* ── Формы ──────────────────────────────────────────────────────────────── */
.form-card { border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); }
.form-card.ask { margin-top: 32px; }
.form-card-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.form-card-head h3 { font-size: 1.35rem; margin-bottom: 6px; }
.form-card-icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(236, 116, 3, .16); color: var(--accent-2); }
.form-card-icon .ic { width: 24px; height: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field > span { font-size: .84rem; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(7, 21, 43, .55); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 64px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { background: var(--bg); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(236, 116, 3, .2); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: .88rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; }
.check a { color: var(--accent-2); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.form-status { font-weight: 600; font-size: .92rem; }
.form-status.is-ok { color: #6ee7a0; }
.form-status.is-error { color: #ff9b9b; }
.form.is-busy button[type=submit] { opacity: .6; pointer-events: none; }

/* ── Программа ──────────────────────────────────────────────────────────── */
.seg-wrap { margin-bottom: 18px; }
.days { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.day { flex: 0 0 auto; scroll-snap-align: start; min-width: 104px; display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: all .2s; }
.day:hover { border-color: var(--line-2); }
.day-num { font: italic 800 1.9rem/1 var(--font-display); }
.day-wd { color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.day-title { font-size: .82rem; color: var(--dim); }
.day.is-today { border-color: rgba(236, 116, 3, .55); }
.day.is-active { background: var(--brand-2); border-color: var(--brand-2); box-shadow: 0 8px 22px rgba(31, 102, 181, .35); }
.day.is-active .day-wd, .day.is-active .day-title { color: rgba(255, 255, 255, .85); }
.day.is-empty { opacity: .4; }
.day-panel { display: none; margin-top: 10px; }
.day-panel.is-active { display: block; }
.day-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-bottom: 14px; }
.day-head strong { font-size: 1.2rem; }
.day-head span { color: var(--accent-2); font-weight: 600; }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ev { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c); }
.ev-time strong { display: block; font: italic 800 1.5rem/1 var(--font-display); }
.ev-time span { color: var(--muted); font-size: .9rem; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tag { padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: rgba(255, 255, 255, .07); color: var(--muted); }
.tag-track { background: color-mix(in srgb, var(--c) 22%, transparent); color: #fff; }
.ev-title { font-size: 1.12rem; }
.ev-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--muted); font-size: .9rem; }
.ev-desc { margin-top: 8px; color: #d7e2f3; font-size: .94rem; }
.ev-note { margin-top: 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.ev-note summary { cursor: pointer; padding: 9px 12px; font-weight: 700; font-size: .88rem; color: var(--accent-2); display: flex; align-items: center; gap: 8px; list-style: none; }
.ev-note summary::-webkit-details-marker { display: none; }
.ev-note dl { margin: 0; padding: 0 12px 12px; display: grid; gap: 10px; }
.ev-note dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ev-note dd { margin: 2px 0 0 26px; font-size: .94rem; }

/* ── Медиа ──────────────────────────────────────────────────────────────── */
.videos, .albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.video-card, .album { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); cursor: pointer; text-decoration: none; transition: transform .25s, border-color .25s; }
.video-card:hover, .album:hover { transform: translateY(-4px); border-color: var(--line-2); }
.video-thumb, .album-cover { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand), var(--bg-2)); display: block; }
.video-thumb img, .album-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.video-ph .ic { width: 42px; height: 42px; }
.video-play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: rgba(236, 116, 3, .92); display: grid; place-items: center; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: transform .2s; }
.video-play .ic { width: 26px; height: 26px; margin-left: 3px; }
.video-card:hover .video-play { transform: scale(1.08); }
.video-meta, .album-body { display: grid; gap: 4px; padding: 14px 16px 18px; }
.video-date { color: var(--accent-2); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.video-title, .album-title { font-weight: 700; font-size: 1.02rem; }
.video-desc { color: var(--muted); font-size: .88rem; }
.album-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-weight: 700; font-size: .88rem; margin-top: 4px; }

/* ── Пресс-центр ────────────────────────────────────────────────────────── */
.quotes { margin-bottom: 26px; }
.quote { flex: 0 0 min(440px, 86vw); margin: 0; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.quote-mark { width: 30px; height: 30px; color: var(--accent); }
.quote blockquote { margin: 0; font-size: 1.04rem; color: #e3ebf7; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption small { display: block; color: var(--muted); }
.quote-photo { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--brand); display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.quote-photo img { width: 100%; height: 100%; object-fit: cover; }
.press-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: start; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.files-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, background-color .2s; }
a.file:hover { border-color: var(--accent); background: var(--surface-2); }
.file-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(31, 102, 181, .25); color: #9cc6ff; flex: 0 0 auto; }
.file-body { display: grid; flex: 1; min-width: 0; }
.file-body small { color: var(--muted); }
.file-go { color: var(--accent-2); }
.file.is-soon { opacity: .7; }
.soon { font-size: .74rem; font-weight: 800; text-transform: uppercase; color: var(--dim); }
.releases { display: grid; gap: 10px; }
.release { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.release summary { cursor: pointer; padding: 14px 16px; display: grid; gap: 4px; list-style: none; }
.release summary::-webkit-details-marker { display: none; }
.release-sum { color: var(--muted); font-size: .9rem; }
.release-body { padding: 0 16px 10px; color: #d7e2f3; font-size: .94rem; }
.release-links { display: flex; flex-wrap: wrap; gap: 16px; padding: 0 16px 14px; }
.release-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-weight: 700; font-size: .9rem; text-decoration: none; }
.press-contact { display: flex; gap: 10px; margin-top: 22px; color: var(--muted); font-size: .92rem; }

/* ── Бейдж ──────────────────────────────────────────────────────────────── */
.badge-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 28px; align-items: start; }
.badge-grid .form-card > .muted { margin-bottom: 18px; }
.badge-tools { display: grid; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.badge-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.file-btn { justify-self: start; }
.badge-preview { border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--brand), var(--bg-2)); border: 1px solid var(--line); aspect-ratio: 4 / 5; display: grid; place-items: center; box-shadow: var(--shadow); }
.badge-preview.is-story { aspect-ratio: 9 / 16; }
.badge-preview canvas { width: 100%; height: 100%; }
.badge-placeholder { text-align: center; padding: 30px; display: grid; justify-items: center; gap: 18px; opacity: .8; }
.badge-placeholder img { width: 140px; }
.badge-placeholder p { font: italic 800 1.6rem/1.1 var(--font-display); text-transform: uppercase; }

/* ── Партнёры ───────────────────────────────────────────────────────────── */
.partner-group + .partner-group { margin-top: 34px; }
.partner-group-title { font-size: .84rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.partner { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 16px; text-align: left; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: transform .25s, border-color .25s; }
.partner:hover { transform: translateY(-4px); border-color: var(--accent); }
.partner-logo { height: 120px; border-radius: 14px; background: #fff; display: grid; place-items: center; padding: 14px; color: #12305a; }
.partner-logo img { max-height: 92px; width: auto; max-width: 100%; object-fit: contain; }
.partner-name { font-weight: 800; text-align: center; font-size: .92rem; line-height: 1.2; }
.partner-caption { font-weight: 700; font-size: .92rem; padding: 0 4px; }
.partner-more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-size: .84rem; font-weight: 700; padding: 0 4px; }

/* ── Контакты и футер ───────────────────────────────────────────────────── */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.contact { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.contact > .ic { width: 28px; height: 28px; color: var(--accent-2); }
.contact h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact p { font-weight: 600; }
.contact a { color: #fff; text-decoration-color: rgba(255, 255, 255, .3); }
.contact > a { color: var(--accent-2); font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.site-footer { padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #050f20; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 56px; height: 56px; opacity: .9; }
.footer-title { font-weight: 800; }
.footer-meta, .footer-copy { color: var(--dim); font-size: .86rem; }
.footer-copy a { color: var(--muted); }
.footer-right { display: grid; justify-items: end; gap: 10px; }
.socials { display: flex; gap: 8px; }
.socials a { min-width: 42px; height: 42px; padding: 0 10px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-weight: 900; font-size: .8rem; text-decoration: none; }
.socials a:hover { background: var(--accent); border-color: var(--accent); }

/* ── Окна ───────────────────────────────────────────────────────────────── */
.modal { width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal::backdrop { background: rgba(3, 9, 20, .75); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-box { position: relative; padding: 28px; }
.modal-title { font-size: 1.4rem; margin-bottom: 18px; padding-right: 40px; }
.modal-close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .06); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.modal-video { width: min(1100px, calc(100vw - 16px)); background: #000; }
.modal-video .modal-box { padding: 0; }
.modal-video .modal-close { background: rgba(0, 0, 0, .6); }
.player { aspect-ratio: 16 / 9; background: #000; }
.player.is-vertical { aspect-ratio: 9 / 16; max-height: 80vh; margin: 0 auto; }
.player video, .player iframe { width: 100%; height: 100%; border: 0; }
.player-title { padding: 12px 18px 16px; font-weight: 700; }
.bc-day + .bc-day { margin-top: 18px; }
.bc-day h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.bc { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.bc-time { font: italic 800 1.2rem var(--font-display); }
.bc-title { font-weight: 700; }
.bc-desc { color: var(--muted); font-size: .88rem; }
.bc-state { font-size: .72rem; font-weight: 800; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--muted); white-space: nowrap; }
.bc-state.live { background: var(--live); color: #fff; }
.bc a { color: var(--accent-2); font-weight: 700; text-decoration: none; }
.bc.is-past { opacity: .6; }
.partner-modal { display: grid; gap: 10px; }
.partner-modal-logo:not(:empty) { height: 120px; border-radius: 14px; background: #fff; display: grid; place-items: center; padding: 16px; margin-bottom: 8px; }
.partner-modal-logo img { max-height: 88px; width: auto; }
.partner-modal-cat { color: var(--accent-2); font-weight: 700; font-size: .84rem; text-transform: uppercase; letter-spacing: .06em; margin-top: -10px; }
.partner-modal-text { color: #d7e2f3; white-space: pre-line; }
.partner-modal .btn { justify-self: start; margin-top: 8px; }

/* ── Отдельные страницы ─────────────────────────────────────────────────── */
.plain { padding-top: 48px; padding-bottom: 64px; max-width: 820px; }
.plain-back { color: var(--accent-2); text-decoration: none; font-weight: 700; display: inline-block; margin-bottom: 24px; }
.plain-text { margin-top: 20px; color: #d7e2f3; }

/* ── Адаптив ────────────────────────────────────────────────────────────── */
/* Кнопка в шапке дублирует пункт меню — на средних экранах уступает место меню. */
@media (max-width: 1380px) {
  .header-cta { display: none; }
}
@media (max-width: 1180px) {
  .nav a { padding: 8px 9px; font-size: .88rem; }
  .brand-title { display: none; }
}
@media (max-width: 940px) {
  .burger { display: inline-flex; }
  .header-cta { display: none; }
  .live-pill { margin-left: auto; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; margin: 0; padding: 10px var(--gutter) 22px; background: rgba(7, 21, 43, .97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s; max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 13px 12px; font-size: 1.02rem; color: var(--text); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-emblem { order: -1; width: 130px; }
  .hero-stripe { bottom: 30%; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-card-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .press-grid, .badge-grid { grid-template-columns: 1fr; }
  .badge-preview { max-width: 420px; width: 100%; justify-self: center; }
}
@media (max-width: 600px) {
  :root { --header-h: 60px; }
  .brand-logo { width: 40px; height: 40px; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 24px); }
  .hero-plate { border-radius: 16px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-plate .sep { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-note { margin-top: 32px; padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .ev { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
  .ev-time { display: flex; align-items: baseline; gap: 8px; }
  .ev-time strong { display: inline; font-size: 1.3rem; }
  .speakers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .speaker-body { padding: 14px; }
  .speaker-name { font-size: 1rem; }
  .speaker-initials { font-size: 2.4rem; }
  .seg { display: flex; }
  .seg-btn { flex: 1 1 auto; padding: 10px 12px; }
  .bc { grid-template-columns: 60px 1fr; }
  .bc > :last-child { grid-column: 2; justify-self: start; }
  .modal-box { padding: 22px 18px; }
  .footer-right { justify-items: start; }
  .mini-card { flex-basis: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
