@import url(variables.css);
@import url(reset.css);

body {
  width: 100%;
  background-color: #11141e;
  background-image:
    url(../img/ellipse-1.png), url(../img/ellipse-2.png),
    url(../img/ellipse-4.png), url(../img/ellipse-5.png),
    url(../img/ellipse-6.png), url(../img/ellipse-7.png);
  background-repeat: no-repeat;
  background-position:
    right 0px,
    left 200px,
    left 1000px,
    right 1200px,
    left 3200px,
    right 3300px;
  overflow-x: hidden !important;
  position: relative;
}

.container {
  max-width: 1325px;
  width: 100%;
  margin: auto;
  padding: 0 16px;
}

.header {
  width: 100%;
  gap: 20px;
  margin-top: 5px;

  .header-top {
    width: 100%;
    gap: 32px;
    position: relative;
    margin-top: 30px;
    color: var(--gray-01);

    a {
      font-family: "Montserrat";
      img {
        margin-right: 4px;
      }
    }

    > img {
      position: absolute;
      top: 50%;
      right: 0;
      translate: -50% -50%;
      width: 34px;
      object-fit: contain;
      border-radius: 5px;
    }

    .menu-btn {
      width: 30px;
      height: 50px;
      gap: 7px;
      display: none;

      div {
        background-color: #fff;
        width: 100%;
        height: 3px;
      }
    }

    @media (max-width: 730px) {
      justify-content: space-between;
      gap: 10px;

      > img {
        position: relative;
        top: auto;
        right: auto;
        translate: none;
        order: 0;
      }

      a {
        order: 1;

        &:nth-child(3) {
          margin-left: auto;
        }
      }

      .menu-btn {
        display: flex;
        order: 3;
      }
    }
  }

  .header-bottom {
    width: 100%;
    padding: 12px 21px;
    background-color: #1e1e1e;
    border-radius: 20px;

    .logo {
      width: 72px;
      height: 72px;
      border-radius: 12px;
    }

    .links {
      gap: 22px;
      margin-left: 111px;
    }

    .bot {
      font-family: "Montserrat Alternates", sans-serif;
      color: var(--blue-01);

      img {
        margin-left: 4px;
      }
    }

    @media (max-width: 730px) {
      display: none;
    }
  }
}

.main {
  h1 {
    font-size: 70px;
    color: #fff;
    margin-top: 77px;
    margin-bottom: 11px;
    text-align: center;
  }

  > p {
    font-size: 28px;
    color: var(--gray-02);
    text-align: center;
    margin-bottom: 60px;
  }

  .ready-invest {
    height: 71px;
    padding: 21px 19px;
    font-size: 24px;
    background: linear-gradient(to right, var(--blue-02), var(--blue-01));
    border-radius: 24px;
    gap: 21px;
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: 60px;
    > p {
      width: 100%;
      text-align: center;
    }

    .img {
      width: 52px;
      height: 49px;
      border-radius: 20px;
      background-color: var(--blue-01);

      img {
        width: 48px;
        height: 48px;
      }
    }
  }

  .links {
    gap: 30px;
    align-items: flex-start;

    a {
      max-width: 122px;
      width: 100%;
      color: var(--gray-03);
      font-size: 12px;
      text-align: center;
      div {
        width: 108px;
        height: 104px;
        background-color: var(--black-01);
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
        border-radius: 16px;
        padding: 29px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 8px;

        img {
          width: 48px;
          height: 48px;
          object-fit: contain;
        }
      }
    }
  }

  @media (max-width: 630px) {
    .links {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      a {
        text-align: center;
      }
    }

    .ready-invest {
      gap: 20px;
      font-size: 16px;

      .img {
        img {
          width: 32px;
          height: 32px;
        }
      }
    }
  }

  @media (max-width: 480px) {
    h1 {
      font-size: 50px;
    }

    > p {
      font-size: 18px;
    }
  }
}

