/* ═══════════════════════ БАЗА ═══════════════════════ */
:root {
  /* Фирменные цвета взяты из логотипа Ассоциации директоров по развитию */
  --bg: #0d131b;
  --bg-alt: #111a24;
  --panel: #16212d;
  --panel-border: #24344a;
  --text: #e9eef4;
  /* Вторичный текст: ≥ 9:1 к любому реальному фону (WCAG AAA), при этом заметно тише --text */
  --muted: #b3c2d1;
  --orange: #ee9b3f;
  --orange-bright: #ffb555;
  --blue: #6fa8c9;
  --blue-bright: #8fc4e4;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .35);
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Ubuntu', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Якоря не прячутся под липким хедером */
  scroll-padding-top: 92px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Выделение текста в фирменных цветах */
::selection { background: rgba(238, 155, 63, .85); color: #16202b; }

/* Кастомный скроллбар */
html { scrollbar-width: thin; scrollbar-color: #33465e var(--bg); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(238, 155, 63, .55), rgba(111, 168, 201, .55));
  border-radius: 8px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--orange), var(--blue));
  border-width: 2px;
}

/* Едва заметное фотографическое зерно поверх всей страницы — глушит «пластиковость» градиентов */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }

a { color: var(--blue-bright); text-decoration: none; }
a:hover { color: var(--orange-bright); }

img { max-width: 100%; display: block; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.accent {
  background: linear-gradient(100deg, var(--orange-bright), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ═══════════════════════ КНОПКИ ═══════════════════════ */
.btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  cursor: pointer;
  text-align: center;
}
/* Блик, пробегающий по кнопке на ховере */
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
  pointer-events: none;
}
.btn--primary:hover::after { left: 125%; }
.btn--lg { padding: 17px 38px; font-size: 17px; }
.btn--primary {
  background: linear-gradient(100deg, var(--orange-bright), var(--orange));
  color: #16202b;
  box-shadow: 0 8px 28px rgba(238, 155, 63, .35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(238, 155, 63, .5);
  color: #16202b;
}
.btn--ghost {
  border: 1.5px solid var(--panel-border);
  color: var(--text);
  background: rgba(255, 255, 255, .03);
}
.btn--ghost:hover { border-color: var(--orange); color: var(--orange-bright); }

/* ═══════════════════════ ХЕДЕР ═══════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 19, 27, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--panel-border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.logo-svg { height: 46px; width: auto; display: block; }
.header__nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.header__nav a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  padding: 4px 0;
}
/* Плавный градиентный подчерк: выезжает слева на ховере и у активного пункта */
.header__nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s ease;
}
.header__nav a:hover { color: var(--text); }
.header__nav a:hover::after,
.header__nav a.is-active::after { transform: scaleX(1); }
.header__nav a.is-active { color: var(--text); }
.header__cta { flex-shrink: 0; }
/* Кнопка регистрации внутри меню нужна только на мобильном */
.nav__cta { display: none; }

/* Полоса прогресса чтения под хедером */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--orange-bright), var(--blue));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
}
.burger span {
  width: 24px; height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ═══════════════════════ ГЛАВНЫЙ ЭКРАН ═══════════════════════ */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .32;
  pointer-events: none;
  will-change: transform;
}
.hero__glow--orange {
  width: 560px; height: 560px;
  background: var(--orange);
  top: -180px; right: -120px;
  animation: glow-drift-a 16s ease-in-out infinite;
}
.hero__glow--blue {
  width: 480px; height: 480px;
  background: var(--blue);
  bottom: -200px; left: -140px;
  animation: glow-drift-b 20s ease-in-out infinite;
}
/* Пятна света медленно «дышат» и плывут */
@keyframes glow-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-90px, 70px) scale(1.18); }
}
@keyframes glow-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(110px, -60px) scale(1.12); }
}
/* Декоративная точечная сетка на фоне первого экрана */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(233, 238, 244, .10) 1px, transparent 1.5px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 65% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 75% 85% at 65% 30%, #000 0%, transparent 70%);
  pointer-events: none;
}
/* Концентрические кольца справа — медленно вращаются */
.hero__ring {
  position: absolute;
  width: 680px; height: 680px;
  right: -180px; top: -40px;
  border-radius: 50%;
  border: 1px solid rgba(111, 168, 201, .18);
  pointer-events: none;
}
.hero__ring::before {
  content: '';
  position: absolute;
  inset: 70px;
  border-radius: 50%;
  border: 1.5px dashed rgba(238, 155, 63, .28);
  animation: spin 60s linear infinite;
}
.hero__ring::after {
  content: '';
  position: absolute;
  inset: 150px;
  border-radius: 50%;
  border: 1px solid rgba(111, 168, 201, .14);
}
@keyframes spin { to { transform: rotate(360deg); } }
/* Гигантский контурный год в нижнем правом углу */
.hero__year {
  position: absolute;
  right: -10px; bottom: -52px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(120px, 22vw, 300px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(233, 238, 244, .07);
  letter-spacing: -.02em;
  user-select: none;
  pointer-events: none;
}
.hero__inner { position: relative; }

/* Каскадное появление контента первого экрана при загрузке */
.hero__badge, .hero__title, .hero__offer,
.hero__meta, .hero__actions, .countdown {
  opacity: 0;
  transform: translateY(26px);
  animation: hero-in .85s cubic-bezier(.22, .75, .3, 1) forwards;
}
.hero__title   { animation-delay: .1s; }
.hero__offer   { animation-delay: .2s; }
.hero__meta    { animation-delay: .3s; }
.hero__actions { animation-delay: .4s; }
.countdown     { animation-delay: .5s; }
@keyframes hero-in {
  to { opacity: 1; transform: none; }
}
.hero__badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-bright);
  border: 1px solid rgba(111, 168, 201, .4);
  background: rgba(111, 168, 201, .08);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero__title {
  font-size: clamp(36px, 6.2vw, 72px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin-bottom: 26px;
}
.hero__offer {
  max-width: 640px;
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 36px;
}
/* Вторая часть названия конференции — выделена в подводке */
.hero__offer-lead { color: var(--text); font-weight: 500; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}
.meta-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(22, 33, 45, .5);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  padding: 12px 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .2s ease, border-color .2s ease;
}
.meta-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(238, 155, 63, .45);
}
.meta-chip__icon { font-size: 22px; }
.meta-chip b { font-family: var(--font-head); font-size: 15px; display: block; }
.meta-chip small { color: var(--muted); font-size: 13.5px; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}
.countdown {
  display: inline-flex;
  gap: 10px;
}
.countdown__cell {
  min-width: 86px;
  text-align: center;
  background: rgba(238, 155, 63, .08);
  border: 1px solid rgba(238, 155, 63, .3);
  border-radius: 14px;
  padding: 12px 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.countdown__cell b {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--orange-bright);
  display: block;
}
.countdown__cell span { font-size: 13px; color: var(--muted); }

