/* ================= БАЗОВЫЕ НАСТРОЙКИ ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #0d0d0d;
  color: #ffffff;
  line-height: 1.3;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

/* ================= БЛОК 1: ГЛАВНЫЙ ЭКРАН (HERO) ================= */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.1) 40%,
      rgba(0, 0, 0, 0.4) 100%
    ),
    url('img/1.jpg') no-repeat center center / cover;
  display: flex;
  flex-direction: column;
}

.hero-container {
  width: 100%;
  max-width: 1600px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 35px 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* --- Верхняя часть экрана --- */
.hero-top {
  display: flex;
  flex-direction: column;
}

/* Кнопка бургера скрыта на компьютерах и планшетах */
.burger-btn {
  display: none;
}

.hero-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 45px;
}

.hero-nav-item {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #e0e0e0;
}

.hero-nav-separator {
  color: #888888;
  font-weight: 300;
  user-select: none;
}

/* Логотип и заголовок слева вверху */
.hero-brand {
  display: flex;
  align-items: center;
  gap: 30px;
  align-self: flex-start;
}

.hero-logo svg {
  width: 150px;
  height: 150px;
  display: block;
}

.hero-title {
  font-size: 54px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: #ffffff;
}

/* --- Нижняя часть экрана справа внизу --- */
.hero-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-top: auto;
}

.hero-info {
  text-align: right;
}

.hero-subtitle {
  font-size: 19px;
  font-weight: 300;
  line-height: 1.35;
  color: #dcdcdc;
  margin-bottom: 20px;
}

.hero-dates {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.hero-date-num {
  color: #ffffff;
}

.hero-date-sep {
  color: #96609C;
  font-weight: 400;
}

/* ================= АДАПТАЦИЯ (ПЛАНШЕТЫ И СМАРТФОНЫ) ================= */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .hero-container {
    padding: 30px 40px 40px;
  }

  .hero-nav {
    gap: 12px;
    margin-bottom: 35px;
  }

  .hero-nav-item {
    font-size: 13px;
  }

  .hero-logo svg {
    width: 120px;
    height: 120px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .hero-dates {
    font-size: 28px;
    gap: 8px;
  }
}

/* Смартфоны (до 768px) */
@media (max-width: 768px) {
  .hero-container {
    padding: 25px 20px 40px;
    gap: 40px;
  }

  /* Показываем кнопку бургера в правом верхнем углу */
  .burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 30px;
    right: 20px;
    z-index: 100;
  }

  .burger-btn span {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
  }

  /* Анимация крестика */
  .burger-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .burger-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .burger-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Выезжающее мобильное меню */
  .hero-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(13, 13, 13, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin-bottom: 0;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 99;
  }

  .hero-nav.active {
    right: 0;
  }

  .hero-nav-item {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.1em;
  }

  .hero-nav-separator {
    display: none;
  }

  .hero-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero-logo svg {
    width: 100px;
    height: 100px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-bottom {
    justify-content: flex-start;
  }

  .hero-info {
    text-align: left;
  }

  .hero-dates {
    justify-content: flex-start;
    font-size: 24px;
    flex-wrap: wrap;
  }

  .hero-subtitle {
    font-size: 15px;
  }
}
/* ================= БЛОК 2: О ФЕСТИВАЛЕ ================= */
.about-section {
  position: relative;
  min-height: 100vh;
  /* Подключаем фоновое изображение второго блока */
  background: url('img/2.jpg') no-repeat center center / cover;
  display: flex;
  flex-direction: column;
}

.about-container {
  width: 100%;
  max-width: 1600px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 70px 60px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Левый блок с текстом и заголовком */
.about-left {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 45px;
}

.about-text-top {
  font-size: 20px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  color: #111111;
}

.about-title {
  font-size: 48px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #000000;
  text-transform: uppercase;
}

/* Фиолетовый акцент для приставки АРТ- */
.about-title .accent-purple {
  color: #845298;
}

/* Правый нижний блок */
.about-right {
  align-self: flex-end;
  max-width: 520px;
  margin-top: auto;
}

.about-text-bottom {
  font-size: 20px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  color: #ffffff;
  /* Тень текста для читаемости на любом фоне горы */
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* ================= АДАПТАЦИЯ БЛОКА 2 ================= */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .about-container {
    padding: 50px 40px 50px;
  }

  .about-left {
    max-width: 480px;
    gap: 35px;
  }

  .about-text-top {
    font-size: 18px;
  }

  .about-title {
    font-size: 38px;
  }

  .about-right {
    max-width: 460px;
  }

  .about-text-bottom {
    font-size: 18px;
  }
}

/* Смартфоны (до 768px) */
@media (max-width: 768px) {
  .about-container {
    padding: 40px 20px 40px;
    gap: 50px;
  }

  .about-left {
    max-width: 100%;
    gap: 30px;
  }

  .about-text-top {
    font-size: 16px;
  }

  .about-title {
    font-size: 30px;
  }

  /* На смартфонах выравниваем нижний блок по левому краю для удобства чтения */
  .about-right {
    align-self: flex-start;
    max-width: 100%;
  }

  .about-text-bottom {
    font-size: 16px;
    /* Усиливаем тень для читаемости при мобильной обрезке фона */
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
  }
}

/* ================= БЛОК 3: МИССИЯ ФЕСТИВАЛЯ ================= */
.mission-section {
  background-color: #ffffff;
  color: #3a2626;
  padding: 100px 0;
}

.mission-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 50px;
  align-items: stretch;
}

/* --- Левая колонка --- */
.mission-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.mission-heading-block {
  padding-top: 15px;
}

.mission-title {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #3a2626;
  margin-bottom: 50px;
}

.mission-lead {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: #3a2626;
}

/* Нижний блок слева: текст + вертикальное фото */
.mission-sub-block {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 25px;
}

.mission-text-right {
  text-align: right;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  color: #3a2626;
  margin-bottom: 10px;
}

.mission-img-ruins {
  width: 230px;
  height: 310px;
  flex-shrink: 0;
}

/* --- Правая колонка --- */
.mission-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 25px;
}

