/* Видеофон с соотношением 16:9 */

/* Основной контейнер для видеофона */
.home-hero-bg {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Контейнер для видео с соотношением 16:9 */
.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Видео элемент */
.video-background {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

/* Затемнение поверх видео для лучшей читаемости текста */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* Контент поверх видео */
.hero-section {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 4;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .home-hero-bg {
    height: 100vh;
    min-height: 600px;
  }
  
  .hero-section {
    height: 100vh;
    min-height: 600px;
    padding: 0 15px;
  }
  
  .hero-content {
    padding: 0 10px;
  }
  
  .video-background {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block !important;
    visibility: visible !important;
  }
  
  .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: none !important;
  }
  
  /* Скрываем кнопку воспроизведения на мобильных */
  .video-container button {
    display: none !important;
  }
  
  /* Скрываем фоновое изображение */
  .home-hero-bg::before {
    display: none !important;
  }
  
  .hero-heading-main {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
  }
  
  .hero-heading-main-second {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
  }
  
  .hero-heading-desc {
    font-size: 1.2rem !important;
    margin-top: 1rem !important;
  }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
  .home-hero-bg {
    height: 100vh;
    min-height: 500px;
  }
  
  .hero-section {
    height: 100vh;
    min-height: 500px;
    padding: 0 10px;
  }
  
  .video-background {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block !important;
    visibility: visible !important;
  }
  
  .video-container {
    background: none !important;
  }
  
  /* Скрываем кнопку воспроизведения */
  .video-container button {
    display: none !important;
  }
  
  /* Скрываем фоновое изображение */
  .home-hero-bg::before {
    display: none !important;
  }
}

/* Адаптивность для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-heading-main {
    font-size: 3.5rem !important;
  }
  
  .hero-heading-main-second {
    font-size: 3.5rem !important;
  }
  
  .hero-heading-desc {
    font-size: 1.5rem !important;
  }
}

/* Адаптивность для больших экранов */
@media (min-width: 1025px) {
  .hero-heading-main {
    font-size: 4.5rem !important;
  }
  
  .hero-heading-main-second {
    font-size: 4.5rem !important;
  }
  
  .hero-heading-desc {
    font-size: 1.8rem !important;
  }
}

/* Убираем старые элементы 3D */
.hero-3d-container {
  display: none !important;
}

/* Убираем старый градиентный фон */
.home-hero-bg::before {
  display: none !important;
}

/* Скрываем фоновое изображение manta-home-bg-h5.png */
.home-hero-bg {
  background-image: none !important;
} 