/* X5 Медиа Конференция 2026
   Палитра строго по гайдбуку: green #1BDB0C, dark #202020, white #FFFFFF, grey #F2F2F2.
   По гайдбуку X5 Медиа основная тема тёмная: все секции на dark, объём дают мягкие
   радиальные подсветки и тонкие зелёные линии между блоками, как в памятке конференции.
   Дополнительно: свечение #59E800 из KV и красный только для ошибок формы. */

/* ---------- Шрифты ---------- */
@font-face { font-family: "X5 Sans"; src: url("../fonts/x5sans-300.subset.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "X5 Sans"; src: url("../fonts/x5sans-400.subset.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "X5 Sans"; src: url("../fonts/x5sans-500.subset.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "X5 Sans"; src: url("../fonts/x5sans-700.subset.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Токены ---------- */
:root {
  --green: #1BDB0C;
  --dark: #202020;
  --white: #FFFFFF;
  --grey: #F2F2F2;
  --glow: #59E800;
  --error: #E53935;            /* только ошибки формы, по просьбе Саида красный */

  --radius: 20px;
  --radius-sm: 14px;
  --wrap: 1200px;
  --gutter: 16px;
  --section-y: clamp(56px, 7vw, 116px);
  --font: "X5 Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--dark); color: var(--white);
  font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Секции: всё на тёмном ---------- */
.section { position: relative; padding: var(--section-y) 0; overflow: hidden; }
.section > .wrap { position: relative; z-index: 1; }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark .lead { color: rgba(242, 242, 242, .74); }
/* тонкая зелёная линия между соседними блоками, как в памятке */
.section + .section::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--wrap) - 2 * var(--gutter), 100% - 2 * var(--gutter)); height: 1px;
  background: linear-gradient(90deg, rgba(27, 219, 12, 0), rgba(27, 219, 12, .55) 18%, rgba(27, 219, 12, .55) 82%, rgba(27, 219, 12, 0));
}
.section--cta::after { display: none; }
/* подсветки блоков: размытый зелёный эллипс из ассетов Figma (как на первом экране).
   Заходят из-за краёв экрана, по очереди слева и справа, как в памятке. */
#about::before {
  content: ""; position: absolute; pointer-events: none; top: 4%; right: -12%; width: 62%; height: 70%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(27, 219, 12, .16) 0%, rgba(27, 219, 12, 0) 70%);
}
#program::before, #speakers::before, #register::before, #route::before, #faq::before, #contacts::before {
  content: ""; position: absolute; pointer-events: none;
  /* не выше самого блока и по центру: граница секции не режет свечение посередине */
  top: 50%; height: min(100%, 980px); width: auto; aspect-ratio: 1278 / 1200;
  background: url("../img/glow.webp") center / contain no-repeat; opacity: 1;
}
/* левые и правые чередуются, за край экрана уходит почти половина пятна */
#speakers::before, #route::before, #contacts::before { left: 0; transform: translate(-48%, -50%); }
#program::before, #register::before, #faq::before { right: 0; transform: translate(48%, -50%); }
@media (max-width: 700px) {
  #program::before, #speakers::before, #register::before, #route::before, #faq::before, #contacts::before {
    height: min(100%, 640px); opacity: .85;
  }
}

/* ---------- Типографика ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
h1 { font-size: clamp(34px, 5.2vw, 66px); line-height: .98; letter-spacing: -.015em; }
h2 { font-size: clamp(28px, 3.6vw, 48px); line-height: .98; letter-spacing: -.01em; }
h3 { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.2; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.4vw, 20px); font-weight: 300; }
.section__head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 52px); }
.section__head h2 + p { margin-top: 16px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--green);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--green); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 15px 32px; border: 0; border-radius: 999px;
  font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer;
  background: var(--green); color: var(--dark);
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--glow); box-shadow: 0 8px 36px rgba(89, 232, 0, .32); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: currentColor; box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover { background: var(--green); color: var(--dark); box-shadow: inset 0 0 0 2px var(--green); }
.btn--sm { min-height: 44px; padding: 12px 24px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Стекло ---------- */
.glass {
  background: rgba(255, 255, 255, .11);
  border: 1px solid rgba(255, 255, 255, .24);
  backdrop-filter: blur(28px) saturate(175%);
  -webkit-backdrop-filter: blur(28px) saturate(175%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 24px 60px rgba(32, 32, 32, .34);
}

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: .07s; }
.reveal--d2 { transition-delay: .14s; }
.reveal--d3 { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none !important; }
  .float, .kv__layer, .map__pin, .map__shadow { animation: none !important; }
}

