/* ======================================= */
/*          parallax.css (обновлённый)     */
/* ======================================= */

/* === Общие правила для всех .layer === */
.layer {
  position: absolute;
  will-change: transform;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;

  -webkit-transform: translateZ(0);
     -moz-transform: translateZ(0);
     -ms-transform: translateZ(0);
     -o-transform: translateZ(0);
         transform: translateZ(0);

  -webkit-backface-visibility: hidden;
     -moz-backface-visibility: hidden;
     -ms-backface-visibility: hidden;
         backface-visibility: hidden;

  /* Если нужно, можно раскомментировать переход и указать pointer-events: none;
  transition: transform .7s cubic-bezier(0.22, 0.44, 0, 1);
  pointer-events: none;
  */
}

/* === Контейнер .hero, который оборачивает все слои === */
.hero {
  position: absolute;
  will-change: transform;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  -webkit-transform: translateZ(0);
     -moz-transform: translateZ(0);
     -ms-transform: translateZ(0);
     -o-transform: translateZ(0);
         transform: translateZ(0);

  transition: transform .9s cubic-bezier(0.22, 0.44, 0, 1);
}

/* === Сдвиг .hero при открытии бокового меню === */
.hero.left-menu-active {
  transform: translate3d(6%, 0, 0);
  transition: transform 1.5s cubic-bezier(0.22, 0.44, 0, 1) !important;
}
.hero.right-menu-active {
  transform: translate3d(-6%, 0, 0);
  transition: transform 1.5s cubic-bezier(0.22, 0.44, 0, 1) !important;
}


/* ======================================= */
/*          СЛОИ ПАРАЛЛАКСА                 */
/* ======================================= */

/* ----- Слой 1: общий фон (под всеми) ----- */
.layer-1 {
  background: url('../../assets/img/home-bg-l1.jpg') no-repeat top center;
  background-size: cover;
  width: 100%;
}

/* ----- Слой 2: элемент справа внизу ----- */
.layer-2 div {
  background: url('../../assets/img/hero-l2.png') no-repeat bottom right;
  background-size: cover;
  width: 543px;
  height: 539px;
  position: absolute;
  right: -1%;
  bottom: 0;
}

/* ----- Слой 3: большой элемент слева снизу ----- */
.layer-3 div {
  background: url('../../assets/img/hero-l3.png') no-repeat top left;
  background-size: cover;
  width: 1813px;
  height: 670px;
  position: absolute;
  left: 0;
  bottom: -5%;
}

/* ----- Слой 4: элемент посредине снизу ----- */
.layer-4 div {
  background: url('../../assets/img/hero-l4.png') no-repeat bottom center;
  background-size: contain;
  width: auto;
  height: 90%;
  position: relative;
  top: 13%;
  bottom: 0;
  left: 16%;
}

/* ----- Слой 6: верхний фон ----- */
.layer-6 div {
  background: url('../../assets/img/hero-l6.png') no-repeat top center;
  background-size: cover;
  width: 1920px;
  height: 934px;
  position: absolute;
  left: 0;
  top: 0;
}

/* ----- Слой 7: контейнер <img> (например, логотип) ----- */
.layer-7 img {
  max-width: 100%;
  height: auto;
  opacity: 1;
}


/* ======================================= */
/*         СЛОИ ПРЕЛОАДЕРА (прелоадер)      */
/* ======================================= */
.layer-pr1 div {
  background: url('../../assets/img/layer-pr1.png') no-repeat top left;
  background-size: cover;
  width: 1341px;
  height: 657px;
  position: absolute;
  left: -5%;
  top: -10%;
}

.layer-pr2 div {
  background: url('../../assets/img/layer-pr2.png') no-repeat bottom right;
  background-size: cover;
  width: 1351px;
  height: 675px;
  position: absolute;
  right: -5%;
  bottom: -10%;
}

/* Обёртка для лого и кнопок прелоадера */
.home-logo-content {
  max-width: 500px;
  position: absolute;
  left: 20%;
  top: 25%;
  text-align: center;
}

.home-logo-text.collapsed {
  background: rgba(0, 0, 0, 0.2);
  width: 100%;
  height: 30px;
  padding: 0;
}

