/* ALTERE:GO — официальный сайт. Дизайн-система и компоненты.
   Мобильная вёрстка — базовая, широкие экраны добавляются через min-width. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-cyrillic-400.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-cyrillic-600.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("/assets/fonts/inter-cyrillic-800.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-21FF; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-21FF; }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("/assets/fonts/inter-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-21FF; }
@font-face { font-family: "Michroma"; font-weight: 400; font-display: swap; src: url("/assets/fonts/michroma-latin-400.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #08090d;
  --bg-2: #12141b;
  --bg-3: #191c25;
  --red: #e32636;
  --red-soft: rgba(227, 38, 54, 0.14);
  --gold: #d8b36a;
  --gold-soft: rgba(216, 179, 106, 0.14);
  --text: #f5f5f5;
  --muted: #9296a3;
  --line: rgba(245, 245, 245, 0.09);
  --line-strong: rgba(245, 245, 245, 0.18);
  --ok: #4fd18b;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-brand: "Michroma", "Inter", system-ui, sans-serif;
  --gutter: 16px;
  --max: 1200px;
  --radius: 4px;
  --header-h: 60px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::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: 400 16px/1.6 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--gold); color: #111; font-weight: 600; }
.skip-link:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 68px; } }

/* ── Кнопки ─────────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-line: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.25s var(--ease), border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); --btn-line: var(--gold); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { --btn-bg: var(--red); --btn-line: var(--red); }
.btn--primary:hover { --btn-bg: #f0303f; --btn-line: #ff5a67; box-shadow: 0 0 28px rgba(227, 38, 54, 0.35); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: #15110a; --btn-line: var(--gold); }
.btn--gold:hover { --btn-bg: #e6c582; }
.btn--ghost { --btn-bg: rgba(8, 9, 13, 0.35); backdrop-filter: blur(6px); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 12px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ── Шапка ──────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.site-header.is-solid, .site-header.is-open {
  background: rgba(8, 9, 13, 0.86);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  padding-left: max(var(--gutter), env(safe-area-inset-left));
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 28px; height: 28px; }
.brand__name { font-family: var(--font-brand); font-size: 15px; letter-spacing: 0.08em; }
.brand__name b { color: var(--red); font-weight: 400; }
@media (max-width: 379px) { .site-header .brand__name { display: none; } }
.nav { display: none; }
.nav__list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__link {
  display: block;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-actions .btn { min-height: 38px; padding: 0 14px; font-size: 11px; white-space: nowrap; }
.header-start { display: none; }
.header-login svg { width: 16px; height: 16px; }
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s;
  content: "";
}
.menu-toggle span { position: relative; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
.is-open .menu-toggle span { background: transparent; }
.is-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.is-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px max(var(--gutter), env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: rgba(8, 9, 13, 0.97);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s, transform 0.22s var(--ease), visibility 0s 0.22s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.22s, transform 0.22s var(--ease); }
.mobile-menu a:not(.btn) {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}
.mobile-menu a:not(.btn)::after { content: "→"; color: var(--muted); }
.mobile-menu .btn { margin-top: 16px; }

@media (min-width: 1240px) {
  .site-header,
  .site-header.is-solid,
  .site-header.is-open {
    background: #050608;
    border-bottom-color: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav { display: block; margin-left: 20px; }
  .menu-toggle, .mobile-menu { display: none; }
  .header-start { display: inline-flex; }
}

/* ── Общие секции ───────────────────────────────────────────────────────── */
.section { position: relative; padding: 72px 0; }
.section--alt { background: var(--bg-2); }
.section--alt::before, .section--alt::after {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  content: "";
}
.section--alt::before { top: 0; }
.section--alt::after { bottom: 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow::before { width: 24px; height: 1px; background: currentColor; content: ""; }
.section-title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(30px, 7.4vw, 60px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.section-title em { color: var(--red); font-style: normal; }
.section-lede { max-width: 60ch; margin: 18px 0 0; color: var(--muted); font-size: 17px; }
.section-head { margin-bottom: 40px; }
@media (min-width: 900px) {
  .section-head--split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
  .section-head--split .section-lede { margin: 0; }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.status::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.status--live { color: var(--ok); border-color: rgba(79, 209, 139, 0.35); }
.status--soon { color: var(--gold); border-color: rgba(216, 179, 106, 0.35); }
.status--concept { color: #8fa6ff; border-color: rgba(143, 166, 255, 0.35); }

.note {
  margin: 24px 0 0;
  padding: 14px 16px;
  border-left: 2px solid var(--gold);
  background: var(--gold-soft);
  color: #d9d6cf;
  font-size: 14px;
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}
.corners::before, .corners::after {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold);
  content: "";
  pointer-events: none;
}
.corners::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.corners::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }

/* Анимация появления. Без JS и при reduced motion контент виден сразу. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }
.js .reveal[data-delay="4"] { transition-delay: 0.32s; }

/* Элемент grid по умолчанию не сжимается уже своего min-content: строка
   вкладок паспорта или карта растягивали колонку шире экрана телефона. */
.passport-layout > *, .mentor-cta > *, .ally > *, .section-head--split > * { min-width: 0; }

/* ── 1. Hero: иллюстрация привлекает, текст объясняет, кнопка направляет ── */
.hero {
  --cyan: #30c8ff;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}
.hero__media {
  position: relative;
  height: clamp(330px, 43svh, 440px);
  margin-top: var(--header-h);
  overflow: hidden;
  background: #07080c;
}
.hero__media::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(4, 5, 8, 0.12) 0%, transparent 58%, rgba(8, 9, 13, 0.72) 88%, var(--bg) 100%),
    linear-gradient(90deg, rgba(8, 9, 13, 0.16), transparent 18%, transparent 82%, rgba(8, 9, 13, 0.16));
  pointer-events: none;
  content: "";
}
.hero__bg { position: absolute; z-index: 0; inset: 0; }
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: saturate(1.04) contrast(1.02);
}
.hero__net { display: none; }
.hero__scan {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0.2;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero__layout { position: relative; z-index: 3; }
.hero__content { max-width: 620px; padding: 24px 0 calc(40px + env(safe-area-inset-bottom)); }
.hero__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  margin: 0 0 18px;
  color: #a7abb5;
  font: 600 10px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero__status i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px rgba(79, 209, 139, 0.72); }
