.offer-page {
  background: var(--bg);
}

.offer-section-shell {
  width: min(var(--shell), calc(100% - 48px));
  margin: 0 auto;
}

.offer-hero {
  width: 100%;
  height: 393px;
  overflow: hidden;
  background: #efeee8;
}

.offer-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.offer-introduction {
  color: var(--cream);
  background: rgb(var(--color_cyan));
}

.offer-introduction__inner {
  display: grid;
  justify-items: center;
  padding-top: 4.5rem;
  padding-bottom: 4.2rem;
  text-align: center;
}

.offer-introduction h1,
.offer-topics h2,
.offer-services h2 {
  margin: 0;
  font-family: 'Comfortaa', sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.35;
}

.offer-introduction p {
  max-width: 940px;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.offer-heading-rule {
  display: block;
  width: min(474px, 70vw);
  height: 3px;
  margin: 1rem auto 0;
  background: rgba(var(--color_cyan), 0.62);
}

.offer-heading-rule--light {
  width: 154px;
  height: 2px;
  margin-top: 0.8rem;
  margin-bottom: 2.9rem;
  background: rgba(255, 254, 252, 0.62);
}

.offer-topics {
  padding: 4.8rem 0 3.8rem;
  background: var(--bg);
}

.offer-topics__heading {
  display: grid;
  justify-items: center;
  color: rgb(var(--color_darkcyan));
  text-align: center;
}

.offer-topics__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2.5rem);
  width: min(1260px, calc(100% - 48px));
  margin: 3rem auto 0;
}

.offer-topic {
  display: grid;
  grid-template-rows: 196px auto;
  justify-items: center;
  gap: 1rem;
  color: rgb(42, 30, 22);
  text-align: center;
}

.offer-topic__image-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  height: 196px;
}

.offer-topic__image-wrap img {
  width: auto;
  max-width: 166px;
  max-height: 196px;
  object-fit: contain;
}

.offer-topic h3 {
  max-width: 230px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.offer-services {
  scroll-margin-top: 132px;
  padding: 4.5rem 0 4.8rem;
  background: #f8f6f2;
}

.offer-services h2 {
  color: rgb(var(--color_darkcyan));
  text-align: center;
}

.offer-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.offer-card {
  display: grid;
  grid-template-rows: 230px 1fr;
  min-width: 0;
  overflow: hidden;
  color: var(--cream);
  background: rgb(var(--color_cyan));
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(var(--color_darkcyan), 0.14);
}

.offer-card__image {
  display: block;
  overflow: hidden;
}

.offer-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.offer-card__image:hover img,
.offer-card__image:focus-visible img {
  transform: scale(1.025);
}

.offer-card__body {
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 2rem 1.5rem 1.8rem;
  text-align: center;
}

.offer-card h3 {
  margin: 0;
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.offer-card__details {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.offer-card__rule {
  width: 72%;
  height: 1px;
  margin: 1.4rem auto 1.2rem;
  background: rgba(255, 254, 252, 0.55);
}

.offer-card__meta {
  display: grid;
  gap: 0.2rem;
  font-size: 0.9rem;
}

.offer-card__book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  min-height: 42px;
  margin-top: 1.45rem;
  padding: 0 1.25rem;
  color: rgb(var(--color_darkcyan));
  background: var(--cream);
  border: 1px solid var(--cream);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.offer-card__book:hover,
.offer-card__book:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 254, 252, 0.9);
}

.offer-note {
  display: grid;
  place-items: center;
  min-height: 209px;
  padding: 2.8rem 0;
  color: rgb(var(--color_darkcyan));
  background: var(--bg);
}

.offer-note__inner {
  text-align: center;
}

.offer-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.offer-note strong {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.16rem;
}

@media (max-width: 980px) {
  .offer-topics__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .offer-services__grid {
    gap: 1.25rem;
  }

  .offer-card {
    grid-template-rows: 190px 1fr;
  }
}

@media (max-width: 760px) {
  .offer-hero {
    height: auto;
    aspect-ratio: 320 / 197;
  }

  .offer-introduction__inner {
    justify-items: start;
    padding-top: 3.1rem;
    padding-bottom: 3.5rem;
    text-align: left;
  }

  .offer-introduction h1,
  .offer-topics h2,
  .offer-services h2 {
    font-size: 26px;
  }

  .offer-introduction p {
    font-size: 17px;
    line-height: 1.55;
  }

  .offer-heading-rule--light {
    margin-right: 0;
    margin-left: 0;
  }

  .offer-topics {
    padding: 3.4rem 24px 3.2rem;
  }

  .offer-topics__heading {
    justify-items: start;
    text-align: left;
  }

  .offer-heading-rule {
    width: min(220px, 80%);
    margin-right: 0;
    margin-left: 0;
  }

  .offer-topics__grid {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    margin-top: 1.5rem;
  }

  .offer-topic {
    position: relative;
    grid-template-columns: 88px 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    justify-items: start;
    gap: 1.2rem;
    min-height: 122px;
    padding: 1.1rem 0;
    text-align: left;
  }

  .offer-topic::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: rgba(var(--color_cyan), 0.45);
    content: '';
  }

  .offer-topic:last-child::after {
    display: none;
  }

  .offer-topic__image-wrap {
    width: 88px;
    height: 98px;
  }

  .offer-topic__image-wrap img {
    max-width: 82px;
    max-height: 96px;
  }

  .offer-topic h3 {
    max-width: none;
    font-size: 17px;
    font-weight: 300;
  }

  .offer-services {
    scroll-margin-top: 20px;
    padding: 3.5rem 0 4rem;
  }

  .offer-services h2 {
    text-align: left;
  }

  .offer-services__grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    margin-top: 2rem;
  }

  .offer-card {
    grid-template-rows: 210px 1fr;
  }
}