.troika-arrows {
  width: 100%;
  height: 600px;
  position: relative;
  flex-wrap: wrap;
  margin-top: 112px;
  gap: 30px;
  background: url(../img/ellipse-3.png) no-repeat center;

  > p {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    font-size: 40px;
    text-align: center;

    span {
      color: var(--purple-01);
    }
  }

  .arrow-block {
    width: 45%;
    gap: 10px;
    .text {
      max-width: 270px;
      width: 100%;
      background-color: var(--blue-03);
      border-radius: 24px;
      position: relative;
      padding: 5px 23px 23px 23px;
      color: var(--gray-04);

      p:first-child {
        font-size: 25px;
        color: #fff;
        width: 100%;
      }

      .index {
        position: absolute;
        bottom: -10px;
        right: -10px;
        background-color: var(--blue-03);
        border-radius: 12px;
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        backdrop-filter: blur(4px);
      }
    }

    &.arrow-block-1 {
      /* margin-left: 20px; */
      justify-content: flex-start;
      /* margin-top: 0px; */
      img {
        margin-top: 100px;
      }
    }

    &.arrow-block-2 {
      align-items: flex-end;
      gap: 0;

      .text {
        margin-top: 90px;
        min-width: 400px;
        margin-right: 50px;
      }

      img {
        margin-right: 60px;

        @media (max-width: 1100px) {
          margin-right: 170px;
        }

        @media (max-width: 1050px) {
          margin-right: 100px;
        }
      }
    }

    &.arrow-block-3 {
      margin-top: 90px;

      .text {
        max-width: 420px;
        width: 100%;
      }

      img {
        rotate: -90deg;
        width: 205px;
        object-fit: cover;
        margin-bottom: 50px;
      }
    }
  }

  @media (max-width: 900px) {
    width: 100% !important;
    margin-top: 50px;
    gap: 16px;

    > p {
      width: 100%;
      position: relative;
      top: auto;
      left: auto;
      translate: none;
      text-align: center;
      font-size: 32px;
    }

    .arrow-block {
      width: 100% !important;
      min-width: 220px !important;
      justify-content: center !important;
      align-items: center !important;
      max-width: 350px;
      margin: 0 !important;

      .text {
        width: 100% !important;
        max-width: none;
        margin: 0 !important;
      }

      img {
        display: none;
      }
    }
  }
}

.why-troika {
  margin-top: 240px;
  width: 100%;

  @media (max-width: 720px) {
    margin-top: 100px;
  }

  > p {
    width: fit-content;
    text-align: center;

    &:first-child {
      font-size: 48px;
      @media (max-width: 500px) {
        font-size: 32px;
      }
    }

    &:nth-child(2) {
      font-size: 20px;
      color: var(--gray-04);
    }

    span {
      color: var(--blue-04);
    }
  }

  .troika-diagram {
    width: 100%;
    margin-top: 30px;
    padding-left: 30px;
    padding-right: 30px;
    > p {
      width: 100%;
      text-align: center;
      font-size: 20px;
      line-height: 1.5;
      @media (max-width: 500px) {
        font-size: 15px;
      }
    }
    .troika-body {
      width: 100%;
      height: 100%;
      display: flex;
      padding-top: 50px;
      flex-flow: column;
      align-items: center;
      .diagram-section {
        width: 100%;
        max-width: 1280px;
        background: #192393;
        padding: 40px;
        &:nth-child(2) {
          background: #192393a4;
        }
        &:nth-child(3) {
          background: #1923936a;
        }

        &:nth-child(4) {
          background: #19239330;
        }
        > p {
          font-size: 28px;

          @media (max-width: 932px) {
            font-size: 25px;
          }
          @media (max-width: 702px) {
            font-size: 15px;
          }
        }
      }
    }
  }
}

.crypto-news {
  width: 100%;
  margin-top: 40px;

  > p:first-child {
    font-size: 48px;
    @media (max-width: 500px) {
      font-size: 32px;
    }
  }

  > p:nth-child(2) {
    font-size: 20px;
    color: var(--gray-04);
    margin-top: 6px;
  }

  .crypto-slider-wrapper {
    margin-top: 44px;
    width: 100%;
    background-color: var(--blue-03);
    padding: 22px 25px;
    border-radius: 100px;

    .crypto-slider {
      overflow: hidden !important;
    }

    .slider-arrow {
      cursor: pointer;

      &.next {
        rotate: 180deg;
      }
    }
  }
  @media (max-width: 450px) {
    > p:first-child {
      font-size: 22px;
    }
    > p:nth-child(2) {
      font-size: 16px;
    }
    .crypto-slider-wrapper {
      padding: 22px 0px;
      .slider-arrow {
        img {
          scale: 0.7;
        }
      }
    }
  }
}

