.hero__image {
  display: block;
  width: 600px;
  max-width: none;
  height: 600px;
  margin-top: -80px;
  justify-self: end;
  translate: 124px;

  @media (max-width: 991px) {
    justify-self: center;
    width: 514px;
    height: auto;
    margin-top: 2px;
    translate: 27px;
  }

  @media (max-width: 767px) {
    width: 600px;
    translate: none;
  }

  @media (max-width: 479px) {
    width: 100%;
  }
}

/* Steps */

.steps {
  margin-bottom: 200px;

  @media (max-width: 767px) {
    margin-bottom: 60px;
  }

  @media (max-width: 479px) {
    margin-bottom: 50px;
  }
}

.steps__heading {
  margin-bottom: 10px;
  text-align: center;
}

/* Carousel */

.carousel {
  position: relative;
  height: 768px;
  background-color: var(--ghost-white);

  @media (max-width: 991px) {
    height: 610px;
  }

  @media (max-width: 479px) {
    height: 640px;
  }
}

.carousel__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-margin-top: 0;
}

.carousel__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  height: 100%;

  @media (max-width: 991px) {
    padding-right: 40px;
  }

  @media (max-width: 767px) {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    padding-inline: 20px;
    text-align: center;
  }

  @media (max-width: 479px) {
    justify-content: flex-start;
    padding-inline: 0;
  }
}

.carousel__inner--wide-text {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.carousel__content {
  @media (max-width: 767px) {
    margin-bottom: 80px;
    padding-inline: 20px;
  }

  @media (max-width: 479px) {
    padding-bottom: 30px;
  }

  .text {
    @media (max-width: 479px) {
      margin-bottom: 0;
    }
  }
}

.carousel__media {
  display: flex;
  align-items: center;
  translate: 40px;

  @media (max-width: 767px) {
    justify-content: center;
    height: 320px;
    translate: none;
  }

  @media (max-width: 479px) {
    align-items: flex-start;
    height: 360px;
  }
}

.carousel__image {
  max-width: 200%;
  height: auto;

  @media (max-width: 767px) {
    max-width: 430px;
  }

  @media (max-width: 479px) {
    max-width: 90vw;
    padding-top: 62px;
  }
}

.carousel__image--phone {
  max-width: 170%;
  margin-left: 80px;
  translate: -190px;

  @media (max-width: 991px) {
    max-width: 180%;
    translate: -140px;
  }

  @media (max-width: 767px) {
    max-width: 420px;
    margin-left: 0;
    translate: none;
  }

  @media (max-width: 479px) {
    max-width: 370px;
    padding-top: 0;
  }
}

.carousel__image--form {
  max-width: 250%;
  margin-left: -110px;

  @media (max-width: 991px) {
    max-width: 240%;
    margin-left: -100px;
  }

  @media (max-width: 767px) {
    max-width: 100%;
    margin-left: 0;
  }

  @media (max-width: 479px) {
    max-width: 170vw;
    margin-left: 200px;
    padding-top: 30px;
  }
}

.carousel__devices {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;

  @media (max-width: 991px) {
    gap: 12px;
  }

  @media (max-width: 767px) {
    justify-content: center;
  }

  @media (max-width: 479px) {
    margin-block: 10px;
  }
}

.carousel__arrow {
  position: absolute;
  inset-block: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;

  @media (max-width: 991px) {
    align-items: flex-end;
    padding: 0 0 20px 20px;
  }
}

.carousel__arrow--prev {
  left: 0;
}

.carousel__arrow--next {
  right: 0;
  scale: -1 1;

  @media (max-width: 991px) {
    padding: 0 20px 20px 0;
  }
}

.carousel__dots {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding-top: 10px;

  @media (max-width: 991px) {
    margin-bottom: 4px;
  }

  @media (max-width: 479px) {
    margin-bottom: 22px;
  }
}

.carousel__dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #abb7f0;
}

.carousel:not(:has(.carousel__slide:target)) li:first-child .carousel__dot,
.carousel:has(#slide1:target) li:nth-child(1) .carousel__dot,
.carousel:has(#slide2:target) li:nth-child(2) .carousel__dot,
.carousel:has(#slide3:target) li:nth-child(3) .carousel__dot,
.carousel:has(#slide4:target) li:nth-child(4) .carousel__dot,
.carousel:has(#slide5:target) li:nth-child(5) .carousel__dot,
.carousel:has(#slide6:target) li:nth-child(6) .carousel__dot,
.carousel:has(#slide7:target) li:nth-child(7) .carousel__dot,
.carousel:has(#slide8:target) li:nth-child(8) .carousel__dot {
  background-color: var(--blue);
}

/* Testimonials */

.testimonials {
  padding-block: 100px;
  text-align: center;

  @media (max-width: 991px) {
    padding-block: 80px;
  }

  @media (max-width: 767px) {
    padding-block: 60px;
  }
}

.testimonials__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-block: 60px 70px;

  @media (max-width: 991px) {
    margin-bottom: 80px;
  }

  @media (max-width: 767px) {
    grid-template-columns: 1fr;
    gap: 50px;
    margin-block: 50px 60px;
  }
}

.testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 20px;
  font-size: 14px;
  color: var(--muted);

  @media (max-width: 991px) {
    padding-inline: 30px;
  }

  @media (max-width: 767px) {
    padding-inline: 20px;
  }

  @media (max-width: 479px) {
    padding-inline: 10px;
  }
}

.testimonial__photo {
  margin-bottom: 23px;

  @media (max-width: 479px) {
    margin-bottom: 17px;
  }
}

.testimonial__quote {
  margin-bottom: 20px;
  line-height: 26px;

  @media (max-width: 479px) {
    margin-bottom: 35px;
  }
}

.testimonial__name {
  margin-bottom: 3px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-style: normal;
  color: var(--blue);

  .testimonial:nth-child(even) & {
    color: #ff964d;
  }
}

.testimonial__role {
  margin-bottom: 3px;
  color: rgb(122 124 144 / 70%);
}

/* Research */

.research {
  background: var(--ghost-white) url('../images/fyr.png') no-repeat 100% 100%;
}

.research__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;

  @media (max-width: 767px) {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
  }
}

.research-card {
  display: flex;
  flex-direction: column;
  padding: 32px 32px 32px 40px;

  @media (max-width: 991px) {
    padding-inline: 20px;
  }

  @media (max-width: 767px) {
    padding: 30px;
  }
}

.research-card__type {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 22px;
  color: var(--sandy-brown);
}

.research-card__quote {
  margin-bottom: 17px;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  color: var(--navy);

  @media (max-width: 991px) {
    margin-bottom: 12px;
  }
}

.research-card__source {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}

.research-card__link {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin-top: auto;
  font-size: 17px;
  line-height: 26px;
  color: var(--blue);
  text-decoration: none;

  &:hover {
    color: var(--blue-hover);
  }

  @media (min-width: 480px) and (max-width: 767px) {
    margin-top: 20px;
  }
}

/* Features */

.features__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 10px;

  @media (max-width: 767px) {
    grid-template-columns: 1fr;
    gap: 59px;
    padding-top: 30px;
  }
}

.feature-list {
  padding-left: 28px;

  li {
    position: relative;
    margin-block: 20px;
  }

  li::before {
    content: '';
    position: absolute;
    top: 2px;
    left: -28px;
    width: 20px;
    height: 20px;
    background-image: url('../images/checkmark.svg');
  }
}
