@import "../../assets/css/swiper.min.css";
@import "../../assets/css/cases.css";

:root {
  --general-color: #FCAD3E;
}

.process__img:nth-child(1) {
  right: 93.533vh;
  height: 34.342vh;
}

.process__img:nth-child(2) {
  right: 46.25vh;
  height: 42.045vh;
}

.results {
  color: var(--black);
}

@media (min-width: 1268px) {
  .challenge__title, .solution__title {
    font-size: 17.045vh;
    line-height: 0.893;
  }
}

.challenge, .solution {
  padding: 0 0 0 11.364vh;
}

.challenge__content-title, .challenge__text, .solution__content-title, .solution__text {
  width: 76.705vh;
}

.challenge__content-title, .solution__content-title {
  margin-bottom: 2.727vh;
}

.challenge__content {
  width: auto;
}

.challenge__img, .solution__img {
  display: block;
  object-fit: cover;
}

.challenge__content:nth-of-type(1) {
  padding-top: 57.727vh;
  margin-left: 15.341vh;
}

.challenge__content:nth-of-type(2) {
  padding-top: 17.045vh;
  margin-left: -9.318vh;
}

.challenge__content:nth-of-type(3) {
  padding-top: 30.455vh;
  margin-left: 15.341vh;

  .challenge__img {
    height: auto;
    width: 92.386vh;
    margin: 0;
  }
}

.challenge__content:nth-of-type(4), .challenge__content:nth-of-type(15) {
  padding: 0 15.341vh;
  display: flex;
  align-items: center;
  background-color: var(--general-color);
  margin-left: 15.341vh;
}

.challenge__content:nth-of-type(4) {
  .challenge__img {
    height: 100vh;
    width: 54.318vh;
    margin-left: 9.545vh;
  }
}

.challenge__content:nth-of-type(5) {
  margin-left: 15.341vh;
}

.challenge__content:nth-of-type(6) {
  padding: 0 15.341vh;

  .challenge__img {
    width: 78.636vh;
    height: 73.409vh;
    margin: 13.295vh 0 0;
  }
}

.challenge__content:nth-of-type(7) {
  padding-top: 17.045vh;
}

.challenge__content:nth-of-type(8) {
  padding-top: 54.659vh;
  margin-left: -5.682vh;
}

.challenge__content:nth-of-type(9) {
  padding: 30.341vh 15.341vh 0;

  .challenge__img {
    margin: 0;
    width: 112.045vh;
    height: 69.659vh;
    object-position: top;
  }
}

.challenge__content:nth-of-type(10) {
  padding-top: 29.091vh;
}

.challenge__content:nth-of-type(11) {
  padding-top: 48.636vh;
  margin-left: 15.341vh;
}

.challenge__content:nth-of-type(12) {
  padding-top: 0;

  .challenge__img {
    margin: 0 15.341vh;
    width: 58.409vh;
    height: 64.659vh;
  }
}

.challenge__content:nth-of-type(13) {
  padding-top: 45.909vh;
}

.challenge__content:nth-of-type(14) {
  padding-top: 32.5vh;
  margin-left: 15.341vh;
}

.challenge__content:nth-of-type(15) {
  margin-left: 15.341vh;

  .challenge__content-title, .challenge__text {
    width: 58.068vh;
  }

  .challenge__img-caption {
    display: none;
  }

  .challenge__img {
    width: 105.682vh;
    height: 84.091vh;
    margin-left: 15.341vh;
  }
}

.before-after {
  position: relative;
  touch-action: none;
  user-select: none;
}

.before-after__before, .before-after__after {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.before-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}

.before-after__resizable {
  height: 100%;
  width: 50%;
  overflow: hidden;
}

.before-after__handle {
  position: absolute;
  top: -19px;
  left: calc(50% - 10px);
  width: 22px;
  padding: 0 10px;
  height: calc(100% + 38px);
  z-index: 2;
  pointer-events: auto;
  cursor: ew-resize;

  &:before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--black);
  }
}

.solution__content {
  margin-left: 15.341vh;
}

.solution__content:nth-of-type(1) {
  padding-top: 41.023vh;
}
.solution__content:nth-of-type(2) {
  padding-top: 0;

  .solution__img {
    width: 58.409vh;
    height: 64.659vh;
  }
}

.solution__content:nth-of-type(3) {
  padding-top: 55vh;
}

.solution__content:nth-of-type(4) {
  padding-top: 24.205vh;
}

