/* video page */
/* reset styles */
* {
  padding: 0;
  margin: 0;
  border: 0;
}

*,
*:before,
*:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

:focus,
:active {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

nav,
footer,
header,
aside {
  display: block;
}

html,
body {
  width: 100%;
  line-height: 1;
  font-size: 16px;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

input,
button,
textarea {
  font-family: inherit;
}

input::-ms-clear {
  display: none;
}

input::-moz-placeholder {
  color: var(--main-gray);
}

input::-webkit-input-placeholder {
  color: var(--main-gray);
}

button {
  cursor: pointer;
  background-color: transparent;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

a,
a:visited {
  text-decoration: none;
}

ul li {
  list-style: none;
}

img {
  vertical-align: top;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: 400;
  margin: 0;
}

picture {
  display: block;
}

/* glob */
body {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  min-width: 320px;
}


.videogallery_container {
  max-width: 1808px;
  margin: 0 auto;
  padding: 40px 0;
  position: relative;
  width: 100%;
}

.videogallery_container h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 114.28571%;
  position: relative;
  margin-bottom: 60px;
  padding-left: 1.4375rem;
  color: #1b315f;
}

.videogallery_container h1>span {
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 114.28571%;
  margin-bottom: 2rem;
  color: #1b315f;
}


.videogallery_container:after {
  content: '';
  background-color: #2770F1;
  width: 5px;
  height: 75px;
  position: absolute;
  top: 36px;
}

.video-col-4 {
  flex: 0 1 calc(25% - 34px);
  position: relative;
  margin-right: 45px;
  overflow: hidden;
  box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.2);
  height: 223px;
}

.video-col-4:nth-child(4n) {
  margin-right: 0;
}

.video-col-4:last-child {
  margin-right: 0;
}

.gallery__wrapper-video {
  display: flex;
  flex-wrap: wrap;
  row-gap: 45px;
}


video {
  width: 100%;
}

.galery__video {
  position: relative;
}

.video-item {
  min-width: 100%;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.2);
}

.video-item.active {
  height: 100%;
}

.video-item::before {
  display: block;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(22, 45, 95, 0.50) 0%, rgba(22, 45, 95, 0.50) 100%);
  pointer-events: none;
  border-radius: 5px;
}

.video-item.active::before {
  display: none;
}

.descr-video {
  position: absolute;
  bottom: 20px;
  left: 13px;
  white-space: nowrap;
  color: #FFF;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  scale: 1;
  transition: scale .4s ease;
  pointer-events: none;
}

.descr-video.active {
  scale: 0;
}

.videogallery_container {
  padding: 40px 45px;
}

.gallery__video.video-col-4::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 80px;
  transform: rotate(90deg);
  flex-shrink: 0;
  background: #2770F1;
  bottom: -39px;
  left: 64px;
  z-index: 1;
}


.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
}

.play-button.hide {
  display: none;
}


.current-video {
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: 5px;
}

/* video main */

.video-main__container {
  max-width: 1170px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  padding: 110px 45px;
}

.video-main__container h2 {
  color: #1B315F;
  font-size: 44px;
  font-weight: 700;
  line-height: 45px;
  margin-left: 20px;
  margin-bottom: 43px;
}

.video-main__container:after {
  content: '';
  background-color: #2770F1;
  width: 5px;
  height: 56px;
  position: absolute;
  top: 105px;
  left: 45px;
}

.video-main {
  min-width: 100%;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  margin-bottom: 37px;
  box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.2);
  height: 575px;
}

.video-main.active {
  height: 100%;
}

.video-main::before {
  display: block;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(22, 45, 95, 0.50) 0%, rgba(22, 45, 95, 0.50) 100%);
  pointer-events: none;
  border-radius: 5px;
}

.video-main.active::before {
  display: none;
}

.current-video-main {
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: 5px;
}

.play-button-main {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
}

.play-button-main.hide {
  display: none;
}



.current-video-main[poster] {
  width: 100%;
}

/* video swiper */

.gallery__video {
  height: 240px;
}

.videoswiper {
  padding: 118px 0 110px 0;
}

.videoswiper__container {
  max-width: 1840px;
  width: 100%;
  margin: 0 auto;
}

.videoswiper__container>h2 {
  color: #1B315F;
  font-size: 44px;
  font-weight: 800;
  line-height: 45px;
  padding-left: 40px;
  margin-bottom: 60px;
  position: relative;
}

.videoswiper__slider {
  max-width: 1600px;
  margin: 0 auto;
  margin-bottom: 60px;
  width: 100%;
}

.videoswiper__wrapper-slider {
  position: relative;
}

.videoswiper__slider-btn_prev {
  position: absolute;
  bottom: -110px;
  left: 0;
}

.videoswiper__slider-btn_next {
  position: absolute;
  bottom: -110px;
  right: 0;
}

.videoswiper__slider-btn_prev.swiper-button-disabled {
  opacity: .5;
  pointer-events: none;
}

