@font-face {
  font-family: "NT Somic";
  src: url("Webfonts/NTSomic-Regular.woff2") format("woff2");
  font-weight: normal;
}
@font-face {
  font-family: "NT Somic";
  src: url("Webfonts/NTSomic-Bold.woff2") format("woff2");
  font-weight: bold;
}

:root {
  --side-padding: 70px;
  --content-width: 1200px;
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "NT Somic", sans-serif;
  background: #111;
  color: white;
  overflow-x: hidden;
  padding-top: var(--header-height);
}

/* HEADER */

.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  height: var(--header-height);
  width: 100%;
  background: #111;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  padding: 0 var(--side-padding);
  z-index: 999;
}

.logo {
  height: 48px;
  margin-right: 40px;
}

.header-button {
  color: white;
  text-decoration: none;
  /* margin-right: 25px; */
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 30px 20px;
  transition: .4s;
}

.header-button:hover {
  padding: 30px 40px;
  background-color: #fff;
  color: #111;
}

/* СЕКЦИИ */

.section {
  position: relative;
  width: 100%;
  min-height: 100vh; /* Заменяем height на min-height */
  padding: 60px var(--side-padding);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 40px;
  overflow: hidden;
}

.section::before {
  content: ""; /* Добавлено */
  height: 100%;
  top: 0;
  left: 0; /* Добавлено */
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center; /* Добавлено */
  position: absolute;
  z-index: -1;
  opacity: 0.7;
}


.section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
}

/* TITLE */

.title {
  height: 150vh;
  position: relative;
}

.title::before {
  background-image: url("photos/bg_title.jpg");
  height: 150vh;
}

.title::after {
  display: none;
  background-color: rgba(0, 0, 0, 0.5);
}

.title-content {
  display: flex;
  flex-direction: column; /* Меняем на колонку */
  gap: 40px;
  max-width: var(--content-width);
  margin: 0 auto;
  width: 100%;
  padding-top: 30px;
}

#subtitle {
  width: 50%;
  text-align: left; /* Текст по левому краю */
  margin-left: auto; /* Блок справа */
  align-self: flex-end; /* Выравнивание блока по правой стороне */
  order: 1; /* Subtitle будет выше title */
}

#title {
  width: 50%;
  text-align: left; /* Текст по левому краю */
  margin-top: 210px; /* Убираем предыдущий отступ */
  align-self: flex-start; /* Блок слева */
  order: 2; /* Title будет ниже subtitle */
  padding-right: 20px; /* Отступ от края */
}

#subtitle pre {
  font-size: 18pt;
  white-space: pre-wrap;
  font-family: inherit;
  line-height: 1.4;
  text-align: left; /* На всякий случай дублируем */
  margin-left: 100px;
}

.title-video {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  margin: 0 auto;
  display: block;
  width: 40vw;
  max-width: 600px;
}

#title {
    opacity: 0;
    transform: translateY(80px); /* Начальное положение - снизу */
    will-change: opacity, transform;
}

#subtitle {
    opacity: 0;
    transform: translateX(80px); /* Начальное положение - справа */
    will-change: opacity, transform;
}

/* BIO */

.bio {
  min-height: 120vh; /* увеличил по твоему примеру */
  position: relative;
  overflow: hidden;
}

.bio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120vh;
  background-image: url("photos/bg_bio.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 30%; /* фиксируем позицию */
  z-index: -1;
}

.bio::after {
  background-color: rgba(0, 0, 0, 0.1);
}

.bio-content {
  width: 50%;
  margin-left: auto;
  text-align: left;
  margin-top: 10vh; /* Отступ сверху */
}

.bio-video {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  margin: 0 auto;
  display: block;
  width: 40vw;
  max-width: 600px;
  z-index: 1;
}

/* RELEASES */

.releases {
  min-height: 150vh;
  position: relative;
  overflow: hidden;
}

.releases::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150vh;
  background-image: url("photos/bg_releases.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top; /* фиксируем */
  z-index: -1;
}

.releases::after {
  background-color: rgba(0, 0, 0, 0.1);
}

