/* Video Background Styles */
.hero-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: -1;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 28, 44, 0.5); /* Полупрозрачный темно-синий оттенок */
  z-index: 0;
}

/* Стили для секции с видео в качестве фона */
.video-background-section {
  position: relative;
  width: 100%;
  padding: 4rem 0;
  margin: 3rem 0;
  overflow: hidden;
  color: white;
}

.video-background-section .video-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.video-background-section h2 {
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-size: 2.5rem;
}

.video-background-section p {
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.video-background-section .btn {
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-weight: bold;
  transition: all 0.3s ease;
}

.video-background-section .btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Мобильная оптимизация видео-фона */
@media (max-width: 768px) {
  .video-background-section {
    padding: 3rem 1rem; /* Уменьшаем padding на планшетах */
  }
  
  .video-background-section h1 {
    font-size: 2rem; /* Уменьшаем размер заголовка */
  }
  
  .video-background-section p {
    font-size: 1rem;
    max-width: 500px; /* Уменьшаем максимальную ширину текста */
  }
  
  .video-background-section .btn {
    padding: 0.875rem 2rem; /* Увеличиваем кнопки для лучшего touch target */
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .video-background-section {
    padding: 2rem 0.75rem; /* Еще больше уменьшаем padding */
    text-align: center; /* Центрируем контент */
  }
  
  .video-background-section h1 {
    font-size: 1.75rem;
  }
  
  .video-background-section p {
    font-size: 0.95rem;
    max-width: 100%; /* Полная ширина на маленьких экранах */
  }
  
  .video-background-section .btn {
    width: 100%; /* Полная ширина кнопки */
    max-width: 300px;
    padding: 1rem 2rem;
    font-size: 1.15rem;
  }
}