.mission-right-top {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  align-items: start;
}

.mission-img-girl {
  width: 100%;
  height: 300px;
}

.mission-logo-text {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.mission-logo svg {
  width: 115px;
  height: 115px;
  display: block;
}

.mission-desc {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  color: #3a2626;
}

/* Нижнее широкое фото справа */
.mission-img-concert {
  width: 100%;
  height: 390px;
}

/* Общие стили для контейнеров картинок */
.mission-img-wrapper {
  overflow: hidden;
  background-color: #f0f0f0;
}

.mission-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================= АДАПТАЦИЯ БЛОКА 3 ================= */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .mission-section {
    padding: 70px 0;
  }

  .mission-container {
    padding: 0 40px;
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .mission-left {
    gap: 50px;
  }

  .mission-title {
    font-size: 36px;
    margin-bottom: 30px;
  }

  .mission-sub-block {
    justify-content: flex-start;
  }

  .mission-text-right {
    text-align: left;
    font-size: 18px;
  }

  .mission-right-top {
    grid-template-columns: 200px 1fr;
    gap: 25px;
  }

  .mission-img-girl {
    height: 260px;
  }

  .mission-img-concert {
    height: 320px;
  }
}

/* Смартфоны (до 768px) */
@media (max-width: 768px) {
  .mission-section {
    padding: 50px 0;
  }

  .mission-container {
    padding: 0 20px;
    gap: 45px;
  }

  .mission-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .mission-lead {
    font-size: 16px;
  }

  /* Перестраиваем блоки с фото в вертикальный стек на мобильных */
  .mission-sub-block {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 20px;
  }

  .mission-img-ruins {
    width: 100%;
    height: 260px;
  }

  .mission-text-right {
    font-size: 16px;
  }

  .mission-right-top {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .mission-img-girl {
    height: 280px;
  }

  .mission-desc {
    font-size: 16px;
  }

  .mission-img-concert {
    height: 240px;
  }
}

/* ================= БЛОК 4: НАПОЛНЕНИЕ ================= */
.content-section {
  background-color: #ffffff;
  color: #111111;
  padding: 100px 0 80px;
  overflow: hidden;
}

.content-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 60px;
}

/* --- Шапка (Логотип, Заголовок, Кнопка) --- */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 70px;
}

