.dpos-offer-cards {
  padding-block: var(--dpos-section-gap);
}

.dpos-offer-cards__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.dpos-offer-cards__grid .dpos-offer-card {
  flex: 0 0 calc((100% - 4rem) / 3);
}

.dpos-offer-cards__grid .dpos-offer-card:nth-child(5n + 4),
.dpos-offer-cards__grid .dpos-offer-card:nth-child(5n + 5) {
  flex-basis: calc((100% - 2rem) / 2);
}

.dpos-offer-cards__grid .dpos-offer-card:nth-child(5n + 1),
.dpos-offer-cards__grid .dpos-offer-card:nth-child(5n + 2),
.dpos-offer-cards__grid .dpos-offer-card:nth-child(5n + 3) {
  flex-basis: calc((100% - 4rem) / 3);
}

.dpos-offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem;
  border-radius: var(--dpos-radius-unified);
  color: var(--dpos-white);
  background-color: var(--dpos-dark);
  overflow: hidden;
}

.dpos-offer-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1);
  z-index: 0;
}

.dpos-offer-card__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.35) 0%, rgba(20, 20, 20, 0.85) 100%);
}

.dpos-offer-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 200px;
  height: 100%;
}

.dpos-offer-card__title {
  margin: 0;
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.15;
}

.dpos-offer-card__meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dpos-offer-card .dpos-tags {
  margin: 0;
}

.dpos-offer-card .dpos-tag {
  border-radius: var(--mini-border);
}

.dpos-offer-card__desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .dpos-offer-cards__grid .dpos-offer-card {
    flex-basis: calc((100% - 2rem) / 2) !important;
  }
}

@media (max-width: 700px) {
  .dpos-offer-cards__grid .dpos-offer-card {
    flex-basis: 100% !important;
  }
}
