.ips-download-card {
  --ips-download-card-accent: #0b9388;
  --ips-download-card-text: #111827;
  --ips-download-card-muted: #5f6875;
  --ips-download-card-border: #cce9e6;
  --ips-download-card-surface: #f9fefe;
  container: ips-download-card / inline-size;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  border: 1px solid var(--ips-download-card-border);
  border-radius: 18px;
  padding: 40px 48px;
  background: var(--ips-download-card-surface);
  color: var(--ips-download-card-text);
}

.ips-download-card,
.ips-download-card *,
.ips-download-card *::before,
.ips-download-card *::after {
  box-sizing: border-box;
}

.ips-download-card__layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.62fr) minmax(320px, 1.5fr) minmax(280px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.ips-download-card:not(.has-image) .ips-download-card__layout {
  grid-template-columns: minmax(320px, 1.5fr) minmax(280px, 0.95fr);
}

.ips-download-card:not(.has-action) .ips-download-card__layout {
  grid-template-columns: minmax(180px, 0.62fr) minmax(320px, 1.5fr);
}

.ips-download-card:not(.has-image):not(.has-action) .ips-download-card__layout {
  grid-template-columns: minmax(0, 1fr);
}

.ips-download-card__media {
  min-width: 0;
  margin: 0;
}

.ips-download-card__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  border-radius: 20px;
  object-fit: contain;
}

.ips-download-card__content,
.ips-download-card__action {
  min-width: 0;
}

.ips-download-card__title {
  margin: 0;
  color: var(--ips-download-card-text);
  font-size: clamp(1.65rem, 2.3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
}

.ips-download-card__description {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--ips-download-card-muted);
  font-size: 17px;
  line-height: 1.65;
}

.ips-download-card__features {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.ips-download-card__features li {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 12px;
  color: var(--ips-download-card-text);
  font-size: 16px;
  line-height: 1.45;
}

.ips-download-card__check {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  margin-block-start: calc((1.45em - 22px) / 2);
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--ips-download-card-accent);
}

.ips-download-card__check svg {
  display: block;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ips-download-card__action {
  display: grid;
  gap: 20px;
  align-content: center;
  justify-items: stretch;
}

.ips-download-card__button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px solid var(--ips-download-card-accent);
  border-radius: 9px;
  padding: 14px 24px;
  background: transparent;
  color: var(--ips-download-card-accent);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.ips-download-card__button:hover,
.ips-download-card__button:focus-visible {
  background: var(--ips-download-card-accent);
  color: #ffffff;
  text-decoration: none;
}

.ips-download-card__button.loading {
  cursor: progress;
  opacity: 0.72;
  pointer-events: none;
}

.ips-download-card__button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ips-download-card-accent) 36%, transparent);
  outline-offset: 3px;
}

.ips-download-card__button-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.ips-download-card__note {
  margin: 0;
  color: var(--ips-download-card-muted);
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

@container ips-download-card (max-width: 860px) {
  .ips-download-card__layout,
  .ips-download-card:not(.has-image) .ips-download-card__layout,
  .ips-download-card:not(.has-action) .ips-download-card__layout {
    grid-template-columns: minmax(160px, 0.55fr) minmax(0, 1.45fr);
  }

  .ips-download-card:not(.has-image):not(.has-action) .ips-download-card__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ips-download-card__action {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

@container ips-download-card (max-width: 560px) {
  .ips-download-card__layout,
  .ips-download-card:not(.has-image) .ips-download-card__layout,
  .ips-download-card:not(.has-action) .ips-download-card__layout,
  .ips-download-card:not(.has-image):not(.has-action) .ips-download-card__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .ips-download-card {
    padding: 26px 22px;
  }

  .ips-download-card__media {
    width: min(100%, 280px);
    justify-self: center;
  }

  .ips-download-card__action {
    grid-column: auto;
  }

  .ips-download-card__button {
    width: 100%;
  }
}