.content-brand {
  display: flex;
  align-items: center;
  gap: 30px;
}

.content-logo svg {
  width: 120px;
  height: 120px;
  display: block;
}

.content-title {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #111111;
  text-transform: uppercase;
}

.content-btn {
  background-color: #744A8B;
  color: #ffffff;
  font-size: 18px;
  font-weight: 400;
  padding: 16px 38px;
  display: inline-block;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.content-btn:hover {
  background-color: #633e77;
  opacity: 1;
}

/* --- Горизонтальный таймлайн --- */
.timeline-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

/* Сплошная пунктирная линия сквозь весь таймлайн */
.timeline-grid::after {
  content: '';
  position: absolute;
  top: 162px; /* Ровно по центру узла с засечками */
  left: 0;
  width: 100%;
  border-top: 2px dashed #666666;
  z-index: 1;
}

.timeline-col {
  display: grid;
  grid-template-rows: 150px 24px auto;
}

/* Верхний текст прижимаем к низу (к линии) */
.timeline-item-top {
  display: flex;
  align-items: flex-end;
  padding-bottom: 12px;
}

/* Нижний текст прижимаем к верху (от линии) */
.timeline-item-bottom {
  display: flex;
  align-items: flex-start;
  padding-top: 12px;
}

.timeline-item-top p,
.timeline-item-bottom p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #111111;
}

.timeline-item-top strong,
.timeline-item-bottom strong {
  font-weight: 700;
}

/* Узел с засечками на линии */
.timeline-node {
  position: relative;
  z-index: 2;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.tick {
  width: 2px;
  height: 12px;
  background-color: #333333;
}

/* Первая засечка смотрит вверх */
.tick-up {
  align-self: flex-start;
}

/* Вторая засечка смотрит вниз */
.tick-down {
  align-self: flex-end;
}

/* --- Нижняя галерея из 5 фото --- */
.content-gallery {
  display: flex;
  align-items: flex-end; /* Выравнивание всех фото по нижней линии */
  justify-content: space-between;
  gap: 20px;
}

.content-gallery-item {
  overflow: hidden;
  background-color: #f0f0f0;
}

.content-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Индивидуальные высоты и пропорции как на макете */
.img-ruin { flex: 1.2; height: 180px; }
.img-girl { flex: 1.1; height: 280px; }
.img-dj { flex: 1.3; height: 200px; }
.img-berries { flex: 0.9; height: 230px; }
.img-show { flex: 1.1; height: 350px; }

/* ================= АДАПТАЦИЯ БЛОКА 4 ================= */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .content-container {
    padding: 0 40px;
  }

  .content-title {
    font-size: 38px;
  }

  .timeline-grid {
    gap: 12px;
  }

  .timeline-item-top p,
  .timeline-item-bottom p {
    font-size: 12px;
  }

  .content-gallery {
    gap: 12px;
  }

  .img-ruin { height: 140px; }
  .img-girl { height: 220px; }
  .img-dj { height: 160px; }
  .img-berries { height: 180px; }
  .img-show { height: 280px; }
}

/* --- По умолчанию на десктопе стрелки скрыты --- */
.gallery-arrow {
  display: none;
}

.gallery-slider-wrapper {
  position: relative;
}