.releases-content {
  width: 50%;
  margin-left: 0;
  text-align: left;
  margin-top: 10vh;
}

.releases-video {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  margin: 0 auto;
  display: block;
  width: 60vw;
  max-width: 600px;
  z-index: 1;
}

/* КОНЦЕРТЫ */

.concerts {
  min-height: 100vh;
  padding-bottom: 120px;
}

.concerts::before {
  content: "";
  background-image: url("photos/bg_concerts.jpg");
  background-position: 90% 60%;
  background-size: cover;
  z-index: -1;
  opacity: 0.7;
}

.concerts::after {
  background-color: rgba(0, 0, 0, 0.1);
}

.concerts-content {
  width: 50%;
  margin-left: 0;
  text-align: left;
  margin-top: 10vh;
}

.concert-block {
  margin-top: 10px;
  padding: 20px 40px;
  background-color: #111;
  border-radius: 20px;
}

.concerts-content {
  align-self: flex-end;
  margin-right: 10%;
}

/* АНИМАЦИЯ */

.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform; /* Оптимизация */
  transition: opacity 1.2s cubic-bezier(0.25, 0.1, 0.25, 1), transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.scroll-animate.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ТЕКСТОВЫЙ СТИЛЬ */

h1 {
  font-size: 48pt;
  margin: 0;
}

h2 {
  font-size: 24pt;
  margin: 0;
  text-align: left;
}

h3 {
  font-size: 18pt;
  margin: 0;
}

p {
  font-size: 14pt;
  margin-top: 0.5em;
  margin-bottom: 0;
}

pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.4;
}

.concert-button.main-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: white;
  color: #111;
  font-family: "NT Somic", sans-serif;
  font-weight: bold;
  font-size: 14px;
  padding: 14px 22px;
  border-radius: 25px;
  border: none;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 250px;
  min-height: 48px;
  z-index: 1000;
}

.button-text {
  white-space: nowrap;
  transition: opacity 0.4s ease;
}