/* ═══════════════════════ СЕКЦИИ ═══════════════════════ */
.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.section__kicker::before {
  content: '';
  width: 42px; height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  border-radius: 2px;
}
.section__title {
  font-size: clamp(28px, 4.4vw, 50px);
  font-weight: 800;
  letter-spacing: -.015em;
  margin-bottom: 18px;
}
.section__subtitle {
  color: var(--muted);
  font-size: 17px;
  max-width: 700px;
  margin-bottom: 42px;
}

/* ═══════════════════════ КАРТОЧКИ ═══════════════════════ */
.cards { display: grid; gap: 18px; margin-top: 36px; }
.cards--5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
/* Акцентная линия сверху, проявляется на ховере */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  opacity: 0;
  transition: opacity .22s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(238, 155, 63, .5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
}
.card:hover::before { opacity: 1; }
/* Пятно света под курсором — координаты задаёт скрипт через --mx/--my */
.card::after,
.track::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, .07), transparent 55%);
}
.card:hover::after,
.track:hover::after { opacity: 1; }
.card__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  color: var(--orange);
  margin-bottom: 14px;
}
.card h3 { font-size: 17px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); }

/* ═══════════════════════ О КОНФЕРЕНЦИИ ═══════════════════════ */
.about {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.lead { font-size: 19px; margin-bottom: 18px; }
.about__text p { margin-bottom: 18px; color: var(--muted); }
.about__text .lead { color: var(--text); }
.about__promise {
  border-left: 3px solid var(--orange);
  padding: 14px 20px;
  background: rgba(238, 155, 63, .07);
  border-radius: 0 12px 12px 0;
  color: var(--text) !important;
}
.about__photo picture { display: block; }
.about__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about__photo-caption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.checklist { list-style: none; margin: 22px 0; }
.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--text);
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(238, 155, 63, .15);
  color: var(--orange-bright);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checklist--compact li { font-size: 14.5px; margin-bottom: 9px; }