/* Смартфоны (до 768px) */
/* ================= АДАПТАЦИЯ БЛОКА 4 (СМАРТФОНЫ ДО 768px) ================= */
@media (max-width: 768px) {
  .content-section {
    padding: 60px 0;
  }

  .content-container {
    padding: 0 20px;
  }

  .content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 40px;
  }

  .content-brand {
    gap: 20px;
  }

  .content-logo svg {
    width: 80px;
    height: 80px;
  }

  .content-title {
    font-size: 28px;
  }

  .content-btn {
    width: 100%;
    text-align: center;
  }

  /* --- Включаем 2 колонки на мобильных --- */
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 столбика одинаковой ширины */
    gap: 30px 15px; /* Расстояние: 30px по вертикали и 15px между колонками */
  }

  /* Убираем горизонтальную линию с десктопа */
  .timeline-grid::after {
    display: none;
  }

  .timeline-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 14px; /* Экономим место для текста в 2 колонках */
    border-left: 2px dashed #744A8B; /* Вертикальный пунктир слева у каждой колонки */
    position: relative;
  }

  /* Скрываем засечки */
  .timeline-node {
    display: none;
  }

  .timeline-item-top,
  .timeline-item-bottom {
    padding: 0;
  }

  /* Оптимизируем размер шрифта, чтобы слова помещались в узкие колонки */
  .timeline-item-top p,
  .timeline-item-bottom p {
    font-size: 13px;
    line-height: 1.35;
  }

  /* --- Горизонтальный свайп-слайдер для галереи на смартфонах --- */
  .content-gallery {
    display: flex;
    flex-direction: row; /* Выстраиваем картинки в горизонтальный ряд */
    flex-wrap: nowrap; /* Запрещаем перенос на новую строку */
    overflow-x: auto; /* Включаем горизонтальную прокрутку */
    gap: 15px;
    margin-top: 40px;
    padding-bottom: 10px; /* Небольшой отступ снизу */
    
    /* Плавная привязка (снаппинг) к слайдам при свайпе */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Идеально плавный скролл на iPhone/iOS */
    
    /* Скрываем системный скроллбар в Firefox и IE */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  /* Скрываем полосу прокрутки в Chrome, Safari и Edge для аккуратного вида */
  .content-gallery::-webkit-scrollbar {
    display: none;
  }

  .content-gallery-item {
    /* Ширина слайда — 82% от экрана, чтобы справа был виден краешек следующего фото */
    flex: 0 0 82%;
    width: 82%;
    height: 250px !important; /* Оптимальная высота слайда на телефоне */
    scroll-snap-align: center; /* Картинка автоматически магнитится по центру экрана */
    border-radius: 4px; /* При желании можно немного скруглить углы */
    overflow: hidden;
  }

  .content-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* ================= БЛОК 5: АНОНСЫ СОБЫТИЙ ================= */
.events-section {
  background-color: #ffffff;
  color: #111111;
  padding: 60px 0 100px;
}

/* Убираем align-items: start, чтобы карточки были одной высоты */
.events-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  align-items: stretch; /* Карточки тянутся на одинаковую высоту */
}

/* Карточка занимает всю высоту своей колонки */
.event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Контейнер картинки с фиксированным соотношением сторон */
.event-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #f0f0f0;
  margin-bottom: 35px;
}

.event-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Контентная часть занимает всё оставшееся место под картинкой */
.event-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1;
  width: 100%;
}

.event-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: #000000;
  margin-bottom: 25px;
}

.event-desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  color: #222222;
  margin-bottom: 35px; /* Минимальный отступ до кнопки */
  max-width: 92%;
}

