/* Treatment index — editorial services concept */
.treatment-index {
  padding: clamp(44px, 5vw, 72px) max(4vw, 24px) 0;
  overflow: hidden;
  background-color: var(--burgundy-deep);
  background-image: linear-gradient(rgba(57, 11, 22, 0.5), rgba(57, 11, 22, 0.72)), url("../images/services-abstract-bg.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--cream);
}

.treatment-index__top,
.treatment-index__visual,
.treatment-index__chapters,
.treatment-index__footer {
  width: min(100%, 1440px);
  margin-inline: auto;
}

.treatment-index__top {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 54px;
}

.treatment-index__title > p {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.treatment-index__heading {
  margin: 0;
  color: var(--cream);
  font-size: clamp(48px, 6vw, 92px);
  font-weight: 300;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.treatment-index__heading em {
  color: var(--gold);
  font-style: normal;
}

.treatment-index__statement {
  padding-inline-start: 24px;
  border-inline-start: 1px solid rgba(183, 138, 74, 0.65);
}

.treatment-index__statement span {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.treatment-index__statement p {
  max-width: 340px;
  margin: 14px 0 0;
  color: rgba(244, 234, 220, 0.65);
  font-size: 14px;
  line-height: 1.8;
}

.treatment-index__statement > p:first-child {
  margin-top: 0;
}

.treatment-index__visual {
  position: relative;
  height: clamp(340px, 38vw, 530px);
  margin-bottom: 18px;
  overflow: hidden;
}

.treatment-index__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.82) contrast(1.04);
}

.treatment-index__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(57, 11, 22, 0.12), transparent 60%, rgba(57, 11, 22, 0.3));
}

.treatment-index__visual figcaption {
  position: absolute;
  z-index: 1;
  inset-inline-end: 0;
  bottom: 0;
  width: min(390px, 80%);
  padding: 22px 26px;
  background: var(--cream);
  color: var(--ink);
}

.treatment-index__visual figcaption span {
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 800;
}

.treatment-index__visual figcaption p {
  margin: 8px 0 0;
  color: rgba(50, 16, 24, 0.65);
  font-size: 11px;
  line-height: 1.6;
}

.treatment-chapter {
  border-top: 1px solid rgba(244, 234, 220, 0.22);
}

.treatment-chapter:last-child {
  border-bottom: 1px solid rgba(244, 234, 220, 0.22);
}

.treatment-chapter summary {
  min-height: 112px;
  display: grid;
  grid-template-columns: 46px 60px minmax(200px, 1.2fr) 1fr 36px;
  gap: 20px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.treatment-chapter summary::-webkit-details-marker {
  display: none;
}

.treatment-chapter__number {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.treatment-chapter summary > img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: invert(78%) sepia(20%) saturate(1148%) hue-rotate(356deg) brightness(82%) contrast(82%);
}

.treatment-chapter__name {
  color: var(--cream);
  font-size: clamp(21px, 2.2vw, 32px);
  font-weight: 300;
  letter-spacing: -0.035em;
}

.treatment-chapter__hint {
  color: rgba(244, 234, 220, 0.46);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.treatment-chapter__toggle {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(183, 138, 74, 0.75);
  border-radius: 50%;
}

.treatment-chapter__toggle::before,
.treatment-chapter__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  background: var(--gold);
  transform: translate(-50%, -50%);
}

.treatment-chapter__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 220ms ease;
}

.treatment-chapter[open] .treatment-chapter__toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.treatment-chapter[open] summary {
  border-bottom: 1px solid rgba(244, 234, 220, 0.12);
}

.treatment-chapter__content {
  padding: 36px 0 44px 126px;
  display: grid;
  grid-template-columns: 0.75fr 1.5fr;
  gap: clamp(40px, 7vw, 110px);
  animation: chapter-open 300ms ease both;
}

