.home-slider {
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;

  .video-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    &::after {
      position: absolute;
      width: 100%;
      height: 100%;
      left: 0;
      top: 0;
      background: rgba($primary, .8);
      content: '';
      display: block;
    }

    @include media-breakpoint-down(lg) {
      &::before {
        display: block;
        padding-top: var(--bs-aspect-ratio);
        content: "";
      }
      --bs-aspect-ratio: calc(10 / 16 * 100%);
    }
    @include breakpoint(576) {
      height: 75vh;
    }

    video {
      @include media-breakpoint-up(lg) {
        width: 100%;
        height: auto;
        transform: scale(1.2);
        transition: transform 5s linear;
        max-width: 100%;
        width: 100%;
      }
      @include media-breakpoint-down(lg) {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
  }

  .swiper-slide {
    position: relative;
    z-index: 1;

    &::after {
      content: '';
      display: block;
      width: 100%;
      height: 45%;
      top: 0;
      left: 0;
      position: absolute;
      z-index: 0;
      background: rgb(0, 0, 0);
      background: -moz-linear-gradient(184deg, #151126c9 6%, #0000006b 35%, #0000 75%, #0000 100%);
      background: -webkit-linear-gradient(184deg, #151126c9 6%, #0000006b 35%, #0000 75%, #0000 100%);
      background: linear-gradient(184deg, #151126c9 6%, #0000006b 35%, #0000 75%, #0000 100%);
      filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#000000", GradientType=1);
    }

    .img-wrapper {
      height: 100vh;
      @include media-breakpoint-down(lg) {
        position: relative;
        width: 100%;
        &::before {
          display: block;
          padding-top: var(--bs-aspect-ratio);
          content: "";
        }
        --bs-aspect-ratio: calc(10 / 16 * 100%);
      }
      @include breakpoint(576) {
        height: 75vh;
      }

      img {
        @include media-breakpoint-up(lg) {
          width: 100%;
          height: 100%;
          transform: scale(1.2);
          transition: transform 5s linear;
          max-width: 100%;
          width: 100%;
        }
        @include media-breakpoint-down(lg) {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }
    }

    &.swiper-slide-duplicate-active,
    &.swiper-slide.swiper-slide-active {
      img {
        transform: scale(1);
      }
    }

    .wrapper {
      width: 100%;
      position: absolute;
      left: 0;
      bottom: 100px;
      z-index: 2;
      color: #fff;
      @include flexbox();
      @include align-items(flex-end);

      .content {
        max-width: 800px;
        @include media-breakpoint-between(sm, lg) {
          max-width: 600px;
        }
        @include media-breakpoint-down(sm) {
          max-width: 90%;
        }
      }

      .title-1 {
        font-size: 23px;
        letter-spacing: .300rem;
        font-weight: 500;
        margin-bottom: 0;
        color: $secondary;
        @include media-breakpoint-down(lg) {
          font-size: 18px;
        }
        @include media-breakpoint-down(md) {
          font-size: 15px;
        }

        @include media-breakpoint-down(sm) {
          font-size: 13px;
          letter-spacing: .100rem;
          color: #fff;
        }
      }

      .title-2 {
        font-size: 52px;
        font-weight: 500;
        margin-bottom: 0;
        line-height: 1.2;
        white-space: pre-line;
        @include media-breakpoint-down(xl) {
          font-size: 35px;
        }
        @include media-breakpoint-down(md) {
          font-size: 26px;
        }

        @include media-breakpoint-down(sm) {
          font-size: 15px;
        }
      }

      p {
        max-width: 500px;
        font-size: 14px;
        font-weight: 500;
        color: #9598AE;
        @include media-breakpoint-down(xl) {
          font-size: 12px;
        }
        @include media-breakpoint-down(md) {
          @include text-clamp(5);
          color: #fff;
        }
      }

      a {
        font-size: 16px;
        @include media-breakpoint-down(lg) {
          font-size: 13px;
        }

        i {
          position: relative;
          top: 3px;
        }
      }
    }
  }

  .paginate-wrapper {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
  }

  .pagination {
    width: 100%;
    position: relative;
    z-index: 10;
    text-align: left;
    top: 0;
    bottom: auto;
  }

  .swiper-pagination-bullet {
    background: transparent;
    opacity: 1;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    padding: 10px 30px;
    display: inline-table;
    // transition: background 200ms;

    &::after {
      content: "";
      display: block;
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 5px;
      // transition: opacity 200ms;
    }
  }

  .swiper-pagination-bullet-active {
    &::after {
      background-color: $secondary;
      animation: slide-progress 6s cubic-bezier(.3, 0, .3, 1) forwards;

      .swiper-paused & {
        // opacity: 0;
        animation-play-state: paused;
      }
    }
  }
}

main {
  min-height: 500px;
  background: url('/assets/images/mainbg.png.webp') no-repeat top center;
  background-size: 80% auto;
}

.section-header {
  @include flexbox();
  @include align-items(center);
  @include justify-content(space-between);

  .title {
    @include flexbox();
    @include align-items(center);

    .left {
      span {
        display: block;

        &:first-child {
          font-size: 24px;
          font-weight: 600;
          color: $primary;
          @include media-breakpoint-down(sm) {
            font-size: 18px;
          }
        }

        &:last-child {
          font-weight: 500;
          font-size: 15px;
          color: $secondary;
          letter-spacing: .2em;
          @include media-breakpoint-down(sm) {
            font-size: 12px;
          }
        }
      }

      padding-right: 20px;
      border-right: 1px solid #eaeaea;
      @include media-breakpoint-down(lg) {
        border: none;
      }
    }

    .text {
      padding-left: 20px;
      font-size: 13px;
      max-width: 375px;
      @include media-breakpoint-down(lg) {
        display: none;
      }
    }
  }

  .actions {
    @include flexbox();
    @include align-items(center);
    @include justify-content(flex-end);

    .btn, a {
      & + .btn {
        margin-left: 5px
      }

      & + a {
        margin-left: 5px
      }
    }

    .btn-cs {
      border: 1px solid #C3C5CE;
      color: $txt;
      border-radius: 0;

      &:hover {
        background: $secondary;
        color: #fff;
        border-color: $secondary;
      }

      &.prev, &.next {
        font-size: 22px;
        line-height: 1;
        padding-left: 10px;
        padding-right: 10px;
        @include media-breakpoint-down(sm) {
          padding-left: 3px;
          padding-right: 3px;
        }
      }
    }

  }
}

.actions {
  @include flexbox();
  @include align-items(center);
  @include justify-content(flex-end);

  .btn, a {
    & + .btn {
      margin-left: 5px
    }

    & + a {
      margin-left: 5px
    }
  }

  .btn-cs {
    border: 1px solid #C3C5CE;
    color: $txt;
    border-radius: 0;

    &:hover {
      background: $secondary;
      color: #fff;
      border-color: $secondary;
    }

    &.prev, &.next {
      font-size: 22px;
      line-height: 1;
      padding-left: 10px;
      padding-right: 10px;
      @include media-breakpoint-down(sm) {
        padding-left: 3px;
        padding-right: 3px;
      }
    }
  }

}

.section-header-2 {
  width: 100%;
  text-align: center;

  .title {
    .arrow {
      position: relative;
      text-align: center;
      color: $secondary;
      font-size: 24px;
    }

    span {
      line-height: 1.3;
      display: block;

      &:first-child {
        color: $secondary;
        font-size: 18px;
        letter-spacing: .2px;
      }

      &:nth-child(2) {
        color: $primary;
        font-weight: 500;
        font-size: 32px;
      }

      &:nth-child(3), &:last-child {
        color: $primary;
        font-weight: 500;
        font-size: 32px;
      }
    }

    p {
      width: 100%;
      margin: 10px auto 0;
      font-size: 14px;
      @include media-breakpoint-up(xl) {
        width: 50%;
      }
      @include media-breakpoint-between(sm, xl) {
        width: 70%;
      }
    }
  }

}


.categories {
  @include media-breakpoint-up(xl) {
    .cl:nth-child(n+7) {
      display: none;
    }
  }
  @include media-breakpoint-down(xl) {
    .cl:nth-child(n+9) {
      display: none;
    }
  }
  @include media-breakpoint-down(lg) {
    .cl:nth-child(n+7) {
      display: none;
    }
  }

  .cat-item {
    transform: scale(.95);
    transition: .4s;

    &:hover {
      transform: scale(1);

      .overlay {
        opacity: 1;
      }

      .gtitle {
        opacity: 0;
      }

      &::after {
        opacity: 1;
      }
    }

    &::after {
      transition: .2s;
      background: rgba($primary, .6);
      content: '';
      display: block;
      width: 100%;
      height: 100%;
      position: absolute;
      z-index: 5;
      left: 0;
      top: 0;
      opacity: 0;
    }

    .stretched-link::after {
      z-index: 999
    }

    .ratio {
      width: 100%;
      height: 325px;
      @include media-breakpoint-down(xs) {
        height: 200px;
      }

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }

    .overlay {
      -webkit-transition: all .3s .2s ease-in-out;
      -moz-transition: all .3s .2s ease-in-out;
      -ms-transition: all .3s .2s ease-in-out;
      -o-transition: all .3s .2s ease-in-out;
      transition: all .3s .2s ease-in-out;
      opacity: 0;
      padding: 27px 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      height: 60%;
      min-height: 195px;
      position: absolute;
      left: 0;
      bottom: 0;
      flex-direction: column;
      z-index: 10;

      .title {
        font-weight: 600;
        font-size: 15px;
        color: #fff;
        text-align: center;
        line-height: 1.2;
        @include media-breakpoint-down(xs) {
          font-size: 13px;
        }
      }

      .bottom-title {
        font-weight: normal;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.27em;
        color: rgba(#fff, .50);
        text-indent: 0.37em;
        @include media-breakpoint-down(xs) {
          font-size: 9px;
        }
      }

      .btn {
        padding: 0;
        width: 40px;
        height: 40px;
        line-height: 0;
        color: #fff;
        font-size: 20px;
        @include media-breakpoint-down(xs) {
          width: 30px;
          height: 30px;
          font-size: 16px;
        }
      }
    }

    .gtitle {
      transition: .4s;
      position: absolute;
      padding: 10px;
      width: 100%;
      color: #fff;
      font-weight: bold;
      font-size: 13px;
      bottom: 0;
      min-height: 100px;
      text-align: center;
      @include flexbox();
      @include align-items(flex-end);
      @include justify-content(center);
      background: rgb(12, 20, 74);
      background: -moz-linear-gradient(0deg, rgba(12, 20, 74, 1) 0%, rgba(12, 20, 74, 0.5438550420168067) 66%, rgba(12, 20, 74, 0) 100%);
      background: -webkit-linear-gradient(0deg, rgba(12, 20, 74, 1) 0%, rgba(12, 20, 74, 0.5438550420168067) 66%, rgba(12, 20, 74, 0) 100%);
      background: linear-gradient(0deg, rgba(12, 20, 74, 1) 0%, rgba(12, 20, 74, 0.5438550420168067) 66%, rgba(12, 20, 74, 0) 100%);
      filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#0c144a", endColorstr="#0c144a", GradientType=1);
    }
  }
}

.suppliers {
  .suppliers-item {
    &:hover {
      .wrapper {
        //figure{
        //    img{
        //        filter: none;
        //    }
        //}
        //.text{
        //    color: $primary;
        //}
        .view {
          color: $primary;

          button {
            border-color: $secondary;
            color: $secondary;
          }
        }
      }
    }

    .wrapper {
      margin: 10px;
      box-shadow: 0 0 10px #eaeaea;
      padding: 10px;
      min-height: 290px;
      position: relative;
      @include flexbox();
      @include align-items(center);
      @include justify-content(space-evenly);
      @include flex-direction(column);

      figure {
        margin: 0;

        img {
          max-width: 180px;
          max-height: 100px;
          width: auto;
          height: auto;
          //filter: grayscale(100);
          transition: .3s linear;
        }
      }

      .text {
        margin: 20px 0;
        font-size: 12px;
        text-align: center;
        @include text-clamp(4);
        //color: $txt;
        color: $primary;
        transition: .3s linear;
      }

      .view {
        font-size: 13px;
        font-weight: 500;
        color: $txt;
        transition: .3s linear;

        button {
          margin-left: 10px;
          width: 24px;
          height: 24px;
          padding: 0;
          line-height: 0;
          border: 1px solid #C3C5CE;
          transition: .3s linear;

          svg {
            font-size: 12px;
          }
        }
      }

    }
  }

  .swiper-slide {
    &.swiper-slide-active, &:hover {
      .wrapper {
        figure {
          img {
            filter: none;
          }
        }

        .text {
          color: $primary;
        }

        .view {
          color: $primary;

          button {
            border-color: $secondary;
            color: $secondary;
          }
        }
      }
    }

  }
}

.why-us-item {
  position: relative;

  &::after {
    transition: .2s linear;
    width: 35%;
    height: 65%;
    position: absolute;
    right: 10px;
    top: 12px;
    @extend .dot-pattern;
    content: '';
    display: block;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    ///*before hover */transform: translateX(70%) translateY(-70%);
    transform: translateX(0) translateY(0);
    z-index: 2;
  }

  overflow: hidden;

  &:hover {
    //&::after{
    //    transform: translateX(0) translateY(0);
    //}
    .wrapper {
      //transform: scale(1.01);
      //box-shadow: inset 0 0 10px #eaeaea;
      // border-color: $secondary;
      // .content{
      //     figure{
      //         border-color: $secondary;
      //         background: $secondary;
      //         svg *{
      //             fill: #fff;
      //         }
      //     }
      // }
    }
  }

  .wrapper {
    margin: 10px auto;
    transition: .4s;
    box-shadow: 0 0 10px #eaeaea;
    border: 2px solid transparent;
    background: #fff;
    padding: 15px 20px;
    min-height: 260px;
    position: relative;
    z-index: 1;
    @include flexbox();
    @include align-items(flex-end);

    .content {
      width: 100%;

      figure {
        margin: 0;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        border: 1px solid #C3C5CE;
        overflow: hidden;
        padding: 10px;
        @include flexbox();
        @include align-items(center);
        @include justify-content(center);

        img, svg {
          max-width: 80%;
          max-height: 80%;
        }

      }

      .title {
        width: 100%;
        margin-top: 25px;
        padding-bottom: 5px;
        border-bottom: 1px solid #eaeaea;
        margin-bottom: 5px;
        @include text-clamp(1);
        color: $primary;
        font-size: 16px;
        font-weight: 500;
      }

      .text {
        font-size: 13px;
      }
    }


    //@include magic-border(2px, $secondary, 0.2s, 1)
  }
}


.introducing {
  .left {
    @include flexbox();
    @include align-items(center);

    .wrapper {
      position: relative;
      z-index: 1;

      &::before {
        content: '';
        display: block;
        width: 150px;
        height: 150px;
        @extend .dot-pattern;
        position: absolute;
        left: -30px;
        top: -85px;
        z-index: -1;
      }

      .title {
        position: relative;
        padding-left: 60px;

        &::before {
          content: '';
          width: 50px;
          height: 2px;
          display: block;
          position: absolute;
          left: 0;
          top: 12px;
          background: $secondary;
        }

        span {
          display: block;
          line-height: 1.2;

          &:first-child {
            font-weight: 500;
            font-size: 23px;
            color: $primary;
          }

          &:last-child {
            color: $secondary;
            letter-spacing: 1.6px;
            font-size: 15px;
          }
        }
      }

      .content {
        background: #fff;
        width: 120%;
        padding: 50px 35px 40px 0;
        position: relative;
        z-index: -2;
        @include media-breakpoint-down(lg) {
          width: 170%;
        }
        @include media-breakpoint-down(md) {
          width: 100%;
        }

        .page-content {
          font-size: 14px;
          @include text-clamp(9);
        }
      }

      a.view {
        @include flexbox();
        @include align-items(center);

        .btn {
          margin-left: 10px;
          width: 23px;
          height: 23px;
          padding: 0;
          background: $secondary;

          svg {
            line-height: 0;
            color: #fff
          }
        }
      }
    }
  }

  figure {
    height: 100%;
  }

  .catalog {
    background: $primary;
    color: #fff;
    height: 100%;
    padding: 30px 20px 20px;
    position: relative;

    .title {
      span {
        display: block;

        &:first-child {
          color: $secondary;
        }

        &:last-child {
          font-weight: 500;
          font-size: 26px;
          text-transform: uppercase;
        }
      }
    }

    p {
      color: #7A8FA4;
      font-size: 13px;
    }

    figure {
      position: absolute;
      right: 0;
      bottom: 0;
      width: 55%;
      height: 65%;
      margin-bottom: 0;
      @include flexbox();
      @include align-items(flex-end);

      img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
      }
    }

    .view {
      font-weight: 500;
      font-size: 17px;
      position: absolute;
      left: -75px;
      bottom: 125px;
      transform: rotate(270deg);

      svg {
        line-height: 0;
        margin-left: -15px;
        font-size: 20px;

        &:nth-child(1) {
          color: rgba($secondary, .3)
        }

        &:nth-child(2) {
          color: rgba($secondary, .5)
        }

        &:nth-child(3) {
          color: rgba($secondary, .7)
        }

        &:nth-child(4) {
          color: rgba($secondary, 1)
        }
      }
    }
  }
}


.service-areas {
  .theGlobe {
    width: 100%;
    height: 650px;
    @include media-breakpoint-down(sm) {
      height: 400px;
    }

    canvas {
      width: 100%;
      height: 100%;
    }
  }

  .left {
    padding-top: 160px;
    @include media-breakpoint-down(lg) {
      padding-top: 0;
    }
  }

  .right {
    padding-top: 120px;
    @include media-breakpoint-down(lg) {
      padding-top: 0;
    }
  }

  .service-area {
    position: relative;

    &:nth-child(1n+1) {
      margin-top: 80px;
      @include media-breakpoint-down(lg) {
        margin-top: 30px;
      }
    }

    &:nth-child(2) {
      margin-left: 50px;
      @include media-breakpoint-down(lg) {
        margin-left: 0;
      }
    }

    .title {
      position: relative;
      margin-bottom: 10px;
      @include media-breakpoint-down(sm) {
        padding-left: 15px;
      }

      &::before {
        width: 2px;
        height: 100%;
        content: '';
        display: block;
        position: absolute;
        background: $secondary;
        left: -10px;
        top: 0;
        @include media-breakpoint-down(sm) {
          left: 0;
        }
      }

      span {
        display: block;

        &:first-child {
          font-weight: 500;
          text-transform: uppercase;
          color: $primary;
          font-size: 28px;
        }
      }
    }

    .text {
      font-size: 12px;
      margin-bottom: 10px;
    }

    a {
      color: #C3C5CE;
    }
  }
}


.offer {
  --background: $primary url('/assets/images/offerbg.jpg') center center;
  background: $primary url('/assets/images/offerbg.jpg.webp') center center;
  color: #C3C5CE;
  text-align: center;

  .contain {
    width: 75%;
    margin: 0 auto;
    @include flexbox();
    @include justify-content(center);
    @include align-items(center);
    @include flex-direction(column);
    @include media-breakpoint-down(sm) {
      width: 100%;
    }

    .title {
      font-weight: 500;
      margin-bottom: 15px;
      font-size: 26px;
      color: #fff;
    }

    p {
      font-size: 13px;
      color: #fff;
    }

    form {
      width: 100%;

      .form-control {
        border-radius: 0;
        background: #1a2148;
        border: none;
        outline: none;
      }
    }
  }

}

.brand-list {
  .brand-list-item {
    //flex: 0 0 auto;
    //width: 14.28%;
    &:hover a.figure {
      background: #fff;

      img {
        filter: grayscale(0);
      }
    }

    .figure {
      height: 95px;
      background: #f7f7f7;
      margin-bottom: 0;
      padding: 10px;
      border: 2px solid #f7f7f7;
      display: block;
      @include flexbox();
      @include justify-content(center);
      @include align-items(center);

      img {
        width: auto;
        height: auto;
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
        filter: grayscale(1);
      }

      &.tumunu-gor {
        font-size: 16px;
        font-weight: 600;

        &:hover {
          color: #fff;
          background-color: $secondary;
        }
      }
    }
  }
}