/* ═══════════════════════ ГАЛЕРЕЯ «КАК ЭТО БЫЛО» ═══════════════════════ */
/* Плотная сетка 3 колонки; dense — чтобы широкие кадры не оставляли дыр */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 16px;
}
.gallery__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.gallery__item--wide { grid-column: span 2; }
/* Главный кадр галереи — общий план зала: 2 колонки × 2 ряда */
.gallery__item--hero { grid-column: span 2; grid-row: span 2; }
.gallery__item picture { display: block; width: 100%; height: 100%; }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .5s ease;
}
.gallery__item:hover { border-color: rgba(238, 155, 63, .5); box-shadow: 0 18px 44px rgba(0, 0, 0, .35); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 18px 14px;
  font-size: 14px;
  color: var(--text);
  background: linear-gradient(180deg, transparent, rgba(13, 19, 27, .85));
  pointer-events: none;
}
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; gap: 12px; }
}
@media (max-width: 560px) {
  .gallery { grid-auto-rows: 170px; gap: 10px; }
  /* На узком экране общий план — широкая полоса в один ряд (исходник 16:9, растягивать в квадрат нельзя) */
  .gallery__item--hero { grid-row: span 1; }
  .gallery__item figcaption { font-size: 12.5px; padding: 28px 12px 10px; }
}

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: rgba(13, 19, 27, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(1200px, 100%);
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.lightbox__caption { color: var(--muted); font-size: 15px; text-align: center; }
.lightbox__close {
  position: absolute;
  top: 16px; right: 20px;
  width: 44px; height: 44px;
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  background: rgba(22, 33, 45, .8);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { border-color: var(--orange); color: var(--orange-bright); }

/* ═══════════════════════ ПРОГРАММА ═══════════════════════ */
/* Цифры программы: 20 докладов · 19 спикеров · 3 пленарных · 2 секции */
.program-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.program-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(22, 33, 45, .55);
  border: 1px solid var(--panel-border);
}
.program-stat b {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--orange-bright);
}
.program-stat span { font-size: 14px; color: var(--muted); }

/* Модераторы и секретарь — строка с аватарами */
.mods {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  padding: 18px 22px;
  margin-bottom: 44px;
  border-radius: var(--radius);
  background: rgba(111, 168, 201, .06);
  border: 1px solid rgba(111, 168, 201, .22);
}
.mods__label {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-bright);
  flex-shrink: 0;
}
.mods__list { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.mod {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.mod:hover { color: var(--text); }
.mod:hover b { color: var(--orange-bright); }
.mod .mod__avatar { width: 40px; height: 40px; font-size: 13px; border-radius: 50%; flex-shrink: 0; }
.mod__text b { display: block; font-family: var(--font-head); font-size: 14.5px; transition: color .2s ease; }
.mod__text small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.mod--secretary { padding-left: 22px; border-left: 1px solid var(--panel-border); }

/* Таймлайн дня: время слева, вертикальная линия с точкой, содержание справа */
.timeline { position: relative; margin-bottom: 48px; }
.tl {
  position: relative;
  display: grid;
  grid-template-columns: 124px 1fr;
  column-gap: 44px;
  padding: 18px 0 22px;
}
/* Линия */
.tl::before {
  content: '';
  position: absolute;
  left: 142px; top: 0; bottom: 0;
  width: 2px;
  background: var(--panel-border);
}
.tl:first-child::before { top: 26px; }
.tl:last-child::before { bottom: auto; height: 26px; }
/* Точка на линии */
.tl::after {
  content: '';
  position: absolute;
  left: 137px; top: 26px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px rgba(111, 168, 201, .35);
}
.tl--plenary::after, .tl--closing::after {
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px rgba(238, 155, 63, .4);
}
.tl--break::after { background: var(--panel-border); box-shadow: 0 0 0 4px var(--bg); }
.tl__time {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  color: var(--orange-bright);
  padding-top: 2px;
  text-align: right;
  white-space: nowrap;
}
.tl--break .tl__time, .tl--sections .tl__time { color: var(--blue-bright); }
.tl__title { font-size: 19px; margin-bottom: 6px; }
.tl--break .tl__title { color: var(--muted); font-weight: 600; }
.tl__desc { color: var(--muted); font-size: 15px; max-width: 760px; }
.tl__desc a { font-weight: 500; }
.tl__badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange-bright);
  border: 1px solid rgba(238, 155, 63, .45);
  background: rgba(238, 155, 63, .1);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 12px;
}
/* Пленарные доклады — вложенный список внутри блока таймлайна */
.plenary { list-style: none; margin-top: 16px; display: grid; gap: 12px; }
.plenary__item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 4px 22px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  transition: border-color .2s ease;
}
.plenary__item:hover { border-color: rgba(238, 155, 63, .45); }
.plenary__time {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
  padding-top: 2px;
  white-space: nowrap;
}
.plenary__kind {
  display: block;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}
