/* ── events.css — восстановлен (файл отсутствовал) ── */

:root {
  --card: #12151D;
  --card-border: var(--border-default);
  --text-dim: #a7c4d8;
  --text-dimmer: #7391a8;
  --pill-bg: rgba(255,255,255,.05);
}

/* Контейнер /events тянется на всю ширину с отступами 120px,
   чтобы контент шёл по одной линии с шапкой (как на /news). */
.container { max-width: none; padding: 0 120px; }

/* ── HERO ── */
.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  aspect-ratio: 1440/620;
  max-height: 60vh;
  background-color: #0A0C11;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 0 40px;
  margin-bottom: 60px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/events-hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,10,18,0.15) 0%, rgba(4,10,18,0.35) 50%, rgba(4,10,18,0.6) 100%);
}
.hero h1, .hero p {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 72px;
  line-height: 100%;
  letter-spacing: 0;
  color: #E2E2E5;
  text-transform: none;
  margin-bottom: 20px;
}
.hero p {
  max-width: 680px;
  margin: 0 auto;
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #E2E2E5;
}
/* На /events в этот же .hero подмешивается calendar.css (нужен для
   вкладки "Календарь") — его правила .hero h1/.hero p грузятся позже
   events.css и перебивают эти. Фиксируем через #heroTitle/#heroSubtitle:
   эти id есть только в этой странице, их специфичность выше классовых
   правил calendar.css независимо от порядка подключения <link>. */
#heroTitle {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 72px;
  line-height: 100%;
  letter-spacing: 0;
  color: #E2E2E5;
  text-transform: none;
  margin: 0 0 20px;
}
#heroSubtitle {
  max-width: none;
  white-space: nowrap;
  margin: 0 auto;
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 100%;
  letter-spacing: 0;
  color: #E2E2E5;
}

/* ── SECTION LABEL ── */
.section-label {
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px;
}
.section-label span {
  font-family: 'Rubik', sans-serif;
  font-size: 36px; font-weight: 500; line-height: 100%; letter-spacing: 0;
  text-transform: none;
  color: #E2E2E5; white-space: nowrap;
}
.section-label::after { content: none; }

/* ── GAME FILTER (top-right chips) ── */
.game-filter-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: 'Rubik', sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .3px;
  cursor: pointer;
  transition: color .2s;
}
.game-filter-btn:hover { color: #E2E2E5; }
.game-filter-btn.active.ets2, .game-filter-btn.active.ats { color: var(--accent); }

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 20px;
  margin-bottom: 50px;
}
.no-events, .error-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  border: 1px dashed rgba(119,255,237,.18);
  border-radius: var(--radius);
  font-size: 14px;
}
.no-events { color: #9BA1AE; border-style: solid; border-color: var(--border-default); box-sizing: border-box; }
.error-msg { color: #ff9a9a; border-color: rgba(255,120,120,.25); }

/* ── EVENT CARD ──
   Базовые стили карточки вынесены в event-card.css (общий компонент,
   используется также на главной странице). Здесь остаётся только
   специфичное для /events поведение фильтрации. */
.event-card.filter-hidden {
  opacity: 0;
  transform: scale(.94);
  filter: blur(2px);
  pointer-events: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .events-topbar { flex-direction: column; align-items: stretch; }
  .game-filter-right { justify-content: center; }
  .section-label span { font-size: 26px; }
}
