@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700;800&display=swap');

/* Основные настройки сайта */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #050505;
  color: #ffffff;
  font-family: 'Jost', sans-serif;
}

/* Главная страница */
.home-page {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-image: url("assets/poster.jpg");
  background-size: cover;
  background-position: center;
}

/* Фоновое видео */
.background-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Затемнение видео */
.background-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
}

/* Верхняя навигация */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 35px 5%;
  position: relative;
  z-index: 2;
}

.site-header a {
  color: #b62b35;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  transition: color 0.3s;
}

.site-header a:hover {
  color: #ffffff;
}

/* Центральная часть */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}

/* Логотип */
.event-logo {
  display: block;
  width: min(70vw, 650px);
  max-height: 45vh;
  object-fit: contain;
}

/* Дата и место */
.event-details {
  text-align: center;
}

.event-date {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 4px;
  margin: 0 0 14px;
}

.event-location {
  font-size: clamp(12px, 1.5vw, 17px);
  letter-spacing: 2px;
  margin: 0;
}

/* Таймер внизу */
.countdown-footer {
  padding: 20px 15px 30px;
  text-align: center;
}

#countdown {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #d0d0d0;
}

/* Адаптация для телефона */
@media (max-width: 600px) {
  .site-header {
    padding: 25px 18px;
    gap: 12px;
  }

  .site-header a {
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  .hero-content {
    gap: 24px;
  }

  .event-logo {
    width: 90vw;
  }

  .event-date {
    letter-spacing: 2px;
  }

  .event-location {
    letter-spacing: 1px;
  }

  #countdown {
    font-size: 13px;
    letter-spacing: 2px;
  }
}

/* =========================
   СТРАНИЦА О СОБЫТИИ
   ========================= */

.about-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #050505;
}

/* Основное содержимое */
.about-content {
  width: min(100% - 40px, 850px);
  margin: 40px auto 80px;
}

/* Место для фотографии */
.about-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #777;
  margin-bottom: 65px;
  overflow: hidden;
}

.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Текст */
.about-text {
  max-width: 750px;
  margin: 0 auto;
}

.about-text h1 {
  color: #b62b35;
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: 3px;
  margin: 0 0 35px;
  text-align: center;
}

.about-text p {
  font-size: 17px;
  line-height: 1.85;
  color: #e4e4e4;
  margin: 0 0 25px;
}

.about-text strong {
  color: #ffffff;
  font-weight: 700;
}

/* Дата и программа */
.event-schedule {
  margin-top: 60px;
  text-align: center;
}

.event-schedule h2 {
  color: #b62b35;
  font-size: 25px;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.event-schedule p {
  margin-bottom: 12px;
}

.event-schedule .event-address {
  margin-top: 30px;
  font-size: 14px;
  letter-spacing: 1.5px;
}

/* Нижние ссылки */
.about-footer {
  margin-top: auto;
  padding: 30px 5% 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #292929;
}

.about-footer a {
  color: #b62b35;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.3s;
}

.about-footer a:hover {
  color: #ffffff;
}

/* Версия для телефона */
@media (max-width: 600px) {

  .about-content {
    width: calc(100% - 36px);
    margin: 25px auto 55px;
  }

  .about-photo {
    margin-bottom: 40px;
  }

  .about-text h1 {
    margin-bottom: 25px;
  }

  .about-text p {
    font-size: 15px;
    line-height: 1.75;
  }

  .event-schedule {
    margin-top: 45px;
  }

  .about-footer {
    padding: 25px 15px;
    gap: 10px;
  }

  .about-footer a {
    font-size: 10px;
    letter-spacing: 0;
    text-align: center;
  }
}

/* =========================
   ОБНОВЛЕНИЕ ДИЗАЙНА
   ========================= */

/* Крупнее ссылки в верхних углах */
.site-header a {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

/* Главная: логотип в центре */
.hero {
  flex: 1;
  min-height: 0;
}

/* Главная: дата и место внизу */
.countdown-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 20px 20px 35px;
  position: relative;
  z-index: 2;
}

.footer-event-info {
  text-align: center;
}

.footer-event-info .event-date {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.footer-event-info .event-location {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
}

/* Красный обратный отсчёт */
#countdown {
  color: #b62b35;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 2px;
}

/* Вторая страница: фото и логотип */
.about-visual {
  position: relative;
  margin-bottom: 85px;
}

.about-visual .about-photo {
  margin-bottom: 0;
}

.about-logo {
  display: block;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  width: min(65%, 460px);
  max-height: 180px;
  object-fit: contain;
  z-index: 2;
}

/* Основной текст по ширине */
.about-text > p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Крупнее дата на второй странице */
.event-schedule h2 {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: 3px;
}

/* Нижние ссылки */
.about-footer a {
  font-size: 17px;
  font-weight: 600;
}

/* Адаптация для телефонов */
@media (max-width: 600px) {

  .site-header a {
    font-size: 15px;
    letter-spacing: 0.5px;
  }

  .countdown-footer {
    gap: 14px;
    padding-bottom: 28px;
  }

  .footer-event-info .event-date {
    font-size: 23px;
  }

  .footer-event-info .event-location {
    font-size: 12px;
    letter-spacing: 1px;
  }

  #countdown {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .about-visual {
    margin-bottom: 65px;
  }

  .about-logo {
    width: 75%;
    max-height: 120px;
  }

  .about-footer a {
    font-size: 12px;
  }

  .about-text > p {
    text-align: justify;
    hyphens: auto;
  }
}


/* =========================
   ФОТОГРАФИЯ И ЛОГОТИП
   НА СТРАНИЦЕ О НАС
   ========================= */

/* Общий блок фотографии и логотипа */
.about-visual {
  position: relative;
  margin-top: 130px;
  margin-bottom: 65px;
  isolation: isolate;
}

/* Фотография без рамки */
.about-visual .about-photo {
  position: relative;
  width: 100%;
  border: none;
  overflow: visible;
  margin-bottom: 0;
  z-index: 1;

  /* Мягкий белый свет за фотографией */
  box-shadow:
    0 0 35px rgba(255, 255, 255, 0.18),
    0 0 85px rgba(255, 255, 255, 0.10),
    0 0 140px rgba(255, 255, 255, 0.05);
}

/* Само изображение */
.about-visual .about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Лёгкое затемнение верхней части фото */
.about-visual .about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.30) 0%,
    transparent 40%
  );
  pointer-events: none;
}

/* Логотип над фотографией */
.about-visual .about-logo {
  position: absolute;

  left: 50%;
  top: 0;
  bottom: auto;

  transform: translate(-50%, -72%);

  width: min(97.5%, 690px);
  max-height: 270px;
  height: auto;

  object-fit: contain;
  z-index: 3;
}

/* Настройки для телефонов */
@media (max-width: 600px) {

  .about-visual {
    margin-top: 100px;
    margin-bottom: 50px;
  }

  .about-visual .about-logo {
    width: 100%;
    max-height: 180px;
    transform: translate(-50%, -70%);
  }

  .about-visual .about-photo {
    box-shadow:
      0 0 25px rgba(255, 255, 255, 0.15),
      0 0 65px rgba(255, 255, 255, 0.08);
  }
}


