.offers {
  padding: 40px 24px 48px;
  background: #ececec;
}

.offers-intro,
#offers-grid {
  max-width: 1168px;
  margin-inline: auto;
}

.offers-intro {
  margin-bottom: 20px;
}

.offers-intro h2 {
  margin: 0;
  color: #161616;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 400;
}

.offers-intro p {
  max-width: 740px;
  margin: 8px 0 0;
  color: #545454;
  font-size: 14px;
  line-height: 1.5;
}

#offers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.offer-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 4px;
  background: #fff;
}

.offer-art {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px 4px 0 0;
  background: #e1e1e1;
  object-fit: cover;
}

.offer-art[data-position="top"] { object-position: center top; }
.offer-art[data-position="bottom"] { object-position: center bottom; }
.offer-art[data-position="left"] { object-position: left center; }
.offer-art[data-position="right"] { object-position: right center; }

.offer-art[data-position="top-left"] { object-position: left top; }
.offer-art[data-position="top-right"] { object-position: right top; }
.offer-art[data-position="bottom-left"] { object-position: left bottom; }
.offer-art[data-position="bottom-right"] { object-position: right bottom; }

.offer-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px;
  overflow-wrap: anywhere;
}

.offer-details h3 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
}

.offer-details p {
  margin: 0 0 18px;
  color: #595959;
  font-size: 14px;
  line-height: 1.4;
}

.offer-actions {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #e1e1e1;
}

.offer-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 4px;
  background: #2d2d2d;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}

.offer-cta:hover {
  background: #494949;
}

@media (max-width: 960px) {
  #offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .offers {
    padding: 32px 16px;
  }

  #offers-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
