@charset "utf-8";

.p-service {
  padding: 115px 0 0;
  overflow: hidden;

  @media (width < 768px) {
    padding: 80px 0 0;
  }
}

.p-service__flex {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 950px;

  @media (width < 768px) {
    flex-direction: column;
  }
}

.p-service__head {
}

.p-service__heading {
  width: fit-content;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: var(--color-red);
  border-bottom: 1px solid var(--color-red);
}

.p-service__head-text {
  margin-top: 25px;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.667;
  letter-spacing: 0.05em;
}

.p-service__body {
  width: 51%;
  margin-top: 78px;
  display: flex;
  flex-direction: column;
  gap: 22px;

  @media (width < 768px) {
    width: 100%;
    margin-top: 40px;
  }

  p {
    font-weight: 700;
    line-height: 2.714;
  }
}

.p-service__bg-text {
  font-weight: 400;
  font-size: clamp(34px, calc(148vw / 13.66), 148px);
  font-family: var(--font-noto-sans);
  color: transparent;
  -webkit-text-stroke: 0.01em var(--color-red);
  paint-order: stroke;
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: 0.02em;
  position: relative;
  left: -0.7em;
  opacity: 0.27;
}

.p-service__images {
  margin-top: -30px;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;

  @media (width < 768px) {
    margin-top: -10px;
  }

  img {
    width: 100%;
    max-width: 33.4%;
    aspect-ratio: 389/347;
    object-fit: cover;
  }
}

.p-solution {
  margin-top: -160px;
  padding: 263px 0 303px;
  background: linear-gradient(0deg, #ffffff 0%, #dce3f5 43%, #fafafa 85%, #ffffff 100%);
}

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

  @media (width < 1120px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (width < 600px) {
    display: flex;
    flex-direction: column;
  }
}

.p-solution-card {
  background: var(--color-white);
  min-height: 120px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.p-solution-card__icon {
  width: 30px;
  aspect-ratio: 1;
  object-fit: contain;
  flex-shrink: 0;
}

.p-solution-card__text {
  width: 76%;
  color: #282828;
  font-size: 16px;
  line-height: 1.5;
}

.p-features {
  margin-top: -200px;
  position: relative;
  z-index: 1;
}

.p-features::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 0;
  width: 100%;
  height: 60%;
  background: transparent linear-gradient(0deg, #ffffff 0%, #f7f8fc 25%, #eaeef8 48%, #ffffff 84%, #ffffff 100%) 0% 0%;
  z-index: -1;
}

.p-features__lists {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 80px;

  @media (width < 768px) {
    gap: 40px;
  }
}

.p-features-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  @media (width < 768px) {
    flex-direction: column;
  }
}

.p-features-list.is-reverse {
  flex-direction: row-reverse;

  @media (width < 768px) {
    flex-direction: column;
  }
}

.p-features-list__image {
  width: 47%;
  border-radius: 10px;
  aspect-ratio: 550/407;

  @media (width < 768px) {
    width: 100%;
    max-width: 550px;
  }
}

.p-features-list__body {
  width: 47%;

  @media (width < 768px) {
    width: 100%;
  }
}

.p-features-list__head {
  display: flex;
  align-items: center;
  gap: 28px;

  @media (width < 768px) {
    gap: 16px;
  }
}

.p-features-list__num {
  font-weight: 700;
  font-size: 37px;
  font-family: var(--font-noto-sans);
  letter-spacing: 0.02em;
  color: var(--color-red);

  @media (width < 768px) {
    font-size: 32px;
  }
}

.p-features-list__heading {
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.05em;

  @media (width < 768px) {
    font-size: 20px;
  }
}

.p-features-list__text {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;

  p {
    font-weight: 700;
    line-height: 2.714;
  }
}

.p-flow {
  padding: 121px 0 150px;

  @media (width < 768px) {
    padding: 80px 0;
  }
}

.p-flow__steps {
  margin: 60px auto 0;
  max-width: 962px;
  display: flex;
  flex-direction: column;
  gap: 61px;
}

.p-flow-step {
  display: flex;
  gap: 60px;
  align-items: start;
  justify-content: end;

  @media (width < 768px) {
    gap: 20px;
  }
}

.p-flow-step:not(:first-of-type) {
  .p-flow-step__box::after {
    content: "";
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 43px;
    height: 21px;
    background: var(--color-red);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
  }
}

.p-flow-step__number {
  flex-shrink: 0;
  width: 80px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 12px;
  font-family: var(--font-noto-sans);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-shadow: 0px 3px 6px #6a9cde1f;
  position: relative;
  z-index: 1;

  @media (width < 768px) {
    width: 60px;
    font-size: 10px;
  }

  div:last-of-type {
    font-size: 30px;

    @media (width < 768px) {
      font-size: 24px;
    }
  }
}

.p-flow-step__number::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -60px;
  width: 60px;
  height: 1px;
  background: #dee0ea;
  z-index: -1;
}

.p-flow-step__box {
  background: transparent linear-gradient(0deg, #f1f3fa 0%, #fafcff 100%);
  width: 86%;
  min-height: 219px;
  padding: 41px 50px 34px;
  position: relative;
  z-index: 1;

  @media (width < 768px) {
    padding: 30px 20px;
  }
}

.p-flow-step__head {
  font-weight: 600;
  font-size: 20px;
  color: #393939;
  letter-spacing: 0.06em;
}

.p-flow-step__text {
  margin-top: 28px;
  font-weight: 700;
  line-height: 2.714;
}

.p-flow-devices {
  margin: 140px auto 0;
  max-width: 962px;

  @media (width < 768px) {
    margin-top: 80px;
  }
}

.p-flow-devices__heading {
  margin-left: 15px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: #00132b;
}

.p-flow-devices__heading::before {
  content: "";
  width: 18px;
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--color-red);
}

.p-flow-devices__image {
  margin-top: 6px;
  width: 100%;
  aspect-ratio: 962/680;
  object-fit: contain;
}

.p-flow-devices__btn {
  margin: 50px auto 0;
  width: 100%;
  max-width: 400px;
  height: 51px;
  justify-content: center;
  position: relative;

  @media (width < 768px) {
    margin: 20px auto 0;
  }

  .c-link-btn__arrow {
    position: absolute;
    right: 16px;
  }
}
