.cz-feature-related {
  --cz-feature-pink: #e85b8c;
  padding: clamp(30px, 4vw, 60px) 0 clamp(66px, 8vw, 116px);
  color: #17191b;
  background: #fff;
}

.cz-feature-related__inner {
  width: min(1120px, calc(100% - 56px));
  margin-inline: auto;
}

.cz-feature-related__inner > h2 {
  margin: 0 0 clamp(26px, 3vw, 44px);
  font-size: clamp(30px, 4vw, 57px);
  font-weight: 680;
  letter-spacing: -.055em;
  line-height: 1.03;
  text-wrap: balance;
}

.cz-feature-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cz-feature-related__grid > li { min-width: 0; }

.cz-feature-related__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  height: 100%;
  min-height: 185px;
  aspect-ratio: 1.58;
  padding: clamp(17px, 2vw, 25px);
  border: 0;
  border-radius: 20px;
  background: #f2f1ee;
  color: #17191b;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  transition: transform .28s ease, box-shadow .28s ease;
}

.cz-feature-related__card--static { cursor: default; }

.cz-feature-related__card:visited { color: #17191b; }

.cz-feature-related__card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cz-feature-related__card h3 {
  margin: 0;
  font-size: clamp(20px, 1.75vw, 24px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.032em;
}

.cz-feature-related__card p {
  max-width: 33ch;
  margin: 0;
  color: #5d5d62;
  font-size: 14px;
  line-height: 1.48;
}

.cz-feature-related__icon {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  height: 34px;
  margin: -5px -5px 0 0;
  border-radius: 10px;
  transition: background-color .28s ease;
}

.cz-feature-related__icon svg {
  grid-area: 1 / 1;
  width: 21px;
  height: 21px;
  transition: opacity .2s ease, transform .28s ease;
}

.cz-feature-related__icon .cz-feature-related__arrow {
  opacity: 0;
  transform: translate(-2px, 2px);
}

.cz-feature-related__promo {
  isolation: isolate;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #191919;
  transform: rotate(-2.2deg);
  box-shadow: 0 8px 20px #211e1a26;
}

.cz-feature-related__promo img,
.cz-feature-related__promo::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cz-feature-related__promo img {
  object-fit: cover;
  object-position: center 34%;
  z-index: -2;
}

.cz-feature-related__promo::before {
  z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / 26%) 0%, rgb(0 0 0 / 43%) 38%, rgb(0 0 0 / 87%) 69%, rgb(0 0 0 / 98%) 100%);
  content: "";
}

.cz-feature-related__promo-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 17px;
  border-radius: 999px;
  background: #fb4d8d;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color .28s ease, color .28s ease;
}

.cz-feature-related__promo-label svg { width: 17px; height: 17px; }

.cz-feature-related__card:focus-visible,
.cz-feature-related__close:focus-visible {
  outline: 2px solid #17191b;
  outline-offset: 4px;
}

.cz-feature-related__card:focus-visible .cz-feature-related__icon { background: #fff; }
.cz-feature-related__card:focus-visible .cz-feature-related__icon svg:first-child { opacity: 0; }
.cz-feature-related__card:focus-visible .cz-feature-related__arrow { opacity: 1; transform: none; }
.cz-feature-related__promo:focus-visible .cz-feature-related__promo-label { background: #fff; color: #17191b; }

@media (hover: hover) and (pointer: fine) {
  .cz-feature-related__card:not(.cz-feature-related__card--static):is(:hover, :focus-visible) {
    z-index: 1;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 34px #211e1a22;
  }
  .cz-feature-related__card:not(.cz-feature-related__card--static):hover .cz-feature-related__icon { background: #fff; }
  .cz-feature-related__card:not(.cz-feature-related__card--static):hover .cz-feature-related__icon svg:first-child { opacity: 0; }
  .cz-feature-related__card:hover .cz-feature-related__arrow { opacity: 1; transform: none; }
  .cz-feature-related__promo:hover .cz-feature-related__promo-label { background: #fff; color: #17191b; }
}

.cz-feature-related__dialog {
  width: min(500px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: #17191b;
  background: #fff;
  box-shadow: 0 20px 70px #0003;
}

html:has(.cz-feature-related__dialog[open]) { overflow: hidden; }
.cz-feature-related__dialog::backdrop { background: #16151a8c; }
.cz-feature-related__dialog-body { position: relative; padding: 48px 28px 28px; }

.cz-feature-related__dialog h2 {
  margin: 0 0 13px;
  font-size: clamp(25px, 5vw, 34px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
}

.cz-feature-related__dialog p { margin: 0; color: #525359; font-size: 15px; line-height: 1.5; }

.cz-feature-related__dialog .cz-feature-related__availability {
  margin-top: 22px;
  padding: 14px;
  border-radius: 10px;
  background: #f2f1ee;
  color: #33343a;
}

.cz-feature-related__close {
  position: absolute;
  inset: 9px 9px auto auto;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f2f1ee;
  color: #17191b;
  cursor: pointer;
}

.cz-feature-related__close svg { width: 20px; height: 20px; }

@media (max-width: 950px) {
  .cz-feature-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .cz-feature-related__inner { width: calc(100% - 32px); }
  .cz-feature-related__inner > h2 { font-size: clamp(28px, 7.2vw, 41px); }
  .cz-feature-related__grid { grid-template-columns: minmax(0, 1fr); }
  .cz-feature-related__card { border-radius: 16px; }
  .cz-feature-related__promo { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cz-feature-related :is(.cz-feature-related__card, .cz-feature-related__icon, .cz-feature-related__icon svg, .cz-feature-related__promo-label) {
    transition: none;
    transform: none;
  }
}
