.top-banner {
  position: relative;
  width: 100%;
  height: 500px;
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-transition: none;
  transition: none;
  -webkit-transform: none;
  -ms-transform: none;
  transform: none;
  background-attachment: scroll;
  background-position: center;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;

  .fix-inner {
    height: 690px;
    width: 100%;
    position: fixed;
    top: 0px;
    left: 0;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -2;
  }

  .overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 20;
  }

  .title {
    font-size: 80px;
    font-family: "Muli", sans-serif;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: .2px;
    margin-bottom: 0;
    line-height: 1.1;
  }
  .sub-title {
    margin-bottom: 25px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .3px;
  }
  .content{
    z-index: 30;
    max-width: 1170px;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
  }
  .a-btn {
    margin-top: 30px;
  }
  &.small_banner {
    height: 360px;
    .title {
      font-size: 50px;
    }
  }
  &.classic {
    height: auto;
    .flex-wrap {
      display: -webkit-box;
      display: -moz-box;
      display: -ms-flexbox;
      display: -webkit-flex;
      display: flex;
      min-height: 700px;
    }
    .s-back-switch {
      -webkit-background-size: cover;
      background-size: cover;
      background-position: center;
      min-height: 700px;
    }
    .title {
      position: relative;
      top: 50%;
      left: 50%;
      -webkit-transform: translate(-50%, -50%);
      -moz-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
      -o-transform: translate(-50%, -50%);
      transform: translate(-50%, -50%);
      max-width: 680px;
      color: #ffffff;
    }
  }
  &.small_banner,
  &.medium_banner {
    .images-wrap {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }
    .img-wrap {
      position: absolute;
      z-index: 20;
      img {
        animation: fragment backwards 5s ease-in-out infinite;
      }
    }
  }
  &.style1 {
    .img-wrap {
      &-1 {
        top: 75% !important;
        left: 90% !important;
      }
      &-2 {
        top: 30% !important;
        left: 20% !important;
      }
      &-3 {
        top: 85%!important;
        left: 65% !important;
      }
      &-4 {
        top: 45% !important;
        left: 85% !important;
      }
      &-5 {
        top: 80% !important;
        left: 5% !important;
      }
      &-6 {
        top: 10% !important;
        left: 0% !important;
      }
      &-7 {
        top: -20% !important;
        left: 70% !important;
      }
      &-8 {
        top: 15% !important;
        left: 30% !important;
      }
      &-9 {
        top: -10% !important;
        left: 90% !important;
      }
    }
  }
  &.style2 {
    .img-wrap {
      &-1 {
        top: -80% !important;
        left: 0% !important;
      }
      &-2 {
        top: -15% !important;
        left: 55% !important;
      }
      &-3 {
        top: -65% !important;
        left: 75% !important;
      }
      &-4 {
        top: 60% !important;
        left: -15% !important;
      }
      &-5 {
        top: 60% !important;
        left: -5% !important;
      }
      &-6 {
        top: 75% !important;
        left: 20% !important;
      }
      &-7 {
        top: 80% !important;
        left: 70% !important;
      }
    }
  }
}
@-webkit-keyframes fragment {
  0% {  -webkit-transform: scale(1) translateX(0);  transform: scale(1) translateX(0) }
  50% {  -webkit-transform: scale(1.1) translateX(-10%) ;  transform: scale(1.1) translateX(-10%) ; }
  100% {  -webkit-transform: scale(1) translateX(0) ;  transform: scale(1) translateX(0) ; }
}
@keyframes fragment {
  0% {  -webkit-transform: scale(1) translateX(0);  transform: scale(1) translateX(0) }
  50% {  -webkit-transform: scale(1.1) translateX(-10%) ;  transform: scale(1.1) translateX(-10%) ; }
  100% {  -webkit-transform: scale(1) translateX(0) ;  transform: scale(1) translateX(0) ; }
}
/*Top banner full height*/
.top-banner.full-height .container .subtitle {
  padding-top: 0;
}

.top-banner.full-height-window .content {
    margin-top: 0;
    margin-bottom: 0;
}

.top-banner.full-height .content {
  margin-top: auto;
  margin-bottom: auto;
}

.top-banner.center_content .content {
  text-align: center;
  margin: 0;
}

.top-banner.top_align .content {
  top: 0 !important;
  margin-top: 0 !important;
}

.top-banner.right_content {
  text-align: right;
  .descr {
    max-width: 100%;
  }
}

//.top-banner.center_content {
//  &.simple .content {
//    transform: translateX(-50%);
//  }
//}

@media (max-width: 1199px) {
  .top-banner .content {
    max-width: 970px;
  }
  .top-banner {
    &.classic {
      .flex-wrap {
        min-height: 450px;
      }
      .s-back-switch {
        min-height: 450px;
      }
      .title {
        padding: 0 30px;
        font-size: 40px;
      }
    }
  }
}

@media (max-width: 992px) {
  .top-banner .fix-inner {
    height: 100vh;
  }
  .top-banner{
    height: 300px;
  }
  .top-banner .title {
    font-size: 60px;
  }

  .top-banner.center_content {
    min-height: 300px !important;
  }
  .top-banner .banner-text {
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
  }
  .top-banner .content {
    margin-top: 100px;
    margin-bottom: 100px;
  }
  .top-banner {
    &.style1 {
      min-height: 400px!important;
      .title {
        margin-top: 0;
        font-size: 35px;
      }
      .sub-title {
        margin-bottom: 10px;
      }
    }
  }
}

@media (max-width: 991px) {
  .top-banner .content {
    max-width: 750px;
  }
}

@media (max-width: 767px) {
  .top-banner {
    height: auto;
    min-height: 500px;
  }
  .top-banner.center_content {
    min-height: 300px;
  }
  .top-banner .banner-text {
    position: relative;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
  }
  .top-banner {
    &.classic {
      .flex-wrap {
        display: block;
        position: relative;
      }
      .title {
        position: absolute;
      }
      .content-wrap {
        min-height: 400px;
      }
      .image-wrap + .content-wrap {
        background-color: rgba(0, 0, 0, .2)!important;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
      }
    }
    &.small_banner,
    &.medium_banner {
      &.style1 {
        .img-wrap {
          &-5,
          &-6,
          &-8 {
            display: none;
          }
        }
      }
      &.style2 {
        .img-wrap {
          &-1,
          &-5,
          &-7 {
            display: none;
          }
        }
      }
    }
  }
}

@media (max-width: 767px) {
  .top-banner .title,
  .top-banner.small_banner .title {
    font-size: 40px;
    line-height: 1.2;
  }
  .top-banner .banner-text {
    max-width: 90%;
    padding: 0 15px;
  }
  .top-banner .banner-text .title {
    font-size: 28px;
  }
  .top-banner .subtitle {
    letter-spacing: 5px;
  }
  .top-banner .content {
    padding: 0 15px;
  }
}


@media only screen and (max-width: 600px) {
  .top-banner.center_content {
    min-height: 300px !important;
  }
  .top-banner .content {
    margin-top: 30px;
    margin-bottom: 30px;
  }
  .top-banner {
    &.style1 {
      min-height: 400px!important;
    }
  }
}

@media (max-width: 480px) {
  .top-banner {
    text-align: center;
  }
  .top-banner .subtitle {
    padding-top: 30px;
  }
}