@keyframes chapter-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.treatment-chapter__intro-heading {
  margin: 0;
  color: var(--gold);
  font-size: clamp(25px, 2.7vw, 40px);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.treatment-chapter__intro p {
  max-width: 360px;
  margin: 18px 0 0;
  color: rgba(244, 234, 220, 0.58);
  font-size: 12px;
  line-height: 1.75;
}

.treatment-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.treatment-list--four {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.treatment-list__group-title {
  margin: 0 0 16px;
  color: var(--cream);
  font-size: 12px;
}

.treatment-list p {
  margin: 0 0 9px;
  color: rgba(244, 234, 220, 0.6);
  font-size: 11px;
  line-height: 1.45;
}

.treatment-list a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.treatment-list a:hover,
.treatment-list a:focus-visible {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.treatment-index__footer {
  margin-top: 54px;
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(183, 138, 74, 0.55);
}

.treatment-index__footer p {
  margin: 0;
  color: rgba(244, 234, 220, 0.55);
  font-size: 12px;
}

.treatment-index__footer a {
  padding-bottom: 7px;
  border-bottom: 1px solid var(--gold);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
}

.treatment-index__footer a span {
  margin-inline-start: 12px;
  color: var(--gold);
}

@media (max-width: 800px) {
  .treatment-index__top { grid-template-columns: 1fr; gap: 26px; margin-bottom: 36px; }
  .treatment-index__statement { max-width: 460px; }
  .treatment-index__visual { height: 420px; }
  .treatment-chapter summary { grid-template-columns: 30px 42px 1fr 30px; gap: 12px; min-height: 96px; }
  .treatment-chapter summary > img { width: 32px; height: 32px; }
  .treatment-chapter__hint { display: none; }
  .treatment-chapter__content { padding: 28px 0 34px 42px; grid-template-columns: 1fr; gap: 28px; }
  .treatment-list, .treatment-list--four { grid-template-columns: repeat(2, 1fr); }
}

/* Services — split navigator with image */
.treatment-index__body {
  width: min(100%, 1440px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

@media (min-width: 901px) {
  .treatment-index__body .treatment-index__chapters {
    order: 1;
    position: relative;
    min-height: 700px;
    padding: 0;
    display: block;
    border: 1px solid rgba(244, 234, 220, 0.22);
    background: rgba(42, 6, 15, 0.58);
    backdrop-filter: blur(3px);
  }

  .treatment-index__body .treatment-index__visual {
    order: 2;
    width: 100%;
    height: 700px;
    margin: 0;
  }

  .treatment-index__body .treatment-index__visual img {
    object-position: center 42%;
  }

  .treatment-index__body .treatment-chapter,
  .treatment-index__body .treatment-chapter:last-child {
    position: static;
    width: 210px;
    border: 0;
    border-inline-end: 1px solid rgba(244, 234, 220, 0.2);
    border-bottom: 1px solid rgba(244, 234, 220, 0.16);
  }

  .treatment-index__body .treatment-chapter:last-child {
    border-bottom: 0;
  }

  .treatment-index__body .treatment-chapter summary {
    position: relative;
    width: 210px;
    min-height: 139.6px;
    padding: 19px 20px;
    display: grid;
    grid-template-columns: 32px 1fr 26px;
    grid-template-rows: 36px auto;
    gap: 11px 8px;
    align-content: center;
    border-bottom: 0;
  }

  .treatment-index__body .treatment-chapter[open] summary {
    border-inline-end: 3px solid var(--gold);
    border-bottom: 0;
    background: rgba(183, 138, 74, 0.14);
  }

  .treatment-index__body .treatment-chapter summary > img {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 1;
    width: 32px;
    height: 32px;
  }

  .treatment-index__body .treatment-chapter__number {
    position: absolute;
    z-index: 0;
    top: 10px;
    inset-inline-start: 14px;
    color: rgba(183, 138, 74, 0.13);
    font-size: 54px;
    font-weight: 700;
    letter-spacing: -0.08em;
    line-height: 1;
    user-select: none;
  }

  .treatment-index__body .treatment-chapter__name {
    position: relative;
    z-index: 1;
    grid-column: 1 / 4;
    grid-row: 2;
    font-size: 16px;
    line-height: 1.25;
  }

  .treatment-index__body .treatment-chapter__hint {
    display: none;
  }

  .treatment-index__body .treatment-chapter__toggle {
    position: relative;
    z-index: 1;
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    width: 26px;
    height: 26px;
  }

  .treatment-index__body .treatment-chapter__content {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    inset-inline-end: 0;
    inset-inline-start: 210px;
    min-height: 0;
    padding: clamp(34px, 4vw, 58px);
    display: block;
    overflow-y: auto;
    background: transparent;
    backdrop-filter: none;
  }

  .treatment-index__body .treatment-chapter__intro {
    padding-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 28px;
    align-items: end;
    border-bottom: 1px solid rgba(244, 234, 220, 0.18);
  }

  .treatment-index__body .treatment-chapter__intro-heading {
    font-size: clamp(34px, 3.2vw, 48px);
  }

  .treatment-index__body .treatment-chapter__intro p {
    max-width: 360px;
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
  }

  .treatment-index__body .treatment-list,
  .treatment-index__body .treatment-list--four {
    margin-top: 26px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 34px;
  }

  .treatment-index__body .treatment-list__group-title {
    margin-bottom: 17px;
    font-size: 14px;
  }

  .treatment-index__body .treatment-list p {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.55;
  }
}

@media (max-width: 900px) {
  .treatment-index__body {
    grid-template-columns: 1fr;
  }

  .treatment-index__body .treatment-index__visual {
    height: 440px;
    margin-bottom: 0;
  }

  .treatment-index__body .treatment-index__chapters {
    order: 2;
  }

  .treatment-index__body .treatment-index__visual {
    order: 1;
  }

  .treatment-list p {
    font-size: 12px;
  }

  .treatment-index__top {
    gap: 20px;
    margin-bottom: 28px;
  }

  .treatment-index__heading {
    font-size: clamp(35px, 9.5vw, 48px);
    line-height: 1.04;
    letter-spacing: -0.055em;
  }

  .treatment-index__statement {
    padding-inline-start: 16px;
  }

  .treatment-index__statement p {
    margin-top: 9px;
    font-size: 12px;
    line-height: 1.65;
  }

  .treatment-index__body .treatment-index__visual {
    height: 330px;
  }

  .treatment-chapter::details-content {
    block-size: 0;
    overflow: hidden;
    opacity: 0;
    transition: block-size 420ms cubic-bezier(0.22, 1, 0.36, 1),
                opacity 260ms ease,
                content-visibility 420ms allow-discrete;
  }

  .treatment-chapter {
    interpolate-size: allow-keywords;
  }

  .treatment-chapter[open]::details-content {
    block-size: auto;
    opacity: 1;
  }

  .treatment-chapter__content {
    animation: none !important;
    transform: none;
  }
}

@media (max-width: 520px) {
  .treatment-index {
    padding-top: 30px;
  }

  .treatment-index__title > p {
    margin-bottom: 12px;
    font-size: 9px;
  }

  .treatment-index__heading {
    font-size: clamp(32px, 9vw, 40px);
  }

  .treatment-index__body .treatment-index__visual {
    height: 280px;
  }

  .treatment-index__visual figcaption {
    width: calc(100% - 20px);
    padding: 15px 17px;
  }

  .treatment-index__visual figcaption p {
    font-size: 10px;
  }

  .treatment-chapter summary {
    transition: background-color 260ms ease, border-color 260ms ease;
  }
}

@media (max-width: 480px) {
  .treatment-index { padding-inline: 20px; }
  .treatment-index__visual { height: 350px; }
  .treatment-index__visual figcaption { padding: 18px; }
  .treatment-chapter__name { font-size: 19px; }
  .treatment-chapter__content { padding-inline-start: 0; }
  .treatment-list, .treatment-list--four { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .treatment-index__footer { align-items: flex-start; gap: 18px; flex-direction: column; }
}

/* Retired horizontal navigator rules; retained only for reference. */
@media (min-width: 99999px) {
  .treatment-index__chapters {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: 430px;
    border-top: 1px solid rgba(244, 234, 220, 0.24);
    border-bottom: 1px solid rgba(244, 234, 220, 0.24);
  }

  .treatment-chapter,
  .treatment-chapter:last-child {
    position: static;
    border: 0;
    border-inline-end: 1px solid rgba(244, 234, 220, 0.18);
  }

  .treatment-chapter:last-child {
    border-inline-end: 0;
  }

  .treatment-chapter summary {
    min-height: 142px;
    padding: 20px;
    display: grid;
    grid-template-columns: 38px 1fr 28px;
    grid-template-rows: 40px auto;
    gap: 12px 10px;
    align-content: center;
    transition: background-color 240ms ease;
  }

  .treatment-chapter summary:hover,
  .treatment-chapter[open] summary {
    background: rgba(183, 138, 74, 0.12);
  }

  .treatment-chapter[open] summary {
    border-bottom: 2px solid var(--gold);
  }

  .treatment-chapter__number {
    align-self: center;
  }

  .treatment-chapter summary > img {
    grid-column: 2;
    grid-row: 1;
    width: 34px;
    height: 34px;
  }

  .treatment-chapter__name {
    grid-column: 1 / 4;
    grid-row: 2;
    font-size: clamp(15px, 1.35vw, 20px);
  }

  .treatment-chapter__hint {
    display: none;
  }

  .treatment-chapter__toggle {
    grid-column: 3;
    grid-row: 1;
    width: 27px;
    height: 27px;
    align-self: center;
  }

  .treatment-chapter__content {
    position: absolute;
    top: 142px;
    inset-inline: 0;
    min-height: 430px;
    padding: 42px clamp(34px, 5vw, 74px);
    grid-template-columns: 0.55fr 1.45fr;
    gap: clamp(40px, 7vw, 110px);
    background: rgba(45, 7, 16, 0.72);
    backdrop-filter: blur(3px);
  }

  .treatment-chapter__intro-heading {
    font-size: clamp(28px, 3vw, 42px);
  }

  .treatment-index__footer {
    margin-top: 28px;
  }
}

@media (max-width: 0px) {
  .treatment-index__chapters {
    padding-bottom: 0;
  }

  .treatment-chapter summary {
    min-height: 82px;
  }

  .treatment-chapter__content {
    padding-top: 24px;
    padding-bottom: 28px;
  }
}
