:root {
  --red: #cc0000;
  --light: #e0e2db;
  --secondary: #7e7f9a;
  --dark: #2a2b2e;
  --darkest: #171d1c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--dark);
  color: var(--light);
  font-family: 'Inter', sans-serif;
  display: flex;
  overflow-x: hidden;
}

.sidebar {
  position: fixed;
  right: 0;
  top: 0;
  width: 260px;
  height: 100vh;
  background: var(--darkest);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1000;
  transition: right 0.3s ease; /* Добавлено для плавности */
}

.sidebar.open {
    right: 0;
  }

.sidebar .city {
  font-family: 'Oxanium', sans-serif;
  font-size: 20px;
  margin-bottom: 10px;
}

.coords {
  font-family: 'M PLUS 1 Code', monospace;
  color: var(--secondary);
  margin-bottom: 10px;
  white-space: nowrap;
  font-size: 14px;
}

.sidebar .date,
.sidebar .place {
  font-size: 16px;
  color: var(--secondary);
  margin-bottom: 20px;
}

.menu a {
  display: block;
  margin: 12px 0;
  color: var(--light);
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}
.menu a:hover, .menu a:focus {
  color: var(--red);
}

.social a {
  color: var(--light);
  text-decoration: none;
  margin-right: 12px;
  font-size: 18px;
}

.main-wrapper {
  width: calc(100% - 260px);
  margin-right: 260px;
  transition: width 0.3s ease, margin-right 0.3s ease;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100% - 260px);
  background: var(--red);
  padding: 16px 40px;
  font-family: 'Oxanium', sans-serif;
  font-size: 24px;
  z-index: 900;
  transition: width 0.3s ease;
}

main {
  margin-top: 60px;
}

.hero {
  position: relative;
  height: 175vh;
  background: url('versus.png') center center / cover no-repeat fixed;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(23,29,28,0.7);
  z-index: 2;
}

.hero-text {
  position: relative;
  height: 175vh;
  z-index: 3;
}

.text-block {
  position: absolute;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 10%;
  font-family: 'Rubik One', sans-serif;
  color: var(--light);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.text-block.active {
  opacity: 1;
}

.block1 {
  top: 0;
  justify-content: flex-start;
}

.block2 {
  top: 100vh;
  flex-direction: column;
  align-items: flex-start;
}

.hero-text h1, .hero-text h2 {
  font-size: 56px;
  line-height: 1.3;
}

.block1 h1 {
  text-align: left;
}

.block2 h2 {
  text-align: right;
  white-space: normal;
  width: 100%;
}

.red { color: var(--red); }

.hero-text button {
  background: var(--red);
  color: var(--light);
  padding: 16px 50px;
  border: none;
  font-size: 22px;
  font-family: 'Rubik One', sans-serif;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.hero-text button:hover, .hero-text button:focus {
  background: #b30000;
  transform: scale(1.05);
}

.block2 .action-button {
  margin-top: 66px;
  margin-left: 15%;
  margin-right: 0;
  transform: none;
}

section {
  position: relative;
  z-index: 4;
  padding: 100px 60px;
  background: var(--dark);
}

section h2 {
  font-family: 'Rubik', sans-serif;
  color: var(--light);
  margin-bottom: 30px;
  font-size: 32px;
  font-weight: 700;
}

section p {
  line-height: 1.7;
  max-width: 900px;
  font-size: 18px;
}

/* Enhanced table styles */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 30px;
  color: var(--light);
  background: var(--darkest);
  border-radius: 8px;
  overflow: hidden;
}

table th, table td {
  border: 1px solid var(--secondary);
  padding: 16px;
  text-align: left;
  transition: background 0.3s ease;
}

table th {
  background-color: var(--darkest);
  font-family: 'Rubik One', sans-serif;
  font-size: 18px;
  font-weight: 400;
}

table td {
  font-size: 16px;
  background: var(--dark);
}

table tr:hover td {
  background: var(--secondary);
  color: var(--darkest);
}

/* Collapsible list styles */
section details {
  margin-bottom: 15px;
  background: var(--darkest);
  border-radius: 6px;
  overflow: hidden;
}

section summary {
  padding: 15px;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--light);
  cursor: pointer;
  background: var(--dark);
  transition: background 0.3s ease;
}