.hero__status strong { color: #8de9b5; font-weight: 700; }
.hero__status span::before { margin-right: 10px; color: rgba(216, 179, 106, 0.6); content: "·"; }
.hero__title {
  position: relative;
  max-width: 13ch;
  margin: 0;
  background: linear-gradient(100deg, #f5f5f5 0%, #f5f5f5 42%, #fff1cc 48%, #ffffff 50%, #f5f5f5 56%, #cfd6e4 100%) 0 0 / 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(227, 38, 54, 0.35)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
  font: 800 clamp(30px, 9vw, 48px)/1.08 var(--font-brand);
  letter-spacing: 0.015em;
  text-wrap: balance;
  text-transform: uppercase;
  animation: hero-title-sheen 6s ease-in-out 1.6s infinite;
}
.hero__title::before,
.hero__title::after {
  position: absolute;
  inset: 0;
  content: attr(data-text);
  -webkit-text-fill-color: currentColor;
  pointer-events: none;
  opacity: 0;
}
.hero__title::before { color: rgba(48, 200, 255, 0.85); animation: hero-title-glitch-cyan 7s steps(1) 2.5s infinite; }
.hero__title::after { color: rgba(227, 38, 54, 0.85); animation: hero-title-glitch-red 7s steps(1) 2.5s infinite; }
@keyframes hero-title-sheen {
  0% { background-position: 100% 0; }
  55%, 100% { background-position: -60% 0; }
}
@keyframes hero-title-glitch-cyan {
  0%, 91%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
  92% { opacity: 1; transform: translate(-4px, 1px); clip-path: inset(10% 0 62% 0); }
  94% { opacity: 1; transform: translate(3px, -1px); clip-path: inset(58% 0 12% 0); }
  96% { opacity: 1; transform: translate(-2px, 0); clip-path: inset(32% 0 40% 0); }
}
@keyframes hero-title-glitch-red {
  0%, 91%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
  92% { opacity: 1; transform: translate(4px, -1px); clip-path: inset(66% 0 6% 0); }
  94% { opacity: 1; transform: translate(-3px, 1px); clip-path: inset(18% 0 56% 0); }
  96% { opacity: 1; transform: translate(2px, 0); clip-path: inset(44% 0 30% 0); }
}
.hero__text { max-width: 46ch; margin: 18px 0 0; color: #eef0f4; font-size: clamp(16px, 4.5vw, 19px); line-height: 1.6; }
.hero__actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 26px; }
.hero__actions .btn { width: 100%; min-height: 54px; }
.hero__explore {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #d8d9de;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.hero__explore span { color: var(--gold); transition: transform 0.2s var(--ease); }
.hero__explore:hover { color: var(--gold); }
.hero__explore:hover span { transform: translateY(3px); }
.btn--glow { overflow: hidden; }
.btn--glow::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.32) 50%, transparent 68%);
  content: "";
  transform: translateX(-160%);
  transition: transform 0.7s var(--ease);
}
.btn--glow:hover::after { transform: translateX(160%); }
.hero__login { margin: 14px 0 0; color: #aeb1ba; font-size: 14px; }
.hero__login a { display: inline-flex; min-height: 44px; align-items: center; color: var(--gold); font-weight: 700; text-decoration: none; }
.hero__login a:hover { color: #f0cf89; }

/* Характеристики вынесены из первого экрана: Hero остаётся свободным. */
.character-stats {
  position: relative;
  padding: 42px 0 58px;
  overflow: hidden;
  border-block: 1px solid rgba(216, 179, 106, 0.16);
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(227, 38, 54, 0.1), transparent 60%),
    linear-gradient(180deg, #0d0f15, #08090d);
}
.character-stats__title { max-width: 18ch; margin: 8px 0 24px; color: var(--text); font-size: clamp(26px, 7vw, 44px); line-height: 1.08; text-transform: uppercase; }
.character-stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.character-stat {
  --stat: var(--gold);
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 112px;
  align-content: center;
  padding: 18px 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--stat) 42%, transparent);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--stat) 12%, transparent), transparent 55%),
    rgba(16, 18, 25, 0.9);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.character-stat::before { position: absolute; top: 0; left: 0; width: 44%; height: 2px; background: var(--stat); box-shadow: 0 0 16px var(--stat); content: ""; }
