@charset "UTF-8";

/* popup.css*/

/*Переменные*/

:root {
  --zero: #000;
  --white: #FFF;
  --txt: #0C0805;
  --blue: #0376B1;
  --blue2: #3795C6;
  --border: #C2C2C2;
  --gray: #F3F3F3;
  --gray3: #828282;
  --yellow: #FFC01A;
  --green: #00882B;
  --red: #EB5757;
}

/*Миксины*/

/* Медиа всплывашка */

.media-popup-open {
  cursor: pointer;
}

.media-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
}

.media-popup .close {
  position: absolute;
  top: 50px;
  right: 50px;
  z-index: 1;
  line-height: 0;
}

.media-popup__overlay {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background: var(--blue, #0376B1);
  opacity: 0.8;
}

.media-popup__content {
  width: calc(100% - 216px);
  height: calc(100% - 80px);
  margin: auto;
  overflow: hidden;
}

.media-popup__content.one-item {
  height: 100%;
}

.media-popup__slide {
  height: 100%;
  text-align: center;
}

.media-popup__slide img {
  max-width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  margin: 0 auto;
}

.media-popup__title {
  visibility: visible;
  position: absolute;
  z-index: 1;
  color: var(--white, #FFF);
  bottom: calc(100% + 14px);
  text-align: center;
  width: 100%;
  margin: 0;
}

.popup-slider {
  width: calc(100% - 272px);
  height: calc(100% - 125px);
  overflow: hidden;
  border-radius: 12px;
  margin: 0 auto;
  padding-top: 90px;
}

.popup-slider__navigation {
  position: absolute;
  left: 108px;
  top: 50%;
  -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
          transform: translateY(-50%);
  margin-top: -62px;
  width: calc(100% - 216px);
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between !important;
}

.popup-slider__arrow {
  width: 72px;
  height: 72px;
  border: 1px solid var(--white, #FFF);
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
  cursor: pointer;
  visibility: visible;
}

.popup-slider__arrow svg {
  width: 26px;
  height: 26px;
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
}

.popup-slider__arrow path {
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
}

.popup-slider__arrow.swiper-button-disabled {
  opacity: 0;
  cursor: default;
}

.popup-slider__arrow:hover {
  background: var(--white, #FFF);
}

.popup-slider__arrow:hover path {
  fill: var(--blue, #0376B1);
}

.popup-slider__arrow:hover svg {
  -webkit-transform: rotateX(180deg);
          transform: rotateX(180deg);
}

.media-popup__slide,
.popup-slider .swiper-slide,
.popup-slider,
.popup-slider__navigation {
  visibility: hidden;
}

.media-popup__slide img {
  visibility: visible;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.media-popup__slide video,
.media-popup__slide iframe {
  visibility: visible;
  width: auto !important;
  max-width: 100%;
  height: 100%;
  border-radius: 12px;
  background: var(--txt, #0C0805);
  margin: 0 auto;
}

.media-popup__slide iframe {
  width: 100% !important;
}

.media-popup__slide .video__wrapper {
  visibility: visible;
  width: auto !important;
  max-width: 100%;
  height: 100%;
}

.media-popup__slide .video__wrapper img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.popup-slider-small {
  width: calc(100% - 272px);
  overflow: hidden;
  margin: 14px auto 0;
}

.popup-slider-small .swiper-slide {
  width: auto;
}

.popup-slider-small .video__overlay {
  background: none;
}

.media-popup-small__slide {
  height: 112px;
  position: relative;
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
  cursor: pointer;
}

.media-popup-small__slide img {
  width: auto !important;
  height: 100%;
}

.media-popup-small__slide::before,
.media-popup-small__slide::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  background: var(--zero, #000);
  opacity: 0;
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
}

.media-popup-small__slide::after {
  background: none;
  -webkit-box-shadow: inset 0 0 0 2px var(--white, #FFF);
          box-shadow: inset 0 0 0 2px var(--white, #FFF);
}

.media-popup-small__slide .video__overlay::before,
.media-popup-small__slide .video__overlay::after {
  width: 24px;
  height: 24px;
}

.swiper-slide-active .media-popup-small__slide::before {
  opacity: 0.3;
}

.swiper-slide-active .media-popup-small__slide::after {
  opacity: 1;
}

.media-popup__one {
  width: calc(100% - 272px);
  height: calc(100% - 150px);
  position: relative;
  z-index: 1;
  margin: 90px auto 0;
}

.media-popup__one img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center;
     object-position: center;
  border-radius: 12px;
}

.media-popup__one iframe,
.media-popup__one video {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.media-popup__one .media-popup__title {
  bottom: auto;
  top: calc(100% + 14px);
}

/* Общая всплывашка */

.popup {
  display: none;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 21;
  padding: 0px;
  width: 100%;
  height: 100%;
  overflow: hidden auto;
  padding: 48px 0;
}

.popup__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.2;
}

.popup__content {
  width: 880px;
  max-width: calc(100% - 4px);
  padding: 48px;
  border-radius: 24px;
  position: relative;
  z-index: 1;
}

.popup__close {
  margin-bottom: 20px;
  margin-left: auto;
  width: 22px;
  line-height: 0;
  cursor: pointer;
}

.popup__close svg {
  width: 100%;
  height: auto;
}

.popup__close path {
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
}

.popup__close:hover path {
  stroke: var(--txt, #0C0805);
}

.popup__title {
  margin: 0 0 44px;
}

@media (max-width: 1200px) {
  .media-popup .close {
    top: 20px;
    right: 20px;
  }

  .media-popup__content {
    width: calc(100% - 40px);
    height: calc(100% - 20px);
  }

  .popup-slider {
    width: calc(100% - 140px);
  }

  .popup-slider__navigation {
    margin-top: -40px;
    width: calc(100% - 40px);
    left: 20px;
  }

  .popup-slider__arrow {
    width: 48px;
    height: 48px;
  }

  .popup-slider__arrow svg {
    width: 20px;
    height: 20px;
  }

  .popup-slider-small {
    width: calc(100% - 140px);
  }

  .media-popup-small__slide {
    height: 80px;
  }
}

@media (max-width: 1019px) {
  .popup {
    padding: 24px 0;
  }

  .popup__content {
    max-height: calc(100vh - 80px);
    padding: 20px;
    border-radius: 12px;
  }

  .popup__close {
    margin-bottom: 12px;
    width: 18px;
  }

  .popup__title {
    margin: 0 0 20px;
  }
}

@media (max-width: 650px) {
  .media-popup__content {
    width: calc(100% - 20px);
  }

  .popup-slider {
    width: 100%;
  }

  .popup-slider__navigation {
    display: none;
  }

  .popup-slider-small {
    width: 100%;
  }

  .media-popup-small__slide {
    height: 64px;
  }
}

.banner-popup { position: fixed; width: 100%; height: 100%; top: 0; left: 0; background: rgba(0,0,0,.6); z-index: 100 }
.banner-popup-in { display: flex; align-items: center; justify-content: center; position: relative; width: 100%; height: 100%; padding: 0 15px }
.banner-popup-in img { max-width: 100%; width: 900px;  }
.banner-popup-close { width: 60px; height: 60px; position: absolute; top: 60px; right: 60px; cursor: pointer; }
.banner-popup-close:before { content: ''; width: 6px; height: 100%; background: #fff; position: absolute; top: 0; left: 50%; transform: rotate(-45deg) }
.banner-popup-close:after { content: ''; width: 6px; height: 100%; background: #fff; position: absolute; top: 0; left: 50%; transform: rotate(45deg) }

@media (max-width: 1280px) {
	.banner-popup-in img { width: 700px;  }
}

@media (max-width: 980px) {
	.banner-popup-in img { width: 600px;  }
	.banner-popup-close { width: 40px; height: 40px; top: 30px; right: 40px; }
	.banner-popup-close:before { width: 5px; }
	.banner-popup-close:after { width: 5px; }
}

@media (max-width: 700px) {
	.banner-popup-close { top: 60px; }
}

/*Переменные*/

:root {
  --zero: #000;
  --white: #FFF;
  --txt: #0C0805;
  --blue: #0376B1;
  --blue2: #3795C6;
  --border: #C2C2C2;
  --gray: #F3F3F3;
  --gray3: #828282;
  --yellow: #FFC01A;
  --green: #00882B;
  --red: #EB5757;
}

/*Миксины*/

.gallery {
  display: -ms-grid;
  display: grid;
  gap: 32px;
  -ms-grid-columns: 1fr 1fr 1fr;
  grid-template-columns: 1fr 1fr 1fr;
  margin-bottom: 32px;
}

.gallery--2-col {
  -ms-grid-columns: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
}

.gallery__image {
  position: relative;
  width: 100%;
  /*padding-top: 70%;*/
  margin-bottom: 16px;
}

@media (max-width: 650px) {
  .gallery {
    gap: 16px;
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 16px;
  }


  .gallery__image {
    margin-bottom: 8px;
  }
}
