/* ===========================================================================
   horotron.therapy — services page
   Loaded after styles.css, which owns the palette, the type, the buttons and
   the shared motion curves. Nothing here redefines them.
   =========================================================================== */

/* --- page head ------------------------------------------------------------ */

.phead {
  padding-top: calc(76px + clamp(64px, 11vh, 128px));
  padding-bottom: clamp(52px, 8vh, 96px);   /* clears the thread that opens .svcs */
}

.phead__k {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

.phead__t {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(38px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

/* --- the list ------------------------------------------------------------- */

.svcs { padding-bottom: var(--section); }
.svcs .thread { margin-bottom: clamp(56px, 8vh, 96px); }

.svcs__grid {
  display: grid;
  grid-template-columns: clamp(178px, 17vw, 240px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.svcs__list {
  display: grid;
  gap: clamp(12px, 1.4vw, 20px);
}

/* The contents rail itself lives in styles.css — booking.html uses the same
   component for its service picker. */

/* one window per service. Same object as .tile on the landing page — hairline
   border, 6px radius, green-to-black gradient — but deliberately WITHOUT the
   diagonal sheen the rest of the site puts on pressable surfaces: 23 of them
   sweeping down one page read as decoration rather than as a gesture. The
   border and the shadow carry the hover instead. */
.svc {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 6px;
  background: linear-gradient(168deg, rgba(13, 42, 30, 0.36), rgba(6, 8, 7, 0.24));
  transition: border-color 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.svc:hover {
  border-color: rgba(237, 234, 225, 0.18);
  box-shadow: 0 22px 48px rgba(6, 8, 7, 0.45);
}

/* an open window keeps a gold edge, so a long page still shows where you are */
.svc:has(.svc__d[open]) { border-color: rgba(185, 149, 85, 0.3); }

.svc__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(96px, 11vw, 136px);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
  padding: clamp(18px, 2.2vw, 28px) clamp(20px, 2.6vw, 34px);
}

.svc__n {
  display: block;
  font-family: var(--display);
  font-weight: 200;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  opacity: 0.7;
}

/* price now lives per-variant in .svc__vars (durations differ per window), so
   this wraps the title alone — kept as a flex row rather than unwound since a
   second element may return here later */
.svc__line {
  margin-top: 6px;
  max-width: 52ch;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 32px);
}

.svc__t {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.14;
  letter-spacing: -0.032em;
}

/* variants: one row each, dotted rule under it, duration to the right. A
   single-variant service is the same object with one row. */
.svc__vars {
  margin-top: clamp(12px, 1.5vw, 18px);
  max-width: 52ch;
  display: grid;
  gap: 7px;
}
.svc__vars li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 6px;
  border-bottom: 1px dotted rgba(237, 234, 225, 0.13);
  font-size: 0.92rem;
  color: var(--bone-dim);
}
.svc__vars b {
  flex: none;
  font-family: var(--display);
  font-weight: 300;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--bone-fade);
}

/* --- photo slot ----------------------------------------------------------
   Empty on purpose: there are no procedure photographs yet and stock is out.
   A framed 4:5 crop with the mark held at 10% reads as a reserved place
   rather than a broken image. Swap the <img> and the frame stays. */
.svc__media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: linear-gradient(158deg, var(--forest-d), rgba(6, 8, 7, 0.92));
}
.svc__media img {
  width: 46%;
  height: auto;
  opacity: 0.14;
  filter: grayscale(1) brightness(1.6);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.svc:hover .svc__media img { opacity: 0.22; transform: scale(1.05); }

/* --- the drop ------------------------------------------------------------
   <details> carries the semantics, the keyboard behaviour and the no-JS
   fallback; script.js drives the height so it falls open instead of snapping. */

.svc__d { border-top: 1px solid var(--hair); }

.svc__sum {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px clamp(20px, 2.6vw, 34px);
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 300;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  transition: color 0.45s var(--ease);
}
.svc__sum::-webkit-details-marker { display: none; }
.svc__sum:hover { color: var(--gold); }

.svc__sum i { font-size: 17px; transition: transform 0.6s var(--ease); }
.svc__d[open] .svc__sum i { transform: rotate(180deg); }

.svc__more-c { display: none; }
.svc__d[open] .svc__more-o { display: none; }
.svc__d[open] .svc__more-c { display: inline; }

/* height is animated, so the padding lives on the inner grid — otherwise a
   collapsed body would still hold its own padding open */
.svc__body { overflow: hidden; }

.svc__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 2.8vw, 38px) clamp(28px, 4vw, 60px);
  padding: clamp(24px, 3vw, 34px) clamp(22px, 3vw, 40px) clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--hair);
}

