/* ==========================================================================
   МагИИ — /launch (мероприятие «Магия искусственного интеллекта»)
   Подключается поверх style.css. Правила проекта те же:
   никаких свечений и серых рамок — только flat-заливки и чистые переходы.
   ========================================================================== */

/* ---------- hero: штриховая графика вместо фотографии ----------
   Композиция: заголовок и подзаголовок слева, снизу — линия горизонта
   и плашка с датой и адресом.                                        */

.hero--art .hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 0;
  position: relative;
}

/* линия горизонта над плашкой: крыши, нотный стан и парапет */
.hero-skyline {
  width: 100%;
  margin-top: 22px;
  pointer-events: none;
  animation: heroIn 0.9s var(--ease-out) 0.6s both;
}
.hero-skyline svg { display: block; width: 100%; height: auto; }
/* стан прочерчивается, ноты проявляются следом */
.skyline__staff path,
.skyline__staff use {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: staffDraw 1.8s var(--ease-out) 0.9s forwards;
}
@keyframes staffDraw { to { stroke-dashoffset: 0; } }
.skyline__notes { animation: heroIn 0.8s var(--ease-out) 1.5s both; }

/* заголовок и подзаголовок — слева; заголовок на десктопе в одну строку */
.hero-title {
  position: relative;
  z-index: 1;
  margin: 0;
  white-space: nowrap;
  font-size: clamp(1.9rem, 3.45vw, 2.95rem);
  animation: heroIn 0.8s var(--ease-out) 0.1s both;
}
.hero-lead {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--text-2);
  font-size: clamp(16px, 2vw, 19px);
  animation: heroIn 0.8s var(--ease-out) 0.22s both;
}
.hero--art .hero__cta { margin-top: 34px; animation: heroIn 0.7s var(--ease-out) 0.42s both; }

/* плашка с датой и адресом — нижняя опора композиции */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 40px;
  width: 100%;
  margin-top: 36px;
  padding: 26px 34px;
  background: var(--surface);
  border-radius: 22px;
  list-style: none;
  animation: heroIn 0.7s var(--ease-out) 0.54s both;
}
.hero-facts li { display: flex; align-items: flex-start; gap: 15px; }
.hero-facts svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--accent); }
.hero-facts span { font-size: 15px; color: var(--text-2); line-height: 1.5; }
.hero-facts b { color: var(--text); font-weight: 500; }

/* ---------- чипы дата/время/место ---------- */

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.event-meta li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14.5px;
}
.event-meta svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.hero .event-meta { animation: heroIn 0.7s var(--ease-out) 0.36s both; }

/* ---------- каким будет вечер: два кадра с террасы ---------- */

.vibe .section-head { margin-bottom: 44px; }

.vibe__shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.vibe__shot {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  aspect-ratio: 16 / 9;
  margin: 0;
}
.vibe__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.vibe__shot:hover img { transform: scale(1.04); }

.vibe__notes { margin-top: 52px; }

/* ---------- программа: таймлайн ---------- */

.timeline {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}
.timeline li {
  display: grid;
  grid-template-columns: 124px 1fr;
  grid-template-areas: "art body";
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border-radius: 16px;
  padding: 24px 28px;
  transition: transform 0.25s var(--ease-out), background-color 0.25s ease;
}
.timeline li:hover { transform: translateY(-4px); background: #1C1F26; }
.timeline__body { grid-area: body; }
/* время — строка над заголовком карточки, без плашки */
.timeline__time {
  display: block;
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  margin-bottom: 10px;
}
/* графика пункта программы */
.timeline__art {
  grid-area: art;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  border-radius: 14px;
  height: 124px;
  margin: 0;
}
.timeline__art svg { width: 88px; height: 88px; }
.timeline__body h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.timeline__body p { color: var(--text-2); font-size: 14.5px; }

/* ---------- ценность МагИИ: карусель мокапов ---------- */

.mocks .section-head { margin-bottom: 44px; }

/* окно ленты: по краям кадры растворяются в фоне — маской, а не заливкой,
   поэтому работает на любом фоне секции */
.mocks__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
}

/* два одинаковых комплекта кадров едут влево; сдвиг ровно на половину
   ширины ленты — момент склейки не виден */