/* margin-top: auto автоматически прижимает кнопку строго к нижнему краю карточки */
.event-btn {
  margin-top: auto;
  background-color: #865799;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 15px 32px;
  display: inline-block;
  text-transform: uppercase;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.event-btn:hover {
  background-color: #724883;
  opacity: 1;
}

/* ================= АДАПТАЦИЯ БЛОКА 5 ================= */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .events-section {
    padding: 40px 0 70px;
  }

  .events-container {
    padding: 0 40px;
    gap: 30px;
  }

  .event-img-wrapper {
    margin-bottom: 25px;
  }

  .event-title {
    font-size: 24px;
    margin-bottom: 18px;
  }

  .event-desc {
    font-size: 15px;
    margin-bottom: 30px;
    max-width: 100%;
  }

  .event-btn {
    font-size: 14px;
    padding: 12px 24px;
  }
}

/* Смартфоны (до 768px) */
@media (max-width: 768px) {
  .events-section {
    padding: 30px 0 60px;
  }

  .events-container {
    padding: 0 20px;
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .event-img-wrapper {
    margin-bottom: 20px;
  }

  .event-title {
    font-size: 24px;
  }

  .event-desc {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .event-btn {
    width: 100%;
    text-align: center;
  }
}

/* ================= БЛОК 6: АНОНСЫ СОБЫТИЙ (ЧАСТЬ 2) ================= */
.events-section-part2 {
  padding-top: 0; /* Убираем верхний отступ, так как это продолжение сетки анонсов */
  padding-bottom: 100px;
}

/* На мобильных устройствах уменьшаем нижний отступ */
@media (max-width: 768px) {
  .events-section-part2 {
    padding-bottom: 60px;
  }
}

/* ================= БЛОК 7: АНОНСЫ СОБЫТИЙ (ЧАСТЬ 3) ================= */
.events-section-part3 {
  padding-top: 0;
  padding-bottom: 100px;
}

@media (max-width: 768px) {
  .events-section-part3 {
    padding-bottom: 60px;
  }
}

/* ================= БЛОК 8: АНОНСЫ СОБЫТИЙ (ЧАСТЬ 4) ================= */
.events-section-part4 {
  padding-top: 0;
  padding-bottom: 110px;
}

@media (max-width: 768px) {
  .events-section-part4 {
    padding-bottom: 70px;
  }
}

/* ================= БЛОК 9: АНОНСЫ СОБЫТИЙ (ЧАСТЬ 5) ================= */
.events-section-part5 {
  padding-top: 0;
  padding-bottom: 110px;
}

@media (max-width: 768px) {
  .events-section-part5 {
    padding-bottom: 70px;
  }
}

/* ================= БЛОК 10: ВДОХНОВЕНИЕ ================= */
.inspiration-section {
  background-color: #ffffff;
  padding: 40px 0 100px;
}

.inspiration-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 60px;
}

/* Сетка: левая колонка шире (1.85fr), правая уже (1fr) */
.inspiration-grid {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.inspiration-left {
  position: relative;
  min-height: 740px; /* Высота коллажа на десктопе */
  overflow: hidden;
}

/* Абсолютное позиционирование заголовка поверх левой фотографии */
.inspiration-title-box {
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 25px;
}

.inspiration-logo svg {
  width: 120px;
  height: 120px;
  display: block;
}

.inspiration-title {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #3a2626;
  text-transform: uppercase;
}

/* Правая колонка с тремя равными по высоте фотографиями */
.inspiration-right {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
}

.inspiration-img-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #f0f0f0;
}

.inspiration-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================= АДАПТАЦИЯ БЛОКА 10 ================= */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .inspiration-container {
    padding: 0 40px;
  }

  .inspiration-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 15px;
  }

  .inspiration-left {
    min-height: 580px;
  }

  .inspiration-title-box {
    top: 25px;
    left: 25px;
    gap: 18px;
  }

  .inspiration-logo svg {
    width: 90px;
    height: 90px;
  }

  .inspiration-title {
    font-size: 34px;
  }

  .inspiration-right {
    gap: 15px;
  }
}

