.cards-stack {
  padding-top: 15dvh;
  padding-bottom: 40dvh;
}

.cards-stack__list {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 5rem;
}

.cards-stack__item {
  flex: none;
  width: 100%;
  max-width: 25rem;
  pointer-events: none;
  position: relative;
}

.cards-stack-card {
  pointer-events: auto;
}

.cards-stack__item.is--wide {
  max-width: 60rem;
}

.cards-stack-card {
  aspect-ratio: 2 / 3;
  border-radius: 2rem;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.cards-stack-card::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 55%;
  aspect-ratio: 1;
  background-image: url(../../assets/images/happy-smile_white.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top right;
  opacity: 0.08;
  pointer-events: none;
  transform: rotate(-20deg);
}

.cards-stack-card.bg-brand-primary::after {
  opacity: 0.18;
}

.cards-stack-card.bg-white::after {
  filter: invert(1);
}

.cards-stack-card.is--wide {
  aspect-ratio: 5 / 3;
}

.cards-stack-card__number {
  font-size: 6.75rem;
  line-height: .95;
}

.cards-stack-card__h {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 3.375rem;
  line-height: .95;
}

.cards-stack-card__h.is--l {
  font-size: 4.5rem;
}

.cards-stack-card__text {
  margin-top: auto;
  margin-bottom: 0;
}

@media screen and (max-width: 991px) {
  .cards-stack-card.is--wide {
    aspect-ratio: 5 / 4;
  }
}

@media screen and (max-width: 767px) {
  .cards-stack__item.is--wide {
    max-width: 25rem;
  }

  .cards-stack-card {
    border-radius: 1.6rem;
    padding: 2rem;
  }

  .cards-stack-card__number {
    font-size: 5.4rem;
  }

  .cards-stack-card__h {
    font-size: 2.7rem;
  }

  .cards-stack-card__h.is--l {
    font-size: 2.7rem;
  }

  .cards-stack-card.is--wide {
    aspect-ratio: 2 / 3;
  }

  .cards-stack-card__text {
    font-size: 0.9rem;
  }
}