/* плавное покачивание 3D-объектов */
@keyframes float-y { from { transform: translateY(-10px); } to { transform: translateY(10px); } }
.float { animation: float-y 6s ease-in-out infinite alternate; }
.float--slow { animation-duration: 8.5s; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(32, 32, 32, .62);
  backdrop-filter: blur(26px) saturate(170%); -webkit-backdrop-filter: blur(26px) saturate(170%);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: background-color .3s var(--ease);
}
.header.is-scrolled { background: rgba(32, 32, 32, .78); }
.header__bar { display: flex; align-items: center; gap: 24px; height: 74px; }
.header__logo img { width: 164px; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.nav__list a {
  position: relative; font-size: 15px; color: rgba(242, 242, 242, .74); text-decoration: none;
  transition: color .2s var(--ease);
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--green); transition: right .25s var(--ease);
}
.nav__list a:hover { color: var(--white); }
/* кнопка «Зарегистрироваться» в меню: текст тёмный, как у всех зелёных кнопок */
.nav__list a.btn, .nav__list a.btn:hover { color: var(--dark); }
.nav__list a:hover::after { right: 0; }
.burger {
  display: none; margin-left: auto; width: 46px; height: 46px; padding: 0; background: transparent;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; cursor: pointer;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 18px; height: 2px; background: var(--white); content: ""; margin: 0 auto;
  transition: transform .25s var(--ease);
}
.burger span { position: relative; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }

@media (max-width: 1000px) {
  .burger { display: block; }
  .header__bar > .btn { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 74px; display: none;
    background: var(--dark); border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 22px; }
  .nav__list li:not(.nav__cta) a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav__cta { margin-top: 18px; }
  /* кнопка в меню остаётся кнопкой: текст по центру, без подчёркивания ссылок меню */
  .nav__cta a.btn { display: flex; width: 100%; padding: 15px 24px; border-bottom: 0; }
  .nav__cta a.btn::after { display: none; }
}
@media (min-width: 1001px) { .nav__cta { display: none; } }

/* ---------- Первый экран ----------
   Фон объёмный: тёмная виньетка, мягкая радиальная подсветка только за рукой, как в KV. */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 95% at 62% 45%, #262626 0%, var(--dark) 48%, #151515 100%);
}
.hero__grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(40px, 5vw, 80px) 0 clamp(44px, 6vw, 84px);
}
.hero h1 { text-transform: uppercase; max-width: 11em; }
.hero__date {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: clamp(18px, 2vw, 26px);
  font-weight: 700; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.1; text-transform: uppercase; color: var(--glow);
}
.hero__sep { width: 2px; height: .9em; background: currentColor; }
.hero__place { margin-top: 10px; font-size: 15px; color: rgba(242, 242, 242, .6); }
.hero__content { position: relative; z-index: 0; }
/* зелёное пятно заходит из-за левого края экрана, как в блоках ниже, и подсвечивает стекло плашки */
.hero::before {
  content: ""; position: absolute; left: 0; top: 58%; height: min(100%, 980px); aspect-ratio: 1278 / 1200;
  transform: translate(-48%, -50%); pointer-events: none;
  background: url("../img/glow.webp") center / contain no-repeat;
}
.hero__intro {
  margin: clamp(22px, 2.6vw, 32px) 0; padding: clamp(18px, 2vw, 26px) clamp(20px, 2.2vw, 28px);
  border-radius: var(--radius); max-width: 36em; font-size: clamp(15px, 1.15vw, 17px); font-weight: 300;
  color: rgba(242, 242, 242, .9);
}
/* выраженное стекло: блик по диагонали, светлая кромка сверху и слева, сильное размытие */
.hero__intro.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .07) 48%, rgba(255, 255, 255, .13) 100%);
  border: 1px solid rgba(255, 255, 255, .34);
  backdrop-filter: blur(24px) saturate(200%); -webkit-backdrop-filter: blur(24px) saturate(200%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 1px 0 0 rgba(255, 255, 255, .2),
    inset 0 -1px 0 rgba(255, 255, 255, .08), 0 30px 70px rgba(0, 0, 0, .45);
}
.hero__intro p + p { margin-top: 12px; }
.hero__intro b { font-weight: 700; color: var(--white); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__art { position: relative; display: flex; justify-content: center; align-items: center; }
/* свечение за рукой: размытый зелёный эллипс из ассетов Figma, компактный и яркий */
.hero__art::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1278 / 1200;
  transform: translate(-47%, -50%); pointer-events: none;
  background: url("../img/glow.webp") center / contain no-repeat; opacity: 1;
}
.hero__art .kv { z-index: 1; }
/* KV по слоям из Figma: рука стоит, плашки парят.
   Плашки идут волной: задний ряд (слой 1), за ним передний ряд (слой 4), последней главная плашка (слой 3). */