/* Смартфоны (до 768px) */
@media (max-width: 768px) {
  .inspiration-section {
    padding: 20px 0 60px;
  }

  .inspiration-container {
    padding: 0 20px;
  }

  /* Перестраиваем в одну вертикальную колонку */
  .inspiration-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .inspiration-left {
    min-height: 420px;
  }

  .inspiration-title-box {
    top: 20px;
    left: 20px;
    gap: 15px;
  }

  .inspiration-logo svg {
    width: 70px;
    height: 70px;
  }

  .inspiration-title {
    font-size: 22px;
  }

  .inspiration-right {
    grid-template-rows: auto;
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .inspiration-right .inspiration-img-wrapper {
    height: 220px;
  }
}

/* ================= БЛОК 11: АТМОСФЕРА ФЕСТИВАЛЯ ================= */
.atmosphere-section {
  background-color: #ffffff;
  padding: 0 0 100px;
}

.atmosphere-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  /* Левая колонка уже (около 32%), правая под видео шире (68%) */
  grid-template-columns: 0.45fr 1fr;
  gap: 50px;
  align-items: center;
}

/* --- Левая колонка из 3 фото --- */
.atmosphere-left {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 15px;
  height: 100%;
}

.atmosphere-img-wrapper {
  width: 100%;
  height: 100%;
  min-height: 180px;
  overflow: hidden;
  background-color: #f0f0f0;
}

.atmosphere-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Правая колонка --- */
.atmosphere-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 40px;
}

.atmosphere-title {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #3a2626;
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* Контейнер для видео с сохранением пропорций 16:9 */
.atmosphere-video-wrapper {
  width: 100%;
  max-width: 820px;
  aspect-ratio: 16 / 9;
  background-color: #000000;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.atmosphere-video-wrapper video,
.atmosphere-video-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: none;
}

.atmosphere-caption {
  font-size: 16px;
  font-weight: 400;
  color: #111111;
  margin-bottom: 35px;
}

.atmosphere-btn {
  background-color: #865799;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 15px 40px;
  display: inline-block;
  text-transform: uppercase;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.atmosphere-btn:hover {
  background-color: #724883;
  opacity: 1;
}

/* ================= АДАПТАЦИЯ БЛОКА 11 ================= */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .atmosphere-container {
    padding: 0 40px;
    gap: 30px;
    grid-template-columns: 0.5fr 1fr;
  }

  .atmosphere-right {
    padding: 10px 15px;
  }

  .atmosphere-title {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .atmosphere-caption {
    font-size: 14px;
    margin-bottom: 25px;
  }
}

/* Смартфоны (до 768px) */
@media (max-width: 768px) {
  .atmosphere-section {
    padding: 0 0 60px;
  }

  .atmosphere-container {
    padding: 0 20px;
    /* На смартфонах перестраиваем видео вверх, а фотографии вниз или в вертикальный стек */
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Видео и заголовок показываем первыми на мобильном */
  .atmosphere-right {
    order: -1;
    padding: 0;
  }

  .atmosphere-title {
    font-size: 26px;
    margin-bottom: 25px;
  }

  .atmosphere-caption {
    font-size: 14px;
    margin-bottom: 25px;
  }

  .atmosphere-btn {
    width: 100%;
  }

  /* Три фотографии слева на смартфонах выстраиваются в сетку или одну за другой */
  .atmosphere-left {
    grid-template-rows: auto;
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .atmosphere-img-wrapper {
    height: 200px;
  }
}

/* ================= БЛОК 12: БОЛЬШОЕ ФОТО ================= */
.photo-banner-section {
  background-color: #ffffff;
  padding: 0 0 100px;
}

.photo-banner-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 60px;
}

.photo-banner-wrapper {
  width: 100%;
  max-height: 850px;
  overflow: hidden;
  background-color: #000000;
}

.photo-banner-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================= АДАПТАЦИЯ БЛОКА 12 ================= */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .photo-banner-container {
    padding: 0 40px;
  }
}

/* Смартфоны (до 768px) */
@media (max-width: 768px) {
  .photo-banner-section {
    padding: 0 0 60px;
  }

  .photo-banner-container {
    padding: 0 20px;
  }

  /* Ограничиваем высоту на мобильных, чтобы фото оставалось эффектным, но не растягивалось слишком сильно */
  .photo-banner-wrapper {
    max-height: 400px;
  }
}

/* ================= БЛОК 13: БАЗА ================= */
.base-section {
  position: relative;
  /* Фоновое изображение облаков/гор со скриншота */
  background: #fff no-repeat center center / cover;
  padding: 80px 0 120px;
  color: #111111;
}

.base-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 60px;
}

/* --- Шапка блока --- */
.base-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 70px;
}