.plenary__title { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.plenary__speaker { font-size: 14px; color: var(--muted); }
.plenary__speaker b { color: var(--text); font-weight: 600; }

/* Вкладки с докладами секций — на чистом CSS (radio + label), работают без JS */
.talks { position: relative; margin-top: 28px; scroll-margin-top: 100px; }
.talks__radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.talks__tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--panel-border);
}
.talks__tab {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 22px 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 12px 12px 0 0;
  transition: color .2s ease, background .2s ease;
  user-select: none;
}
.talks__tab small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}
.talks__tab::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.talks__tab--2::after { background: var(--blue); }
.talks__tab:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
#talks-tab-1:checked ~ .talks__tabs .talks__tab--1,
#talks-tab-2:checked ~ .talks__tabs .talks__tab--2 { color: var(--text); }
#talks-tab-1:checked ~ .talks__tabs .talks__tab--1::after,
#talks-tab-2:checked ~ .talks__tabs .talks__tab--2::after { transform: scaleX(1); }
/* Фокус с клавиатуры на скрытом radio подсвечивает соответствующую вкладку */
#talks-tab-1:focus-visible ~ .talks__tabs .talks__tab--1,
#talks-tab-2:focus-visible ~ .talks__tabs .talks__tab--2 { outline: 2px solid var(--blue-bright); outline-offset: -2px; }
.talks__panel { display: none; }
#talks-tab-1:checked ~ .talks__panel--1,
#talks-tab-2:checked ~ .talks__panel--2 { display: block; animation: fade-up .4s ease both; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.talks__heading { font-size: 20px; margin-bottom: 18px; }
.talks__panel--1 .talks__heading { color: var(--orange-bright); }
.talks__panel--2 .talks__heading { color: var(--blue-bright); }

/* Список докладов */
.talk-list { list-style: none; display: grid; gap: 10px; }
.talk {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px 22px 18px 18px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  transition: border-color .2s ease, transform .2s ease;
}
.talks__panel--1 .talk:hover { border-color: rgba(238, 155, 63, .45); }
.talks__panel--2 .talk:hover { border-color: rgba(111, 168, 201, .5); }
.talk__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  color: var(--orange);
  padding-top: 2px;
}
.talks__panel--2 .talk__num { color: var(--blue); }
.talk__title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.talk__speaker { font-size: 14px; color: var(--muted); }
.talk__speaker b { color: var(--text); font-weight: 600; }
/* Кофе-брейк внутри списка Секции 1 */
.talk--break {
  background: rgba(111, 168, 201, .06);
  border: 1px dashed rgba(111, 168, 201, .35);
  padding-top: 12px; padding-bottom: 12px;
  color: var(--muted);
  font-size: 14.5px;
  align-items: center;
}
.talk--break .talk__num { font-size: 18px; padding: 0; line-height: 1; }
.talk--break b { color: var(--blue-bright); font-family: var(--font-head); }
.program__footnote {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .program-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .program-stat { padding: 12px 14px; gap: 8px; }
  .program-stat b { font-size: 24px; }
  .program-stat span { font-size: 13px; }
  .mods { padding: 16px; gap: 12px; margin-bottom: 36px; }
  .mods__list { gap: 10px 16px; }
  .mod--secretary { padding-left: 0; border-left: 0; }
  /* Таймлайн в одну колонку: линия слева, время над заголовком */
  .tl { grid-template-columns: 1fr; padding: 14px 0 18px 30px; }
  .tl::before { left: 5px; }
  .tl::after { left: 0; top: 22px; }
  .tl:first-child::before { top: 22px; }
  .tl:last-child::before { height: 22px; }
  .tl__time { text-align: left; font-size: 15px; margin-bottom: 4px; }
  .tl__title { font-size: 17px; }
  .plenary__item { grid-template-columns: 1fr; gap: 4px; padding: 16px; }
  .plenary__time { color: var(--orange-bright); }
  .talks__tabs { gap: 4px; }
  .talks__tab { flex: 1; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px 14px; font-size: 15px; }
  .talks__heading { font-size: 17px; }
  .talk { grid-template-columns: 34px 1fr; gap: 10px; padding: 14px 14px 14px 12px; }
  .talk__title { font-size: 15px; }
  .talk__speaker { font-size: 13.5px; }
}

/* ═══════════════════════ ДВЕ СЕКЦИИ: КАРТОЧКИ-ТРЕКИ ═══════════════════════ */
.tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}
.track {
  position: relative;
  border-radius: 24px;
  padding: 40px 36px 36px;
  border: 1px solid var(--panel-border);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.track--orange {
  background:
    radial-gradient(ellipse 90% 90% at 100% 0%, rgba(238, 155, 63, .16), transparent 65%),
    var(--panel);
}
.track--blue {
  background:
    radial-gradient(ellipse 90% 90% at 100% 0%, rgba(111, 168, 201, .18), transparent 65%),
    var(--panel);
}
.track--orange:hover {
  transform: translateY(-6px);
  border-color: rgba(238, 155, 63, .55);
  box-shadow: 0 22px 56px rgba(238, 155, 63, .14);
}
.track--blue:hover {
  transform: translateY(-6px);
  border-color: rgba(111, 168, 201, .55);
  box-shadow: 0 22px 56px rgba(111, 168, 201, .14);
}
/* Гигантский полупрозрачный номер секции в углу */
.track__num {
  position: absolute;
  top: -28px; right: 8px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 150px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(233, 238, 244, .1);
  user-select: none;
  pointer-events: none;
}
.track--orange .track__num { -webkit-text-stroke-color: rgba(238, 155, 63, .22); }
.track--blue .track__num { -webkit-text-stroke-color: rgba(111, 168, 201, .26); }
.track__label {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 20px;
}
.track--orange .track__label {
  color: var(--orange-bright);
  border: 1px solid rgba(238, 155, 63, .45);
  background: rgba(238, 155, 63, .1);
}
.track--blue .track__label {
  color: var(--blue-bright);
  border: 1px solid rgba(111, 168, 201, .45);
  background: rgba(111, 168, 201, .1);
}
.track__title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 14px;
  max-width: 420px;
}
.track__desc {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 24px;
  max-width: 440px;
}
.track__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.track__tags span {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 6px 14px;
  transition: border-color .2s ease, color .2s ease;
}
.track--orange .track__tags span:hover { border-color: var(--orange); color: var(--orange-bright); }
.track--blue .track__tags span:hover { border-color: var(--blue); color: var(--blue-bright); }