.phone-buttons {
  display: none;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.concert-button.phone-button {
  background-color: #111;
  color: white;
  font-size: 12px;
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  text-align: center;
}

.concert-button.main-button:hover {
  background-color: white;
  padding: 20px 22px;
  min-height: 120px;
  border-radius: 25px;
}

.concert-button.main-button:hover .button-text {
  opacity: 0;
  display: none;
}

.concert-button.main-button:hover .phone-buttons {
  display: flex;
  opacity: 1;
}

.concert-button.phone-button:hover {
  background-color: #333;
  transform: scale(1.05);
}

/* ФУТЕР */

.link-footer {
  background-color: #111;
  color: white;
  font-family: "NT Somic", sans-serif;
  padding: 40px 20px 60px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.labels {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 60px;
  justify-content: center;
  max-width: 100%;
}

.footer-title {
  font-size: 36px;
  font-weight: bold;
  margin: 0;
  text-transform: none;
  white-space: nowrap;
  align-self: center;
}

.labels a {
  display: block;
  text-decoration: none;
}

.labels img {
  height: 50px;
  width: auto;
  display: block;
}

.labels .badges {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
}

.copyright {
  font-size: 14px;
  font-weight: normal;
  text-align: center;
  margin: 20px 0 0;
}

/* МЕДИА */

@media (min-width: 1600px) {
  :root {
    --content-width: 65wv;
  }
    #subtitle {
        width: calc(30vw);
    }
}

@media (max-width: 1024px) {
  :root {
    --side-padding: 40px;
  }

  .title-video,
  .bio-video,
  .releases-video {
    width: 120vw;
  }

  .bio-content,
  .releases-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --side-padding: 20px;
    --header-height: 60px;
    --bio-releases-fs: 9pt;
  }

  /* Уменьшение секции .title */
  .title {
    min-height: 80vh; /* Меньшая высота */
    height: 135vh;
    position: relative;
    overflow: hidden; /* чтобы не вылезало за пределы */
  }

  /* Перенос #bio на правую сторону с небольшим сдвигом влево */
  .bio-content {
    margin-left: auto;
    margin-right: var(--side-padding);
    width: 100%;
    text-align: left;
  }

  #bio {
    text-align: left;
    margin-left: auto;
    max-width: 70%;
    padding-left: 20px;
    margin-top: -25%; /* Поднимаем #bio вверх на 20% */
  }

  #bio pre {
    text-align: left;
    font-size: var(--bio-releases-fs);
    white-space: pre-wrap;
  }

  /* Уменьшение секции .bio и опускание .bio-video */
  .bio {
    min-height: 100vh; /* Меньшая высота */
    padding-bottom: 80px; /* Меньший нижний отступ */
    position: relative;
    overflow: hidden; /* чтобы не вылезало за пределы */
  }

  .bio-video {
    position: absolute;
    bottom: 0; /* Приклеено к низу */
    left: 50%;
    transform: translateX(-50%);
    width: 120vw;
    height: auto;
    object-fit: cover;
    z-index: 1;
  }


  /* Поднятие #releases */
  .releases-content {
    margin-top: 0;
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden; /* чтобы не вылезало за пределы */
  }

  #releases {
    font-size: var(--bio-releases-fs);
  }

  .bio::before {
    top: 0; /* Фон начинается с верха */
    height: 140%; /* Сохраняем масштаб */
    background-position: center -70px; /* Смещаем фон вверх на 100px */
  }

  .logo {
    height: 36px;
    margin-right: 20px;
  }

  .header-button {
    font-size: 14px;
    margin-right: 15px;
    display: none;
  }

  #title {
    font-size: 48px;
    text-align: right !important;
    width: 100%;
    margin-left: auto;
    margin-right: 0;
    align-self: flex-end;
  }

  .title::before {
    background-position-x: 51% !important;
  }

  #title {
    font-size: 36pt;
  }

  #subtitle {
    width: 100%;
    margin-left: 0;
    padding: 0 20px;
  }

  #subtitle pre {
    font-size: 8pt;
    text-align: left;
  }

  .title-video,
  .releases-video {
    position: absolute;
    bottom: 0;
    left: 50%;
    height: auto;
    transform: translateX(-50%);
    width: 120vw;
    object-fit: cover;
    z-index: 1;
  }


  .releases-video {
    margin-top: 60%;
  }

  .concert-button.main-button {
    width: calc(100% - 40px);
    font-size: 12px;
    padding: 18px 28px;
    min-height: 48px;
    border-radius: 25px;
  }

  .concert-button.main-button.active {
    background-color: white;
    padding: 20px 28px;
    min-height: 120px;
    border-radius: 25px;
  }

  .concert-button.main-button.active .button-text {
    opacity: 0;
    display: none;
  }

  .concert-button.main-button.active .phone-buttons {
    display: flex;
    opacity: 1;
  }

  .concert-button.phone-button {
    width: 100%;
    font-size: 11px;
    padding: 12px 20px;
    border-radius: 25px;
  }

  /* Секция концертов */
  .concerts {
    align-items: center;
    margin-left: 0;
    padding: 30px var(--side-padding);
  }

  .concerts-content {
    width: 100%;
    margin: 0 auto;
    margin-top: 25%;
    text-align: center; /* Центрируем текст */
  }

  .concert-title {
    font-size: 18pt; /* Уменьшенный размер для мобильных (аналог h2) */
    text-align: center; /* Центрируем */
    margin: 0;
  }

  .concert-block {
    scale: 100%;
    width: calc(100% - 40px); /* Почти полная ширина с отступами 20px */
    margin: 10px auto;
    padding: 15px 20px;
    background-color: #111;
    border-radius: 15px;
  }

  .concerts::before {
    background-position: 60% center;
  }

  /* Футер */
  .link-footer {
    padding: 30px 15px 120px; /* Увеличен нижний отступ для .main-button */
  }

  .labels {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .footer-title {
    font-size: 20px;
  }

  .labels img {
    height: 50px; /* Увеличенная высота бейджей */
  }

  .labels .badges {
    flex-direction: column; /* Бейджи в столбик */
    gap: 10px;
    align-items: center;
  }

  .copyright {
    font-size: 12px;
    margin-top: 30px; /* Увеличен верхний отступ */
  }
}