.mocks__row {
  display: flex;
  width: max-content;
  gap: 26px;
  list-style: none;
  animation: mocksScroll 70s linear infinite;
}
.mocks__viewport:hover .mocks__row { animation-play-state: paused; }

@keyframes mocksScroll {
  /* половина ширины = один комплект + один зазор между комплектами */
  to { transform: translateX(calc(-50% - 13px)); }
}

.mocks__slide { flex: 0 0 auto; width: 300px; }
.mocks__slide img { display: block; width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) {
  /* без движения лента становится обычной прокруткой пальцем */
  .mocks__row { animation: none !important; transform: none !important; }
  .mocks__viewport { overflow-x: auto; scrollbar-width: none; }
  .mocks__viewport::-webkit-scrollbar { display: none; }
}

/* ---------- где встречаемся: всё по центру, карта снизу ---------- */

.venue .section-head { margin-bottom: 36px; }
/* два кадра террасы перед карточками с адресом */
.venue__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto 34px;
}
.venue__shot {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  aspect-ratio: 3 / 2;
}
.venue__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.venue__shot:hover img { transform: scale(1.04); }
/* две карточки-бейджа: наплывают на карту */
.venue__cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 820px;
  margin: 0 auto 48px;
}
.venue__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
  border-radius: 20px;
  padding: 28px 30px;
  text-align: left;
}
.venue__card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.venue__addr { font-size: 15.5px; color: var(--text-2); }
.venue__site { margin-top: 8px; font-size: 15px; }
.venue__site a { color: var(--accent); text-decoration: none; }
.venue__site a:hover { text-decoration: underline; }
.venue__how { color: var(--text-2); font-size: 15px; }
/* карта во всю ширину экрана, тёмная тема — как в референсе */
.venue { padding-bottom: 0; }
.venue__map { width: 100%; }
.venue__map iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
  /* карта практически ч/б: обесцвечиваем и приглушаем тайлы виджета */
  filter: grayscale(1) brightness(0.8) contrast(1.1);
}

@media (max-width: 880px) {
  .venue__map iframe { height: 340px; }
  .venue__cards { grid-template-columns: 1fr; gap: 14px; }
  .venue__gallery { grid-template-columns: 1fr; gap: 14px; margin-bottom: 26px; }
}

/* ---------- регистрация (блок перед футером — на --bg-blue, не чёрный) ---------- */

.register .event-meta { margin-top: 0; }

/* ссылка на Evola в заголовке — наследует цвет, подчёркнута, подсвечивается акцентом */
.proof__brand {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  transition: color 0.2s ease;
}
.proof__brand:hover { color: var(--accent); }

/* ---------- адаптив ---------- */

@media (max-width: 880px) {
  .hero .event-meta { justify-content: center; }

  /* на телефоне колонка по центру */
  .hero--art .hero__inner { align-items: center; text-align: center; }
  /* одна строка не помещается — возвращаем перенос */
  .hero-title { white-space: normal; font-size: 1.45rem; }
  .hero-lead { max-width: none; margin-top: 14px; font-size: 14.5px; }
  .hero--art .hero__cta { justify-content: center; }
  .hero-skyline { margin-top: 18px; }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 34px;
    padding: 22px 24px;
    text-align: left;
  }

  .timeline li { grid-template-columns: 96px 1fr; gap: 18px; padding: 20px 22px; }
  .timeline__body h3 { font-size: 1.06rem; }
  .timeline__time { font-size: 17.5px; margin-bottom: 8px; }
  .timeline__art { height: 96px; }
  .timeline__art svg { width: 68px; height: 68px; }

  /* два кадра встают друг под друга */
  .vibe__shots { grid-template-columns: 1fr; gap: 14px; }
  .vibe__notes { margin-top: 38px; }
}

@media (max-width: 520px) {
  .event-meta li { padding: 9px 14px; font-size: 13.5px; }
  .mocks__slide { width: 216px; }
  .mocks__row { gap: 18px; animation-duration: 52s; }
  /* зазор другой — поправляем и точку склейки */
  @keyframes mocksScroll { to { transform: translateX(calc(-50% - 9px)); } }
  .venue__card { padding: 24px 22px; }
  .venue__cards { margin-bottom: 36px; }
}