@media (max-width: 860px) {
  .tracks { grid-template-columns: 1fr; }
  .track { padding: 32px 26px 28px; }
  .track__num { font-size: 110px; top: -20px; }
}

.notice {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 18px 24px;
  border-radius: 14px;
  background: rgba(111, 168, 201, .07);
  border: 1px dashed rgba(111, 168, 201, .35);
  color: var(--muted);
  font-size: 15px;
}
.notice__dot {
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(238, 155, 63, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(238, 155, 63, .55); }
  70% { box-shadow: 0 0 0 10px rgba(238, 155, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(238, 155, 63, 0); }
}

/* ═══════════════════════ СПИКЕРЫ ═══════════════════════ */
.speakers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
/* Скрипт сворачивает сетку до 8 карточек и показывает кнопку «Показать всех» */
.speakers--collapsed .speaker:nth-child(n+9) { display: none; }
.speakers__more-wrap { text-align: center; margin-top: 26px; }
.speakers__more[hidden] { display: none; }
.speaker {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(22, 33, 45, .55);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 26px 18px 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.speaker:hover {
  transform: translateY(-5px);
  border-color: rgba(111, 168, 201, .45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .3);
}
/* Кружок: и для <img>, и для аватара с инициалами */
.speaker__photo {
  width: 112px; height: 112px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--orange);
  box-shadow: 0 0 0 6px rgba(238, 155, 63, .12);
}
/* Аватар с инициалами на градиенте — пока нет фото. Шесть оттенков из палитры. */
.speaker__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: .02em;
  color: #13202c;
  user-select: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
}
.speaker__avatar--1 { background: linear-gradient(145deg, #ffb555, #d97f2a); }
.speaker__avatar--2 { background: linear-gradient(145deg, #8fc4e4, #4f8fb5); }
.speaker__avatar--3 { background: linear-gradient(145deg, #ffc98a, #e8862c); }
.speaker__avatar--4 { background: linear-gradient(145deg, #f3c58a, #ee9b3f); }
.speaker__avatar--5 { background: linear-gradient(145deg, #a9d4ec, #6fa8c9); }
.speaker__avatar--6 { background: linear-gradient(145deg, #7fb8d8, #3f7ea6); }
.speaker__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}
.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid var(--panel-border);
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  white-space: nowrap;
}
.badge--moderator, .badge--secretary {
  color: var(--orange-bright);
  border-color: rgba(238, 155, 63, .5);
  background: rgba(238, 155, 63, .12);
}
.badge--plenary {
  color: #16202b;
  border-color: transparent;
  background: linear-gradient(100deg, var(--orange-bright), var(--orange));
}
.badge--s1 { color: var(--orange-bright); border-color: rgba(238, 155, 63, .35); }
.badge--s2 { color: var(--blue-bright); border-color: rgba(111, 168, 201, .45); background: rgba(111, 168, 201, .1); }
.speaker__name { font-size: 16.5px; margin-bottom: 8px; line-height: 1.25; }
.speaker__role { font-size: 13.5px; color: var(--text); line-height: 1.45; }
.speaker__sub { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.speaker__topic {
  margin-top: auto;
  padding-top: 14px;
  width: 100%;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  font-style: italic;
  border-top: 1px dashed var(--panel-border);
}
.speaker__topic::before { content: 'Тема: '; font-style: normal; color: var(--blue-bright); font-weight: 500; }
.speaker__role:has(+ .speaker__topic), .speaker__sub:has(+ .speaker__topic) { margin-bottom: 14px; }
@media (max-width: 1000px) {
  .speakers { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════ РЕГИСТРАЦИЯ ═══════════════════════ */
.section--register {
  background:
    radial-gradient(ellipse 60% 80% at 80% 10%, rgba(238, 155, 63, .12), transparent),
    radial-gradient(ellipse 50% 70% at 10% 90%, rgba(111, 168, 201, .12), transparent),
    var(--bg-alt);
}
/* CTA вместо сразу видимой белой формы Timepad */
.register__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.register__note {
  font-size: 14.5px;
  color: var(--muted);
}
/* Плавное раскрытие через grid-rows: работает и когда виджет меняет высоту */
.register__collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s cubic-bezier(.4, 0, .2, 1);
}
.register__collapse.is-open { grid-template-rows: 1fr; }
.register__collapse-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .45s ease .1s, transform .45s ease .1s;
}
.register__collapse.is-open .register__collapse-inner {
  opacity: 1;
  transform: none;
}
.register__widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  min-height: 200px;
  margin-top: 28px;
}
.register__loading {
  min-height: 172px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a6a7a;
  font-size: 15px;
}
.register__fallback {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--muted);
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .register__collapse,
  .register__collapse-inner { transition: none; }
}

/* ═══════════════════════ ПАРТНЁРЫ: КАРУСЕЛЬ ═══════════════════════ */
.marquee {
  overflow: hidden;
  margin-top: 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.partner-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 18px 30px;
  white-space: nowrap;
  transition: border-color .2s ease, color .2s ease;
}
.partner-chip:hover { border-color: rgba(238, 155, 63, .5); color: var(--orange-bright); }
.partner-chip img { height: 44px; width: auto; }

/* ═══════════════════════ СПОНСОРЫ ═══════════════════════ */
.sponsor-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 10px;
}
.sponsor-stat {
  text-align: center;
  padding: 22px 16px;
  border-radius: var(--radius);
  background: rgba(238, 155, 63, .06);
  border: 1px solid rgba(238, 155, 63, .25);
}
.sponsor-stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  color: var(--orange-bright);
}
.sponsor-stat span { font-size: 14px; color: var(--muted); }

.cards--packages { grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); }

.card--sponsor {
  position: relative;
  display: flex;
  flex-direction: column;
}
.card--sponsor .checklist { flex: 1; }
.card--sponsor .btn { align-self: flex-start; }
.card--featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), 0 16px 48px rgba(238, 155, 63, .15);
}
/* Плашка «Максимум видимости»: в потоке, в правом верхнем углу карточки —
   у .card overflow:hidden, поэтому вынос за край обрезался бы */
.card__flag {
  align-self: flex-end;
  margin: -8px 0 12px;
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #16202b;
  background: linear-gradient(100deg, var(--orange-bright), var(--orange));
  border-radius: 999px;
  padding: 5px 14px;
}
.sponsor-tier {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
}
.sponsor-tier--gold { color: var(--orange-bright); }
.sponsor-tier--silver { color: var(--blue-bright); }
.sponsor-tier--blue { color: var(--muted); }
.sponsor-price {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--panel-border);
}
.sponsor-price small {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}
.sponsor-terms {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.sponsor-contact {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 34px;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(238, 155, 63, .12), transparent),
    var(--panel);
  border: 1px solid var(--panel-border);
}
.sponsor-contact__text h3 { font-size: 21px; margin-bottom: 8px; }
.sponsor-contact__text p { color: var(--muted); font-size: 14.5px; max-width: 460px; }
.sponsor-contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 980px) {
  .cards--packages { grid-template-columns: 1fr; }
}

/* ═══════════════════════ ЛОКАЦИЯ ═══════════════════════ */
.location {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}
.location__info h3 { font-size: 22px; margin-bottom: 12px; }
.location__address { color: var(--muted); margin-bottom: 20px; }
.location__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Подсказки «как добраться» */
.route-tips { list-style: none; margin: 6px 0 0; display: grid; gap: 12px; }
.route-tip {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--panel-border);
}
.route-tip__icon {
  display: grid;
  place-items: center;
  align-self: start;
  width: 38px; height: 38px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}
.route-tip__icon svg { display: block; }
.route-tip__icon--train { background: rgba(238, 155, 63, .14); color: var(--orange-bright); border: 1px solid rgba(238, 155, 63, .35); }
.route-tip__icon--car { background: rgba(111, 168, 201, .12); color: var(--blue-bright); border: 1px solid rgba(111, 168, 201, .35); }
.route-tip b { display: block; font-family: var(--font-head); font-size: 14.5px; margin-bottom: 3px; }
/* Только текст подсказки. Квадратик .route-tip__icon тоже span — широкий селектор сбивал ему display:grid и цвет. */
.route-tip > div > span { display: block; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.route-tip span a { text-decoration: underline; text-underline-offset: 2px; }

/* ── Карта: MapLibre GL + OpenFreeMap (тёмный стиль, перекрашенный в палитру лендинга), в рамке как у карточек ── */
.location__map { min-height: 420px; }
.map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(111, 168, 201, .08), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 44px),
    var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05);
  font-family: var(--font-body);
  cursor: default;
}
.map .maplibregl-canvas { outline: none; }
/* Виньетка: карта «врастает» в рамку, а не лежит поверх неё. Лежит под метками (у них z-index выше) */
.map::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 70px 4px rgba(13, 19, 27, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.map .maplibregl-marker { z-index: 2; }
.map .maplibregl-ctrl-bottom-left, .map .maplibregl-ctrl-bottom-right { z-index: 3; }
.map .maplibregl-ctrl-attrib {
  background: rgba(13, 19, 27, .72);
  color: rgba(179, 194, 209, .7);
  font-size: 10px;
  padding: 2px 8px;
  border-top-right-radius: 8px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.map .maplibregl-ctrl-bottom-left .maplibregl-ctrl { margin: 0; }
.map .maplibregl-ctrl-attrib a { color: rgba(143, 196, 228, .8); }
/* Зум — две тихие стеклянные кнопки в правом нижнем углу */
.map .maplibregl-ctrl-group {
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 14px 30px 0;
}
.map .maplibregl-ctrl-group button {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: rgba(13, 19, 27, .78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .18s ease, background .18s ease;
}
.map .maplibregl-ctrl-group button + button { border-top: 1px solid var(--panel-border); }
.map .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) opacity(.85); }
.map .maplibregl-ctrl-group button:hover { border-color: var(--orange); background: rgba(13, 19, 27, .92); }
.map .maplibregl-ctrl-group button:disabled .maplibregl-ctrl-icon { opacity: .3; }
/* Подсказка «двигайте карту двумя пальцами / ⌘ + колесо» */
.map .maplibregl-cooperative-gesture-screen {
  background: rgba(13, 19, 27, .78);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Заглушка до загрузки карты / без JS: тёмная «сетка» со ссылкой на Яндекс Карты */
.map__fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  color: var(--text);
  transition: opacity .5s ease;
}
.map__fallback b { font-family: var(--font-head); font-size: 17px; }
.map__fallback > span:last-child { font-size: 13.5px; color: var(--muted); }
.map__fallback:hover > span:last-child { color: var(--orange-bright); }
.map__fallback-pin {
  width: 18px; height: 18px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(238, 155, 63, .18), 0 0 24px rgba(238, 155, 63, .6);
}
.map.is-ready .map__fallback { opacity: 0; pointer-events: none; }

/* Кастомные метки (divIcon) — пин, пульс и карточка-подпись */
.pin { position: relative; width: 0; height: 0; }
.pin__dot {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(140deg, var(--orange-bright), var(--orange));
  border: 3px solid #0d131b;
  box-shadow: 0 0 0 2px rgba(238, 155, 63, .55), 0 4px 18px rgba(238, 155, 63, .55);
}
.pin__ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--orange-bright);
  transform: translate(-50%, -50%);
  animation: pin-pulse 2.4s ease-out infinite;
  opacity: 0;
}
.pin__ring--2 { animation-delay: 1.2s; }
@keyframes pin-pulse {
  0%   { transform: translate(-50%, -50%) scale(.6); opacity: .85; }
  100% { transform: translate(-50%, -50%) scale(4.2); opacity: 0; }
}
.pin__card {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 10px 14px 9px;
  border-radius: 12px;
  background: rgba(13, 19, 27, .86);
  border: 1px solid rgba(238, 155, 63, .45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  line-height: 1.3;
}
.pin__card::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -6px;
  width: 10px; height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(13, 19, 27, .9);
  border-right: 1px solid rgba(238, 155, 63, .45);
  border-bottom: 1px solid rgba(238, 155, 63, .45);
}
.pin__card b { display: block; font-family: var(--font-head); font-size: 14px; color: var(--text); }
.pin__card span { display: block; font-size: 12px; color: var(--orange-bright); margin-top: 2px; }
/* Вторичная метка — станция МЦД, голубая и потише */
.pin--station .pin__dot {
  width: 12px; height: 12px;
  background: var(--blue-bright);
  box-shadow: 0 0 0 2px rgba(111, 168, 201, .45), 0 2px 12px rgba(111, 168, 201, .5);
}
.pin--station .pin__card {
  bottom: 16px;
  padding: 6px 10px;
  border-color: rgba(111, 168, 201, .4);
}
.pin--station .pin__card::after { border-color: rgba(111, 168, 201, .4); }
.pin--station .pin__card b { font-size: 12px; }
.pin--station .pin__card span { color: var(--blue-bright); font-size: 11px; }
@media (max-width: 900px) {
  .location__map, .map { min-height: 400px; }
  .pin__card b { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .pin__ring { animation: none; opacity: .5; transform: translate(-50%, -50%) scale(1.8); }
}

/* ═══════════════════════ ФИНАЛЬНЫЙ ПРИЗЫВ ═══════════════════════ */
.section--cta { text-align: center; }
/* Финальный призыв — панель с градиентной рамкой и внутренним свечением */
.cta {
  position: relative;
  border-radius: 30px;
  padding: 72px 40px 66px;
  overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #151f2b, #0f1620) padding-box,
    linear-gradient(120deg, rgba(238, 155, 63, .55), rgba(111, 168, 201, .45), rgba(238, 155, 63, .3)) border-box;
}
.cta::before {
  content: '';
  position: absolute;
  top: -140px; left: 50%;
  width: 640px; height: 300px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(238, 155, 63, .22), transparent 70%);
  pointer-events: none;
}
/* Вариант с фото: затемнённый общий план зала под градиентом */
.cta--photo {
  background:
    linear-gradient(180deg, rgba(13, 19, 27, .82), rgba(13, 19, 27, .9)) padding-box,
    url('assets/photos/past-08.jpg') center 40% / cover no-repeat padding-box,
    linear-gradient(120deg, rgba(238, 155, 63, .55), rgba(111, 168, 201, .45), rgba(238, 155, 63, .3)) border-box;
}
@supports (background-image: image-set(url('a.webp') type('image/webp'))) {
  .cta--photo {
    background:
      linear-gradient(180deg, rgba(13, 19, 27, .82), rgba(13, 19, 27, .9)) padding-box,
      image-set(url('assets/photos/past-08.webp') type('image/webp'), url('assets/photos/past-08.jpg') type('image/jpeg')) center 40% / cover no-repeat padding-box,
      linear-gradient(120deg, rgba(238, 155, 63, .55), rgba(111, 168, 201, .45), rgba(238, 155, 63, .3)) border-box;
  }
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; margin-bottom: 14px; }
.cta p { color: var(--muted); font-size: 17px; margin-bottom: 32px; }

