.cardsRow {
  position: relative;
  z-index: 0;
  margin: 40px 0;
  padding: 40px 0;
}
.cardsRow::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50vw);
  z-index: -1;
}
.cardsRow__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.cardsRow__heading {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  leading-trim: both;
  text-edge: cap;
  font-family: Urbanist;
  font-size: 32px;
  font-weight: 400;
  line-height: normal;
}
.cardsRow__heading span {
  color: #0C29A3;
  text-decoration: underline;
}
.cardsRow__text {
  font-family: Urbanist;
}
.cardsRow__text strong,
.cardsRow__text b {
  display: block;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}
.cardsRow__text p {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin: 0 0 12px;
}
.cardsRow__text p:last-child {
  margin-bottom: 0;
}
.cardsRow__images {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cardsRow__card {
  position: relative;
  z-index: 0;
  aspect-ratio: 290/385;
  overflow: hidden;
}
.cardsRow__card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cardsRow__card__front {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  gap: 8px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.7) 100%);
}
.cardsRow__card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: auto;
}
.cardsRow__card__text {
  color: #fff;
  font-family: Urbanist;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.12s linear, transform 0.12s linear;
}
.cardsRow__card__text a {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: underline;
}
.cardsRow__card__text p {
  color: inherit;
  margin: 0 0 10px;
}
.cardsRow__card__title {
  color: #fff;
  font-family: Urbanist;
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  transition: transform 0.12s linear;
}
.cardsRow__card:hover .cardsRow__card__front {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0.8) 100%);
}
.cardsRow__card:hover .cardsRow__card__text {
  opacity: 1;
  transform: none;
}
.cardsRow__card:hover .cardsRow__card__title {
  transform: translateY(-2px);
}
.cardsRow__card:first-child .cardsRow__card__front {
  background: #D31C24;
  justify-content: flex-start;
  gap: 16px;
}
.cardsRow__card:first-child .cardsRow__card__text {
  order: 3;
  opacity: 1;
  transform: none;
}
.cardsRow__card:first-child .cardsRow__card__title {
  order: 2;
  font-size: 20px;
  line-height: 24px;
}
.cardsRow__card:first-child .cardsRow__card__tags {
  order: 1;
  margin-bottom: 4px;
}
.cardsRow__tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 100px;
  background: #fff;
  color: #002E70;
  font-family: "IBM Plex Sans";
  font-size: 12px;
  font-weight: 700;
  line-height: normal;
  white-space: nowrap;
}
.cardsRow__card:first-child .cardsRow__tag {
  color: #D31C24;
}
.cardsRow.lightBg::before {
  background: #fff;
}
.cardsRow.lightBg .cardsRow__heading,
.cardsRow.lightBg .cardsRow__text strong,
.cardsRow.lightBg .cardsRow__text b,
.cardsRow.lightBg .cardsRow__text p {
  color: #000;
}
.cardsRow.darkBg::before {
  background: #002E70;
}
.cardsRow.darkBg .cardsRow__heading,
.cardsRow.darkBg .cardsRow__text strong,
.cardsRow.darkBg .cardsRow__text b,
.cardsRow.darkBg .cardsRow__text p {
  color: #fff;
}
.cardsRow.darkBg .cardsRow__heading span {
  color: #fff;
}

@media (min-width: 800px) {
  .cardsRow {
    margin: 90px 0;
    padding: 60px 0;
  }
  .cardsRow__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: start;
  }
  .cardsRow__heading {
    grid-column: 1/4;
    font-size: 40px;
  }
  .cardsRow__text--1 {
    grid-column: 1/2;
  }
  .cardsRow__text--2 {
    grid-column: 2/3;
  }
  .cardsRow__text--3 {
    grid-column: 3/4;
  }
  .cardsRow__images {
    grid-column: 1/4;
    flex-direction: row;
    gap: 20px;
  }
  .cardsRow__images > * {
    flex: 1 1 0;
    min-width: 0;
  }
}
@media (min-width: 1040px) {
  .cardsRow {
    margin: 110px 0;
    padding: 80px 0;
  }
  .cardsRow__container {
    gap: 50px 40px;
  }
  .cardsRow__heading {
    font-size: 48px;
  }
  .cardsRow__card__front {
    padding: 24px;
  }
  .cardsRow__card:first-child .cardsRow__card__title {
    font-size: 22px;
  }
}
@media (min-width: 1240px) {
  .cardsRow__heading {
    font-size: 56px;
  }
}