.stages-cost {
  padding: clamp(34px, 3vw, 48px) 0 clamp(42px, 3.5vw, 56px);
  background: #fff;
  color: #171717;
}

.stages-cost,
.stages-cost * {
  border-radius: 0;
  box-shadow: none;
}

.stages-cost__header {
  margin-bottom: clamp(36px, 4vw, 52px);
}

.stages-cost__header h2 {
  max-width: 900px;
  color: #042245;
  font-size: clamp(2.3rem, 3.35vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -.04em;
}

.stages-cost__header p {
  max-width: 760px;
  margin-top: 10px;
  color: #171717;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.6;
}

.stages-cost__workflow {
  display: grid;
  grid-template-columns: minmax(480px, .93fr) minmax(0, 1.07fr);
  gap: 24px;
  align-items: stretch;
}

.stages-cost__media {
  min-height: 0;
  overflow: hidden;
  background: #eef1f4;
}

.stages-cost__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .65s cubic-bezier(.22, 1, .36, 1);
}

.stages-cost__media:is(:hover, :focus-within) > img {
  transform: scale(1.035);
}

.stages-cost__stages {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

@media (prefers-reduced-motion: reduce) {
  .stages-cost__media > img {
    transition: none;
  }
}

.stages-cost__stage {
  position: relative;
  display: grid;
  min-height: 146px;
  overflow: hidden;
  padding: 22px 24px;
  border: 1px solid #eaeaea;
  background: #fff;
  grid-template-columns: 86px minmax(0, 1fr);
  column-gap: 20px;
  align-items: center;
}

.stages-cost__stage-mark {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stages-cost__stage-number {
  position: absolute;
  z-index: 0;
  right: -14px;
  bottom: -22px;
  width: auto;
  height: 102px;
  pointer-events: none;
  user-select: none;
}

.stages-cost__stage-icon {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.stages-cost__stage-copy {
  position: relative;
  z-index: 1;
}

.stages-cost__stage-copy h3 {
  color: #171717;
  font-size: clamp(1.05rem, 1.15vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -.025em;
}

.stages-cost__stage-copy p {
  max-width: 30em;
  margin-top: 12px;
  color: #171717;
  font-size: .94rem;
  line-height: 1.55;
}

.stages-cost__price {
  display: grid;
  margin-top: 28px;
  padding: 40px 44px;
  grid-template-columns: minmax(390px, .88fr) minmax(0, 1.42fr);
  column-gap: 44px;
  align-items: center;
  background: #025bde;
  color: #fff;
}

.stages-cost__price-heading h2 {
  color: #fff;
  font-size: clamp(1.9rem, 2.55vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.stages-cost__factors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stages-cost__factor {
  display: flex;
  min-width: 0;
  min-height: 106px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(16px, 2vw, 28px);
  border-left: 1px solid rgb(255 255 255 / 34%);
  text-align: center;
}

.stages-cost__factor:first-child {
  border-left: 0;
}

.stages-cost__factor img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.stages-cost__factor h3 {
  margin-top: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.015em;
}

@media (max-width: 1180px) {
  .stages-cost__workflow {
    grid-template-columns: 1fr;
  }

  .stages-cost__media {
    aspect-ratio: 1402 / 1122;
  }

  .stages-cost__price {
    grid-template-columns: 1fr;
    row-gap: 34px;
  }

  .stages-cost__price-heading h2 {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .stages-cost {
    padding: 29px 0 38px;
  }

  .stages-cost__header {
    margin-bottom: 30px;
  }

  .stages-cost__header h2 {
    font-size: clamp(2rem, 9vw, 2.55rem);
  }

  .stages-cost__header p {
    margin-top: 12px;
  }

  .stages-cost__workflow {
    gap: 16px;
  }

  .stages-cost__stages {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 12px;
  }

  .stages-cost__stage {
    min-height: 144px;
    padding: 20px;
    grid-template-columns: 76px minmax(0, 1fr);
    column-gap: 16px;
  }

  .stages-cost__stage-icon {
    width: 70px;
    height: 70px;
  }

  .stages-cost__stage-number {
    right: -12px;
    bottom: -20px;
    height: 100px;
  }

  .stages-cost__stage-copy p {
    margin-top: 8px;
    font-size: .9rem;
  }

  .stages-cost__price {
    margin-top: 16px;
    padding: 32px 22px;
    row-gap: 24px;
  }

  .stages-cost__price-heading h2 {
    font-size: clamp(1.8rem, 9vw, 2.25rem);
  }

  .stages-cost__factors {
    grid-template-columns: 1fr;
  }

  .stages-cost__factor {
    min-height: 0;
    flex-direction: row;
    justify-content: flex-start;
    padding: 20px 0;
    border-top: 1px solid rgb(255 255 255 / 34%);
    border-left: 0;
    gap: 18px;
    text-align: left;
  }

  .stages-cost__factor:first-child {
    border-top: 0;
  }

  .stages-cost__factor img {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
  }

  .stages-cost__factor h3 {
    margin-top: 0;
    font-size: 1.05rem;
  }
}
