/* --- Обертка видео и canvas --- */
.media_wrapper {
  position: relative; /* было absolute — убираем, чтобы блок участвовал в потоке */
  width: 100%;
  height: 100vh; /* видео занимает первый экран */
  overflow: hidden;
}

/* --- Видео и Canvas в landscape --- */
@media (orientation: landscape) {
  video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
  }
  canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
  }
}

/* --- Видео и Canvas в portrait --- */
@media (orientation: portrait) {
  video {
    opacity: 0;
    position: absolute;
    width: auto;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  canvas {
    position: absolute;
    width: auto;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* --- Footer под видео (виден при прокрутке) --- */
/* --- Footer под видео --- */
.footer {
  position: relative;       /* было правильно — оставляем */
  background-color: #0C0B10;
  color: #fff;
  font-family: "Roboto Condensed", sans-serif;
  padding: 40px 0;
  text-align: center;
  width: 100%;
  margin-top: 0;            /* убираем возможные зазоры */
  display: block;           /* гарантирует поведение как блочного элемента */
  z-index: 1;               /* чтобы не залезал под canvas/video */
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer__logo img {
  width: 120px;
  margin-bottom: 15px;
}

.footer__navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__navigation li {
  display: inline-block;
  margin: 0 10px;
}

.footer__navigation a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
}

.footer__navigation a:hover {
  color: #fff;
}

.footer__copyright {
  font-size: 12px;
  color: #888;
  margin-top: 10px;
}

.footer__age img {
  width: 40px;
  margin-top: 10px;
}

/* --- Отключаем видео/canvas на мобильных --- */
@media (max-width: 1024px) {
  canvas,
  .media_wrapper {
    display: none;
  }
}

.video_bar {
  width: 100%;
  height: 3px; /* можно изменить толщину */
  background: linear-gradient(to right, #ff0055, #ffcc00);
}

/* --- Общий контейнер --- */
.mobile-block1 {
  display: flex;
  flex-direction: column; /* располагаем элементы вертикально */
  align-items: center;
  width: 100%;
  background-color: #000;
  overflow: hidden;
}



/* --- Фон --- */
.background-section2 {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url("../images/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* прижимаем картинки к низу */
  padding-bottom: 40px;
}

/* --- Картинки внутри фона --- */
.image-sequence-bottom {
  width: 90%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
   margin-bottom: 29px;

}

/* Все картинки — по 60% ширины */
.image-sequence-bottom img {
  width: 50%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Только new.svg — 90% */
.image-sequence-bottom img[src*="new.svg"] {
  width: 90%;
}

.image-sequence-bottom img[src*="razlom.svg"] {
  width: 70%;
}

/* --- Картинки под фоном --- */
.image-sequence {
  width: 90%;
  max-width: 1200px;
  margin: 50px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.image-sequence img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}