.solution__content:nth-of-type(5) {
  padding-top: 31.818vh;

  .solution__img {
    width: 98.864vh;
    height: auto;
  }
}

.solution__content:nth-of-type(6) {
  padding-top: 56.705vh;
}

.solution__content:nth-of-type(7) {
  padding-top: 17.841vh;
}

.solution__content:nth-of-type(8) {
  padding-top: 13.295vh;

  .solution__img {
    width: 92.202vh;
    height: 73.409vh;
  }
}

.solution__content:nth-of-type(9) {
  padding-top: 27.841vh;
}

.solution__content:nth-of-type(10) {
  padding-top: 46.818vh;
}

.solution__content:nth-of-type(11) {
  padding-top: 0;

  .solution__img {
    width: 70.227vh;
    height: 100vh;
  }
}

.solution__content:nth-of-type(12) {
  padding-top: 25.682vh;
}

.solution__content:nth-of-type(13) {
  padding-top: 53.864vh;
  margin-left: -3.636vh;
}

.solution__content:nth-of-type(14) {
  padding-top: 21.591vh;

  .solution__img {
    width: 78.977vh;
    height: 78.409vh;
  }
}

.solution__content:nth-of-type(15) {
  padding-top: 29.091vh;
}

.solution__content:nth-of-type(16) {
  padding-top: 47.955vh;
}

.solution__content:nth-of-type(17) {
  padding-top: 0;
  margin-left: 30.682vh;

  .solution__img {
    width: 65.341vh;
    height: 100vh;
  }
}

.delivered-features {
  color: var(--black);

  .delivered-features__item::before {
    background-color: var(--black);
  }
}

.technology-stack__img {
  width: 52.045vh;
  height: 66.818vh;
  object-fit: cover;;
  align-self: flex-start;
}

.result, .services{
  color: var(--black);
}

.services__item::before {
  filter: invert(1);
}

.services__list a.hide-underline::before {
  background-color: var(--black);
}