.character-stat small { color: var(--stat); font: 700 11px/1.2 var(--mono); letter-spacing: 0.2em; }
.character-stat strong { min-width: 0; margin-top: 7px; overflow-wrap: anywhere; color: var(--text); font-size: clamp(14px, 4vw, 18px); line-height: 1.15; text-transform: uppercase; }
.character-stat i { position: relative; height: 3px; margin-top: 16px; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.character-stat i::after { position: absolute; inset: 0 28% 0 0; background: var(--stat); box-shadow: 0 0 10px color-mix(in srgb, var(--stat) 72%, transparent); content: ""; }
.character-stat:last-child { grid-column: 1 / -1; width: calc(50% - 6px); justify-self: center; }

.js .hero-in { opacity: 0; transform: translateY(14px); animation: hero-in 0.7s var(--ease) forwards; }
.js .hero-in:nth-child(2) { animation-delay: 0.1s; }
.js .hero-in:nth-child(3) { animation-delay: 0.2s; }
.js .hero-in:nth-child(4) { animation-delay: 0.3s; }
.js .hero-in:nth-child(5) { animation-delay: 0.4s; }
.js .hero__title.hero-in { opacity: 1; transform: none; animation: hero-title-sheen 6s ease-in-out 1.6s infinite; }
@keyframes hero-in { to { opacity: 1; transform: none; } }

@media (min-width: 560px) {
  .hero__actions { flex-direction: row; align-items: center; }
  .hero__actions .btn { width: auto; min-width: 230px; }
  .hero__explore { padding-inline: 12px; }
}
@media (min-width: 768px) {
  .hero__media { height: clamp(400px, 50svh, 560px); }
  .hero__bg img { object-position: 50% 40%; }
  .hero__content { padding: 36px 0 64px; }
  .character-stats { padding: 56px 0 72px; }
  .character-stats__title { margin-bottom: 30px; }
  .character-stats__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  .character-stat:last-child { grid-column: auto; width: auto; justify-self: stretch; }
}
@media (min-width: 1024px) {
  .hero { display: flex; min-height: max(720px, 100svh); align-items: center; }
  .hero__media { position: absolute; height: auto; margin: 0; inset: 0; }
  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(4, 5, 8, 0.68) 0%, rgba(4, 5, 8, 0.08) 22%, rgba(4, 5, 8, 0.16) 68%, var(--bg) 100%),
      radial-gradient(ellipse 48% 76% at 50% 52%, rgba(5, 7, 11, 0.84) 0%, rgba(5, 7, 11, 0.58) 46%, rgba(5, 7, 11, 0.08) 78%, transparent 100%);
  }
  .hero__bg { inset: -2%; }
  .hero__bg img {
    object-position: 50% 50%;
    transform: translate3d(calc(var(--px, 0) * -8px), calc(var(--py, 0) * -6px), 0) scale(1.04);
    transition: transform 0.5s var(--ease);
  }
  .hero__net { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; opacity: 0.3; mix-blend-mode: screen; pointer-events: none; }
  .hero__scan { opacity: 0.13; }
  .hero__layout { display: grid; min-height: max(720px, 100svh); place-items: center; padding-top: var(--header-h); padding-bottom: 42px; }
  .hero__content { width: min(620px, 48vw); max-width: none; padding: 48px 20px; text-align: center; }
  .hero__status, .hero__actions { justify-content: center; }
  .hero__title { max-width: 12ch; margin-inline: auto; font-size: clamp(44px, 4.3vw, 68px); }
  .hero__text { margin-inline: auto; font-size: clamp(17px, 1.35vw, 20px); }
  .hero__login { text-align: center; }
}
@media (min-width: 1240px) {
  .hero__media { inset: var(--header-h) 0 0; }
}