.reviews {
  margin-top: 93px;

  > p {
    font-size: 48px;
    text-align: right;

    @media (max-width: 600px) {
      text-align: center;
    }

    @media (max-width: 450px) {
      font-size: 22px;
    }
  }

  .reviews-slider-wrapper {
    width: 100%;
    margin-top: 50px;

    @media (max-width: 450px) {
      margin-top: 30px;
    }

    .reviews-slider {
      width: 100%;
      overflow: hidden;

      .review-block {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 40px;

        .review {
          border: 2px solid #192393;
          padding: 14px 26px;
          background-color: #2839f21a;
          border-radius: 24px;

          .top {
            gap: 22px;

            p {
              &:first-child {
                font-size: 24px;
                margin-bottom: 13px;
              }
              &:last-child {
                font-size: 15px;
                color: var(--gray-05);
                margin-bottom: 12px;
                max-width: 455px;
                width: 100%;
              }
            }

            .rate {
              color: var(--blue-06);
              font-size: 20px;
              justify-content: flex-start;
              gap: 4px;
              margin-bottom: 15px;
            }

            .stars {
              min-width: 70px;
              height: 150px;
              position: relative;

              img {
                position: absolute;
                translate: -50% -50%;

                &:first-child {
                  top: 10%;
                  right: 5%;
                }

                &:nth-child(2) {
                  top: 20%;
                  right: 80%;
                }

                &:nth-child(3) {
                  top: 40%;
                  right: 60%;
                }
                &:nth-child(4) {
                  top: 35%;
                  right: 15%;
                }

                &:last-child {
                  top: 60%;
                  right: 35%;
                }
              }
            }
          }

          .view-more {
            text-align: right;
            width: 100%;
            display: block;
            font-size: 15px;
            color: var(--blue-06);
          }
        }

        @media (max-width: 800px) {
          grid-template-columns: repeat(1, 1fr);
          gap: 20px;
        }
      }
    }
    .review-arrows {
      gap: 20px;
      margin-top: 28px;

      .review-arrow {
        cursor: pointer;
        gap: 20px;
        background-color: var(--blue-05);
        padding: 5px 30px;
        font-size: 24px;

        &:first-child img {
          rotate: -45deg;
        }

        &:last-child img {
          rotate: 225deg;
        }
      }

      @media (max-width: 600px) {
        .review-arrow {
          gap: 10px;
          padding: 5px 20px;
          font-size: 18px;

          img {
            width: 50px;
            height: 50px;
          }
        }
      }
    }
  }
}

.suggest-slider-block {
  width: 100%;
  margin-top: 90px;
  /* overflow: hidden; */

  > p {
    text-align: center;
    font-size: 48px;

    @media (max-width: 450px) {
      font-size: 22px;
    }
  }

  .suggest-slider {
    width: 100%;
    margin-top: 74px;

    @media (max-width: 450px) {
      margin-top: 30px;
    }

    .swiper-slide {
      width: 100%;
      display: flex;
      justify-content: center;

      .block {
        height: 536px;
      }

      .investing {
        border-radius: 24px;
        border: 2px solid var(--blue-03);
        width: 100%;
        padding: 16px 32px;
        background-color: #2839f21a;

        .top {
          align-items: flex-start;
          justify-content: flex-start;
          width: 100%;
          gap: 24px;

          .banner {
            width: auto;
            aspect-ratio: 1280/720;
            height: 300px;
            border-radius: 24px;
          }

          .desc {
            width: fit-content;
            padding-left: 40px;

            p {
              &:first-child {
                font-size: 32px;
                color: #fff;
                margin-bottom: 7px;
              }
              &:last-child {
                font-size: 20px;
                color: #8d8d8d;
              }
            }
          }
        }

        .bottom {
          gap: 46px;

          .range-slider {
            width: 50%;
            max-width: 430px;

            input {
              width: 100%;
            }

            div {
              font-size: 20px;
              p {
                span {
                  color: var(--blue-06);
                  font-weight: 700;
                }
              }
            }

            .invest-button {
              background-color: var(--blue-05);
              padding: 5px 8px 5px 17px;
              border-radius: 24px;
              font-size: 20px;
              margin-top: 52px;
              cursor: pointer;

              div {
                width: 40px;
                height: 40px;
                background-color: #fff;
                border-radius: 50%;

                img {
                  width: 24px;
                  height: 24px;
                }
              }
            }
          }

          .info {
            width: fit-content;
            display: flex;
            flex-wrap: wrap;

            .info-block {
              height: 100px;
              width: 50%;

              &:first-child {
                border-bottom: 1px solid var(--blue-06);
                border-right: 1px solid var(--blue-06);
              }

              &:nth-child(2) {
                border-bottom: 1px solid var(--blue-06);
              }

              &:nth-child(3) {
                border-right: 1px solid var(--blue-06);
              }

              p {
                &:first-child {
                  color: var(--blue-06);
                  font-size: 40px;
                }

                &:last-child {
                  font-size: 15px;
                }
              }
            }
          }
        }

        @media (max-width: 901px) {
          .investing {
            height: fit-content;
            overflow: hidden;
          }
          .bottom {
            .range-slider {
              .invest-button {
                font-size: 16px;
                gap: 10px;
              }
            }
          }
        }

        @media (max-width: 901px) {
          padding: 16px;
          height: fit-content;
          .top {
            flex-direction: column;

            .banner {
              width: 100%;
              height: auto;
            }

            .desc {
              width: 100%;
              max-width: none;
            }
          }

          .bottom {
            margin-top: 20px;
            flex-direction: column;

            .range-slider {
              order: 2;
              width: 100%;
              max-width: none;

              .invest-button {
                font-size: 16px;
              }
            }
          }
        }
      }
    }
  }
}