@media (max-width: 1280px) {
  .process__img:nth-child(1) {
    width: 38.636vw;
    height: auto;
    margin-left: auto;
  }

  .process__img:nth-child(2) {
    width: 26.136vw;
    height: auto;
    margin: 0 3.125vw;
  }

  .challenge, .solution {
    padding: 0;
  }

  .challenge__title, .solution__title {
    position: absolute;
    left: 2px;
  }

  .challenge__title {
    top: 7.682vw;
  }

  .challenge__content.challenge__content, .solution__content.solution__content {
    padding: 0 7.552vw 0 0;
    margin-top: 7.552vw;
    margin-left: 10.156vw;
  }

  .challenge__content-title, .challenge__text, .solution__content-title, .solution__text {
    width: 100%;
  }

  .challenge__content-title, .solution__content-title {
    margin-bottom: 2.604vw;
  }

  .challenge__content:nth-of-type(1), .challenge__content:nth-of-type(2) {
    padding-left: 10.156vw;
  }

  .challenge__content:nth-of-type(3) {
    .challenge__img {
      width: 82.292vw;
      height: auto;
    }
  }

  .challenge__content:nth-of-type(4) {
    margin: 10.156vw 0 0 0;
    padding: 0 4.167vw 0 10.156vw;

    .challenge__img {
      width: 31.023vw;
      height: auto;
      margin: 0 0 0 3.125vw;
    }
  }

  .challenge__content:nth-of-type(5) {
    margin-top: 6.901vw;
  }

  .challenge__content:nth-of-type(6), .challenge__content:nth-of-type(9) {
    .challenge__img {
      margin: 0;
      width: 100%;
      height: auto;
    }
  }

  .challenge__content:nth-of-type(8), .challenge__content:nth-of-type(11), .challenge__content:nth-of-type(14) {
    padding-left: 6.25vw;
  }

  .challenge__content:nth-of-type(12) {
    margin: 10.156vw 0 0 0;

    .challenge__img {
      width: 57.292vw;
      height: auto;
      margin: 0;
    }
  }

  .challenge__content:nth-of-type(13) {
    margin-top: 6.901vw;
  }

  .challenge__content:nth-of-type(15) {
    margin-left: 0;
    padding: 10.156vw 7.552vw 10.156vw 10.156vw;
    flex-direction: column;

    .challenge__content-title, .challenge__text {
      width: 100%;
    }

    .challenge__img {
      width: 82.292vw;
      height: 65.479vw;
      margin: 7.552vw 0 0 0;
    }
  }

  .solution__title {
    top: 1px;
  }

  .solution__content:nth-of-type(1) {
    margin-top: 10.156vw;
    padding-left: 10.156vw;
  }

  .solution__content:nth-of-type(2) {
    padding: 0;
    margin: 7.552vw 0 0 0;

    .solution__img {
      width: 43.229vw;
      height: auto;
      margin-left: auto;
    }
  }

  .solution__content:nth-of-type(5), .solution__content:nth-of-type(8), .solution__content:nth-of-type(11) {
    .solution__img {
      width: 100%;
      height: auto;
    }
  }

  .solution__content:nth-of-type(10), .solution__content:nth-of-type(13), .solution__content:nth-of-type(16) {
    padding-left: 6.25vw;
  }

  .solution__content:nth-of-type(11) {
    margin: 10.156vw 0 0;
    padding: 0;

    .solution__img {
      width: 100%;
      height: 58.594vw;
    }
  }

  .solution__content:nth-of-type(12) {
    margin-top: 10.156vw;
  }

  .solution__content:nth-of-type(14) {
    margin-left: 0;

    .solution__img {
      width: 65.495vw;
      height: 65.104vw;
    }
  }

  .solution__content:nth-of-type(17) {
    padding: 0;
    margin-left: 0;

    .solution__img {
      width: 44.401vw;
      height: 65.104vw;
    }
  }

  .technology-stack__img {
    width: 44.401vw;
    height: 59.766vw;
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .process {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .process__img:nth-child(1) {
    width: 50.133vw;
    margin: 0 0 0 auto;
  }

  .process__img:nth-child(2) {
    width: 33.867vw;
    margin: 0 1.067vw 0 4vw;
  }

  .challenge, .solution {
    padding-top: 12.8vw;
  }

  .challenge__title, .solution__title {
    position: static;
    margin: 0 0 0 15px;
  }

  .challenge__content.challenge__content, .solution__content.solution__content {
    padding: 0 12px 0 15px;
    margin-top: 9.6vw;
    margin-left: 0;
  }

  .challenge__content-title, .solution__content-title {
    margin-bottom: 5.333vw;
  }

  .challenge__content:nth-of-type(1) {
    margin-top: 6.667vw;
  }

  .challenge__content:nth-of-type(3) {
    .challenge__img {
      width: 100%;
    }
  }

  .challenge__content:nth-of-type(4) {
    padding: 15.467vw 12px 15.467vw 15px;
    flex-direction: column;

    .challenge__content-title {
      margin-bottom: 6.4vw;
    }

    .challenge__img {
      width: 100%;
      margin-left: 0;
      margin-top: 9.6vw;
    }
  }

  .challenge__content:nth-of-type(5) {
    margin-top: 15.467vw;
  }

  .challenge__content:nth-of-type(12) {
    margin-top: 15.467vw;
    padding-left: 0;

    .challenge__img {
      width: 64vw;
      height: 70.933vw;
    }
  }

  .challenge__content:nth-of-type(15) {
    margin-top: 15.467vw;
    padding: 15.467vw 12px 15.467vw 15px;
    gap: 9.6vw;

    .challenge__img-caption {
      display: block;
      font: 700 4.267vw/1.4 var(--font);
      margin-bottom: 2.133vw;
    }

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

  .before-after {
    display: flex;
    flex-direction: column;
    gap: 9.6vw;
  }

  .before-after, .before-after__before, .before-after__after {
    position: static;
  }

  .before-after__resizable {
    width: 100%;
  }

  .before-after__handle {
    display: none;
  }

  .solution__content:nth-of-type(2), .solution__content:nth-of-type(11), .solution__content:nth-of-type(14), .solution__content:nth-of-type(17) {
    margin: 15.467vw 0;
    padding: 0;
  }

  .solution__content:nth-of-type(2) {
    margin-left: auto;

    .solution__img {
      width: 72.267vw;
      height: 80vw;
    }
  }

  .solution__content:nth-of-type(14) {
    .solution__img {
      width: 92.8vw;
      height: 92vw;
    }
  }

  .solution__content:nth-of-type(17) {
    margin-bottom: 0;

    .solution__img {
      width: 72vw;
      height: 106.667vw;
    }
  }

  .technology-stack__img {
    width: 69.333vw;
    height: 93.333vw;
  }
}