.svc__k {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-fade);
}
.svc__blk--warn .svc__k { color: var(--gold); opacity: 0.82; }

.svc__blk p {
  margin-top: 12px;
  max-width: 62ch;
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--bone-dim);
}

.svc__list {
  margin-top: 13px;
  display: grid;
  gap: 9px;
}
.svc__list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--bone-dim);
}
.svc__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 8px;
  height: 1px;
  background: var(--gold-soft);
}
.svc__blk--warn .svc__list li { color: var(--bone-fade); }
.svc__blk--warn .svc__list li::before { background: rgba(237, 234, 225, 0.24); }

/* --- Тіосан 1 vs 2 -------------------------------------------------------
   The one thing the price list leaves genuinely ambiguous, so it gets the one
   gold-framed block on the page. */

.compare {
  margin: clamp(6px, 1vw, 12px) 0;
  padding: clamp(26px, 3.2vw, 44px) clamp(22px, 3vw, 44px);
  border: 1px solid var(--gold-soft);
  border-radius: 6px;
  background: linear-gradient(168deg, rgba(185, 149, 85, 0.055), rgba(6, 8, 7, 0.26));
}

.compare__t {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(19px, 2.1vw, 29px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.compare__cols {
  margin-top: clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 52px);
}
.compare__c + .compare__c {
  padding-left: clamp(22px, 3vw, 52px);
  border-left: 1px solid var(--gold-soft);
}

.compare__h {
  font-family: var(--display);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.compare__z {
  margin-top: 10px;
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--bone);
}
.compare__p {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.66;
  color: var(--bone-dim);
}

.compare__notes {
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--gold-soft);
  display: grid;
  gap: 9px;
}
.compare__notes li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--bone-fade);
}
.compare__notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 8px;
  height: 1px;
  background: var(--gold-soft);
}

/* --- closing call ---------------------------------------------------------- */

.svcs__cta {
  margin-top: clamp(56px, 8vh, 100px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 44px);
  flex-wrap: wrap;
}
.svcs__cta-t {
  max-width: 40ch;
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(19px, 2.2vw, 30px);
  line-height: 1.24;
  letter-spacing: -0.03em;
}

/* --- responsive ----------------------------------------------------------- */

/* the rail has no room to stand beside the list any more; it flattens into a
   block of chips above it (that part is in styles.css, with the component) */
@media (max-width: 1080px) {
  .svcs__grid { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 44px); }
}

@media (max-width: 860px) {
  .svc__grid, .compare__cols { grid-template-columns: 1fr; }
  .compare__c + .compare__c {
    padding: clamp(20px, 3vw, 28px) 0 0;
    border-left: 0;
    border-top: 1px solid var(--gold-soft);
  }
}

@media (max-width: 620px) {
  .svc__top { grid-template-columns: 1fr; }
  /* the title needs the full width at this size, so the price drops under it */
  .svc__line { flex-direction: column; align-items: flex-start; gap: 6px; }
  /* the slot moves above the title rather than shrinking to a stamp */
  .svc__media { order: -1; aspect-ratio: 16 / 9; }
  .svc__media img { width: 22%; }
  .svcs__cta { flex-direction: column; align-items: flex-start; }
}