.base-logo svg {
  width: 120px;
  height: 120px;
  display: block;
}

.base-title {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #3a2626;
  text-transform: uppercase;
}

/* --- Сетка 2x2 --- */
.base-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 100px;
  row-gap: 70px;
  align-items: stretch; /* Растягиваем карточки в ряду на одинаковую высоту */
}

.base-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.base-card-title {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #111111;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.base-card-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  color: #222222;
  margin-bottom: 35px;
  max-width: 90%;
}

/* Кнопка прижимается к нижнему краю карточки */
.base-btn {
  margin-top: auto;
  background-color: #865799;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 12px 36px;
  display: inline-block;
  text-transform: uppercase;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.base-btn:hover {
  background-color: #724883;
  opacity: 1;
}

/* ================= АДАПТАЦИЯ БЛОКА 13 ================= */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .base-section {
    padding: 60px 0 90px;
  }

  .base-container {
    padding: 0 40px;
  }

  .base-header {
    margin-bottom: 50px;
  }

  .base-title {
    font-size: 36px;
  }

  .base-grid {
    column-gap: 50px;
    row-gap: 50px;
  }

  .base-card-title {
    font-size: 26px;
    margin-bottom: 18px;
  }

  .base-card-text {
    font-size: 16px;
    max-width: 100%;
  }
}

/* Смартфоны (до 768px) */
@media (max-width: 768px) {
  .base-section {
    padding: 50px 0 70px;
  }

  .base-container {
    padding: 0 20px;
  }

  .base-header {
    gap: 20px;
    margin-bottom: 40px;
  }

  .base-logo svg {
    width: 80px;
    height: 80px;
  }

  .base-title {
    font-size: 28px;
  }

  /* Перестраиваем сетку 2x2 в одну вертикальную колонку */
  .base-grid {
    grid-template-columns: 1fr;
    row-gap: 45px;
  }

  .base-card-title {
    font-size: 24px;
  }

  .base-card-text {
    font-size: 16px;
    margin-bottom: 25px;
  }

  /* Растягиваем кнопку на всю ширину для удобства нажатия на смартфоне */
  .base-btn {
    width: 100%;
    text-align: center;
  }
}

/* ================= БЛОК 14: ПРОВОДНИКИ ФЕСТИВАЛЯ ================= */
.guides-section {
  background-color: #ffffff;
  color: #111111;
  padding: 100px 0;
}

.guides-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 70px;
  align-items: start;
}

/* --- Левая мозаика 4x4 --- */
.guides-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Фиксируем вертикальные пропорции (портретный формат каждой ячейки) */
.guides-mosaic-item {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #f0f0f0;
}

.guides-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Правая колонка с текстом --- */
.guides-content {
  display: flex;
  flex-direction: column;
}

.guides-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 60px;
}

.guides-logo svg {
  width: 120px;
  height: 120px;
  display: block;
  flex-shrink: 0;
}

.guides-title {
  font-size: 44px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: #3a2626;
  text-transform: uppercase;
}

/* --- Список с квадратными маркерами --- */
.guides-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.guides-item {
  position: relative;
  padding-left: 28px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  color: #222222;
}

