/* СПОРТ БИЗНЕС ЛЮДИ — стили сайта
   Направление (unslop):
   Продукт — сообщество и встречи для владельцев и руководителей спортивного бизнеса.
   Характер — деловой, собранный, по-спортивному прямой.
   Мир — стадион и переговорная: табло, бейдж участника, программа дня.
   Яркие моменты — 3D-логотип на первом экране и бейдж участника форума.
   Фирменная деталь — даты и цифры моноширинным шрифтом, как на табло.
   Хром тихий: графитовая гамма Ink, один акцент — фирменный синий. */

:root {
  --bg-0: #07080d;
  --bg: #0b0d14;
  --card: #11141c;
  --raised: #1a1e28;
  --line: rgba(238, 240, 245, .08);
  --line-2: rgba(238, 240, 245, .14);
  --text: #eef0f5;
  --text-2: #a3a9b8;
  --muted: #7a8296;
  --accent: #00a8e7;
  --accent-hover: #29b9ee;
  --on-accent: #06121a;
  --danger: #e5484d;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Montserrat", system-ui, sans-serif; /* цифры: Montserrat с моноширинными цифрами */

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--body); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--accent); color: var(--on-accent); }
.skip:focus { left: 8px; }

/* ── Типографика ───────────────────────────── */
h1, h2, h3 { margin: 0; font-family: var(--font); font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.06; letter-spacing: -.03em; }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -.02em; }
h3 { font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -.005em; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--text-2); max-width: 36rem; }
.muted, .intro { color: var(--text-2); }
.intro { margin-top: 16px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { margin: 0 0 12px; font: 500 14px var(--font); color: var(--muted); }
.eyebrow i { display: none; }

/* ── Шапка ─────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(11, 13, 20, .92); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.top.is-solid { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { flex: none; display: block; }
.brand img { height: 40px; width: auto; }
.menu { display: flex; gap: 4px; margin-left: auto; font: 500 15px var(--font); }
.menu a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); text-decoration: none; transition: color .15s var(--ease), background-color .15s var(--ease); }
.menu a:hover { color: var(--text); background: var(--card); }
.menu a[aria-current="page"] { color: var(--text); }
.top .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.menu-toggle { display: none; margin-left: auto; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--text); font: 500 14px var(--font); cursor: pointer; }

/* ── Кнопки ────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; font: 500 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-primary, .btn-grad, .btn-ink, .btn-black { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover, .btn-grad:hover, .btn-ink:hover, .btn-black:hover { background: var(--accent-hover); }
.btn-secondary, .btn-line { background: var(--raised); border-color: var(--line-2); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.btn-secondary:hover, .btn-line:hover { background: #222736; }
.btn .arr { display: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.link { font: 500 15px var(--font); color: var(--accent); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ── Знак логотипа из плиток (статичный) ───── */
.mark { --m: 200px; position: relative; width: var(--m); aspect-ratio: 1; flex: none; container-type: inline-size; }
.mark .t { position: absolute; left: calc(var(--x) * 100cqw / 407.5); top: calc(var(--y) * 100cqw / 407.5); width: calc(var(--s) * 100cqw / 407.5); height: calc(var(--s) * 100cqw / 407.5); border-radius: calc(var(--r) * 100cqw / 407.5); }
.mark .t i { position: absolute; inset: 0; border-radius: inherit; background-image: linear-gradient(125deg, #00a8e7 22%, #3cd1cd 78%); background-size: 100cqw 100cqw; background-position: calc(-1 * var(--x) * 100cqw / 407.5) calc(-1 * var(--y) * 100cqw / 407.5); }

/* ── Первый экран ──────────────────────────── */
.hero { position: relative; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: min(calc(100svh - 64px), 820px); padding-block: 48px; }
.hero h1 { max-width: 12ch; }
.hero .lead { margin-top: 24px; }
.hero-visual { position: relative; aspect-ratio: 1; width: 100%; max-height: 560px; justify-self: end; }
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s var(--ease); }
.hero-visual .mark { --m: 64%; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); transition: opacity .5s var(--ease); }
.is-3d-ready .hero-visual canvas { opacity: 1; }
.is-3d-ready .hero-visual .mark { opacity: 0; }

/* Табло: ключевые цифры одной строкой */
.scoreboard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--line); }
.scoreboard div { padding: 16px 16px 0 0; }
.scoreboard div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.scoreboard strong { display: block; font: 500 28px/1 var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.scoreboard span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* ── Секции ────────────────────────────────── */
.section { padding: clamp(64px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.section-tight { padding-top: 0; border-top: 0; }
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; align-items: end; margin-bottom: 40px; }
.head h2 { max-width: 16ch; }
.head p { margin: 0; color: var(--text-2); max-width: 44ch; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 48px; align-items: start; }
.split h2 { max-width: 14ch; }

/* Для кого: сетка со строками-разделителями */
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.who li { padding: 20px 0 24px; border-top: 1px solid var(--line); }
.who h3 { margin-bottom: 8px; }
.who p { margin: 0; color: var(--text-2); font-size: 15px; }

/* С какими задачами приходят */
.tasks { columns: 2; column-gap: 48px; margin: 0; padding: 0; list-style: none; }
.tasks li { break-inside: avoid; padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; }

/* Как устроено сообщество: ступени */
.ladder { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.ladder li { display: grid; grid-template-columns: 64px minmax(0, 1fr) 200px; gap: 24px; align-items: baseline; padding: 24px 0; border-top: 1px solid var(--line); }
.ladder .n { font: 500 15px var(--mono); color: var(--muted); }
.ladder h3 { font-size: 20px; margin-bottom: 6px; }
.ladder p { margin: 0; color: var(--text-2); font-size: 15px; }
.ladder .st { justify-self: end; text-align: right; font: 400 13px var(--mono); color: var(--muted); }
.ladder .st.on { color: var(--accent); }

/* Статус-метка */
.tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font: 400 13px var(--mono); color: var(--muted); }
.tag-open { color: var(--accent); }
.tag-open::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ── Мероприятия: бейдж участника ──────────── */
.events-home { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; align-items: stretch; }
.badge { position: relative; display: flex; flex-direction: column; gap: 24px; padding: 48px 32px 32px; border-radius: 20px; background: var(--card); border: 1px solid var(--line-2); text-decoration: none; }
.badge::before { content: ""; position: absolute; top: 16px; left: 50%; width: 56px; height: 8px; border-radius: 4px; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); transform: translateX(-50%); }
.badge-top { display: flex; align-items: center; gap: 12px; font: 500 13px var(--font); color: var(--text-2); }
.badge-top .mark { --m: 28px; }
.badge-role { padding-top: 24px; border-top: 1px dashed var(--line-2); font: 400 13px var(--mono); color: var(--muted); }
.badge h3 { font-size: clamp(28px, 3vw, 36px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.badge-date { font: 500 clamp(40px, 5vw, 56px)/1 var(--mono); letter-spacing: -.02em; color: var(--text); }
.badge-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font: 400 13px var(--mono); color: var(--muted); }
.badge-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.badge-foot p { margin: 0; color: var(--text-2); font-size: 15px; max-width: 30ch; }
.other-events { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.other-events a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .15s var(--ease); }
.other-events a:hover h3 { color: var(--accent); }
.other-events .when { font: 400 14px var(--mono); color: var(--muted); }
.other-events h3 { margin-bottom: 6px; transition: color .15s var(--ease); }
.other-events p { margin: 0; color: var(--text-2); font-size: 15px; }

/* ── Галерея прошлых встреч ────────────────── */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 15vw, 210px); gap: 8px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 12px; background: var(--card); }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure.is-broken img { visibility: hidden; }
.caption { margin-top: 16px; font: 400 13px var(--mono); color: var(--muted); }

