.treatment-main {
  --treatment-dark: #202a25;
  --treatment-gold: #efd098;
  padding-block: 30px 64px;
}

.treatment-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  overflow: hidden;
  border-radius: 12px;
  background: var(--treatment-dark);
  color: var(--surface);
}

.treatment-hero-copy {
  align-self: center;
  padding: clamp(1.5rem, 4.2vw, 4rem);
}

.treatment-hero h1 {
  margin-block: .75rem .95rem;
  font-size: clamp(2.9rem, 4.55vw, 4.25rem);
  letter-spacing: -.045em;
  line-height: .99;
}

.treatment-hero h1 em {
  display: block;
  color: var(--treatment-gold);
  font-weight: 500;
}

.treatment-hero p:not(.eyebrow),
.treatment-help p:not(.eyebrow) {
  color: #f3e9dc;
}

.treatment-hero .eyebrow,
.treatment-help .eyebrow {
  color: var(--treatment-gold);
}

.treatment-hero .actions,
.treatment-help .actions {
  margin-top: 1.3rem;
}

.treatment-hero :focus-visible,
.treatment-help :focus-visible {
  outline-color: var(--treatment-gold);
}

.treatment-hero-image {
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: 60% 50%;
}

.treatment-categories {
  margin-top: 44px;
}

.treatment-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .85rem;
}

.treatment-category {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}

.treatment-category:hover {
  border-color: var(--gold-ink);
  box-shadow: 0 6px 18px #41311b14;
}

.treatment-category img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.treatment-photo-crop {
  overflow: hidden;
}

.treatment-photo-crop img {
  transform: scale(1.12);
  transform-origin: 50% 100%;
}

.treatment-category span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  min-height: 55px;
  padding: .7rem .75rem;
  font-size: .83rem;
  font-weight: 700;
  line-height: 1.35;
}

.treatment-category .icon {
  color: var(--gold-ink);
}

.catalog-page .catalog-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  margin-bottom: 1.2rem;
  padding: .9rem;
  border-radius: 8px;
}

.catalog-page .catalog-categories,
.catalog-page .catalog-search {
  grid-column: 1 / -1;
}

.catalog-page .catalog-categories span {
  display: grid;
  align-content: center;
  min-height: 44px;
  padding-inline: .85rem;
  border-radius: 5px;
}

#treatment-count {
  font-size: .84rem;
}

.catalog-reset {
  min-height: 40px;
  padding: .25rem .45rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.catalog-item {
  --tile-surface: #f6ede1;
  --tile-ink: #795422;
  border-radius: 8px;
}

.catalog-item[data-category="skin"] {
  --tile-surface: #faece7;
  --tile-ink: #924d43;
}

.catalog-item[data-category="advanced"] {
  --tile-surface: #f0edf7;
  --tile-ink: #644a83;
}

.catalog-item[data-category="body"] {
  --tile-surface: #e9f0e8;
  --tile-ink: #3e6651;
}

.catalog-item[data-category="dental"] {
  --tile-surface: #e8f0f4;
  --tile-ink: #365e74;
}

.catalog-item-visual {
  position: relative;
  display: grid;
  min-height: 110px;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background: var(--tile-surface);
  color: var(--tile-ink);
}

.catalog-item-visual::before {
  position: absolute;
  z-index: -1;
  width: 82px;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 12px #fff8, 0 0 0 25px #fff5;
  opacity: .27;
  content: "";
}

.catalog-item-visual svg {
  width: 57px;
  height: 57px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.catalog-item-copy .eyebrow {
  color: var(--tile-ink);
}

.catalog-item-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .48rem;
  padding: 1.05rem 1.15rem;
}

.catalog-item-copy p:not(.eyebrow) {
  font-size: .87rem;
}

.catalog-item-copy .text-link {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-height: 38px;
}

.treatment-help {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  overflow: hidden;
  margin-top: 44px;
  border-radius: 12px;
  background: var(--treatment-dark);
  color: var(--surface);
}

.treatment-help > img {
  height: 100%;
  object-fit: cover;
}

.treatment-help-copy {
  padding: clamp(1.2rem, 3vw, 2.75rem);
}

.treatment-help h2 {
  margin-block: .45rem .65rem;
}

@media (max-width: 900px) {
  .treatment-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .treatment-main { padding-block: 18px 36px; }
  .treatment-hero, .treatment-help { grid-template-columns: minmax(0, 1fr); }
  .treatment-hero-copy { padding: 1.15rem; }
  .treatment-hero h1 { font-size: clamp(2.35rem, 10vw, 3.25rem); }
  .treatment-hero h1 em { display: inline; }
  .treatment-hero-image { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .treatment-hero .actions { margin-top: .85rem; }
  .treatment-categories { margin-top: 28px; }
  .treatment-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .treatment-category img { aspect-ratio: 3 / 2; }
  .treatment-category span { min-height: 48px; padding: .55rem; font-size: .76rem; }
  .catalog-item { display: grid; grid-template-columns: minmax(75px, .34fr) minmax(0, 1fr); }
  .catalog-item-visual { min-height: 0; border-right: 1px solid var(--line); border-bottom: 0; }
  .catalog-item-visual::before { width: 58px; }
  .catalog-item-visual svg { width: 39px; height: 39px; }
  .catalog-item-copy { padding: .8rem; }
  .catalog-item-copy h3 { font-size: 1.18rem; }
  .catalog-item-copy p:not(.eyebrow) { font-size: .82rem; }
  .catalog-page .catalog-search { grid-row: auto; }
  .treatment-help { margin-top: 28px; }
  .treatment-help > img { aspect-ratio: 16 / 9; height: auto; }
}

.catalog-page .treatment-category-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.catalog-service-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.catalog-item-copy h3 a {
  color: inherit;
  text-decoration: none;
}

.catalog-item-copy h3 a:hover { text-decoration: underline; }
.catalog-item-copy .text-link { margin-top: auto; }
.catalog-price { font-weight: 700; }
.catalog-page .catalog-categories[hidden] { display: none; }
.catalog-offer { color: var(--gold-ink); font-weight: 700; }
.treatment-detail-hero:has(.treatment-hero-copy:only-child) { grid-template-columns: 1fr; }
.treatment-detail-hero .text-link { color: var(--treatment-gold); display: inline-block; margin-top: 1rem; }
.treatment-detail-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.treatment-detail-sections section {
  padding: clamp(1rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.treatment-detail-sections p { margin-top: .6rem; white-space: pre-line; overflow-wrap: anywhere; }

@media (max-width: 1000px) {
  .catalog-page .treatment-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .catalog-page .treatment-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-item:has(.catalog-service-image) .catalog-service-image {
    height: 100%;
    aspect-ratio: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  .catalog-item:not(:has(.catalog-service-image, .catalog-item-visual)) { grid-template-columns: 1fr; }
}
