.how-it-works {
  padding: 50px 0;
  margin: 0 0 100px;
}

.how-it-works__title {
  margin: 0 0 16px;
  font-family: HarlowDuoSerifPlain, serif;
  font-size: 36px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  color: var(--Primary-teal);
  text-align: center;
  letter-spacing: 1.08px;
}

.how-it-works__subtitle {
  margin: 0 auto;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 162%;
  color: var(--Neutral-50);
  text-align: center;
}

.how-it-works__list {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 0;
  margin: 52px 0 0;
  list-style: none;
}

.how-it-works__item {
  display: flex;
  flex: 1 1 0;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: rgba(218, 235, 235, 0.30);
  border-radius: 16px;
}

.how-it-works__separator {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.how-it-works__separator:before,
.how-it-works__separator:after {
  display: block;
  width: clamp(10px, -42.7573px + 5.3398vw, 32px);
  height: 1px;
  content: "";
  background: #9fc5c4;
}

.how-it-works__separator svg {
  display: block;
  flex: 0 0 auto;
}

.how-it-works__item-number {
  font-family: HarlowDuoSerifPlain, serif;
  font-size: 56px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  text-align: center;
  letter-spacing: 1.68px;
}

.how-it-works__item:nth-child(6n + 1) .how-it-works__item-number {
  color: var(--Primary-pistachio);
}

.how-it-works__item:nth-child(6n + 3) .how-it-works__item-number {
  color: var(--Primary-sky);
}

.how-it-works__item:nth-child(6n + 5) .how-it-works__item-number {
  color: var(--Primary-melon);
}

.how-it-works__item-title {
  margin: 0 0 4px;
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 113%;
  color: var(--Primary-teal);
}

.how-it-works__item-desc {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 166%;
  color: var(--Neutral-50);
}

@media screen and (max-width:1360px) {
  .how-it-works__title {
    font-size: clamp(28px, 22.4px + 1vw, 36px);
  }

  .how-it-works__subtitle {
    font-size: clamp(12px, 9.2px + 0.5vw, 16px);
  }
}

@media screen and (max-width: 998px) {
  .how-it-works {
    padding: 48px 0;
    margin: 0;
  }

  .how-it-works__list {
    flex-direction: column;
    gap: 16px;
    margin: 24px 0 0;
  }

  .how-it-works__item {
    width: 100%;
  }

  .how-it-works__separator {
    flex-direction: column;
  }

  .how-it-works__separator:before,
  .how-it-works__separator:after {
    width: 1px;
    height: 24px;
  }
}

@media screen and (max-width:560px) {
  .how-it-works__title {
    margin: 0 0 8px;
    font-size: 28px;
  }

  .how-it-works__subtitle {
    font-size: 12px;
  }
}
