@import '../global/variables';
@import '../global/mixins';
@import '../components/swiper';
.page-template-landing {
  .header-short {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1600px;
    width: 100%;
    z-index: 2;
    padding: 0 15px;
    @media screen and (max-width: $desktop) {
      top: 24px;
    }
    .flex {
      border-radius: 300px;
      border: 2px solid rgba(255, 255, 255, 0.00);
      background: rgba(255, 255, 255, 0.70);
      backdrop-filter: blur(34.599998474121094px);
      padding: 5px 32px;
      width: 100%;
      margin: 0 auto;
      color: $blue;
      @media screen and (max-width: $tablets-big) {
        padding: 8px 16px;
      }
    }
    .user_box {
      color: $blue;
    }
    .login-btn-style {
      font-size: 20px;
      border-radius: 400px;
      padding: 0 20px;
      background: $blue;
      @media screen and (max-width: $tablets-big) {
        font-size: 14px;
        padding: 5px 20px;
      }
      i {
        display: none;
      }
    }
    @media screen and (max-width: $tablets-big) {
      .logo {
        font-size: 14px;
        font-weight: 700;
        gap: 12px;
      }
    }
  }
}
.landing-page {
  h2 {
    font: normal 700 45px / 1.2em $font-almoni;
    color: $dark-blue;
    text-align: center;
    margin: 0;
    @media screen and (max-width: $tablets-big) {
      font-size: 28px;
    }
    span {
      color: $blue;
    }
  }
  .subtitle {
    font: normal 400 22px / 1em $font-almoni;
    color: $dark-gray;
    padding-top: 12px;
    text-align: center;
    margin: 0;
    @media screen and (max-width: $tablets-big) {
      font-size: 20px;
      padding-top: 8px;
    }
  }
  .container {
    max-width: 1390px;
    width: 100%;
    margin: 0 auto;
  }
  .hero {
    background: url("../img/main_bg.png") center bottom/cover no-repeat;
    color: $white;
    //height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding: 200px 15px 90px;
    overflow: hidden;
    max-width: 100%;
    position: relative;
    @media screen and (max-width: $desktop) {
      padding: 500px 15px 85px;
      height: fit-content;
      min-height: fit-content;
      background-position-y: top;
      background-size: auto 600px;
    }
    &-container {
      max-width: 1600px;
      width: 100%;
      margin: 0 auto;
      display: flex;
      align-items: center;
      flex-wrap: wrap;
    }
    .column-info {
      order: 1;
      width: 920px;
      position: relative;
      z-index: 2;
      @media screen and (max-width: $full-hd) {
        width: 740px;
      }
      @media screen and (max-width: $desktop) {
        margin: 0 auto;
        position: static;
      }
      @media screen and (max-width: $tablets-big) {
        width: 500px;
      }
      h1 {
        font: normal 700 68px / 1.2em $font-almoni;
        margin-bottom: 50px;
        @media screen and (max-width: $full-hd) {
          font-size: 55px;
        }
        @media screen and (max-width: $desktop) {
          position: absolute;
          top: 95px;
          left: 0;
          width: 100%;
          text-align: center;
        }
        @media screen and (max-width: $tablets-big) {
          font-size: 28px;
          color: $white;
        }
      }
    }
    .column-cart {
      position: absolute;
      left: -20px;
      top: 190px;
      width: 920px;
      z-index: 1;
      @media screen and (max-width: $full-hd) {
        left: -60px;
      }
      @media screen and (max-width: $desktop) {
        width: 600px;
        position: absolute;
        top: 120px;
        left: calc(50% + 30px);
        transform: translateX(-50%);
        margin: 0 auto;
      }
      @media screen and (max-width: $tablets-big) {
        top: 100px;
      }
      .image-box {
        position: relative;
        span {
          position: absolute;
          bottom: 56px;
          left: 286px;
          font: normal 500 20px / 1.2em Almoni, sans-serif;
          letter-spacing: .381px;
          text-transform: uppercase;
          color: #c9d9ee;
          z-index: 1;
          transform: rotate(-6deg);
          @media screen and (max-width: $desktop) {
            bottom: 36px;
            left: 186px;
            font-size: 12px;
          }
        }
      }
    }
    .btn_box {
      margin: 100px auto 0;
      width: 100%;
      order: 2;
      text-align: center;
      @media screen and (max-width: $desktop) {
        order: 1;
        margin: 0 auto 30px;
      }
      .button {
        min-width: 300px;
        font-size: 32px;
        @media screen and (max-width: $desktop) {
          font-size: 18px;
          min-width: 160px;
        }
      }
    }
  }
  .icon-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    @media screen and (max-width: $full-hd) {
      gap: 20px;
    }
    @media screen and (max-width: $desktop) {
      gap: 12px;
    }
    .icon-box {
      padding: 10px 40px;
      min-height: 176px;
      border-radius: 40px;
      border: 2px solid #FFF;
      background: linear-gradient(209deg, rgba(255, 255, 255, 0.80) 33.39%, rgba(255, 255, 255, 0.80) 83.22%);
      box-shadow: 5px 8px 38px 0 rgba(219, 229, 239, 0.75);
      flex: 0 0 calc(50% - 12px);
      display: flex;
      align-items: center;
      gap: 28px;
      @media screen and (max-width: $full-hd) {
        padding: 10px 20px;
        gap: 20px;
      }
      @media screen and (max-width: $desktop) {
        flex: 0 0 100%;
        gap: 16px;
        border-radius: 20px;
        padding: 16px;
        min-height: 128px;
        backdrop-filter: blur(12px);
      }
      &:last-child {
        flex: 0 0 100%;
        position: relative;
        &:before {
          content: '';
          background: url('../img/tooltip.svg') center/cover no-repeat;
          width: 237px;
          height: 100px;
          position: absolute;
          top: -25px;
          left: 0;
          @media screen and (max-width: $desktop) {
            top: -25px;
            left: -15px;
            width: 120px;
            height: 50px;
          }
        }
        img {
          width: 120px;
          height: 120px;
          @media screen and (max-width: $desktop) {
            width: 80px;
            height: 80px;
          }
        }
      }
      img {
        width: 100px;
        height: 100px;
        @media screen and (max-width: $full-hd) {
          width: 80px;
          height: 80px;
        }
        @media screen and (max-width: $phones-big) {
          margin: 0;
          width: 60px;
          height: 60px;
        }
      }
      .info-block {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        white-space: pre-line;
        h3 {
          font: normal 700 32px / 1.2em $font-almoni;
          color: $dark-blue;
          margin-bottom: 6px;
          @media screen and (max-width: $full-hd) {
            font-size: 28px;
          }
          @media screen and (max-width: $tablets-big) {
            font-size: 24px;
            max-width: 250px;
          }
        }
        p {
          font: normal 400 22px / 1.2em $font-almoni;
          color: $extra-dark-gray;
          @media screen and (max-width: $full-hd) {
            font-size: 20px;
          }
          @media screen and (max-width: $phones-big) {
            font-size: 16px;
          }
        }
      }
    }
  }
  .travel-cards {
    padding: 100px 15px 175px;
    &.container {
      max-width: 1150px;
    }
    @media screen and (max-width: $tablets-big) {
      padding: 0 0 110px;
    }
    h3 {
      padding: 12px 0 30px;
      @media screen and (max-width: $tablets-big) {
        padding: 8px 16px 32px;
      }
    }
    .swiper {
      padding: 30px 0;
      @media screen and (max-width: $tablets-big) {
        padding: 0;
      }
      .swiper-slide {
        & > .swiper-container {
          transition: 0.4s linear;
          position: relative;
          & > img {
            width: 100%;
            border-radius: 20px;
            @media screen and (max-width: $tablets-big) {
              border-radius: 16px;
            }
          }
          .swiper-item {
            position: absolute;
            padding: 44px 44px 36px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            color: $white;
            @media screen and (max-width: $tablets-big) {
              padding: 32px 32px 28px;
            }
            img {
              margin-right: auto;
              max-width: 180px;
              max-height: 60px;
              object-fit: contain;
              width: fit-content;
              @media screen and (max-width: $tablets-big) {
                max-width: 150px;
              }
            }
            h5 {
              font: normal 400 36px / 1em $font-almoni;
              margin: 0;
              @media screen and (max-width: $tablets-big) {
                font-size: 27px;
              }
            }
            .prices {
              display: flex;
              align-items: flex-end;
              gap: 25px;
              .column-price {
                display: flex;
                flex-direction: column;
                gap: 2px;
                h4 {
                  font: normal 700 64px / 1em $font-almoni;
                  margin: 0;
                  @media screen and (max-width: $tablets-big) {
                    font-size: 48px;
                  }
                  &.old-price {
                    font: normal 700 48px / 1em $font-almoni;
                    @media screen and (max-width: $tablets-big) {
                      font-size: 36px;
                    }
                  }
                  &.new-price {
                    position: relative;
                    z-index: 1;
                    &:before {
                      content: '';
                      display: flex;
                      width: 140px;
                      height: 40px;
                      background: #EEA928;
                      filter: blur(24px);
                      position: absolute;
                      top: 50%;
                      left: 50%;
                      transform: translate(-50%, -50%);
                      z-index: -1;
                    }
                  }
                }
                h6 {
                  font: normal 400 16px / 1em $font-almoni;
                  margin: 0;
                  display: flex;
                  gap: 8px;
                  align-items: center;
                  img {
                    width: 16px;
                    height: 16px;
                    margin: 0;
                  }
                }
              }
            }
          }
        }
        @media screen and (min-width: $tablets-big) {
          & > .swiper-container {
            display: none;
          }
          &-active > .swiper-container {
            transform: rotate(0deg) scale(1);
            display: flex;
          }
          &-next > .swiper-container {
            transform: rotate(-7deg) scale(1.1);
            display: flex;
          }
          &-prev > .swiper-container {
            transform: rotate(7deg) scale(1.1);
            display: flex;
          }
        }
      }
      .swiper-button-prev, .swiper-button-next {
        &:after {
          display: none;
        }
        img {
          min-width: 40px;
        }
      }
      .swiper-button-prev {
        right: 70px
      }
      .swiper-button-next {
        left: 70px
      }
    }
    .swiper-pagination {
      position: static;
      .swiper-pagination-bullet {
        transition: 0.4s linear;
        background: $light-blue;
        opacity: 1;
        &-active {
          background: $blue;
        }
      }
    }
    @media screen and (max-width: $tablets-big) {
      .swiper-button-prev, .swiper-button-next, .swiper-pagination {
        display: none;
      }
    }
  }
  .join_now {
    background: linear-gradient(243deg, #1A6FEE 30.07%, #0097FF 73.65%);
    .flex {
      position: relative;
      padding: 60px 0;
      color: $white;
      @media screen and (max-width: $tablets-big) {
        padding: 0 0 40px;
        text-align: center;
      }
    }
    .title {
      font-size: 46px;
      line-height: 1;
      margin-bottom: 42px;
      white-space: pre-line;
      @media screen and (max-width: $tablets-big) {
        font-size: 28px;
        margin-bottom: 20px;
      }
    }
    .img_box {
      position: absolute;
      top: -65px;
      left: 0;
      width: 625px;
      max-width: 100%;
      @media screen and (max-width: $tablets-big) {
        position: relative;
        margin: 0 auto -50px;
      }
      img {
        width: 100%;
      }
    }
  }
  .benefits_section {
    padding: 100px 0;
    .container {
      max-width: 900px;
      @media screen and (max-width: $tablets-big) {
        padding: 0;
      }
    }
    @media screen and (max-width: $tablets-big) {
      padding: 80px 0;
    }
    .benefits_slider img {
      width: 100%;
    }
    .swiper-pagination {
      position: static;
    }
  }
  .cards {
    padding: 120px 40px;
    background: $bg-light-gray;
    @media screen and (max-width: $tablets-big) {
      padding: 60px 40px;
    }
    @media screen and (max-width: $phones-big) {
      padding: 0 16px 50px;
      background: $white;
    }
    .container {
      max-width: 1380px;
      width: 100%;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 2.5fr;
      gap: 140px;
      align-items: center;
      padding: 0;
      @media screen and (max-width: $full-hd) {
        gap: 70px;
      }
      @media screen and (max-width: $desktop) {
        gap: 60px;
        grid-template-columns: 1fr;
      }
      @media screen and (max-width: $phones-big) {
        gap: 40px;
      }
      h2, h3 {
        text-align: right;
        @media screen and (max-width: $desktop) {
          text-align: center;
        }
      }
    }
  }
  .reviews {
    padding: 0 10px 100px;
    @media screen and (max-width: $tablets-big) {
      padding: 0 0 50px;
    }
    .icons-raw {
      display: flex;
      justify-content: center;
      align-items: center;
      padding-top: 12px;
      gap: 8px;
      @media screen and (max-width: $tablets-big) {
        padding-top: 8px;
      }
      img {
        width: 20px;
      }
    }
    .swiper {
      padding: 100px 0;
      position: relative;
      @media screen and (max-width: $tablets-big) {
        padding: 40px 0 55px;
      }
      &:before, &:after {
        content: '';
        width: 135px;
        height: 100%;
        background: linear-gradient(270deg, rgba(255, 255, 255, 0.00) 0%, #FFF 52.24%);
        position: absolute;
        left: -30px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
      }
      &:after {
        left: unset;
        right: -30px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, #FFF 52.24%);
      }
      @media screen and (max-width: $tablets-big) {
        &:before, &:after {
          display: none;
        }
      }
      .swiper-wrapper {
        -webkit-transition-timing-function: linear !important;
        -o-transition-timing-function: linear !important;
        transition-timing-function: linear !important;
      }
      .swiper-slide {
        padding: 32px;
        border-radius: 20px;
        background: $white;
        box-shadow: 5px 8px 38px 0 rgba(219, 229, 239, 0.75);
        height: auto;
        @media screen and (max-width: $tablets-big) {
          box-shadow: 2.844px 4.55px 21.611px 0 rgba(219, 229, 239, 0.75);
          padding: 20px;
          border-radius: 12px;
        }
        .rating-box {
          display: flex;
          gap: 5px;
          svg {
            @media screen and (max-width: $tablets-big) {
              width: 20px;
            }
          }
        }
        h4 {
          font: normal 700 28px / 1 $font-almoni;
          color: $dark-blue;
          padding: 32px 0;
          margin: 0;
          @media screen and (max-width: $tablets-big) {
            font-size: 22px;
            padding: 18px 0 12px;
          }
        }
        .review-info {
          display: flex;
          flex-direction: column;
          gap: 10px;
          h5 {
            font: normal 400 24px / 1 $font-almoni;
            color: $dark-blue;
            @media screen and (max-width: $tablets-big) {
              font-size: 18px;
            }
          }
          .flight {
            display: flex;
            align-items: center;
            gap: 8px;
            h6 {
              font: normal 400 20px / 1 $font-almoni;
              color: $dark-gray;
              @media screen and (max-width: $tablets-big) {
                font-size: 16px;
              }
            }
            img {
              width: 20px;
              @media screen and (max-width: $tablets-big) {
                width: 16px;
              }
            }
          }
        }
      }
    }
    .button-primary-shadow {
      display: flex;
      width: fit-content;
      justify-self: center;
      margin: 0 auto;
      border-radius: 300px;
      font-size: 24px;
      box-shadow: none;
      &:after {
        display: none;
      }
      @media screen and (max-width: $tablets-big) {
        font-size: 16px;
      }
    }
    .link {
      display: flex;
      width: fit-content;
      justify-self: center;
      margin: 20px auto 0;
      font-size: 24px;
      color: $blue;
      text-decoration: underline;
      border: none;
      background: none;
      @media screen and (max-width: $tablets-big) {
        font-size: 16px;
      }
    }
  }
  .faq {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 0 40px 160px;
    @media screen and (max-width: $tablets-big) {
      padding: 50px 40px 100px;
      gap: 40px;
    }
    @media screen and (max-width: $phones-big) {
      padding: 50px 16px 100px;
      gap: 40px;
    }
    .faq-accordion {
      display: flex;
      flex-direction: column;
      gap: 28px;
      @media screen and (max-width: $tablets-big) {
        gap: 16px;
      }
      .faq-item {
        padding: 40px;
        border-radius: 20px;
        box-shadow: 5px 8px 38px 0 rgba(219, 229, 239, 0.75);
        @media screen and (max-width: $tablets-big) {
          padding: 16px;
          border-radius: 8px;
        }
        .faq-question {
          font: normal 700 28px / 1 $font-almoni;
          margin: 0;
          display: flex;
          align-items: center;
          justify-content: space-between;
          cursor: pointer;
          gap: 16px;
          transition: 0.4s linear;
          @media screen and (max-width: $tablets-big) {
            font-size: 16px;
          }
          svg {
            min-width: 28px;
            path {
              transition: stroke 0.3s ease;
              &.line {
                transition: transform 0.3s ease, opacity 0.3s ease;
                transform-origin: center;
              }
            }
            @media screen and (max-width: $tablets-big) {
              min-width: 20px;
              width: 20px;
              height: 20px;
            }
          }
        }
        .faq-answer {
          font: normal 400 22px / 112% $font-almoni;
          color: $dark-gray;
          overflow: hidden;
          padding-top: 0;
          transition: 0.4s linear;
          max-height: 0;
          @media screen and (max-width: $tablets-big) {
            font-size: 14px;
          }
        }
        &.open-faq {
          .faq-question {
            padding-bottom: 28px;
            @media screen and (max-width: $tablets-big) {
              padding-bottom: 20px;
            }
          }
          path {
            stroke: $extra-dark-gray;
            &.vertical {
              opacity: 0;
              transform: rotate(90deg);
            }
          }
          .faq-answer {
            max-height: 350px;
          }
        }
      }
    }
  }
  .footer-short {
    color: $white;
    background: linear-gradient(253deg, #1A6FEE 30.16%, #0097FF 89.94%), #1A6FEE;
    .footer-text {
      width: 100%;
      max-width: 1340px;
      margin: 0 auto;
      font: normal 400 16px / 1.3em $font-almoni;
      padding: 36px 10px;
      @media screen and (max-width: $tablets) {
        padding: 16px;
      }
    }
  }
  .footer-sticky {
    padding: 17px 10px;
    background: $blue;
    display: flex;
    opacity: 0;
    align-items: center;
    justify-content: center;
    gap: 24px;
    position: sticky;
    bottom: 0;
    width: 100%;
    z-index: -1;
    transition: 0.4s linear;
    color: $white;
    @media screen and (max-width: $tablets) {
      gap: 16px;
      padding: 16px;
    }
    &.visible {
      opacity: 1;
      z-index: 3;
    }
    .close-sticky-footer {
      width: 24px;
      position: absolute;
      left: 28px;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      @media screen and (max-width: $tablets) {
        width: 20px;
        left: 8px;
      }
    }
    p {
      font: normal 700 22px / 1.2em $font-almoni;
      &.mobile-text {
        display: none;
      }
      @media screen and (max-width: $tablets) {
        font-size: 16px;
        &.desktop-text {
          display: none;
        }
        &.mobile-text {
          display: flex;
        }
      }
    }
    a {
      padding: 12px 20px;
      border-radius: 100px;
      background: $white;
      color: $blue;
      font: normal 700 20px / 1em $font-almoni;
      display: flex;
      align-items: center;
      gap: 8px;
      @media screen and (max-width: $tablets) {
        font-size: 14px;
        padding: 8px 12px;
      }
      &:after {
        content: "\f060";
        font-family: $font-awesome;
        font-size: 20px;
        color: $blue;
        font-weight: 900;
        @media screen and (max-width: $tablets) {
          font-size: 16px;
        }
      }
    }
  }
}