.kv {
  position: relative; width: 100%; max-width: calc(min(70vh, 600px) * 1200 / 877);
  aspect-ratio: 1200 / 877;
}
.kv__layer { position: absolute; inset: 0; display: block; }
.kv__layer img { display: block; width: 100%; height: 100%; }
/* мягкий уход нижнего края в прозрачность: срез у кисти не виден */
.kv__layer--hand img {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0, 0, 0, .55) 82%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0, 0, 0, .55) 82%, rgba(0, 0, 0, 0) 100%);
}
.kv__layer--back { animation: kv-float 6.4s ease-in-out infinite; will-change: transform; }
/* волна: передний ряд отстаёт от заднего на 0,35 с, главная плашка от переднего ещё на 0,35 с.
   Задержки отрицательные (6,4 − отставание), чтобы слои двигались с первого кадра. */
.kv__layer--main { animation: kv-float-lag 6.4s ease-in-out -5.7s infinite; will-change: transform; }
.kv__layer--front { animation: kv-float 6.4s ease-in-out -6.05s infinite; will-change: transform; }
/* ход под углом 30° к вертикали: вверх-влево и вниз-вправо; x в % ширины, y в % высоты (1200 × 877) */
@keyframes kv-float {
  0%, 100% { transform: translate3d(-.84%, -1.99%, 0); }
  50% { transform: translate3d(.84%, 1.99%, 0); }
}
@keyframes kv-float-lag {
  0%, 100% { transform: translate3d(-1.1%, -2.6%, 0) rotate(-.8deg); }
  50% { transform: translate3d(1.1%, 2.6%, 0) rotate(.8deg); }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; padding-top: 28px; }
  .hero__art { order: -1; width: 100%; max-width: 480px; margin: 0 auto; }
}

/* ---------- Бегущая строка с брендами ---------- */
.marquee {
  position: relative; padding: 30px 0; background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08);
  overflow: hidden;
}
.marquee__viewport { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(40px, 5vw, 76px); flex: none; padding-right: clamp(40px, 5vw, 76px);
  animation: marquee 38s linear infinite; }
.marquee__track img { height: 26px; width: auto; opacity: .8; transition: opacity .2s var(--ease); }
.marquee__track img:hover { opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- Карточки ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { padding: clamp(22px, 2.4vw, 34px); border-radius: var(--radius); }
/* фон карточек сплошной: подсветка секции уходит под них, а не просвечивает */
.card { background: #292929; border: 1px solid rgba(255, 255, 255, .1); }
/* цифры в стиле медиакита X5: крупный зелёный, подпись капсом */
.card--stat { background: linear-gradient(180deg, #2c2c2c, #252525); }
.card--stat b { display: block; font-size: clamp(36px, 4vw, 54px); line-height: 1; color: var(--green); }
.card--stat span {
  display: block; margin-top: 18px; font-size: 13px; font-weight: 500; line-height: 1.35;
  letter-spacing: .03em; text-transform: uppercase; color: rgba(242, 242, 242, .86);
}

/* ---------- О конференции ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.about__lead { margin-top: 18px; }
.about__note { margin-top: 18px; color: rgba(242, 242, 242, .7); }
.about__art { position: relative; display: grid; place-items: center; }
/* корзина со свечением стоит на тёмном, подсветка под ней добавляет объём */
.about__art::before {
  content: ""; position: absolute; width: 90%; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(27, 219, 12, .22), rgba(27, 219, 12, 0));
}
.about__art img { position: relative; }
.about__art img { width: min(100%, 420px); }
.about__stats { margin-top: clamp(28px, 4vw, 52px); }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } .about__art { order: -1; } }

/* ---------- Стеклянные плашки: программа, вопросы, контакты ----------
   Матовое тонированное стекло: подсветка секции просвечивает приглушённо и размыто, то есть лежит под плашкой. */
.agenda__row, .faq details, #contacts .card {
  background: linear-gradient(135deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .03) 55%, rgba(255, 255, 255, .06) 100%), rgba(32, 32, 32, .55);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(26px) saturate(170%); -webkit-backdrop-filter: blur(26px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 16px 40px rgba(0, 0, 0, .25);
}