/* ═══════════════════════ ФУТЕР ═══════════════════════ */
.footer {
  border-top: 1px solid var(--panel-border);
  background: var(--bg-alt);
  padding: 56px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.logo-svg--footer { height: 56px; margin-bottom: 18px; }
.footer__col h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer__col p { margin-bottom: 8px; font-size: 15px; color: var(--muted); }
.footer__bottom {
  border-top: 1px solid var(--panel-border);
  padding-top: 20px;
  padding-bottom: 24px;
}
.footer__bottom p { font-size: 14px; color: var(--muted); }

/* ═══════════════════════ ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ ═══════════════════════ */
/* Класс .reveal навешивает скрипт — без JS всё видно сразу */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__ring::before, .marquee__track, .notice__dot,
  .hero__glow--orange, .hero__glow--blue { animation: none; }
  .talks__panel { animation: none; }
  .hero__badge, .hero__title, .hero__offer,
  .hero__meta, .hero__actions, .countdown {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .btn--primary::after { display: none; }
}

/* ═══════════════════════ АДАПТИВ ═══════════════════════ */
@media (max-width: 900px) {
  .about, .location { grid-template-columns: 1fr; gap: 36px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .program__item { grid-template-columns: 1fr; }
  .program__item h3, .program__item p { grid-column: 1; }
  .program__badge { grid-row: auto; margin-bottom: 6px; }
}

@media (max-width: 760px) {
  .header__nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    /* Плотный фон: сквозь меню не должен просвечивать контент */
    background: #0f1620;
    border-bottom: 1px solid var(--panel-border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .45);
    padding: 12px 24px 22px;
    display: none;
  }
  .header__nav.is-open { display: flex; }
  .header__nav a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.05); }
  .header__nav a::after { display: none; }
  /* Кнопка регистрации внизу мобильного меню */
  .header__nav .nav__cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 16px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #16202b;
    border-bottom: none;
  }
  .header__nav .nav__cta:hover { color: #16202b; }
  /* Компактная «Регистрация» в хедере рядом с бургером */
  .header__inner { gap: 12px; }
  .logo-svg { height: 40px; }
  .header__cta { margin-left: auto; padding: 9px 14px; font-size: 13.5px; }
  .burger { display: flex; margin-left: 0; padding: 8px 4px; }
  .hero { padding: 56px 0 50px; }
  .hero__ring { width: 420px; height: 420px; right: -200px; top: -60px; }
  .hero__ring::before { inset: 45px; }
  .hero__ring::after { inset: 95px; }
  .hero__year { bottom: -24px; }
  .section { padding: 64px 0; }
  .countdown { width: 100%; }
  .countdown__cell { flex: 1; min-width: 0; }
  /* Спикеры компактнее: две колонки вместо длинного столбца */
  .speakers { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .speaker { padding: 20px 12px 18px; }
  .speaker__photo { width: 84px; height: 84px; margin-bottom: 12px; }
  .speaker__avatar { font-size: 25px; }
  .speaker__name { font-size: 14.5px; }
  .speaker__role { font-size: 12.5px; }
  .speaker__sub { font-size: 12px; }
  .speaker__topic { font-size: 12.5px; padding-top: 10px; }
  /* Длинные бейджи («Пленарный доклад») переносятся, а не растягивают колонку */
  .badge { font-size: 11px; padding: 3px 9px; letter-spacing: .04em; white-space: normal; max-width: 100%; line-height: 1.3; }
  .cta { padding: 52px 22px 48px; }
}
