.api-cards__list {
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 4px;
  display: grid;
}

.api-cards__card {
  background-color: #fff;
  border-radius: 24px;
  flex-flow: column;
  display: flex;
  overflow: hidden;
}

.api-cards__img {
  flex: none;
  display: block;
}

.api-cards__body {
  flex-flow: column;
  display: flex;
}

.api-cards__title {
  color: #000;
  font-family: Sfprodisplay, Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.api-cards__text {
  color: #000;
  letter-spacing: .58px;
  font-family: Sfprodisplay, Arial, sans-serif;
  font-size: 17px;
  line-height: 22px;
}

.api-cards__button {
  letter-spacing: .58px;
  border-radius: 100px;
  height: 50px;
  margin: auto 8px 8px;
  padding: 0 16px;
  font-family: Sfprodisplay, Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 22px;
}

.api-cards__dots {
  display: none;
}

.api-cards_media .api-cards__img {
  object-fit: cover;
  width: 100%;
  height: 280px;
}

.api-cards_media .api-cards__body {
  text-align: center;
  gap: 4px;
  padding: 16px;
}

.api-cards_media .api-cards__title {
  letter-spacing: .2px;
}

.api-cards_media .api-cards__text {
  color: rgba(0, 0, 0, .7);
  letter-spacing: .7px;
}

.api-cards_media .api-cards__button {
  margin-top: auto;
}

.api-cards_illustrations .api-cards__card {
  text-align: center;
  align-items: center;
  gap: 32px;
  padding: 32px 24px 24px;
}

.api-cards_illustrations .api-cards__img {
  width: 200px;
  height: 200px;
}

.api-cards_illustrations .api-cards__body {
  gap: 8px;
}

.api-cards_illustrations .api-cards__title {
  font-weight: 500;
}

.api-cards_icons .api-cards__card {
  min-height: 221px;
  padding: 28px 28px 29px;
}

.api-cards_icons .api-cards__img {
  width: 50px;
  height: 50px;
}

.api-cards_icons .api-cards__body {
  gap: 7px;
  margin-top: auto;
  padding-top: 40px;
}

.api-cards_icons .api-cards__title {
  letter-spacing: -.48px;
  font-family: Inter, sans-serif;
  font-weight: 500;
}

.api-cards_icons .api-cards__text {
  letter-spacing: .5px;
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  /* Manual breaks are tuned for desktop and phone card widths */
  .api-cards__text br {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .api-cards {
    margin-top: 24px;
  }

  .api-cards_icons {
    margin-top: 25px;
  }

  .api-cards_media .api-cards__list,
  .api-cards_icons .api-cards__list {
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    grid-auto-columns: 100%;
    margin: 0 -16px;
    padding: 0 16px;
    scroll-padding: 0 16px;
    overflow-x: auto;
  }

  .api-cards__list::-webkit-scrollbar {
    display: none;
  }

  .api-cards__card {
    scroll-snap-align: start;
  }

  .api-cards__title {
    letter-spacing: .35px;
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
  }

  .api-cards__text {
    color: #000;
    letter-spacing: .7px;
    font-size: 15px;
    line-height: 18px;
  }

  .api-cards__button {
    letter-spacing: .85px;
    height: 40px;
    font-size: 15px;
  }

  .api-cards__dots {
    background-image: linear-gradient(#e6e6eb, #ececf1);
    border-radius: 12px;
    align-self: center;
    align-items: center;
    gap: 8px;
    height: 24px;
    margin-top: 8px;
    padding: 0 8px;
    display: flex;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8);
  }

  .api-cards__dots::before {
    content: "";
    background-color: #fff;
    border-radius: 4px;
    width: calc(12px + 8px * var(--stretch, 0));
    height: 8px;
    position: absolute;
    top: 8px;
    left: 8px;
    transform: translateX(calc(16px * var(--progress, 0)));
  }

  .api-cards__dot {
    --fill: 0;
    background-color: #d8d8de;
    border-radius: 4px;
    width: calc(8px + 16px * var(--fill));
    height: 8px;
  }

  .api-cards__dot_active {
    --fill: 1;
  }

  .api-cards_media .api-cards__body {
    padding-bottom: 18px;
  }

  .api-cards_media .api-cards__body:not(:last-child) {
    padding-bottom: 16px;
  }

  .api-cards_media .api-cards__title,
  .api-cards_icons .api-cards__title {
    letter-spacing: .35px;
  }

  .api-cards_media .api-cards__text,
  .api-cards_icons .api-cards__text {
    color: #000;
    letter-spacing: .7px;
  }

  .api-cards_illustrations .api-cards__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 8px;
  }

  .api-cards_illustrations .api-cards__card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .api-cards_illustrations .api-cards__card {
    gap: 11px;
    padding: 13px 16px 16px;
  }

  .api-cards_illustrations .api-cards__img {
    width: 107px;
    height: 107px;
  }

  .api-cards_illustrations .api-cards__body {
    gap: 5px;
  }

  .api-cards_illustrations .api-cards__title {
    letter-spacing: .4px;
    font-size: 17px;
    line-height: 22px;
  }

  .api-cards_illustrations .api-cards__text {
    color: #8e8e93;
    letter-spacing: .6px;
  }

  .api-cards_icons .api-cards__card {
    min-height: 200px;
    padding: 15px 16px 16px;
  }

  .api-cards_icons .api-cards__img {
    width: 40px;
    height: 40px;
  }

  .api-cards_icons .api-cards__title {
    font-family: Sfprodisplay, Arial, sans-serif;
    font-weight: 600;
  }

  .api-cards_icons .api-cards__body {
    gap: 4px;
  }
}
