@charset "UTF-8";
.video-preview {
  display: block;
  padding: 0;
  overflow: hidden;
  background-size: cover;
  border-radius: 16px;
  width: 100%;
  height: 520px;
  position: relative;
}
@media (max-width: 760px) {
  .video-preview {
    aspect-ratio: 16/9;
    height: initial;
  }
}
.video-preview__image {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  position: absolute;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.video-preview__image::before {
  content: "";
  background-color: rgba(0, 0, 0, 0.1882352941);
  width: 100%;
  display: block;
  height: 100%;
  position: absolute;
  z-index: 3;
  border-radius: 16px;
}
.video-preview__image img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
  object-fit: cover;
}
.video-preview .button-play {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -48px;
  margin-left: -48px;
  z-index: 5;
}
@media (max-width: 760px) {
  .video-preview .button-play {
    margin-top: -30px;
    margin-left: -30px;
  }
}

.button-play {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: none;
  background-color: transparent;
  text-decoration: none !important;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  position: relative;
}
@media (max-width: 760px) {
  .button-play {
    width: 60px;
    height: 60px;
  }
}
.button-play__icon {
  width: 31px;
  height: 31px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
  margin-left: 10px;
  z-index: 3;
  pointer-events: none;
}
@media (max-width: 760px) {
  .button-play__icon {
    width: 24px;
    height: 24px;
    margin-left: 5px;
  }
}
.button-play__icon svg {
  position: absolute;
  width: 100%;
  height: auto;
  max-height: 100%;
}
.button-play::before {
  content: "";
  background-color: rgba(255, 255, 255, 0.1882352941);
  border-radius: 50%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  position: absolute;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  z-index: 0;
}
.button-play:hover::before {
  background-color: #0677ec;
  top: -4px;
  right: -4px;
  bottom: -4px;
  left: -4px;
}

/* -----------------------------
   2. Общие стили для всех модальных окон
   ----------------------------- */
.modal {
  position: fixed;
  z-index: 999999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  height: 100%;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  background-color: rgba(25, 25, 25, 0.6);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.3s, visibility 0.3s;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal.active {
  pointer-events: initial;
  visibility: visible;
  opacity: 1;
}

.modal .wrapper {
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.modal__body {
  position: relative;
  width: 688px !important;
  margin: 0 auto;
  padding: 43px 64px 64px;
  background: var(--white);
  border-radius: 0;
  max-height: 100svh;
  overflow-y: auto;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: block;
  width: 38px;
  height: 38px;
  padding: 8px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  z-index: 2;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
  color: #191919;
}

.modal--video .modal__close {
  color: #ffffff;
}

.modal__close svg {
  width: 100%;
  height: auto;
  pointer-events: none;
}

.modal__close svg path {
  stroke: currentColor;
}

/* .modal__close::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  visibility: hidden;
  background-color: #191919;
  z-index: 1;
  -webkit-transition: background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, opacity 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, visibility 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, width 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  transition: background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, opacity 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, visibility 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, width 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
} */

.modal__close:hover,
.modal__close:focus {
  color: #fff;
}

/* .modal__close:hover::before,
.modal__close:focus::before {
  visibility: visible;
  width: 100%;
} */

body.modal-open {
  overflow: hidden;
}

/* Адаптация «обычной» модалки под узкие экраны */
@media (max-width: 950px) {
  .modal__body {
    width: 100% !important;
    max-width: 100% !important;
  }
}
@media (max-width: 767px) {
  .modal__body {
    padding: 27px 30px 30px;
  }
  .modal__close {
    top: 10px;
    right: 10px;
  }
}
/* -----------------------------
   3. Стили для «Видео»-модалки (центрированное видео)
   ----------------------------- */
/*
   Вместо того чтобы растягивать .modal__body на весь экран,
   мы делаем его «подгоняемым» по размеру видео и используем flex
   для центрирования .video-responsive внутри.
*/
.modal--video .modal__body {
  width: auto !important;
  max-width: 100vw !important;
  height: auto !important;
  max-height: 100vh !important;
  margin: 0;
  padding: 0;
  background-color: transparent;
  overflow: hidden;
  border-radius: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

/* Контейнер, в который JS вставляет .video-responsive */
.modal__video-container {
  width: 100%;
  /* По умолчанию — позволяем .video-responsive самому решать размер */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  background: #000;
}

/* -----------------------------
   4. Стили для обёртки адаптивного видео
   ----------------------------- */
.video-responsive {
  position: relative;
  width: 90vw;
  max-width: 1280px;
  /* сохраняем соотношение 16:9 */
  aspect-ratio: 16/9;
  background: #000;
}

.video-responsive iframe,
.video-responsive video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

/* -----------------------------
   5. Адаптив для мобильных экранов
   ----------------------------- */
@media (max-width: 767px) {
  .video-responsive {
    width: 100vw;
    aspect-ratio: 16/9;
  }
}/*# sourceMappingURL=style.css.map */