/* ---------- Программа: строки как в памятке ----------
   Цветная полоса слева: голубая у перерывов, салатовая у докладов, зелёная у главного блока.
   Цвета взяты со страницы памятки в Figma. */
.agenda { display: grid; gap: 12px; }
.agenda__group { display: grid; gap: 8px; }
.agenda__row {
  --bar: #A7D859;
  position: relative; display: grid; grid-template-columns: 136px minmax(0, 1fr) auto; align-items: center;
  gap: 12px 28px; padding: 20px 26px 20px 34px; border-radius: 12px; overflow: hidden;
}
.agenda__row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--bar); }
.agenda__row--break { --bar: #B3CEF9; }
.agenda__row--main { --bar: var(--green); }
.agenda__time {
  align-self: stretch; display: flex; align-items: center; padding-right: 20px;
  border-right: 1px solid rgba(242, 242, 242, .7);
  font-size: 18px; font-variant-numeric: tabular-nums; color: var(--glow); white-space: nowrap;
}
.agenda__title { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.3; }
.agenda__people { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px 28px; }
.agenda__subs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.agenda__row--sub { --bar: rgba(27, 219, 12, .45); grid-template-columns: 124px minmax(0, 1fr); padding-block: 16px; }
.agenda__row--sub .agenda__title { color: rgba(242, 242, 242, .62); font-size: 16px; }
.agenda__row--sub .agenda__time { color: rgba(242, 242, 242, .62); }

.person { display: flex; align-items: center; gap: 14px; min-width: 0; }
.person__photo { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--white); }
.person__badge {
  display: inline-block; margin-bottom: 4px; padding: 1px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; line-height: 1.5; color: var(--dark); background: var(--green);
}
/* имя и должность разбиты на строки вручную, авто-перенос выключен: у всех ровно по две строки */
.person__name { display: block; font-size: 16px; line-height: 1.15; white-space: nowrap; }
.person__role { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.25; color: rgba(242, 242, 242, .6); white-space: nowrap; }
.person--guest .person__name { font-size: 15px; }
@media (max-width: 1080px) {
  .agenda__row { grid-template-columns: 124px minmax(0, 1fr); }
  .agenda__people { grid-column: 2; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .agenda__row, .agenda__row--sub { grid-template-columns: 1fr; gap: 8px; padding: 18px 18px 18px 26px; }
  .agenda__time { padding: 0; border: 0; font-size: 16px; }
  .agenda__people { grid-column: 1; margin-top: 6px; gap: 14px; }
  .agenda__subs { grid-template-columns: 1fr; }
  /* должности в две строки без переноса: на узком экране чуть компактнее, чтобы влезали */
  .agenda__row { padding: 18px 14px 18px 22px; }
  .person { gap: 12px; }
  .person__photo { width: 52px; height: 52px; }
  .person__role { font-size: 11.5px; }
}

/* ---------- Спикеры ---------- */
.grid--speakers { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid--speakers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid--speakers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } }
.speaker { position: relative; }
.speaker__photo {
  position: relative; aspect-ratio: 600 / 760; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, #2e2e2e 0%, #1a1a1a 72%);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: box-shadow .45s var(--ease), transform .45s var(--ease), border-color .45s var(--ease);
}
.speaker__photo img {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  transition: transform .6s var(--ease);
}
/* зелёный прожектор за спиной: портреты вырезаны, поэтому свет стоит под человеком, а не поверх */
.speaker__photo::before {
  content: ""; position: absolute; left: 50%; top: 56%; width: 120%; aspect-ratio: 1; z-index: 0;
  transform: translate(-50%, -50%) scale(.8); pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(27, 219, 12, .95) 0%, rgba(27, 219, 12, .5) 42%, rgba(27, 219, 12, 0) 100%);
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}
/* только на устройствах с мышью: на телефонах наведения нет, фото остаются на тёмном */
@media (hover: hover) and (pointer: fine) {
  .speaker:hover .speaker__photo::before, .speaker:focus-within .speaker__photo::before {
    opacity: 1; transform: translate(-50%, -50%) scale(1);
  }
  .speaker:hover .speaker__photo img { transform: scale(1.03); }
  .speaker:hover .speaker__photo, .speaker:focus-within .speaker__photo {
    transform: translateY(-4px); border-color: rgba(27, 219, 12, .45);
    box-shadow: 0 18px 40px rgba(27, 219, 12, .26);
  }
}
@media (prefers-reduced-motion: reduce) {
  .speaker__photo::before, .speaker__photo img { transition: none; }
}
.speaker__name { font-weight: 700; font-size: 19px; }
.speaker__role { margin-top: 6px; font-size: 15px; color: rgba(242, 242, 242, .6); }
@media (max-width: 700px) { .speaker__name { font-size: 17px; } .speaker__role { font-size: 14px; } }

