/* Offer card variants — graphite dark theme */

.desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.offer-brand {
  flex: 0 0 auto;
  width: 9.4rem;
  height: 3rem;
  display: flex;
  align-items: center;
}

.offer-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: brightness(1.06) contrast(1.02);
}

.insurance-card::before {
  background: linear-gradient(90deg, var(--green-primary, #4ade80), var(--green-hover, #22c55e));
}

.insurance-value {
  font-size: 1.55rem;
  color: var(--bonus, #4ade80);
  font-weight: 950;
  letter-spacing: -.03em;
}

.insurance-card .row {
  min-height: 3.35rem;
  align-items: center;
}

.loan-card::before {
  background: linear-gradient(90deg, var(--green-hover, #22c55e), var(--green-primary, #4ade80));
}

.loan-card .row {
  align-items: flex-start;
}

.loan-card .bank {
  flex: 0 1 auto;
}

.loan-card .rate {
  max-width: 10.5rem;
  white-space: normal;
  line-height: 1.25;
}

.loan-value {
  color: var(--bonus, #4ade80);
  font-size: 1.45rem;
  font-weight: 950;
}

.offer-features {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary, #d1d5db);
  font-size: .88rem;
  display: grid;
  gap: .45rem;
}

.offer-features li {
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.45;
}

.offer-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-primary, #4ade80);
  font-weight: 900;
}

@media (max-width: 420px) {
  .offer-brand { width: 7.2rem; }
  .insurance-card .rate { max-width: 8.2rem; }
}

@media (min-width: 761px) {
  .card {
    display: grid;
    grid-template-rows: auto 3.8rem 4.5rem auto 5.4rem auto auto;
    align-content: start;
  }

  .card h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: 0;
    margin: .1rem 0 .45rem;
  }

  .desc { min-height: 0; }

  .bonus {
    margin: .65rem 0 .35rem;
  }

  .tags {
    max-height: 4.4rem;
    overflow: hidden;
    align-content: flex-start;
    margin: .35rem 0 .65rem;
  }

  .card-actions { margin-top: 0; }

  .loan-card {
    grid-template-rows: auto 3.8rem minmax(8.4rem, auto) auto auto auto;
  }
}

@media (max-width: 760px) {
  .card h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .card-actions { margin-top: .35rem; }
}