/* ── 2. Как работает ────────────────────────────────────────────────────── */
.steps { position: relative; display: grid; gap: 14px; margin: 0; padding: 0 0 0 28px; list-style: none; counter-reset: step; }
.steps::before, .steps::after { position: absolute; top: 8px; left: 7px; width: 2px; content: ""; }
.steps::before { bottom: 8px; background: var(--line); }
.steps::after { height: calc((100% - 16px) * var(--progress, 0)); background: linear-gradient(var(--red), var(--gold)); transition: height 0.2s linear; }
.step { position: relative; padding: 20px; }
.step::before {
  position: absolute;
  top: 26px;
  left: -27px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--muted);
  background: var(--bg);
  transform: rotate(45deg);
  transition: border-color 0.3s, background 0.3s;
  content: "";
}
.step.is-lit::before { border-color: var(--gold); background: var(--red); }
.step__no { color: var(--red); font-family: var(--font-brand); font-size: 13px; letter-spacing: 0.1em; }
.step__title { margin: 6px 0 8px; font-size: 20px; font-weight: 800; text-transform: uppercase; }
.step p { margin: 0; color: var(--muted); }
.step__reward { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { padding: 3px 8px; border: 1px solid var(--line-strong); color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, 1fr); padding: 34px 0 0; }
  .steps::before, .steps::after { top: 6px; left: 0; height: 2px; }
  .steps::before { right: 0; bottom: auto; width: auto; }
  .steps::after { width: calc(100% * var(--progress, 0)); background: linear-gradient(90deg, var(--red), var(--gold)); transition: width 0.2s linear; }
  .step::before { top: -34px; left: 20px; }
  .step { min-height: 230px; transition: transform 0.3s var(--ease), border-color 0.3s; }
  .step:hover { transform: translateY(-4px); border-color: var(--line-strong); }
}