/* ---------- Регистрация ---------- */
.form-section__grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .form-section__grid { grid-template-columns: 1fr; } }
.form-aside__list { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.form-aside__list li {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: start;
  font-size: 15px; color: rgba(242, 242, 242, .74);
}
.form-aside__list li::before {
  content: "\2713"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-size: 13px; font-weight: 700; color: var(--green);
  background: rgba(27, 219, 12, .16); box-shadow: inset 0 0 0 1px rgba(27, 219, 12, .38);
}
/* объект стоит по центру текстовой колонки, а не прижат к левому краю */
.form-aside__art { width: min(100%, 320px); margin: 34px auto 0; }

.form {
  display: grid; gap: 18px; padding: clamp(22px, 3vw, 38px); border-radius: var(--radius);
  background: rgba(255, 255, 255, .11); border: 1px solid rgba(255, 255, 255, .24);
  backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 28px 70px rgba(32, 32, 32, .38);
}
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; color: rgba(242, 242, 242, .72); }
.field input, .field textarea {
  width: 100%; padding: 15px 17px; font: 400 16px/1.4 var(--font); color: var(--white);
  background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(242, 242, 242, .32); }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .28); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: rgba(0, 0, 0, .4); }
.field--invalid input, .field--invalid textarea { border-color: var(--error); }
.field__error { display: none; font-size: 13px; color: var(--error); }
.field--invalid .field__error { display: block; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start;
  font-size: 14px; color: rgba(242, 242, 242, .72); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--green); cursor: pointer; }
