/* Offers — 2-row card layout */
.section-offers {
  padding: 80px 0 96px;
  background: linear-gradient(180deg, #eef1fc 0%, var(--mp-bg) 100%);
}

.section-offers .section-title {
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.offers-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.offer-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 25px;
  border-radius: 40px;
  background: #fff;
  overflow: visible;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.offer-card__badge {
  align-self: flex-start;
  margin: 0 0 2px;
  padding: 8px 15px;
  border-radius: 15px;
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.offer-card__badge--red { background: rgb(243, 47, 21); }

.offer-card__badge--green { background: rgb(57, 191, 24); }

.offer-card__top {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  grid-template-areas:
    "media copy"
    "more  copy";
  column-gap: 32px;
  row-gap: 0;
  align-items: start;
  overflow: visible;
}

.offer-card__media {
  grid-area: media;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  align-self: start;
  width: 150px;
  max-width: 150px;
  padding: 0;
  overflow: hidden;
}

.offer-card__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  width: 150px;
  aspect-ratio: 1;
  overflow: hidden;
}

.offer-card__halo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
}

.offer-card__machine {
  position: relative;
  z-index: 1;
  max-width: 82%;
  max-height: 82%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.offer-card__copy {
  grid-area: copy;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  min-width: 0;
}

.offer-card__title {
  margin: 0 0 10px;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: none;
}

.offer-card__desc {
  margin: 0;
  flex: 1 1 auto;
  font-size: 16px;
  line-height: 1.45;
  color: var(--mp-soft);
}

.offer-card__more {
  grid-area: more;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 20px;
}

.offer-card__details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2e75f6;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  text-align: center;
}

.offer-card__details img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.offer-card__details:hover img { transform: scale(1.2); }

.offer-card__details span { border-bottom: 1px dashed #2e75f6; }

.offer-card__price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  padding-bottom: 12px;
  overflow: visible;
}

.offer-card__amount {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
}

.offer-card__amount span {
  font-size: 16px;
  font-weight: 500;
  color: var(--mp-muted);
}

.btn--offer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 0 22px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(92deg, #7365ee 0%, #8842e0 100%);
  color: #fff;
  font-family: var(--mp-font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(115, 101, 238, 0.35);
  box-sizing: border-box;
}

.offer-card__specs {
  display: flex;
  flex-direction: column;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.offer-card__spec {
  display: grid;
  grid-template-columns: minmax(140px, 34%) 1fr;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(23, 21, 36, 0.06);
}

.offer-card__spec:last-child { border-bottom: 0; }
.offer-card__spec:nth-child(even) { background: #f8f9fc; }

.offer-card__spec dt {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--mp-muted);
}

.offer-card__spec dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

@media (max-width: 1099px) {
  .offers-list { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .offer-card {
    padding: 20px 16px;
    border-radius: 28px;
  }

  .offer-card__top {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "media" "copy" "more";
    min-height: 0;
    width: 100%;
    max-width: 100%;
  }

  .offer-card__copy {
    grid-row: auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
  }

  .offer-card__desc { flex: none; }

  .offer-card__price {
    margin-top: 16px;
    padding-top: 0;
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
  }

  .offer-card__media {
    justify-content: flex-start;
    align-self: flex-start;
    width: min(150px, 100%);
    max-width: 200px;
    margin: 0 0 20px;
  }

  .offer-card__visual {
    justify-content: flex-start;
    width: min(150px, 100%);
    max-width: 200px;
    margin: 0;
  }

  .offer-card__machine {
    margin-left: 0;
  }

  .offer-card__more {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .offer-card__details {
    text-align: left;
  }

  .btn--offer,
  a.btn.btn--offer {
    width: auto !important;
    max-width: min(240px, 100%);
    align-self: flex-start;
  }

  .offer-card__spec {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .offer-card__title {
    overflow-wrap: anywhere;
  }
}