/* Спикеры прошлых встреч */
.speakers-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 16px; margin: 48px 0 0; padding: 0; list-style: none; }
.speakers-grid .ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; background: var(--card); margin-bottom: 16px; }
.speakers-grid .ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); }
.speakers-grid .ph span { position: absolute; inset: 0; display: grid; place-items: center; font: 500 28px var(--font); color: var(--muted); }
.speakers-grid .ph img + span { display: none; }
.speakers-grid .ph.is-broken img { display: none; }
.speakers-grid .ph.is-broken span { display: grid; }
.speakers-grid h3 { font-size: 16px; margin-bottom: 6px; }
.speakers-grid p { margin: 0; font-size: 14px; color: var(--text-2); }

/* ── Регионы и партнёрам ───────────────────── */
.duo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; }
.panel { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.panel h3 { font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
.panel p { margin: 0; color: var(--text-2); }
.panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--text-2); font-size: 15px; }
.panel li::before { content: "— "; color: var(--muted); }
.panel .link { margin-top: auto; padding-top: 8px; }
.partners-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; font: 500 15px var(--font); color: var(--text-2); }

/* ── Финал ─────────────────────────────────── */
.rules { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.rules li { padding-top: 20px; border-top: 1px solid var(--line); }
.rules h3 { margin-bottom: 8px; }
.rules p { margin: 0; color: var(--text-2); font-size: 15px; }
.cta-band, .finale { padding: clamp(64px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.cta-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding: clamp(32px, 5vw, 56px); border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.cta-box h2 { max-width: 18ch; }
.cta-box p { margin: 16px 0 0; color: var(--text-2); }
.cta-box .actions { margin: 0; }
.finale .mark { display: none; }

/* ── Внутренние страницы ───────────────────── */
.pagehead { position: relative; padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); overflow: hidden; }
.pagehead .mark { --m: clamp(120px, 16vw, 200px); position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); }
.pagehead h1 { max-width: 16ch; font-size: clamp(34px, 4.6vw, 56px); }
.pagehead .lead { margin-top: 20px; }
.crumb { display: inline-block; margin-bottom: 20px; font: 500 14px var(--font); color: var(--text-2); text-decoration: none; }
.crumb:hover { color: var(--text); }

.defs { display: grid; margin: 0; }
.defs > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.defs > div:last-child { border-bottom: 1px solid var(--line); }
.defs dt { font: 600 17px/1.4 var(--font); }
.defs dd { margin: 0; color: var(--text-2); }

.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cols > div { padding: 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.cols .shape { display: none; }
.cols h3 { margin-bottom: 8px; }
.cols p { margin: 0; color: var(--text-2); font-size: 15px; }

.ev-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ev-card { display: flex; flex-direction: column; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: border-color .15s var(--ease); }
.ev-card:hover { border-color: var(--line-2); }
.ev-visual { display: none; }
.ev-body { display: flex; flex-direction: column; gap: 8px; padding: 28px; flex: 1; }
.ev-body .tag { margin: 0; }
.ev-date { font: 500 32px/1.1 var(--mono); }
.ev-body h3 { font-size: 20px; }
.ev-place { font: 400 13px var(--mono); color: var(--muted); }
.ev-body p { margin: 0; color: var(--text-2); font-size: 15px; }
.ev-more { margin-top: auto; padding-top: 16px; font: 500 15px var(--font); color: var(--accent); }
.ev-more span { display: none; }

.ev-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ev-facts div { padding: 20px 16px 20px 0; }
.ev-facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.ev-facts dt { margin-bottom: 6px; font: 400 13px var(--mono); color: var(--muted); }
.ev-facts dd { margin: 0; font: 500 16px/1.4 var(--font); }

.timeline { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.timeline time { font: 500 16px var(--mono); color: var(--muted); }
.timeline p { margin: 6px 0 0; color: var(--text-2); }

.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.package { display: flex; flex-direction: column; padding: 28px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.package.is-featured { border-color: var(--accent); }
.package h3 { font-size: 16px; color: var(--text-2); font-weight: 500; }
.package .price { margin: 12px 0 24px; font: 500 36px/1 var(--mono); }
.package ul { margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 8px; color: var(--text-2); font-size: 15px; }
.package li::before { content: "— "; color: var(--muted); }
.package .flag { margin-left: 8px; font: 400 12px var(--mono); color: var(--accent); }

.names { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; font: 500 16px var(--font); color: var(--text-2); }

/* ── Формы ─────────────────────────────────── */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; padding: clamp(24px, 3vw, 32px); border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.field-row { display: grid; gap: 8px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field-row label { font: 500 14px var(--font); color: var(--text-2); }
.field-row .opt { color: var(--muted); font-weight: 400; }
.field-row input, .field-row select, .field-row textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--raised); color: var(--text); font: 16px/1.4 var(--body); transition: border-color .15s var(--ease); }
.field-row input::placeholder, .field-row textarea::placeholder { color: var(--muted); }
.field-row textarea { min-height: 112px; resize: vertical; }
.field-row input:focus, .field-row select:focus, .field-row textarea:focus { outline: none; border-color: var(--accent); }
.field-row [aria-invalid="true"] { border-color: var(--danger); }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent a { color: var(--text-2); }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { margin: 0; font-size: 15px; color: var(--text-2); }
.form-status.is-error { color: var(--danger); }
.form-status a { color: var(--accent); }
.form-done { grid-column: 1 / -1; }
.form-done h3 { font-size: 24px; font-weight: 500; margin-bottom: 12px; }
.form-done p { color: var(--text-2); }
.note { padding: 16px 20px; border-left: 2px solid var(--accent); background: var(--card); color: var(--text-2); max-width: 68ch; }

/* ── Подвал ────────────────────────────────── */
.foot { padding: 56px 0 32px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-logo { width: 160px; height: auto; margin-bottom: 16px; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot .legal { grid-column: 1 / -1; margin: 16px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font: 400 13px var(--mono); color: var(--muted); }

.prose { max-width: 72ch; }
.prose h2 { margin: 40px 0 12px; font-size: 24px; }
.prose p, .prose li { color: var(--text-2); }
.fill { padding: 0 4px; border-radius: 4px; background: rgba(255, 214, 102, .14); color: #ffe29a; }

/* ── Одно появление при загрузке ───────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .45s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .05s; }
  .hero-copy > :nth-child(3) { animation-delay: .1s; }
  .hero-copy > :nth-child(4) { animation-delay: .15s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
}

/* ── Адаптив ───────────────────────────────── */
@media (max-width: 1080px) {
  .top .btn { display: none; }
  .speakers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-block: 40px 56px; gap: 32px; }
  .hero-visual { justify-self: center; max-width: 360px; }
  .head, .split, .events-home, .duo, .cta-box { grid-template-columns: 1fr; }
  .who, .rules { grid-template-columns: 1fr 1fr; }
  .cols, .packages { grid-template-columns: 1fr 1fr; }
  .ev-cards { grid-template-columns: 1fr; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot .wrap > :first-child { grid-column: 1 / -1; }
  .pagehead .mark { display: none; }
}
@media (max-width: 640px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .menu.is-open { display: flex; }
  .menu a { padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .brand img { height: 36px; }
  h1 { font-size: 36px; }
  .scoreboard { grid-template-columns: 1fr 1fr; }
  .scoreboard div:nth-child(3) { padding-left: 0; border-left: 0; }
  .scoreboard div { padding-bottom: 16px; }
  .who, .rules, .cols, .packages { grid-template-columns: 1fr; }
  .tasks { columns: 1; }
  .ladder li { grid-template-columns: 40px minmax(0, 1fr); }
  .ladder .st { grid-column: 2; justify-self: start; text-align: left; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .speakers-grid { grid-template-columns: 1fr 1fr; }
  .ev-facts { grid-template-columns: 1fr 1fr; }
  .ev-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .defs > div, .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .form { grid-template-columns: 1fr; }
  .badge { padding: 40px 24px 24px; }
}

/* Первый экран помещается целиком и на невысоком ноутбуке */
@media (min-width: 901px) {
  .hero h1 { max-width: 15ch; font-size: clamp(36px, min(4.4vw, 7.2vh), 64px); }
  .hero .lead { margin-top: min(24px, 3vh); font-size: clamp(16px, min(1.35vw, 2.5vh), 19px); }
  .hero .actions { margin-top: min(32px, 4vh); }
  .hero .scoreboard { margin-top: min(48px, 5.5vh); }
  .hero-visual { max-height: min(520px, 72vh); max-width: min(520px, 72vh); }
}
@media (min-width: 901px) {
  .hero .wrap { padding-block: min(48px, 5vh); }
  .hero h1 { max-width: 18ch; }
}

/* ═══ Движение при прокрутке ═══ */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.rv { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.rv.is-in { opacity: 1; transform: none; }
.gallery figure.rv { transform: scale(.98); }
.gallery figure.rv.is-in { transform: none; }
.gallery figure img { transition: transform .8s var(--ease); }
.gallery figure.rv img { transform: scale(1.06); }
.gallery figure.rv.is-in img { transform: none; transition-delay: var(--d, 0ms); }

/* Ступени: номер и линия загораются, когда ступень пройдена */
.ladder li { position: relative; }
.ladder li::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--accent); transition: width .9s var(--ease); }
.ladder li.is-passed::before { width: 64px; }
.ladder .n { transition: color .4s var(--ease); }
.ladder li.is-passed .n { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .ladder li::before { display: none; }
}


/* ═══ Цветовые темы разделов: тёмный, белый, бирюзовый ═══ */
.theme-light {
  --bg: #ffffff; --card: #f4f6f8; --raised: #eceff3;
  --line: rgba(11, 13, 20, .09); --line-2: rgba(11, 13, 20, .16);
  --text: #0b0d14; --text-2: #4b5565; --muted: #6b7487;
  --accent: #00a8e7; --accent-hover: #29b9ee; --on-accent: #06121a;
  --link: #00779f;
  color-scheme: light;
}
.theme-teal {
  --bg: #3cd1cd; --card: rgba(255, 255, 255, .28); --raised: rgba(255, 255, 255, .4);
  --line: rgba(4, 30, 32, .14); --line-2: rgba(4, 30, 32, .24);
  --text: #04191b; --text-2: rgba(4, 25, 27, .78); --muted: rgba(4, 25, 27, .62);
  --accent: #04191b; --accent-hover: #12302f; --on-accent: #eef0f5;
  --link: #04191b;
  color-scheme: light;
}
.theme-light, .theme-teal { background: var(--bg); color: var(--text); }
.theme-light .link, .theme-teal .link { color: var(--link); }
.theme-light .section, .section.theme-light, .section.theme-teal { border-top-color: transparent; }
.section.theme-light + .section, .section.theme-teal + .section { border-top-color: transparent; }
.theme-teal .ladder .st.on, .theme-teal .ladder li.is-passed .n { color: var(--text); font-weight: 500; }
.theme-teal .ladder li::before { background: var(--text); }
.theme-light .btn-secondary, .theme-teal .btn-secondary { box-shadow: none; }
.cta-box.theme-teal { border-color: transparent; }
.cta-box.theme-teal .btn-secondary { background: transparent; border-color: rgba(4, 25, 27, .35); }

/* ═══ Узор: полоса плиток (круг → квадрат), растворяется к центру ═══ */
.has-pattern { position: relative; isolation: isolate; overflow: hidden; }
.has-pattern::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: min(46%, 560px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='24'%3E%3Crect x='9' y='9' width='6' height='6' rx='3.00' fill='rgba(238,240,245,.09)'/%3E%3Crect x='33' y='9' width='6' height='6' rx='2.66' fill='rgba(238,240,245,.09)'/%3E%3Crect x='57' y='9' width='6' height='6' rx='2.32' fill='rgba(238,240,245,.09)'/%3E%3Crect x='81' y='9' width='6' height='6' rx='1.98' fill='rgba(238,240,245,.09)'/%3E%3Crect x='105' y='9' width='6' height='6' rx='1.64' fill='rgba(238,240,245,.09)'/%3E%3Crect x='129' y='9' width='6' height='6' rx='1.30' fill='rgba(238,240,245,.09)'/%3E%3Crect x='153' y='9' width='6' height='6' rx='0.96' fill='rgba(238,240,245,.09)'/%3E%3Crect x='177' y='9' width='6' height='6' rx='0.62' fill='rgba(238,240,245,.09)'/%3E%3C/svg%3E"); background-repeat: repeat; background-position: right top;
  -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%);
  mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%);
  pointer-events: none;
}
.has-pattern.pattern-left::before { right: auto; left: 0; transform: scaleX(-1); }
.theme-light.has-pattern::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='24'%3E%3Crect x='9' y='9' width='6' height='6' rx='3.00' fill='rgba(11,13,20,.07)'/%3E%3Crect x='33' y='9' width='6' height='6' rx='2.66' fill='rgba(11,13,20,.07)'/%3E%3Crect x='57' y='9' width='6' height='6' rx='2.32' fill='rgba(11,13,20,.07)'/%3E%3Crect x='81' y='9' width='6' height='6' rx='1.98' fill='rgba(11,13,20,.07)'/%3E%3Crect x='105' y='9' width='6' height='6' rx='1.64' fill='rgba(11,13,20,.07)'/%3E%3Crect x='129' y='9' width='6' height='6' rx='1.30' fill='rgba(11,13,20,.07)'/%3E%3Crect x='153' y='9' width='6' height='6' rx='0.96' fill='rgba(11,13,20,.07)'/%3E%3Crect x='177' y='9' width='6' height='6' rx='0.62' fill='rgba(11,13,20,.07)'/%3E%3C/svg%3E"); }
.theme-teal.has-pattern::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='24'%3E%3Crect x='9' y='9' width='6' height='6' rx='3.00' fill='rgba(4,25,27,.12)'/%3E%3Crect x='33' y='9' width='6' height='6' rx='2.66' fill='rgba(4,25,27,.12)'/%3E%3Crect x='57' y='9' width='6' height='6' rx='2.32' fill='rgba(4,25,27,.12)'/%3E%3Crect x='81' y='9' width='6' height='6' rx='1.98' fill='rgba(4,25,27,.12)'/%3E%3Crect x='105' y='9' width='6' height='6' rx='1.64' fill='rgba(4,25,27,.12)'/%3E%3Crect x='129' y='9' width='6' height='6' rx='1.30' fill='rgba(4,25,27,.12)'/%3E%3Crect x='153' y='9' width='6' height='6' rx='0.96' fill='rgba(4,25,27,.12)'/%3E%3Crect x='177' y='9' width='6' height='6' rx='0.62' fill='rgba(4,25,27,.12)'/%3E%3C/svg%3E"); }
.hero.has-pattern::before { width: min(60%, 760px); -webkit-mask-image: radial-gradient(70% 70% at 80% 50%, #000 0%, rgba(0,0,0,.4) 50%, transparent 80%); mask-image: radial-gradient(70% 70% at 80% 50%, #000 0%, rgba(0,0,0,.4) 50%, transparent 80%); }

/* Водяной знак: крупный логотип тон в тон, обрезанный краем */
.watermark { position: absolute; z-index: -1; right: -6%; bottom: -22%; pointer-events: none; }
.watermark .mark { --m: clamp(320px, 38vw, 560px); }
.watermark .mark .t i { background: rgba(4, 25, 27, .07); }
.theme-light .watermark .mark .t i { background: rgba(11, 13, 20, .04); }
@media (max-width: 640px) { .has-pattern::before { width: 22%; opacity: .6; } .hero.has-pattern::before { width: 40%; } .watermark .mark { --m: 260px; } }


/* ═══ Фоны разделов ═══ */
/* Разметка поля — мир стадиона, едва заметно */
.bg-field { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, #0b0d14 0%, #0e111a 100%); }
.bg-field::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: max(1200px, 110%); aspect-ratio: 1200 / 760; transform: translate(-50%, -50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 760'%3E%3Crect x='20' y='20' width='1160' height='720' rx='4' stroke='rgba(238,240,245,.07)' stroke-width='2' fill='none'/%3E%3Cline x1='600' y1='20' x2='600' y2='740' stroke='rgba(238,240,245,.07)' stroke-width='2' fill='none'/%3E%3Ccircle cx='600' cy='380' r='96' stroke='rgba(238,240,245,.07)' stroke-width='2' fill='none'/%3E%3Ccircle cx='600' cy='380' r='5' fill='rgba(238,240,245,.09)'/%3E%3Crect x='20' y='200' width='176' height='360' stroke='rgba(238,240,245,.07)' stroke-width='2' fill='none'/%3E%3Crect x='20' y='290' width='64' height='180' stroke='rgba(238,240,245,.07)' stroke-width='2' fill='none'/%3E%3Cpath d='M196 318 A96 96 0 0 1 196 442' stroke='rgba(238,240,245,.07)' stroke-width='2' fill='none'/%3E%3Crect x='1004' y='200' width='176' height='360' stroke='rgba(238,240,245,.07)' stroke-width='2' fill='none'/%3E%3Crect x='1116' y='290' width='64' height='180' stroke='rgba(238,240,245,.07)' stroke-width='2' fill='none'/%3E%3Cpath d='M1004 318 A96 96 0 0 0 1004 442' stroke='rgba(238,240,245,.07)' stroke-width='2' fill='none'/%3E%3C/svg%3E") center / contain no-repeat; pointer-events: none;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000 30%, transparent 85%); mask-image: radial-gradient(60% 60% at 50% 50%, #000 30%, transparent 85%); }
.bg-field.field-top::after { top: 0; }

/* Фото встречи под контентом, сильно приглушённое */
.bg-photo { position: relative; isolation: isolate; overflow: hidden; }
.bg-photo::before { content: ""; position: absolute; z-index: -2; inset: 0; background: var(--photo) center 30% / cover no-repeat; filter: grayscale(1) contrast(1.05); opacity: .16; }
.bg-photo::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(11, 13, 20, .55) 35%, rgba(11, 13, 20, .7) 70%, var(--bg) 100%); }

/* Точечная сетка в белых разделах */
.theme-light.has-dots { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='2' cy='2' r='1.1' fill='rgba(11,13,20,.10)'/%3E%3C/svg%3E"); background-size: 22px 22px; }
.theme-light.has-dots::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(80% 70% at 30% 40%, #fff 30%, rgba(255, 255, 255, .6) 60%, rgba(255, 255, 255, 0) 100%); pointer-events: none; }
.theme-light.has-dots { position: relative; isolation: isolate; overflow: hidden; }

/* ═══ Кто стоит за SBP ═══ */
.founders { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; }
.person { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.person-ph { position: relative; min-height: 320px; background: linear-gradient(160deg, #11141c, #1a1e28); display: grid; place-items: center; }
.person-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person-ph span { font: 500 44px var(--font); letter-spacing: -.02em; color: rgba(238, 240, 245, .35); }
.person-body { display: flex; flex-direction: column; gap: 12px; padding: 32px; }
.person-role { font: 500 13px var(--font); color: var(--link, var(--accent)); }
.person h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.person p { margin: 0; color: var(--text-2); }
.person.is-face { background: #0b0d14; border-color: #0b0d14; color: #eef0f5; }
.person.is-face .person-ph { background: linear-gradient(160deg, #00a8e7, #3cd1cd); }
.person.is-face .person-ph span { color: rgba(6, 18, 26, .45); }
.person.is-face .person-role { color: #3cd1cd; }
.person.is-face p { color: #a3a9b8; }
.person:not(.is-face) { grid-template-columns: 1fr; }
.person:not(.is-face) .person-ph { min-height: 200px; }

/* ═══ Логотипы партнёров ═══ */
.logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.logos li { position: relative; display: grid; place-items: center; height: 88px; padding: 14px; border-radius: 12px; background: #ffffff; }
.logos li::before { content: none; }
.logos img { max-width: 100%; max-height: 52px; object-fit: contain; }
.logos span { display: none; font: 500 13px var(--font); color: #0b0d14; text-align: center; line-height: 1.3; }
.logos li.is-broken img { display: none; }
.logos li.is-broken span { display: block; }
.duo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

@media (max-width: 900px) {
  .founders { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .person-ph { min-height: 220px; }
}
@media (max-width: 640px) { .logos { grid-template-columns: 1fr 1fr; } }
/* фото в карточке человека */
.person-ph picture { position: absolute; inset: 0; }
.person-ph picture img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.person:not(.is-face) .person-ph { min-height: 0; aspect-ratio: 16 / 10; background: #eef0f3; }
@media (max-width: 900px) { .person.is-face .person-ph { min-height: 0; aspect-ratio: 16 / 10; } }
/* фото Семёна: голова целиком, кадр от верхнего края */
.person:not(.is-face) .person-ph { aspect-ratio: 4 / 3; }
.person-ph picture img { object-position: 50% 0%; }

/* ═══ Места под 3D-предметы ═══ */
.obj-slot { position: relative; width: 100%; max-width: 440px; aspect-ratio: 5 / 4; margin-top: 24px; }
.obj-slot canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.who-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ladder-narrow li { grid-template-columns: 48px minmax(0, 1fr) 150px; gap: 16px; }
.cta-box { grid-template-columns: minmax(0, 1fr); }
.cta-box .actions { margin-top: 28px; }
.cta-box.has-obj { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; }
.obj-cta { margin: -24px 0; max-width: 420px; justify-self: end; }
@media (max-width: 900px) {
  .obj-slot { max-width: 360px; margin-inline: auto; }
  .cta-box.has-obj { grid-template-columns: 1fr; }
  .obj-cta { justify-self: center; margin: 0; }
}
@media (max-width: 640px) { .who-2 { grid-template-columns: 1fr; } .ladder-narrow li { grid-template-columns: 40px minmax(0, 1fr); } }
/* фото Руслана: лицо в центре кадра, на телефоне голова целиком */
.person.is-face .person-ph picture img { object-position: 50% 30%; }
@media (max-width: 900px) { .person.is-face .person-ph { aspect-ratio: 4 / 3; } .person.is-face .person-ph picture img { object-position: 50% 10%; } }
/* фото Руслана: колонка шире, кадр от верхнего края — голова целиком */
.person.is-face { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.person.is-face .person-ph picture img { object-position: 50% 0%; }
@media (max-width: 900px) { .person.is-face { grid-template-columns: 1fr; } }
/* фото Руслана: квадратный кадр без увеличения, карточка не растягивается по высоте */
.founders { align-items: start; }
.person.is-face { align-items: stretch; }
.person.is-face .person-ph { min-height: 0; aspect-ratio: 1 / 1; height: auto; align-self: start; }
.person.is-face .person-ph picture img { object-position: 50% 30%; }
/* логотипы партнёров: локальные файлы, единая высота плиток */
.logos li { height: 104px; padding: 16px; overflow: hidden; }
.logos img { max-height: 64px; }
.logos li.is-dark { background: #0b0d14; box-shadow: inset 0 0 0 1px var(--line-2); }
.logos li.is-fill { padding: 0; background: #e41f37; }
.logos li.is-fill img { max-height: none; height: 100%; width: auto; }
.logos li.is-fill { padding: 6px; }
.logos li.is-fill img { height: auto; max-height: 100%; width: auto; max-width: 100%; }
.logos li.is-fill img { height: 92px; max-height: 92px; width: auto; }
.logos li.is-fill { background: #e61a33; }

/* ═══ Шапка внутренних страниц: текст и 3D-предмет в одной сетке ═══ */
.pagehead .mark { display: none; }
.pagehead.has-obj .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; }
.pagehead-obj { position: relative; width: 100%; max-width: 420px; aspect-ratio: 5 / 4; justify-self: end; }
.pagehead-obj canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pagehead.has-obj { padding-block: clamp(32px, 5vw, 56px); }
@media (max-width: 900px) {
  .pagehead.has-obj .wrap { grid-template-columns: 1fr; gap: 8px; }
  .pagehead-obj { justify-self: center; max-width: 300px; order: -1; }
}
.logos-wide .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.logos-wide .logos li { height: 128px; }
@media (max-width: 640px) { .logos-wide .logos { grid-template-columns: 1fr 1fr; } }
.section-paper { background: transparent; }
/* политика: белый лист для чтения, заполняемые поля заметны */
.theme-light .prose h2 { color: var(--text); }
.theme-light .fill { background: #fff3c4; color: #5b4300; }
.section-tight { padding-top: 0; border-top: 0; }
/* галерея из четырёх фото: одно крупное, справа два и одно широкое */
.gallery { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: clamp(150px, 16vw, 230px); }
.gallery figure:first-child { grid-column: auto; grid-row: span 2; }
.gallery figure:nth-child(4) { grid-column: span 2; }
.gallery picture { display: block; width: 100%; height: 100%; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } .gallery figure:first-child { grid-column: 1 / -1; grid-row: span 1; } .gallery figure:nth-child(4) { grid-column: 1 / -1; } }

/* ═══ Основатели: две одинаковые карточки рядом — фото сверху, текст снизу ═══ */
.founders { grid-template-columns: 1fr 1fr; align-items: stretch; }
.founders .person, .founders .person.is-face { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.founders .person-ph, .founders .person.is-face .person-ph, .founders .person:not(.is-face) .person-ph { min-height: 0; aspect-ratio: 4 / 3; align-self: auto; }
.founders .person-ph picture img, .founders .person.is-face .person-ph picture img { object-position: 50% 15%; }
@media (max-width: 760px) { .founders { grid-template-columns: 1fr; } }
.founders .person-ph, .founders .person.is-face .person-ph, .founders .person:not(.is-face) .person-ph { aspect-ratio: 3 / 2; }
.founders .person-ph picture img, .founders .person.is-face .person-ph picture img { object-position: 50% 20%; }

/* ═══ Крупное слово на фоне шапки страницы ═══ */
.pagehead { isolation: isolate; }
.bigword {
  position: absolute; z-index: -1; left: 50%; bottom: -0.16em; transform: translateX(-50%);
  font: 600 clamp(96px, 19vw, 300px)/0.8 var(--font); letter-spacing: -0.04em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(238, 240, 245, .09);
  background: linear-gradient(180deg, rgba(60, 209, 205, .10), rgba(0, 168, 231, 0) 75%);
  -webkit-background-clip: text; background-clip: text;
  pointer-events: none; user-select: none;
}
@media (prefers-reduced-motion: no-preference) {
  .bigword { animation: bigword-in 1.1s var(--ease) both; }
  @keyframes bigword-in { from { opacity: 0; transform: translate(-50%, 24px); } }
}
@media (max-width: 760px) { .bigword { font-size: 26vw; -webkit-text-stroke-width: 1px; } }

/* ═══ Партнёрам ═══ */
.logos-band { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0e1119; overflow: hidden; }
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; gap: 16px; width: max-content; margin: 0; padding: 0; list-style: none; animation: logo-run 32s linear infinite; }
.logo-track li { flex: none; display: grid; place-items: center; width: 200px; height: 96px; padding: 14px; border-radius: 14px; background: #fff; }
.logo-track li img { max-width: 100%; max-height: 62px; object-fit: contain; }
.logo-track li.is-dark { background: #0b0d14; box-shadow: inset 0 0 0 1px var(--line-2); }
.logo-track li.is-fill { padding: 4px; background: #e61a33; }
.logo-track li.is-fill img { height: 88px; max-height: 88px; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes logo-run { to { transform: translateX(calc(-50% - 8px)); } }
@media (prefers-reduced-motion: reduce) { .logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .logo-track li[aria-hidden], .logo-track li:nth-child(n+7) { display: none; } }

.aud-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.aud-chips li { padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .35); border: 1px solid var(--line-2); font: 500 15px var(--font); color: var(--text); }
.theme-teal .scoreboard strong { color: var(--text); }

.pf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pf-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; min-height: 280px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s var(--ease), transform .3s var(--ease); }
.pf-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.pf-tile { width: 48px; height: 48px; margin-bottom: auto; background: linear-gradient(125deg, #00a8e7, #3cd1cd); }
.pf-card h3 { font-size: 20px; margin-top: 32px; }
.pf-card p { margin: 0; color: var(--text-2); font-size: 15px; }

.steps-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.steps-row li { position: relative; padding: 28px 24px 0 0; }
.steps-row li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps-row li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 3px; background: var(--accent); }
.steps-row li + li::before { left: 24px; }
.steps-row .n { display: block; font: 500 44px/1 var(--font); color: transparent; -webkit-text-stroke: 1px rgba(238, 240, 245, .35); margin-bottom: 20px; }
.steps-row h3 { margin-bottom: 8px; }
.steps-row p { margin: 0; color: var(--text-2); font-size: 15px; }

.mail-big { display: inline-block; margin-top: 28px; font: 500 clamp(20px, 2.2vw, 28px)/1.2 var(--font); color: var(--text); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 4px; transition: color .15s var(--ease); }
.mail-big:hover { color: var(--accent); }

@media (max-width: 960px) {
  .pf-grid, .steps-row { grid-template-columns: 1fr 1fr; }
  .steps-row li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps-row li:nth-child(3)::before { left: 0; }
  .steps-row li { padding-bottom: 28px; }
}
@media (max-width: 560px) {
  .pf-grid, .steps-row { grid-template-columns: 1fr; }
  .steps-row li, .steps-row li + li { padding-left: 0; border-left: 0; }
  .steps-row li + li::before { left: 0; }
  .logo-track li { width: 150px; height: 80px; }
  .pf-card { min-height: 0; }
}
/* крупное слово: сплошная заливка без обводки — без линий на стыках букв */
.bigword { -webkit-text-stroke: 0; color: transparent;
  background: linear-gradient(180deg, rgba(238, 240, 245, .075) 0%, rgba(60, 209, 205, .05) 55%, rgba(0, 168, 231, 0) 100%);
  -webkit-background-clip: text; background-clip: text; font-weight: 700; }
@media (max-width: 760px) { .bigword { -webkit-text-stroke: 0; } }

/* ═══ Мобильная версия: финальные правила (стоят последними, чтобы ничего их не перебивало) ═══ */
@media (max-width: 900px) {
  .duo, .founders, .events-home, .split, .head, .cta-box, .cta-box.has-obj, .pagehead.has-obj .wrap, .hero .wrap { grid-template-columns: 1fr; }
  .panel { padding: 24px; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logos li { height: 88px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  h2 { font-size: 28px; }
  .section { padding: 56px 0; }
  .head { gap: 12px; margin-bottom: 28px; }
  .lead, .head p, .intro { font-size: 16px; }
  .logos { grid-template-columns: 1fr 1fr; gap: 8px; }
  .logos li { height: 80px; padding: 12px; }
  .logos li.is-fill img, .logos-wide .logos li.is-fill img { height: 72px; max-height: 72px; }
  .logos-wide .logos li { height: 96px; }
  .who-2, .who, .rules, .cols, .pf-grid, .packages { grid-template-columns: 1fr; }
  .obj-slot { max-width: 300px; margin: 16px auto 0; }
  .obj-cta { max-width: 260px; }
  .badge { padding: 40px 20px 20px; }
  .badge-date { font-size: 40px; }
  .other-events a { grid-template-columns: 72px minmax(0, 1fr); }
  .person-body { padding: 20px; }
  .person h3 { font-size: 24px; }
  .cta-box { padding: 28px 20px; gap: 20px; }
  .cta-box .actions { flex-direction: column; align-items: stretch; }
  .cta-box .btn { width: 100%; }
  .bigword { font-size: 30vw; bottom: -0.1em; }
  .pagehead h1 { font-size: 34px; }
  .scoreboard strong { font-size: 24px; }
  .ladder li { gap: 8px 12px; padding: 18px 0; }
  .tasks li { font-size: 16px; }
  .form { padding: 20px; }
  .mail-big { font-size: 18px; word-break: break-all; }
  .panel .link { word-break: break-all; }
  .foot .wrap { grid-template-columns: 1fr; gap: 24px; }
  .foot a { word-break: break-word; }
  .gallery { grid-auto-rows: 140px; }
}

/* ═══ Фото основателей ═══
   Компьютер: крупное фото сверху карточки. Высота задана и в пикселях —
   на старых телефонах (iOS до 15) aspect-ratio не работает, и фото схлопывалось. */
.founders .person-ph { position: relative; min-height: 300px; overflow: hidden; }
.founders .person-ph picture, .founders .person-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Телефоны и планшеты: круглая аватарка, как в соцсетях */
@media (max-width: 900px) {
  .founders .person, .founders .person.is-face { grid-template-columns: 1fr; grid-template-rows: auto; }
  .founders .person-ph, .founders .person.is-face .person-ph, .founders .person:not(.is-face) .person-ph {
    width: 128px; height: 128px; min-height: 0; aspect-ratio: auto; margin: 24px 0 0 24px;
    border-radius: 50%; background: #1a1e28; box-shadow: 0 0 0 3px #3cd1cd;
  }
  .founders .person-ph picture img, .founders .person.is-face .person-ph picture img { object-position: 50% 18%; border-radius: 50%; }
  .founders .person-body { padding: 16px 24px 24px; }
}

/* Номера шагов: сплошная заливка вместо обводки — без линий на стыках цифр */
.steps-row .n { color: rgba(238, 240, 245, .22); -webkit-text-stroke: 0; font-weight: 500; }