.check a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.check.is-invalid { color: var(--error); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { display: none; font-size: 15px; }
.form__status--error { display: block; color: var(--error); }
.form-success {
  display: none; padding: clamp(28px, 4vw, 52px); text-align: center; border-radius: var(--radius);
  background: rgba(27, 219, 12, .08); border: 1px solid rgba(27, 219, 12, .4);
}
.form-success.is-visible { display: block; animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.form-success__icon {
  width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--green); color: var(--dark); display: grid; place-items: center; font-size: 28px; font-weight: 700;
}
.form-success p { margin-top: 12px; color: rgba(242, 242, 242, .76); }
.is-hidden { display: none !important; }

/* ---------- Как добраться ----------
   Брендовая схема площадки из памятки. Клик открывает карты: на телефоне приложение, на компьютере Яндекс. */
.route__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 900px) { .route__grid { grid-template-columns: 1fr; } }
.map {
  position: relative; display: block; align-self: start; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12); background: #2a2a2a; text-decoration: none;
}
.map picture img { width: 100%; height: auto; }
/* метка отдельным слоем из Figma парит над схемой, тень у острия дышит в такт */
.map__pin {
  position: absolute; z-index: 2; left: 49.4%; top: 41%; width: 34%; height: auto;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .45));
  animation: pin-float 3.2s ease-in-out infinite; will-change: transform;
}
.map__shadow {
  position: absolute; z-index: 1; left: 51.6%; top: 53.6%; width: 4%; aspect-ratio: 2.4;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0));
  animation: pin-shadow 3.2s ease-in-out infinite;
}
@keyframes pin-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16%); } }
@keyframes pin-shadow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .9; }
  50% { transform: translate(-50%, -50%) scale(.65); opacity: .45; }
}
.map__hint {
  position: absolute; left: 16px; bottom: 16px; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--dark); background: var(--green);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .35);
}
.route__list { display: grid; gap: 12px; margin: 0; padding: 0; align-content: start; }
.route__item { padding: 20px 24px; border-radius: var(--radius-sm); background: #292929; border: 1px solid rgba(255, 255, 255, .1); }
.route__item dd { color: rgba(242, 242, 242, .8); }
.route__item dd b { color: var(--white); }
.route__item dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.route__item dd { margin: 8px 0 0; font-size: 16px; }
.route__item dd b { font-weight: 700; }
.route__link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 500;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.route__link::after { content: "\2197"; font-size: 15px; text-decoration: none; }
.route__link:hover { text-decoration-thickness: 2px; }

/* ---------- Фонд ---------- */
.fund {
  position: relative; overflow: hidden; display: grid; justify-items: center; text-align: center;
  padding: clamp(36px, 5vw, 72px) clamp(22px, 4vw, 56px); border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(64% 130% at 50% 0%, rgba(27, 219, 12, .26) 0%, rgba(27, 219, 12, 0) 72%),
    rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(26px) saturate(170%); -webkit-backdrop-filter: blur(26px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.fund > div { display: grid; justify-items: center; }
.fund__logo { width: min(100%, 300px); margin-bottom: 26px; }
.fund h3 { max-width: 22em; }
.fund p { margin-top: 16px; color: rgba(242, 242, 242, .76); max-width: 46em; }
.fund__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  padding: 22px clamp(20px, 2.4vw, 30px); border-radius: var(--radius-sm);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.faq details[open] { border-color: rgba(27, 219, 12, .5); background: linear-gradient(135deg, rgba(27, 219, 12, .1), rgba(27, 219, 12, .03)), rgba(32, 32, 32, .55); }
.faq summary {
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  font-weight: 500; font-size: clamp(16px, 1.4vw, 18px); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 22px; font-weight: 300; color: var(--white); background: rgba(27, 219, 12, .18);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.faq details[open] summary::after { content: "\2212"; color: var(--dark); background: var(--green); transform: rotate(180deg); }
/* обёртка нужна, чтобы JS плавно анимировал высоту ответа */
.faq__body { overflow: hidden; }
.faq__body p { margin: 14px 0 0; color: rgba(242, 242, 242, .7); max-width: 62em; }
.faq summary::after { will-change: transform; }

/* ---------- Полоса призыва ---------- */
/* сверху отступ даёт предыдущий блок, снизу свой такой же: полоса стоит посередине */
.section--cta { padding: 0 0 var(--section-y); }
.cta-strip {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 40px); align-items: center;
  padding: clamp(28px, 4vw, 48px); border-radius: calc(var(--radius) + 6px);
  background: var(--green); color: var(--dark);
}
.cta-strip h2 { font-size: clamp(24px, 3vw, 40px); }
.cta-strip p { margin-top: 10px; color: rgba(32, 32, 32, .78); }
.cta-strip .btn { background: var(--dark); color: var(--white); }
.cta-strip .btn:hover { background: var(--white); color: var(--dark); box-shadow: 0 8px 30px rgba(32, 32, 32, .25); }
@media (max-width: 760px) { .cta-strip { grid-template-columns: 1fr; } }

/* ---------- Контакты ---------- */
.contacts__grid { display: grid; grid-template-columns: minmax(0, .36fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); }
.contact-site { display: grid; gap: 20px; align-content: center; justify-items: center; text-align: center; }
.contact-site__qr { width: min(100%, 180px); padding: 12px; border-radius: 16px; background: var(--white); }
.contacts__people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.person-card { display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; }
.person-card img { width: 120px; height: 120px; margin-bottom: 12px; border-radius: 50%; object-fit: cover; background: var(--white); }
.person-card b { font-size: 18px; }
.person-card span { max-width: 22em; font-size: 14px; line-height: 1.35; color: rgba(242, 242, 242, .64); }
.person-card a { margin-top: 8px; color: var(--green); text-underline-offset: 3px; word-break: break-all; }
@media (max-width: 900px) {
  .contacts__grid { grid-template-columns: 1fr; }
  .contact-site__qr { display: none; }
}
@media (max-width: 600px) { .contacts__people { grid-template-columns: 1fr; } }

/* ---------- Футер ---------- */
.footer { background: var(--dark); color: var(--white); padding: clamp(48px, 6vw, 80px) 0 32px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.footer__logo { width: 168px; margin-bottom: 18px; }
.footer__about { font-size: 15px; color: rgba(242, 242, 242, .6); max-width: 30em; }
.footer__label { font-size: 13px; letter-spacing: .06em; color: rgba(242, 242, 242, .45); }
.footer__col p, .footer__col a { margin-top: 10px; display: block; font-size: 16px; color: rgba(242, 242, 242, .9); text-decoration: none; }
.footer__col a:hover { color: var(--green); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between;
  margin-top: clamp(32px, 4vw, 56px); padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 14px; color: rgba(242, 242, 242, .45);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer__links a { color: rgba(242, 242, 242, .7); text-decoration: underline; text-underline-offset: 3px; }
.footer__links a:hover { color: var(--white); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Кнопка наверх ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--green); color: var(--dark); font-size: 20px; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
