.cards-wrapper {
  margin: 48px 0 45px;
}

.cards>ul {
  list-style: none;
  margin: 0 auto;
  width: 100vw;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(300px, 1fr);
  grid-gap: 16px;
}

.cards .cards-card-body:first-of-type {
  display: flex;
  transform: translate(32px, 37px);
  margin-bottom: 0;
  width: fit-content;
}

.cards .cards-card-body p {
  margin: 0;
}

.cards .cards-card-body p:last-of-type {
  padding: 27px 25px;
  color: var(--callout-bg-color);
  font-size: var(--font-20);
  font-family: var(--font-open-sans);
  font-weight: var(--font-weight-400);
  max-width: 142px;
  line-height: 26px;
}

.dc-fr.cards .cards-card-body p:last-of-type {
  max-width: 178px;
}

.cards .cards-card-body:last-of-type {
  background-color: var(--hr-color);
  padding: 58px 30px 10px;
  color: var(--text-white);
  min-height: 185px;
  font-family: var(--font-open-sans);
  font-weight: var(--font-weight-400);
  font-size: var(--font-15);
  line-height: 20px;
  margin: 0;
}

.dc-fr.cards .cards-card-body:last-of-type {
  min-height: 200px;
}

.cards .cards-card-body>*:first-child {
  margin-top: 0;
  height: 135px;
}

.cards>ul>li img {
  width: 135px;
  aspect-ratio: 1;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .cards-wrapper {
    margin: 96px 0;
  }

  .cards>ul {
    width: 90vw;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 60px;
    max-width: 1440px;
  }

  .dc-fr.cards>ul {
    gap: 45px;
  }

  .cards .cards-card-body:first-of-type {
    transform: translate(32px, 45px);
  }

  .cards .cards-card-body p:last-of-type {
    padding: 38px 16px 0;
    font-size: var(--font-28);
    max-width: 142px;
    line-height: var(--line-height-40);
  }

  .dc-fr.cards .cards-card-body p:last-of-type {
    max-width: 183px;
  }

  .dc-fr.cards li:first-of-type .cards-card-body p:last-of-type,
  .dc-fr.cards li:nth-of-type(2) .cards-card-body p:last-of-type {
    padding-top: 11px;
  }

  .dc-fr.cards .cards-card-body:last-of-type {
    min-height: 475px;
  }

  .cards .cards-card-body:last-of-type {
    padding: 63px 21px 27px 32px;
    min-height: 405px;
    font-size: var(--font-26);
    line-height: var(--line-height-35);
  }

  .cards .cards-card-body>*:first-child {
    height: 181px;
  }

  .cards>ul>li img {
    width: 181px;
    aspect-ratio: 1;
    object-fit: cover;
  }

  .dc-fr.cards>ul>li img {
    width: 165px;
  }
}

@media (min-width: 1440px) {
  .cards .cards-card-body:last-of-type {
    min-height: 335px;
  }

  .dc-fr.cards .cards-card-body:last-of-type {
    min-height: 415px;
  }

  .dc-fr.cards>ul {
    gap: 60px;
  }

  .dc-fr.cards>ul>li img {
    width: 181px;
  }

  .dc-fr.cards .cards-card-body p:last-of-type {
    max-width: 195px;
  }

  .dc-fr.cards li:nth-of-type(2) .cards-card-body p:last-of-type {
    padding-top: 38px;
  }
}

@media all and (width: 1024px) and (height: 768px) and (orientation:landscape) {
  .dc-fr.cards>ul {
    grid-template-columns: minmax(300px, 1fr);
  }

  .dc-fr.cards .cards-card-body:last-of-type {
    min-height: 232px;
  }

  .dc-fr.cards>ul>li img {
    width: 181px;
  }
}
