
.offers-page {
  min-height: 70vh;
  background: #faf8f3;
}

.offers-heading {
  padding: 50px 20px 45px;
  background: #f4eee4;
  text-align: center;
}

.offers-heading-container {
  max-width: 750px;
  margin: 0 auto;
}

.offers-heading-label {
  display: block;
  margin-bottom: 15px;
  color: #a8843d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
}

.offers-heading h1 {
  margin: 0 0 15px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 4vw, 50px);
  font-weight: 400;
  line-height: 1.2;
  color: #59350f;
}

.offers-heading p {
  max-width: 550px;
  margin: 0 auto;
  color: #74685b;
  font-size: 14px;
  line-height: 1.8;
}

.offers-section {
  padding: 55px 20px 75px;
}

.offers-container {
  max-width: 1000px;
  margin: 0 auto;
}

.offers-group {
  margin-bottom: 65px;
}

.offers-group:last-child {
  margin-bottom: 0;
}

.offers-group h2 {
  margin: 0 0 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #d9cbb9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.3;
  color: #59350f;
  text-align: center;
}

.offers-posters {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
}

.offers-poster {
  display: flex;
  flex: 0 0 250px;
  flex-direction: column;
  align-items: center;
  width: 250px;
  max-width: 100%;
  margin: 0;
  text-align: center;
}

.offers-poster h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: #827936;
  text-align: center;
}

.offers-poster-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 365px;
  max-width: 100%;
  padding: 0;
  background: #ffffff;
  border: 1px solid #e3d9cc;
  border-radius: 0;
  overflow: hidden;
  cursor: zoom-in;
  appearance: none;
}

.offers-poster-button img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.offers-poster-button:hover {
  border-color: #98600e;
}

.offers-poster-button:focus-visible {
  outline: 3px solid #98600e;
  outline-offset: 4px;
}

html:has(.offer-zoom-dialog[open]),
body:has(.offer-zoom-dialog[open]) {
  overflow: hidden;
}

.offer-zoom-dialog {
  position: fixed;
  inset: 0;
  width: min(960px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 20px;
  box-sizing: border-box;
  background: #faf8f3;
  border: none;
  border-radius: 4px;
  color: #59350f;
  text-align: center;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #b69b72 #faf8f3;
}

.offer-zoom-dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.offer-zoom-close {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 0 14px auto;
  padding: 0;
  background: #59350f;
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}

.offer-zoom-close:hover {
  background: #98600e;
}

.offer-zoom-close:focus-visible {
  outline: 3px solid #c09b39;
  outline-offset: 3px;
}

#poster-zoom-image {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
}

@media (max-width: 850px) {
  .offers-section {
    padding: 45px 20px 65px;
  }

  .offers-posters {
    gap: 25px;
  }

  .offers-poster {
    flex-basis: 225px;
    width: 225px;
  }

  .offers-poster-button {
    width: 225px;
    height: 330px;
  }

  .offers-poster h3 {
    font-size: 19px;
  }
}

@media (max-width: 600px) {
  .offers-heading {
    padding: 42px 20px 38px;
  }

  .offers-heading h1 {
    font-size: 35px;
  }

  .offers-heading p {
    font-size: 13px;
  }

  .offers-section {
    padding: 35px 15px 55px;
  }

  .offers-group {
    margin-bottom: 48px;
  }

  .offers-group h2 {
    margin-bottom: 25px;
    padding-bottom: 13px;
    font-size: 28px;
  }

  .offers-posters {
    gap: 20px 14px;
  }

  .offers-poster {
    flex: 0 1 calc(50% - 7px);
    width: calc(50% - 7px);
    min-width: 0;
  }

  .offers-poster h3 {
    min-height: 44px;
    margin-bottom: 10px;
    font-size: 16px;
  }

  .offers-poster-button {
    width: 100%;
    height: 250px;
  }

  .offer-zoom-dialog {
    width: calc(100vw - 8px);
    max-width: calc(100vw - 8px);
    max-height: calc(100dvh - 8px);
    padding: 10px 7px 16px;
    border-radius: 3px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .offer-zoom-close {
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
  }

  #poster-zoom-image {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    margin: 0;
    object-fit: contain;
  }
}

@media (max-width: 380px) {
  .offers-poster h3 {
    font-size: 14px;
  }

  .offers-poster-button {
    height: 210px;
  }
}