footer {
  background: url(../img/ellipse-8.png) #14171f no-repeat center top;
  height: 200px;
  margin-top: 100px;
  padding: 0 16px;
  position: relative;
  .container {
    padding: 20px 0;
    height: 100%;
    align-items: flex-start;
    .left {
      p {
        color: #6a6a6a;
        font-size: 14px;
        margin-top: 15px;
      }
      .logo {
        width: 72px;
        height: 72px;
      }
    }

    .right {
      font-size: 14px;
      align-items: flex-end;
      gap: 10px;
      text-align: right;
    }
  }
  .footer__dev {
    right: 0;
    max-width: 1920px;
    margin-top: 50px;
  }
}

.mobile-menu-wrapper {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #0000003b;
  z-index: 1;
  transition: 0.3s;
  opacity: 0;
  display: none;

  .mobile-menu {
    width: 340px;
    height: 100vh;
    position: absolute;
    top: 0;
    right: -100%;
    padding: 22px 16px;
    background-color: #14171f;
    gap: 20px;
    justify-content: flex-start;
    transition: 0.3s;

    a:last-child {
      color: var(--blue-01);
      gap: 10px;
    }

    .close-btn {
      width: 40px;
      height: 40px;
      position: absolute;
      top: 5px;
      right: 5px;

      div {
        position: absolute;
        background-color: #fff;
        width: 100%;
        height: 3px;
        translate: -50% -50%;
        top: 50%;
        left: 50%;

        &:first-child {
          rotate: 45deg;
        }

        &:last-child {
          rotate: -45deg;
        }
      }
    }

    .rect {
      width: 52px;
      height: 52px;
      border-radius: 12px;
      background-color: var(--blue-01);
    }
  }
}

.contacts {
  width: 100%;
  margin-top: 34px;
  font-family: "Montserrat Alternates", sans-serif;

  > p {
    font-size: 32px;
  }

  .top {
    gap: 24px;
    align-items: flex-end;

    .info {
      background-color: #19239340;
      border-radius: 30px;
      border: 1px solid var(--blue-06);
      padding: 20px 18px;
      width: 100%;
      max-width: 420px;
      height: 380px;
      font-size: 20px;
      margin-top: 34px;

      li {
        list-style: none;
        display: flex;
        justify-content: space-between;
        margin-bottom: 11px;

        p:last-child,
        a {
          font-weight: 700;
        }
      }
    }

    .map {
      width: 100%;
      height: 380px;

      p {
        font-size: 24px;
        margin-bottom: 5px;
      }

      img {
        border: 1px solid var(--blue-06);
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 30px;
      }
    }
  }

  .bottom {
    gap: 27px;
    margin-top: 46px;

    .form {
      width: 100%;
      padding: 22px 16px 15px 35px;
      border: 1px solid var(--blue-06);
      border-radius: 24px;
      background-color: #19239340;
      backdrop-filter: blur(20px);

      p {
        font-size: 32px;
        text-align: center;
      }

      input,
      textarea {
        width: 100%;
        padding-bottom: 13px;
        margin-bottom: 18px;
        outline: none;
        border: none;
        color: #fff;
        border-bottom: 2px solid var(--blue-06);
        background-color: #ffffff00;
        resize: none;
        font-family: "Montserrat Alternates", sans-serif;
        font-size: 24px;
      }

      textarea {
        min-height: 154px;
      }

      button {
        background: linear-gradient(to right, #000b878f, #2a3bf98f);
        border: none;
        width: 100%;
        padding: 21px 0;
        font-size: 18px;
        font-family: "Montserrat Alternates", sans-serif;
        color: #fff;
        border-radius: 20px;
      }
    }

    > p {
      rotate: 90deg;
      font-size: 96px;
      height: 117px;
    }
  }

  @media (max-width: 900px) {
    .top {
      flex-wrap: wrap;
      gap: 50px;

      .info {
        width: 100%;
        max-width: none;
        > ul {
          > li {
            > p,
            > a {
              font-size: 14px;
            }
          }
        }
      }
    }

    .bottom {
      align-items: flex-start;
      > p {
        width: 120px;
      }

      .form {
        > p {
          font-size: 24px;
          margin-bottom: 20px;
        }

        input,
        textarea {
          font-size: 18px;
        }
      }
    }
  }

  @media (max-width: 450px) {
    .bottom {
      flex-direction: column;

      > p {
        rotate: 0deg;
        font-size: 70px;
        text-align: center;
        width: 100%;
      }
    }
  }
}