.videoswiper__slider-btn_next.swiper-button-disabled {
  opacity: .5;
  pointer-events: none;
}

.swiper-btn {
  cursor: pointer;
}

.swiper-btn>button {
  color: #FFF;
  font-size: 18px;
  font-weight: 600;
  line-height: 25px;
  border-radius: 4px;
  background: #2770F1;
  padding: 15px 20px;
  margin: 0 auto;
  display: flex;
}

.swiper-btn>button>img {
  padding: 8px;
}

.videoswiper__container>h2:after {
  content: '';
  background-color: #2770F1;
  width: 5px;
  height: 56px;
  position: absolute;
  top: -5px;
  left: 20px;
}

.swiper-video[poster] {
  max-height: 100%;
  max-width: 100%;
}

@media (min-width: 1000px) {
  .current-video-main {
      height: 100%;
  }
}

@media (max-width: 1800px) {

  .video-col-4 {
      flex: 0 1 calc(33.3333% - 30px);
      position: relative;
  }

  .video-col-4:nth-child(4n) {
      margin-right: 45px;
  }

  .video-col-4:nth-child(3n) {
      margin-right: 0;
  }

  .video-col-4:last-child {
      margin-right: 0;
  }

}

@media (max-width: 1224px) {
  .video-col-4 {
      flex: 0 1 calc(50% - 23px);
      position: relative;
  }

  .video-col-4:nth-child(3n) {
      margin-right: 45px;
  }

  .video-col-4:nth-child(2n) {
      margin-right: 0;
  }

  .video-col-4:last-child {
      margin-right: 0;
  }

  /* video main */
  .video-main {
      height: 540px;
  }

  .video-main__container h2 {
      color: #1B315F;
      font-family: Montserrat;
      font-size: 26px;
      font-style: normal;
      font-weight: 700;
      line-height: 30px;
      max-width: 440px;
      margin-bottom: 30px;
  }

  .video-main__container:after {
      width: 3px;
      height: 60px;
      top: 43px;
      left: 16px;
  }

  .video-main__container {
      padding: 43px 15px;
  }
  .

  /* videoswiper */

  .videoswiper__container>h2 {
      color: #1B315F;
      font-size: 26px;
      font-weight: 800;
      line-height: 30px;
      max-width: 350px;
      padding-left: 10px;
      margin-bottom: 30px;
  }

  .videoswiper__container>h2:after {
      width: 3px;
      height: 60px;
      flex-shrink: 0;
      top: -2px;
      left: 0;
  }

  .videoswiper {
      padding: 53px 0 54px 0;
  }

  .videoswiper__container {
      padding: 0 15px;
  }

  .videoswiper__slider-btn {
      display: none;
  }

  .videoswiper__slider {
      margin-bottom: 32px;
  }
}

@media (max-width: 900px) {
  .videogallery_container h2 {
      color: #1B315F;
      font-size: 26px;
      font-weight: 800;
      line-height: 30px;
      margin-bottom: 30px;
      max-width: 350px;
  }

  .videogallery_container h2>span {
      color: #1B315F;
      font-size: 26px;
      font-weight: 500;
      line-height: 30px;
      padding-right: 422px;
  }

  .videogallery_container:after {
      width: 3px;
      height: 60px;
  }

  /* video main */
  .video-main {
      height: 400px;
  }

}

@media (max-width: 800px) {
  .video-col-4 {
      flex: 0 1 calc(100%);
      position: relative;
      margin-right: 0;
  }

  .video-col-4:nth-child(3n) {
      margin-right: 0;
  }

  .video-col-4:last-child {
      margin-right: 0;
  }

  .videogallery_container {
      padding: 38px 15px;
  }

  .gallery__wrapper-video {
      row-gap: 15px;
  }

  /* video main */

  .video-main__container>button {
      width: 100%;
      justify-content: center;
  }

  .swiper-btn>button {
      width: 100%;
      justify-content: center;
  }

  .btn-margin-right {
      margin-right: 15px;
  }

  /* video main */
  .video-main {
      height: 350px;
  }
}


@media (max-width: 560px) {

  .videoswiper__container {
      padding: 0;
      padding-left: 15px;
  }

  .video-col-4 {
      height: 188px;
  }

  /* video main */
  .video-main {
      height: 235px;
  }

}


.youtube {
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: inline-block;
  overflow: hidden;
  background-size: cover;
  transition: all 200ms ease-out;
  cursor: pointer;
}

.youtube .play {
  background: url('../img/youtube-play-btn.png') no-repeat;
  /*ВАЖНО: здесь укажите адрес до изображения*/
  background-position: 0 -50px;
  -webkit-background-size: 100% auto;
  background-size: 100% auto;
  position: absolute;
  height: 50px;
  width: 69px;
  transition: none;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.youtube:hover .play {
  background-position: 0 0;
}




/* @media (max-width: 767px) {
  .youtube {
      height: 350px !important;
  }
} */