section summary:hover {
  background: var(--secondary);
}

section details[open] summary {
  background: var(--red);
  color: var(--light);
}

section details p, section details ul {
  padding: 15px;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

section ul li {
  margin-bottom: 10px;
  line-height: 1.5;
}

section#faq p strong {
  color: var(--red);
  font-size: 20px;
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .main-wrapper {
    width: 100%;
    margin-right: 0;
  }

  .topbar {
    width: 100%;
    font-size: 20px;
    padding: 12px 20px;
  }

  .hero-text h1, .hero-text h2 {
    font-size: 36px;
    text-align: center;
  }

  .hero-text button {
    padding: 12px 30px;
    font-size: 18px;
  }

  .block2 {
    flex-direction: column;
    align-items: center;
  }

  .block2 .action-button {
    margin-right: 0;
    margin-bottom: 30px;
    margin-top: 30px;
    margin-left: 0;
    transform: none;
  }

  .block2 h2 {
    transform: none;
    text-align: center;
  }

  section {
    padding: 50px 20px;
  }

  table th, table td {
    padding: 8px;
    font-size: 14px;
  }

  section#faq p strong {
    font-size: 18px;
  }

  section summary {
    font-size: 16px;
  }

  section details p, section details ul {
    font-size: 14px;
  }
}

.menu a:focus, .hero-text button:focus, .buy-ticket-button:focus {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.action-button {
  background: var(--red);
  color: var(--light);
  padding: 16px 50px;
  border: none;
  font-size: 22px;
  font-family: 'Rubik One', sans-serif;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.action-button:hover,
.action-button:focus {
  background: #b30000;
  transform: scale(1.05);
}

/* Бургер-кнопка */
.burger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0; /* Убираем padding, чтобы символ был по центру */
  display: none; /* Скрываем по умолчанию */
  color: var(--light); /* Цвет символа */
  font-size: 30px; /* Размер символа */
  line-height: 1; /* Для центрирования символа */
  width: 40px; /* Ширина кнопки */
  height: 40px; /* Высота кнопки */
  text-align: center;
  z-index: 1100; /* Убедимся, что кнопка выше всего */
  display: none; /* Используем flexbox для центрирования символа */
  align-items: center;
  justify-content: center;
}

/* Удалите все стили .burger span, .burger.open span, .burger.back span */
/* Например, вот так: */
.burger span {
  /* Эти стили больше не нужны */
  display: none;
}


/* Мобильный вид */
@media (max-width: 768px) {
  .burger {
    display: flex; /* Делаем кнопку видимой на мобильных */
    position: fixed; /* Фиксированное позиционирование */
    left: 10px;
    top: 8px; /* Отступ сверху, чтобы было больше места */
    z-index: 1100;
  }

  .sidebar {
    position: fixed;
    top: 0;
    right: -260px; /* Скрываем меню за пределами экрана */
    height: 100%;
    width: 260px;
    background: var(--darkest);
    padding: 20px;
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1002; /* Увеличиваем z-index, чтобы сайдбар был поверх топбара */
  }

  .sidebar.open {
    right: 0; /* Показываем меню */
  }

  .main-wrapper {
    margin-right: 0;
    width: 100%;
  }

  .topbar {
    min-height: 56px;
    padding: 12px 20px 12px 60px; /* Увеличиваем padding-left для размещения кнопки, уменьшаем padding-right */
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001; /* Z-index топбара ниже сайдбара, но выше основного контента */
  }

  .topbar .logo-text {
    flex-grow: 1;
    text-align: center; /* Центрируем логотип */
    margin-left: 20px; /* Добавляем небольшой отступ, чтобы текст не слишком наезжал на кнопку */
  }

  main {
    margin-top: 56px; /* Добавляем отступ для основного контента */
  }
}