/* ── 3. Наставники ──────────────────────────────────────────────────────── */
.subhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 20px; }
.subhead h3 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.legends { display: grid; gap: 16px; margin-bottom: 56px; }
@media (min-width: 760px) { .legends { grid-template-columns: repeat(3, 1fr); } }
.legend {
  --tone: var(--gold);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--tone) 16%, transparent), transparent 62%), var(--bg-2);
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.legend:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--tone) 50%, transparent); }
.legend__glyph {
  position: relative;
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
  margin: 8px auto 24px;
}
.legend__glyph svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--tone); }
.legend__glyph span { font-family: var(--font-brand); font-size: 46px; color: var(--text); text-shadow: 0 0 24px color-mix(in srgb, var(--tone) 60%, transparent); }
.legend__art {
  position: relative;
  margin: -24px -24px 20px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-3);
}
.legend__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.legend__art::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, var(--bg-2) 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--tone) 14%, transparent), transparent 40%);
  content: "";
}
.legend:hover .legend__art img { transform: scale(1.05); }
.legend__era { color: var(--muted); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.legend__name { margin: 6px 0 4px; font-size: 26px; font-weight: 800; text-transform: uppercase; }
.legend__field { margin: 0; color: var(--tone); font-size: 14px; font-weight: 600; }
.legend__quote { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: #d8d8dc; font-size: 16px; font-style: italic; }
.legend__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; }

.mentor-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.mentor {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.mentor:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.mentor__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.mentor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; filter: grayscale(0.25) contrast(1.05); transition: filter 0.4s, transform 0.6s var(--ease); }
.mentor:hover .mentor__photo img { filter: none; transform: scale(1.04); }
.mentor__photo::after { position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, var(--bg-2)); content: ""; }
.mentor__initials { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-family: var(--font-brand); font-size: 40px; }
.mentor__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 0 18px 18px; margin-top: -24px; position: relative; }
.mentor__name { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.2; }
.mentor__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mentor__facts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1px; margin: 4px 0 0; background: var(--line); border: 1px solid var(--line); }
.mentor__facts div { padding: 8px 10px; background: var(--bg-2); }
.mentor__facts dt { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.mentor__facts dd { margin: 2px 0 0; font-weight: 800; }
.mentor__outcome { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 14px; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.mentor__list { margin: 0; padding-left: 18px; color: #cfcfd4; font-size: 14px; }
.mentor__foot { margin-top: auto; padding-top: 6px; }

.skeleton { min-height: 320px; border: 1px solid var(--line); background: linear-gradient(100deg, var(--bg-2) 30%, var(--bg-3) 50%, var(--bg-2) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
}
.empty strong { display: block; margin-bottom: 6px; color: var(--text); }

/* ── 4. Паспорт ─────────────────────────────────────────────────────────── */
.passport-layout { display: grid; gap: 32px; }
@media (min-width: 980px) { .passport-layout { grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; } }
.passport {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(216, 179, 106, 0.35);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(227, 38, 54, 0.16), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(216, 179, 106, 0.1), transparent 60%),
    #0d0f15;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.passport__demo { position: absolute; top: -11px; right: 16px; padding: 2px 8px; background: var(--bg); border: 1px solid var(--line-strong); color: var(--muted); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.passport__top { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; }
.passport__avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, #2a1015, #0f1118);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.passport__avatar svg { width: 46px; height: 46px; color: var(--gold); }
.passport__id { color: var(--muted); font-family: var(--font-brand); font-size: 11px; letter-spacing: 0.08em; }
.passport__name { margin: 2px 0; font-size: 22px; font-weight: 800; text-transform: uppercase; }
.passport__rank { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.passport__meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 18px 0; background: var(--line); border: 1px solid var(--line); }
.passport__meters div { padding: 10px; background: #0d0f15; }
.passport__meters dt { color: var(--muted); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.passport__meters dd { margin: 2px 0 0; font-family: var(--font-brand); font-size: 16px; }
.xp-bar { height: 4px; margin-top: 6px; background: var(--line); }
.xp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width 1.4s var(--ease); }
.is-in .xp-bar i { width: var(--v); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab {
  flex: none;
  padding: 10px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--red); }
.tab-panel { padding-top: 16px; min-height: 200px; }
.tab-panel[hidden] { display: none; }
.attr { display: grid; grid-template-columns: 96px 1fr 34px; gap: 10px; align-items: center; padding: 7px 0; font-size: 13px; }
.attr b { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.attr span:last-child { color: var(--muted); font-family: var(--font-brand); font-size: 12px; text-align: right; }
.attr__bar { height: 6px; background: var(--line); }
.attr__bar i { display: block; height: 100%; width: 0; background: var(--c, var(--red)); box-shadow: 0 0 12px var(--c, var(--red)); transition: width 1.2s var(--ease); }
.is-in .attr__bar i { width: var(--v); }
.log { margin: 0; padding: 0; list-style: none; }
.log li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.log li small { grid-column: 1; color: var(--muted); font-size: 12px; }
.log li em { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--gold); font-style: normal; font-weight: 800; font-size: 13px; white-space: nowrap; }
.medals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.medal { display: grid; gap: 6px; justify-items: center; padding: 12px 4px; border: 1px solid var(--line); text-align: center; font-size: 11px; color: var(--muted); }
.medal svg { width: 34px; height: 34px; color: var(--gold); }
.medal.is-locked svg { color: #3a3d48; }

.flow { display: grid; gap: 0; margin: 28px 0 0; padding: 0; list-style: none; }
.flow li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 0 0 22px; }
.flow li:not(:last-child)::after { position: absolute; top: 40px; bottom: 2px; left: 19px; width: 1px; background: linear-gradient(var(--gold), transparent); content: ""; }
.flow__icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); color: var(--gold); }
.flow__icon svg { width: 20px; height: 20px; }
.flow h4 { margin: 6px 0 4px; font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; }
.flow p { margin: 0; color: var(--muted); font-size: 14px; }

/* ── 5. Академия ────────────────────────────────────────────────────────── */
.academy-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .academy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .academy-grid { grid-template-columns: repeat(3, 1fr); } }
.discipline {
  --tone: var(--red);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  text-decoration: none;
  isolation: isolate;
}
.discipline::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 70% at 80% 10%, color-mix(in srgb, var(--tone) 34%, transparent), transparent 65%),
    linear-gradient(180deg, transparent 40%, rgba(8, 9, 13, 0.92));
  transition: opacity 0.4s;
  content: "";
}
.discipline__art { position: absolute; top: 18px; right: 18px; z-index: -1; width: 120px; height: 120px; color: var(--tone); opacity: 0.55; transition: transform 0.6s var(--ease), opacity 0.4s; }
.discipline__no { color: var(--tone); font-family: var(--font-brand); font-size: 12px; }
.discipline__title { margin: 6px 0 0; font-size: 22px; font-weight: 800; line-height: 1.15; text-transform: uppercase; }
.discipline__stat { margin-top: 6px; color: var(--muted); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.discipline__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.discipline__more > div { overflow: hidden; }
.discipline__more p { margin: 12px 0 14px; color: #cfd0d6; font-size: 14px; }
.discipline:hover, .discipline:focus-within { border-color: color-mix(in srgb, var(--tone) 55%, transparent); }
.discipline:hover .discipline__art, .discipline:focus-within .discipline__art { transform: scale(1.12) rotate(-4deg); opacity: 0.85; }
.discipline:hover .discipline__more, .discipline:focus-within .discipline__more { grid-template-rows: 1fr; }
@media (hover: none) { .discipline__more { grid-template-rows: 1fr; } }

/* ── 6. Арена ───────────────────────────────────────────────────────────── */
.events { display: grid; gap: 14px; }
@media (min-width: 760px) { .events { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .events { grid-template-columns: repeat(3, 1fr); } }
.event { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg-2); }
.event__poster { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #2a1015, #12141b); }
.event__poster img { width: 100%; height: 100%; object-fit: cover; }
.event__date {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(8, 9, 13, 0.85);
  border-left: 2px solid var(--red);
  font-family: var(--font-brand);
  font-size: 13px;
}
.event__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 18px; }
.event__title { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.2; }
.event__meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.event__meta dt { color: var(--muted); }
.event__meta dd { margin: 0; }
.event__foot { display: flex; gap: 10px; margin-top: auto; padding-top: 8px; }
.weekly { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 760px) { .weekly { grid-template-columns: repeat(3, 1fr); } }
.weekly__item { padding: 18px; border: 1px dashed var(--line-strong); }
.weekly__item h4 { margin: 10px 0 6px; font-size: 16px; text-transform: uppercase; }
.weekly__item p { margin: 0; color: var(--muted); font-size: 14px; }

/* ── 9. Маркетплейс ─────────────────────────────────────────────────────── */
.market { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 419px) { .market { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .market { grid-template-columns: repeat(3, 1fr); } }
.goods { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); background: var(--bg-2); min-height: 190px; }
.goods svg { width: 34px; height: 34px; color: var(--gold); }
.goods h3 { margin: 0; font-size: 15px; font-weight: 800; text-transform: uppercase; line-height: 1.25; }
.goods p { margin: 0; color: var(--muted); font-size: 13px; }
.goods .status { margin-top: auto; align-self: flex-start; font-size: 10px; }
.altg { display: grid; gap: 20px; margin-top: 28px; padding: 22px; border: 1px solid rgba(216, 179, 106, 0.3); background: var(--gold-soft); }
@media (min-width: 900px) { .altg { grid-template-columns: auto 1fr auto; align-items: center; } }
.altg__coin { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-family: var(--font-brand); font-size: 14px; }
.altg p { margin: 0; color: #ded9cc; font-size: 14px; }
.altg strong { color: var(--text); }

/* ── 10. Стать наставником ──────────────────────────────────────────────── */
.mentor-cta { display: grid; gap: 32px; }
@media (min-width: 980px) { .mentor-cta { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }
.perks { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 560px) { .perks { grid-template-columns: repeat(2, 1fr); } }
.perks li { display: flex; gap: 12px; padding: 16px; background: var(--bg-2); font-size: 14px; }
.perks svg { flex: none; width: 20px; height: 20px; color: var(--red); margin-top: 2px; }

/* ── Формы ──────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 14px; }
.form__row { display: grid; gap: 14px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(8, 9, 13, 0.6);
  font-size: 16px;
  transition: border-color 0.2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.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) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: #c8c9cf; font-size: 13px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); }
.form__msg { min-height: 22px; margin: 0; font-size: 14px; }
.form__msg.is-ok { color: var(--ok); }
.form__msg.is-error { color: #ff7b86; }
.form[hidden] { display: none; }
.check a { color: var(--gold); }
.policy { max-width: 80ch; padding: 20px; border: 1px solid var(--line-strong); background: var(--bg-2); color: #d6d7dc; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Регистрация: подписи «ребёнка» и согласие представителя (до 14 лет или за ребёнка). */
.form:not([data-registrant="guardian"]) .only-guardian-label { display: none; }
.form[data-guardian="no"] .only-guardian { display: none; }
.form[data-registrant="guardian"] .only-self-label { display: none; }

/* Регистрация диалогом с DZENDEX */
.dz-progress { height: 3px; background: var(--line); }
.dz-progress span { display: block; height: 100%; width: 20%; background: var(--gold); transition: width 0.4s var(--ease); }
.dz-counter { margin: -6px 0 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.dz-form > *, .dz-step > * { min-width: 0; }
.dz-step { display: grid; gap: 14px; min-width: 0; }
.dz-step[hidden] { display: none; }
.dz-step:not([hidden]) { animation: dz-step-in 0.35s var(--ease); }
.dz-say { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: start; }
.dz-say__face { width: 56px; height: 56px; border: 1px solid var(--gold); border-radius: 50%; object-fit: cover; background: var(--bg-3); }
.dz-say__bubble { position: relative; padding: 12px 14px; border: 1px solid var(--line-strong); background: rgba(8, 9, 13, 0.72); }
.dz-say__bubble p { margin: 0; font-size: 15px; line-height: 1.5; }
.dz-say__bubble p + p { margin-top: 8px; }
.dz-say__name { display: block; margin-bottom: 4px; color: var(--gold); font-family: var(--font-brand); font-size: 11px; letter-spacing: 0.12em; }
.dz-nav { display: flex; gap: 10px; justify-content: space-between; }
.dz-nav .btn--primary { flex: 1; }
.dz-form[data-dz-first] [data-dz-back] { display: none; }
.dz-form[data-dz-last] [data-dz-next], .dz-form:not([data-dz-last]) [type="submit"] { display: none; }
@keyframes dz-step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dz-step:not([hidden]) { animation: none; } .dz-progress span { transition: none; } }
.phrase { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--gold); background: var(--gold-soft); }
.phrase__label { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.phrase__value { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--gold); overflow-wrap: anywhere; user-select: all; }
.phrase__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.phrase__hint { margin: 0; color: #ded9cc; font-size: 13px; }

.dialog {
  width: min(640px, calc(100% - 24px));
  max-height: calc(100svh - 24px);
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--text);
}
.dialog::backdrop { background: rgba(4, 5, 8, 0.78); backdrop-filter: blur(4px); }
/* Ролик регистрации лежит под ::backdrop (top layer), поэтому фон при нём светлее и без размытия. */
.apply-bg { position: fixed; inset: 0; z-index: 900; overflow: hidden; background: #000; pointer-events: none; }
.apply-bg[hidden] { display: none; }
.apply-bg video { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Ролик вертикальный (9:16). На широком экране он целиком по высоте, а бока закрывает его же размытая копия. */
.apply-bg__main { object-fit: contain; }
.apply-bg__fill { object-fit: cover; filter: blur(40px) brightness(0.45) saturate(1.2); transform: scale(1.15); }
/* На телефоне и узких окнах — просто на весь экран, без размытой копии. */
@media (max-aspect-ratio: 3/4) {
  .apply-bg__main { object-fit: cover; }
  .apply-bg__fill { display: none; }
}
.dialog.has-video-bg::backdrop { background: rgba(4, 5, 8, 0.35); backdrop-filter: none; }
.dialog.has-video-bg { background: rgba(14, 16, 22, 0.88); backdrop-filter: blur(10px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.dialog.has-video-bg::backdrop { transition: background 0.35s var(--ease); }
.dialog.is-peek { opacity: 0; transform: scale(0.97); pointer-events: none; }
.dialog.is-peek::backdrop { background: transparent; }
.dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 20px 0; }
.dialog__head h2 { margin: 0; font-size: 22px; text-transform: uppercase; }
.dialog__head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.dialog__body { padding: 20px; }
.dialog__close { flex: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); background: none; font-size: 22px; line-height: 1; cursor: pointer; }

/* ── 11. Союзник ────────────────────────────────────────────────────────── */
.ally { display: grid; gap: 24px; padding: 28px 22px; border: 1px solid var(--line); background: linear-gradient(120deg, rgba(227, 38, 54, 0.12), transparent 50%), var(--bg-2); }
@media (min-width: 900px) { .ally { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 44px; } }
.ally__steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: ally; }
.ally__steps li { display: flex; gap: 14px; align-items: center; font-size: 15px; }
.ally__steps li::before { counter-increment: ally; content: counter(ally, decimal-leading-zero); color: var(--red); font-family: var(--font-brand); font-size: 12px; }
.ally__share { display: grid; gap: 12px; }
.ally__share > * { min-width: 0; }
.share-box { display: flex; border: 1px solid var(--line-strong); }
.share-box input { flex: 1 1 0; width: 0; min-width: 0; padding: 0 12px; border: 0; background: transparent; color: var(--muted); font-size: 14px; }
.share-box .btn { clip-path: none; }

/* ── 12. Финал ──────────────────────────────────────────────────────────── */
.finale { position: relative; padding: 120px 0; overflow: hidden; text-align: center; isolation: isolate; }
.finale__bg { position: absolute; inset: 0; z-index: -2; }
.finale__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 40%; opacity: 0.45; }
.finale::before { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 50%, rgba(8, 9, 13, 0.45), var(--bg) 85%); content: ""; }
.finale .section-title { max-width: 16ch; margin: 0 auto; font-size: clamp(34px, 8vw, 80px); }
.finale p { max-width: 46ch; margin: 20px auto 32px; color: #d0d0d5; font-size: 18px; }

/* ── Подвал ─────────────────────────────────────────────────────────────── */
.site-footer { padding: 48px 0 32px; border-top: 1px solid var(--line); background: #06070a; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer h3 { margin: 0 0 12px; color: var(--text); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.7; }

/* ── Внутренние страницы ────────────────────────────────────────────────── */
.page-hero { position: relative; padding: calc(var(--header-h) + 64px) 0 48px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(80% 100% at 85% 0%, rgba(227, 38, 54, 0.18), transparent 60%), var(--bg); }
.page-hero h1 { margin: 0; font-size: clamp(36px, 9vw, 84px); font-weight: 800; line-height: 1; text-transform: uppercase; }
.page-hero p { max-width: 60ch; margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.crumbs { display: flex; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.discipline-page { display: grid; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .discipline-page { grid-template-columns: 200px 1fr; gap: 40px; } }
.discipline-page__art { width: 120px; height: 120px; color: var(--tone, var(--red)); }
.discipline-page h2 { margin: 0 0 10px; font-size: clamp(24px, 4vw, 36px); text-transform: uppercase; }
.discipline-page p { margin: 0 0 12px; color: #cfd0d6; }
.discipline-page ul { margin: 0 0 16px; padding-left: 18px; color: #cfd0d6; }
.discipline-page__links { display: flex; flex-wrap: wrap; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal, .js .hero-in { opacity: 1; transform: none; }
  .hero__bg img { transform: none; }
  .hero__net, .hero__scan { display: none; }
}

/* Меню из семи пунктов и две кнопки шире контентной колонки — шапке больше места. */
.site-header .wrap { max-width: 1440px; }

/* ── Реальный паспорт спортсмена ────────────────────────────────────────── */
.athlete-pass {
  position: relative;
  padding: 22px 18px 18px;
  border: 1px solid rgba(216, 179, 106, 0.45);
  background: radial-gradient(90% 50% at 50% 0%, rgba(216, 179, 106, 0.08), transparent 60%), #0b0b0d;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 6px #0b0b0d, inset 0 0 0 7px rgba(216, 179, 106, 0.18);
}
.athlete-pass__head { text-align: center; padding-bottom: 14px; border-bottom: 1px solid rgba(216, 179, 106, 0.25); }
.athlete-pass__head h3 { margin: 0; color: var(--gold); font-size: clamp(22px, 5vw, 30px); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.athlete-pass__head p { margin: 4px 0 10px; color: #8c7a55; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; }
.athlete-pass__verified { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.athlete-pass__verified svg { width: 18px; height: 18px; }
.athlete-pass__body { padding-top: 16px; display: grid; gap: 14px; }
.athlete-pass__grid { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; }
@media (min-width: 520px) { .athlete-pass__grid { grid-template-columns: 170px minmax(0, 1fr); gap: 18px; } }
.athlete-pass__photo { aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid rgba(216, 179, 106, 0.55); border-radius: 6px; background: var(--bg-3); }
.athlete-pass__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.athlete-pass__rows { margin: 0; }
.athlete-pass__rows div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.athlete-pass__rows dt { color: var(--muted); }
.athlete-pass__rows dd { margin: 0; font-weight: 600; text-align: right; }
.athlete-pass__rows dd.is-id { color: #ff4b5c; font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; }
.athlete-pass__medals { display: flex; flex-wrap: wrap; gap: 8px; }
.medal-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line-strong); font-size: 12px; color: var(--muted); }
.medal-chip b { color: var(--text); font-family: var(--font-brand); font-size: 13px; }
.medal-chip--cup, .medal-chip--gold { border-color: rgba(216, 179, 106, 0.5); }
.athlete-pass__sub { margin: 4px 0 0; color: var(--gold); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.athlete-pass__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.athlete-pass__list li { display: grid; grid-template-columns: 12px 1fr; gap: 10px; align-items: baseline; }
.athlete-pass__list small { color: var(--muted); }
.medal-dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa0aa; }
.medal-dot--cup, .medal-dot--gold { background: var(--gold); }
.medal-dot--silver { background: #c9ced6; }
.medal-dot--bronze { background: #c07a45; }
.athlete-pass__motto { margin: 16px 0 0; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: 0.3em; text-align: center; text-transform: uppercase; }

/* Исторические наставники на телефоне: арт ниже, чтобы три карточки не занимали три экрана. */
@media (max-width: 759px) {
  .legend { min-height: 0; }
  .legend__art { aspect-ratio: 16 / 9; }
}

/* Паспорт на самых узких экранах: фото над данными, длинные значения переносятся. */
.athlete-pass__rows dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 379px) {
  .athlete-pass__grid { grid-template-columns: 1fr; }
  .athlete-pass__photo { width: 140px; margin: 0 auto; }
}
