/* Значения по умолчанию на случай, если inline-стиль с цветами из config.json не подгрузится. */
:root {
  --accent: #e11d2a;
  --bg: #0b0b0f;
  --text: #f2f2f5;
  --muted: color-mix(in srgb, var(--text) 65%, transparent);
  --card: color-mix(in srgb, var(--text) 6%, var(--bg));
  --border: color-mix(in srgb, var(--text) 12%, transparent);
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  /* Системные шрифты вместо Google Fonts: нет лишнего запроса, и страница рисуется сразу. */
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Шапка ---------- */

.hero {
  padding: 72px 0 56px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

/* Пользователям с отключённой анимацией в системе мигающая точка не нужна. */
@media (prefers-reduced-motion: reduce) {
  .hero__dot {
    animation: none;
  }
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 7vw, 52px);
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero__sub {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 18px;
  color: var(--muted);
}

/* ---------- Кнопка ---------- */

.button {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.button:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

/* ---------- Секции ---------- */

.section {
  margin: 32px 0;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.section h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
}

.section p {
  margin: 0 0 12px;
}

.section p:last-child {
  margin-bottom: 0;
}

.section--cta {
  text-align: center;
  background: none;
  border: none;
}

/* Плеер 16:9, тянется по ширине контейнера. */
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Расписание ---------- */

.schedule {
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule li {
  display: grid;
  grid-template-columns: 120px 110px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.schedule li:first-child {
  border-top: 0;
  padding-top: 0;
}

.schedule__day {
  font-weight: 700;
}

.schedule__time {
  color: var(--accent);
  font-weight: 700;
}

.schedule__note {
  color: var(--muted);
}

/* На узком экране три колонки не помещаются: заметку переносим на отдельную строку. */
@media (max-width: 520px) {
  .schedule li {
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
  }

  .schedule__note {
    grid-column: 1 / -1;
  }
}

/* ---------- FAQ ---------- */

details {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}

details:first-of-type {
  border-top: 0;
  padding-top: 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p {
  margin: 8px 0 0;
  color: var(--muted);
}

/* ---------- Соцсети ---------- */

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.socials a {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Подвал ---------- */

.footer {
  padding: 24px 0 40px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
