.tone-aqua {
  background:
    radial-gradient(circle at 88% 8%, rgb(179 221 225 / 28%), transparent 34%),
    linear-gradient(145deg, #f7fbfa, #edf6f5) !important;
}

.tone-blush {
  background:
    radial-gradient(circle at 10% 12%, rgb(225 188 199 / 22%), transparent 36%),
    linear-gradient(145deg, #fffafa, #f7eff1);
}

.module-image {
  border: 1px solid rgb(104 79 69 / 10%);
  border-radius: 6px;
  box-shadow: 0 24px 70px rgb(70 50 42 / 9%);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.65fr);
  margin: 22px 0 0;
  min-height: 360px;
  overflow: hidden;
}

.module-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
  width: 100%;
}

.module-image:hover img {
  transform: scale(1.018);
}

.module-image figcaption {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(30px, 4vw, 56px);
  position: relative;
}

.module-image figcaption::before {
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  height: 210px;
  opacity: 0.18;
  position: absolute;
  right: -82px;
  top: -88px;
  width: 210px;
  z-index: -1;
}

.module-image figcaption::after {
  background:
    linear-gradient(90deg, transparent 27px, currentColor 28px, transparent 29px),
    linear-gradient(180deg, transparent 27px, currentColor 28px, transparent 29px);
  content: "";
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.module-image figcaption span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}

.module-image figcaption strong {
  font-family: var(--font-mpr);
  font-size: clamp(28px, 2.5vw, 39px);
  font-weight: 400;
  line-height: 1.35;
}

.module-image figcaption p {
  font-size: 14px;
  line-height: 1.8;
  margin: 20px 0 0;
  opacity: 0.78;
}

.module-image-service figcaption {
  background: linear-gradient(145deg, #8fbfc3, #a8ced0);
  color: #fff;
}

.module-image-wellness {
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.55fr);
  margin-bottom: 48px;
}

.module-image-wellness img {
  grid-column: 2;
  grid-row: 1;
}

.module-image-wellness figcaption {
  background: linear-gradient(145deg, #e5c5cc, #dcb3bd);
  color: #503c38;
  grid-column: 1;
  grid-row: 1;
}

@media (width <= 980px) {
  .module-image {
    grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
    min-height: 360px;
  }

  .module-image-wellness {
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  }
}

@media (width <= 640px) {
  .module-image,
  .module-image-wellness {
    display: flex;
    flex-direction: column;
    margin-top: 12px;
    min-height: 0;
  }

  .module-image-wellness {
    margin-bottom: 36px;
  }

  .module-image img {
    aspect-ratio: 4 / 3;
    height: auto;
    object-position: center;
  }

  .module-image figcaption {
    min-height: 220px;
    padding: 26px 24px;
  }

  .module-image figcaption::before {
    height: 160px;
    right: -70px;
    top: -78px;
    width: 160px;
  }

  .module-image figcaption::after {
    background:
      linear-gradient(90deg, transparent 15px, currentColor 16px, transparent 17px),
      linear-gradient(180deg, transparent 15px, currentColor 16px, transparent 17px);
  }

  .module-image figcaption strong {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .module-image img {
    transition: none;
  }
}
