@media (max-width: 480px) {
  .btn-video {
    width: auto;
    justify-self: start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Основной контейнер */
.video-section {
  position: relative;
  width: 100%;
  height: auto;
}

/* Overlay для секции */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.empty-space {
  display: none;
}

@media (min-width: 1280px) {
  .empty-space {
    display: block;
  }
}

/* Видео контейнер */
.video-container {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.video-container .video-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay на видео */
.video-container .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

/* Контент поверх видео */
.video-content {
/*  position: relative;*/
  z-index: 3;
/*  padding: 0 16px;*/
}

@media (min-width: 1280px) {
  .video-content {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
/*    padding: 0 72px;*/
  }
}

@media (min-width: 768px) {
  .video-content {
/*    padding: 0 72px;*/
  }
}

.video-content .empty-space {
  grid-column: span 4;
}

.video-content .text-block {
  grid-column: span 7;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.7s ease-out, opacity 0.7s ease-out;
/*  padding: 1rem;*/
  color: white;
}

.video-content #direction_video {
  grid-column: span 13;
}

.video-content .text-block.show {
  transform: translateY(0);
  opacity: 1;
}

.initial-block-container.hided{
  transform: translateY(-50px);
  opacity: 0;
}


.initial-block-container{
  transition: all 0.7s ease-out, opacity 0.7s ease-out;
  opacity: 1;
  transform: translateY(0);
}


.video-content .text-block .title {
  line-height: 28px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
}

@media (min-width: 768px) {
  .video-content .text-block .title {
    line-height: 40px;
  }
}

.video-content .text-block .description {
  margin: 24px 0 2.25rem;
  font-size: 1.125rem;
}

.video-content .text-block .btn {
  display: flex;
  align-items: center;
  color: white;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  justify-self: end;
}

.video-content .text-block .btn .btn-text {
  padding-left: 0.5rem;
}

/* Scroll space */
.scroll-space {
  height: 100vh;
}

/* Анимация для модального окна */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.5s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.fade-enter-to,
.fade-leave-from {
  opacity: 1;
}

/* Модальное окно */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay .modal-content {
  position: relative;
  width: 90%;
  max-width: 1800px;
}

.modal-overlay .modal-content .modal-close {
  position: absolute;
  top: 0.5rem;
  right: 1.5rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
}

.modal-overlay .modal-content .modal-video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}