.featured-treatments {
  max-width: 1230px;
  margin: 0 auto;
  padding: 36px 20px 0;
}

.featured-heading {
  margin-bottom: 20px;
}

.featured-heading h2 {
  font-family: inherit;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.featured-heading p {
  max-width: 380px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.featured-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
  margin: -4px -20px -4px -4px;
  padding: 4px 20px 12px 4px;
}

.featured-card {
  position: relative;
  display: flex;
  flex: 0 0 87%;
  align-items: flex-end;
  min-width: 0;
  min-height: 330px;
  padding: 22px;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--accent);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  transition: transform 150ms ease-out;
}

.featured-card img,
.featured-card::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.featured-card img {
  object-fit: cover;
  -webkit-user-drag: none;
}

.featured-card--portrait img {
  object-position: 68% center;
}

.featured-card--facial img {
  object-position: 41% center;
}

.featured-card--massage img {
  object-position: 42% center;
}

.featured-card::after {
  content: '';
  background: linear-gradient(180deg, transparent 12%, oklch(.15 .012 50 / .18) 35%, oklch(.15 .012 50 / .86) 74%, oklch(.15 .012 50 / .95));
}

.featured-card-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
}

.featured-category {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.featured-name {
  max-width: 320px;
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.featured-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.featured-price {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.featured-price small {
  font-size: 11px;
  font-weight: 500;
}

.featured-open {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-0);
  color: var(--ink);
}

.featured-open svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.6;
}

.featured-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.featured-card:active {
  transform: scale(.96);
}

.featured-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.featured-swipe {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.featured-swipe svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 681px) {
  .featured-treatments {
    padding: 50px 30px 0;
  }

  .featured-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
  }

  .featured-heading p {
    max-width: 300px;
    margin-top: 0;
  }

  .featured-track {
    margin-inline: -4px;
    padding-right: 4px;
  }

  .featured-card {
    flex-basis: calc((100% - 28px) / 3);
    min-height: 350px;
    padding: 20px;
  }

  .featured-name {
    font-size: clamp(24px, 2.5vw, 32px);
  }

  .featured-price {
    font-size: 18px;
  }

  .featured-swipe {
    display: none;
  }
}

@media (max-width: 360px) {
  .featured-treatments {
    padding-inline: 16px;
  }

  .featured-track {
    margin-right: -16px;
    padding-right: 16px;
  }

  .featured-card {
    min-height: 315px;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-card {
    transition: none;
  }

  .featured-card:active {
    transform: none;
  }
}