/* Чёрный квадратный маркер точно как на макете */
.guides-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background-color: #111111;
}

.guides-item strong {
  font-weight: 700;
  color: #000000;
}

/* ================= АДАПТАЦИЯ БЛОКА 14 ================= */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .guides-section {
    padding: 70px 0;
  }

  .guides-container {
    padding: 0 40px;
    gap: 40px;
    grid-template-columns: 1fr 1fr;
  }

  .guides-mosaic {
    gap: 8px;
  }

  .guides-header {
    gap: 20px;
    margin-bottom: 40px;
  }

  .guides-logo svg {
    width: 90px;
    height: 90px;
  }

  .guides-title {
    font-size: 34px;
  }

  .guides-item {
    font-size: 16px;
  }
}

/* Смартфоны (до 768px) */
@media (max-width: 768px) {
  .guides-section {
    padding: 50px 0;
  }

  .guides-container {
    padding: 0 20px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Сохраняем сетку 4x4 на мобильных, уменьшая отступы между ячейками */
  .guides-mosaic {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .guides-header {
    gap: 20px;
    margin-bottom: 35px;
  }

  .guides-logo svg {
    width: 75px;
    height: 75px;
  }

  .guides-title {
    font-size: 28px;
  }

  .guides-item {
    font-size: 15px;
    padding-left: 24px;
    gap: 18px;
  }

  .guides-item::before {
    width: 8px;
    height: 8px;
    top: 6px;
  }
}

/* ================= БЛОК 15: ОРГАНИЗАТОРЫ И ПАРТНЕРЫ ================= */
.partners-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.15) 50%,
      rgba(0, 0, 0, 0.7) 100%
    ),
    url('img/block15-bg.jpg') no-repeat center center / cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Раздвигаем контент по вертикали */
  padding: 100px 0 80px; /* Верхний отступ для организаторов и нижний для партнеров */
  color: #ffffff;
}

.partners-container {
  width: 100%;
  max-width: 1600px;
  min-height: calc(100vh - 180px); /* Растягиваем контейнер на всю высоту экрана */
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* Верхний блок уходит вверх, нижний — вниз */
}

.organizers-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 20px; /* Дополнительно регулируем положение верхнего блока */
}

.partners-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 20px; /* Прижимаем нижний блок ближе к низу */
}

.partners-heading {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #e0e0e0;
  margin-bottom: 35px;
  text-transform: uppercase;
  text-align: center;
}

/* --- Логотипы организаторов --- */
.organizers-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.logo-organizer {
  max-height: 55px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* --- Логотипы партнеров --- */
.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 35px 50px; /* Свободное расстояние между логотипами */
  width: 100%;
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px; /* Вернули нормальный, хорошо читаемый размер */
}

.partner-logo-item img {
  max-height: 100%;
  max-width: 150px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ================= АДАПТАЦИЯ БЛОКА 15 ================= */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .partners-section {
    padding: 80px 0 60px;
  }

  .partners-container {
    padding: 0 40px;
    min-height: 700px;
  }

  .partners-heading {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .logo-organizer {
    max-height: 45px;
  }

  .partners-logos {
    gap: 25px 35px;
  }

  .partner-logo-item {
    height: 38px;
  }
}

/* Смартфоны (до 768px) */
@media (max-width: 768px) {
  .partners-section {
    padding: 60px 0 50px;
    min-height: auto;
  }

  .partners-container {
    padding: 0 20px;
    min-height: auto;
    gap: 90px; /* На смартфонах задаём фиксированное расстояние между группами */
  }

  .organizers-group,
  .partners-group {
    margin: 0;
  }

  .partners-heading {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .logo-organizer {
    max-height: 40px;
  }

  .partners-logos {
    gap: 25px 30px;
  }

  .partner-logo-item {
    height: 32px;
  }

  .partner-logo-item img {
    max-width: 115px;
  }
}