a.movie-link {
  background: rgba(0, 0, 0, 0.7);
  width: 50%;
  height: 40px;
  padding-left: 10px;
  color: #fff;
  opacity: 0.8;
  display: inline-block;
  transition: all 0.5s ease;
  line-height: 2.5;
  position: relative;
}

a.v1.movie-link {
  float: right;
}

a.v2.movie-link {
  margin-top: 20px;
}

a.movie-link:hover {
  opacity: 1;
  color: #fff;
}

a.movie-link::before {
  content: '';
  position: absolute;
  background: url('../../assets/img/play.png') no-repeat center center;
  background-size: contain;
  width: 20px;
  height: 20px;
  top: 10px;
  left: 35px;
}

.home-logo-text.collapsed a.btn-down {
  display: inline-block;
  opacity: 0.6;
  margin: 0 auto;
  text-align: center;
  height: 23px;
  width: 23px;
  padding: 2px;
  transition: all 0.3s ease;
}

.home-logo-text.collapsed a.btn-down:hover {
  opacity: 0.9;
}

.home-logo-text.active {
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
  transition: all 0.4s ease;
}

.home-logo-text p {
  opacity: 0;
  transform: translateX(100px);
  padding: 40px 35px 10px;
  color: #fff;
  font-size: 11px;
  line-height: 21px;
  letter-spacing: 1px;
  display: inline-block;
}

.home-logo-btn {
  display: inline-block;
  width: 200px;
  background-color: #fff;
  color: #000;
  text-transform: uppercase;
  font-family: 'bebas_neuebold';
  padding: 5px 0;
  letter-spacing: 1px;
  border-radius: 3px;
  font-size: 14px;
  transform: translateX(-100px);
  margin-bottom: 20px;
}

.home-logo-text p,
.home-logo-btn {
  visibility: hidden;
  transition: all 0.4s ease;
}

.home-logo-text.active a.btn-down {
  display: none;
}

.home-logo-text p.active,
.home-logo-btn.active {
  visibility: visible;
}

.home-logo-text.active p.active {
  opacity: 1;
  transform: translateX(0);
}

.home-logo-btn.active {
  opacity: 0.6;
  transform: translateX(0);
}

.home-logo-btn:hover {
  opacity: 1;
  color: #000;
  letter-spacing: 2px;
}

/* ======================================= */
/*      АНИМАЦИИ ПРОКРУТКИ (scroll)        */
/* ======================================= */
.p-scroll-up,
.p-scroll-down {
  animation: 1s ease;
}

.p-scroll-up {
  animation-name: fromdown;
}

.p-scroll-down {
  animation-name: fromup;
}

@keyframes fromdown {
  from {
    transform: translateY(400px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes fromup {
  from {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(500px);
  }
}

/* ======================================= */
/*      СЛОИ БОКОВОГО МЕНЮ (m1–m5)        */
/* ======================================= */
.menu-px-bg {
  position: absolute;
  will-change: transform;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0);
     -moz-transform: translateZ(0);
     -ms-transform: translateZ(0);
     -o-transform: translateZ(0);
         transform: translateZ(0);

  transition: transform .9s cubic-bezier(0.22, 0.44, 0, 1);
}

.m1 div {
  background: url('../../assets/img/menu_l1.png') no-repeat top left;
  background-size: contain;
  position: absolute;
  width: 500px;
  height: 600px;
  top: 0;
  left: 0;
}

.m2 div {
  background: url('../../assets/img/menu_l2.png') no-repeat top left;
  background-size: contain;
  position: absolute;
  width: 460px;
  height: 308px;
  top: 20%;
  left: 10%;
}

.m3 div {
  background: url('../../assets/img/menu_l3.png') no-repeat bottom left;
  background-size: contain;
  position: absolute;
  width: 864px;
  height: 649px;
  bottom: 0;
  left: 0;
}

.m4 div {
  background: url('../../assets/img/menu_l4.png') no-repeat top right;
  background-size: contain;
  position: absolute;
  width: 709px;
  height: 100%;
  top: 0;
  right: 0;
}

.m5 div {
  background: url('../../assets/img/menu_l5.png') no-repeat center;
  background-size: contain;
  position: absolute;
  width: 333px;
  height: 430px;
  top: 20%;
  right: 0;
  left: 44%;
  margin: auto;
}
