/* Dr. Pegah Zahabi — v3
   Direction: editorial, in the clinic's plum palette, with a dashed
   top-stitch motif taken from the doctor's tailored jacket. Square corners, hairline rules,
   Markazi Text for display, Vazirmatn for reading. */

:root {
  --paper: #f6f1ea;
  --paper-2: #ece3d7;
  --ink: #2f1a3a;
  --ink-2: #4b3a52;
  --mute: #6c6170;
  --line: rgba(47, 26, 58, .14);
  --line-2: rgba(47, 26, 58, .3);
  --red: #7b3fa0;
  --chalk: #f6f1ea;
  --chalk-mute: rgba(246, 241, 234, .66);
  --chalk-line: rgba(246, 241, 234, .2);
  --night: #1d1322;
  --serif: 'Markazi Text', 'Vazirmatn', Georgia, serif;
  --sans: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gut: clamp(16px, 4vw, 48px);
  --hd: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.75; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
html[lang="en"] body { line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
svg { width: 1em; height: 1em; flex: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--chalk); }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--chalk); padding: 8px 14px; }
.skip:focus { top: 12px; }

/* Arrows point "forward" in RTL; flip them in LTR */
html[dir="ltr"] .btn svg, html[dir="ltr"] .svc__go, html[dir="ltr"] .rec svg { transform: scaleX(-1); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 52px; padding: 0 22px; background: var(--ink); color: var(--paper);
  font-size: .95rem; font-weight: 500; letter-spacing: 0; border: 1px solid var(--ink);
  transition: background .25s, border-color .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; transition: translate .3s var(--ease); }
.btn:hover { background: var(--red); border-color: var(--red); }
.btn:hover svg { translate: -4px 0; }
html[dir="ltr"] .btn:hover svg { translate: 4px 0; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--block { width: 100%; }
.txtlink {
  display: inline; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px;
  text-decoration-color: var(--line-2); transition: color .2s, text-decoration-color .2s; font-weight: 500;
}
.txtlink:hover { color: var(--red); text-decoration-color: currentColor; }
.fine { font-size: .8rem; color: var(--mute); line-height: 1.7; }

/* ---------- Header ---------- */
.hd {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--hd);
  background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .3s;
}
.hd.scrolled { border-bottom-color: var(--line); }
.hd__in { height: 100%; display: flex; align-items: center; gap: 32px; }
.mark { display: grid; line-height: 1; gap: 5px; margin-inline-end: auto; }
.mark__fa { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; letter-spacing: -.01em; }
.mark__en { font-family: var(--serif); font-size: .82rem; color: var(--mute); direction: ltr; text-align: start; }
html[dir="rtl"] .mark__en { text-align: right; }
.hd__nav { display: flex; gap: 28px; font-size: .92rem; }
.hd__nav a { position: relative; padding: 6px 0; color: var(--ink-2); transition: color .2s; }
.hd__nav a::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--red); transform: scaleX(0); transition: transform .3s var(--ease); }
.hd__nav a:hover, .hd__nav a.active { color: var(--ink); }
.hd__nav a.active::after { transform: scaleX(1); }
.hd__end { display: flex; align-items: center; gap: 20px; }
.hd__lang { font-size: .82rem; font-weight: 500; padding: 4px 0; border-bottom: 1px solid var(--line-2); min-width: 22px; }
.hd__book { font-size: .9rem; font-weight: 500; padding: 9px 16px; background: var(--ink); color: var(--paper); transition: background .2s; }
.hd__book:hover { background: var(--red); }
.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span { position: absolute; inset-inline: 9px; height: 1.5px; background: var(--ink); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 23px; }

@media (max-width: 980px) {
  .hd__nav { display: none; }
  .burger { display: block; }
  .hd__end { gap: 14px; }
}
@media (max-width: 560px) { :root { --hd: 60px; } .hd__book { display: none; } .mark__fa { font-size: 1.55rem; } .mark__en { font-size: .74rem; } }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--chalk);
  display: grid; grid-template-rows: auto 1fr auto; padding: 0 var(--gut) 28px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu__top { height: var(--hd); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px dashed var(--chalk-line); }
.menu__close { width: 40px; height: 40px; display: grid; place-content: center; color: var(--chalk); }
.menu__close svg { width: 22px; height: 22px; }
.menu__links { display: grid; align-content: center; gap: 6px; }
.menu__links a { font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3rem); line-height: 1.25; }
.menu__links a:active { color: #d8c19a; }
.menu__foot { display: flex; justify-content: space-between; font-size: .9rem; color: var(--chalk-mute); border-top: 1px dashed var(--chalk-line); padding-top: 18px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  min-height: min(100svh, 980px); padding-top: var(--hd);
}
.hero__copy {
  display: flex; flex-direction: column; justify-content: center; gap: 30px;
  padding: clamp(40px, 6vw, 80px) var(--gut) clamp(32px, 4vw, 56px);
  padding-inline-start: max(var(--gut), calc((100vw - 1320px) / 2 + var(--gut)));
}
.hero__kicker { font-size: .88rem; color: var(--mute); }
.hero__h { font-family: var(--serif); font-weight: 500; font-size: clamp(3.3rem, 7vw, 7.2rem); line-height: 1; letter-spacing: -.015em; }
.hero__h span { display: block; }
.hero__h2 { color: var(--red); }
html[lang="en"] .hero__h { font-size: clamp(3rem, 6.2vw, 6.4rem); line-height: .98; }
.hero__sub { max-width: 44ch; color: var(--ink-2); font-size: 1.02rem; }
.hero__act { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; border-top: 1px solid var(--line); margin-top: 12px; max-width: 520px; }
.hero__facts div { padding: 14px 0 0; padding-inline-end: 34px; }
.hero__facts div + div { padding-inline-start: 22px; border-inline-start: 1px solid var(--line); }
.hero__facts dt { font-size: .76rem; color: var(--mute); }
.hero__facts dd { font-family: var(--serif); font-size: 1.7rem; line-height: 1.2; }
.hero__fig { position: relative; overflow: hidden; background: var(--paper-2); }
.hero__fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.js .hero__fig img { opacity: 0; scale: 1.035; transition: opacity 1s var(--ease), scale 1.6s var(--ease); }
.js.loaded .hero__fig img { opacity: 1; scale: 1; }
.hero__fig figcaption {
  position: absolute; inset-inline-start: 20px; bottom: 18px; z-index: 1;
  font-family: var(--serif); font-size: 1.05rem; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
.hero__fig::after { content: ''; position: absolute; inset: 14px; border: 1px dashed rgba(255, 255, 255, .45); pointer-events: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding: 36px var(--gut) 40px; gap: 24px; }
  .hero__fig { aspect-ratio: 4 / 5; }
  .hero__fig::after { inset: 10px; }
}
@media (max-width: 420px) {
  .hero__facts div { padding-inline-end: 16px; }
  .hero__facts div + div { padding-inline-start: 14px; }
  .hero__facts dd { font-size: 1.4rem; }
}

/* ---------- Sections ---------- */
.sec { padding-block: clamp(80px, 10vw, 150px); }
.sec__hd {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, .9fr); align-items: end; gap: 12px 24px;
  border-top: 1px solid var(--ink); padding-top: 18px; margin-bottom: clamp(36px, 5vw, 64px);
}
.sec__hd--tight { grid-template-columns: 56px minmax(0, 1fr); }
.sec__no { font-family: var(--serif); font-size: 1.15rem; color: var(--red); align-self: start; padding-top: 4px; }
.sec__h { font-family: var(--serif); font-weight: 500; font-size: clamp(2.5rem, 5.2vw, 4.4rem); line-height: 1.02; letter-spacing: -.01em; }
.sec__lede { color: var(--mute); max-width: 46ch; font-size: .98rem; }
.sec__hd > .sec__lede { justify-self: end; }
.sec__hd--tight > .sec__lede { grid-column: 2; justify-self: start; }
@media (max-width: 760px) {
  .sec__hd, .sec__hd--tight { grid-template-columns: 40px minmax(0, 1fr); }
  .sec__hd > .sec__lede { grid-column: 2; justify-self: start; }
}

/* ---------- Services index ---------- */
.idx { border-bottom: 1px solid var(--line); }
.svc {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr) minmax(0, .7fr) 22px; align-items: baseline;
  gap: 8px 28px; padding: 24px 0; border-top: 1px solid var(--line); text-align: start;
  transition: padding .4s var(--ease), background .3s;
}
.svc:first-child { border-top: 0; }
.svc__name { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.35rem); line-height: 1.1; font-weight: 500; }
.svc__desc { color: var(--ink-2); font-size: .95rem; }
.svc__meta { font-size: .85rem; color: var(--mute); }
.svc__go { width: 20px; height: 20px; align-self: center; color: var(--mute); transition: color .25s, translate .35s var(--ease); }
@media (hover: hover) {
  .svc:hover { background: var(--paper-2); padding-inline: 20px; }
  .svc:hover .svc__name { color: var(--red); }
  .svc:hover .svc__go { color: var(--ink); translate: -6px 0; }
  html[dir="ltr"] .svc:hover .svc__go { translate: 6px 0; }
}
.idx__note { margin-top: 14px; font-size: .8rem; color: var(--mute); }
@media (max-width: 760px) {
  .svc { grid-template-columns: minmax(0, 1fr) 20px; padding: 20px 0; gap: 4px 16px; }
  .svc__name { grid-column: 1; }
  .svc__go { grid-column: 2; grid-row: 1 / span 3; }
  .svc__desc, .svc__meta { grid-column: 1; }
  .svc__meta:empty { display: none; }
}

/* ---------- Principle band ---------- */
.principle { background: var(--ink); color: var(--chalk); position: relative; }
.principle::before { content: ''; position: absolute; inset: 14px; border: 1px dashed var(--chalk-line); pointer-events: none; }
.principle__in { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px 64px; align-items: end; padding-block: clamp(72px, 9vw, 130px); }
.principle__q { font-family: var(--serif); font-size: clamp(2.3rem, 5.4vw, 5rem); line-height: 1.06; font-weight: 500; }
.principle__s { color: var(--chalk-mute); max-width: 40ch; }
@media (max-width: 860px) { .principle__in { grid-template-columns: 1fr; } }

/* ---------- Results ---------- */
.filters { display: flex; gap: 26px; margin-bottom: 30px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.filters::-webkit-scrollbar { display: none; }
.filter { white-space: nowrap; padding: 10px 0 12px; font-size: .92rem; color: var(--mute); position: relative; transition: color .2s; }
.filter::after { content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .3s var(--ease); }
.filter:hover { color: var(--ink); }
.filter.active { color: var(--ink); font-weight: 500; }
.filter.active::after { transform: scaleX(1); }

.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 22px; }
.case[hidden] { display: none; }
.case__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.case__name { font-family: var(--serif); font-size: 1.4rem; line-height: 1.15; }
.case__tag { font-size: .78rem; color: var(--mute); }
.case__zoom { width: 36px; height: 36px; display: grid; place-content: center; border: 1px solid var(--line); color: var(--ink-2); transition: background .2s, color .2s; }
.case__zoom:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.case__zoom svg { width: 16px; height: 16px; }
.cases__more { display: flex; justify-content: center; margin-top: 44px; }
.cases__more [hidden] { display: none; }
#results .fine { margin-top: 24px; text-align: center; }
@media (max-width: 960px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cases { grid-template-columns: 1fr; gap: 34px; } }

/* Before / after compare */
.compare {
  --pos: 50%; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2);
  direction: ltr; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; margin-left: -.5px; background: #fff; pointer-events: none; }
.compare__knob {
  position: absolute; top: 50%; left: var(--pos); width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  background: #fff; color: var(--ink); display: grid; place-content: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  cursor: ew-resize; transition: scale .2s var(--ease);
}
.compare__knob svg { width: 18px; height: 18px; }
.compare.dragging .compare__knob { scale: 1.08; }
.compare__label {
  position: absolute; bottom: 12px; z-index: 2; padding: 4px 12px; font-size: .82rem; font-weight: 600; line-height: 1.5; pointer-events: none;
  background: var(--paper); color: var(--ink); font-family: var(--sans); box-shadow: 0 1px 6px rgba(0, 0, 0, .15); transition: opacity .2s;
}
.compare__label--b { left: 12px; }
.compare__label--a { right: 12px; background: var(--ink); color: var(--paper); }
/* After a drag, only the label of the photo that fills most of the frame stays */
.compare[data-side="b"] .compare__label--a, .compare[data-side="a"] .compare__label--b { opacity: 0; }
.compare__hint { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .78rem; color: var(--mute); line-height: 1.5; }
.compare__hint svg { width: 16px; height: 16px; flex: none; color: var(--red); }
.compare.hint .compare__knob { animation: nudge 1.6s var(--ease) 2; }
@keyframes nudge { 30% { translate: -12px 0; } 60% { translate: 12px 0; } }
.pair { position: relative; aspect-ratio: 4 / 5; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--paper); direction: ltr; }
.pair div { position: relative; overflow: hidden; }
.pair img { width: 100%; height: 100%; object-fit: cover; }

/* Zoom dialog */
.zoom-dialog { margin: auto; padding: 0; border: 0; background: var(--ink); color: var(--chalk); width: min(960px, 94vw); max-height: 94svh; overflow: hidden; }
.zoom-dialog::backdrop { background: rgba(29, 19, 34, .86); }
.zoom-dialog .compare, .zoom-dialog .pair { aspect-ratio: auto; height: min(78svh, 860px); }
.zoom-dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.zoom-dialog__bar b { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }
.zoom-dialog__nav { display: flex; gap: 6px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-content: center; border: 1px solid var(--chalk-line); color: var(--chalk); transition: background .2s; }
.icon-btn:hover { background: rgba(255, 255, 255, .08); }
.icon-btn svg { width: 18px; height: 18px; }
html[dir="ltr"] #zoom-prev svg { transform: none !important; }
html[dir="ltr"] #zoom-next svg { transform: scaleX(-1); }

/* ---------- Drawer ---------- */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(560px, 100%); max-width: 100%;
  height: 100%; max-height: 100%; padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain;
}
html[dir="rtl"] .drawer { inset: 0 auto 0 0; }
.drawer::backdrop { background: rgba(29, 19, 34, .5); }
.drawer[open] { animation: drawer-in .5s var(--ease); }
html[dir="rtl"] .drawer[open] { animation-name: drawer-in-rtl; }
@keyframes drawer-in { from { translate: 100% 0; } }
@keyframes drawer-in-rtl { from { translate: -100% 0; } }
.drawer__inner { position: relative; display: grid; }
.drawer__media { background: var(--paper-2); }
.drawer__photo { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 25%; }
.drawer__media.has-cases { background: var(--paper); padding-bottom: 6px; }
.dcase { background: var(--paper-2); display: flex; justify-content: center; }
.dcase .compare { --ar: .8; aspect-ratio: var(--ar); width: min(100%, calc(min(64svh, 600px) * var(--ar))); }
.dcase .pair { aspect-ratio: auto; width: 100%; height: min(64svh, 600px); }
.dcase .pair img { object-fit: contain; background: var(--paper-2); }
.drawer__media .compare__hint { padding-inline: var(--gut); }
.dcase__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut) 4px; }
.dcase__bar > div:first-child { display: grid; }
.dcase__name { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.2; }
.dcase__count { font-size: .76rem; color: var(--mute); }
.dcase__nav { display: flex; gap: 6px; }
.dcase__nav .icon-btn { border-color: var(--line-2); color: var(--ink); }
.dcase__nav .icon-btn:hover { background: var(--ink); color: var(--paper); }
.flip { transform: scaleX(-1); }
html[dir="ltr"] .dcase__nav svg { transform: scaleX(-1); }
html[dir="ltr"] .dcase__nav svg.flip { transform: none; }
@media (min-width: 600px) { .drawer__media .compare__hint, .dcase__bar { padding-inline: 36px; } }
.drawer__close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; width: 40px; height: 40px; display: grid; place-content: center; background: var(--paper); color: var(--ink); }
.drawer__close svg { width: 20px; height: 20px; }
.drawer__body { display: grid; gap: 22px; padding: 28px var(--gut) 40px; }
@media (min-width: 600px) { .drawer__body { padding-inline: 36px; } }
.drawer__body h3 { font-family: var(--serif); font-weight: 500; font-size: 2.6rem; line-height: 1.05; }
.drawer__body > p { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.fact { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.fact:nth-child(odd) { padding-inline-end: 14px; }
.fact:nth-child(even) { padding-inline-start: 14px; border-inline-start: 1px solid var(--line); }
.fact span { font-size: .76rem; color: var(--mute); }
.fact b { font-weight: 500; font-size: .94rem; line-height: 1.5; }
.drawer__lbl { font-size: .78rem; font-weight: 500; color: var(--mute); margin-bottom: 8px; }
.drawer__for { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .85rem; padding: 3px 10px; border: 1px solid var(--line-2); }
.drawer__disclaimer { font-size: .78rem; color: var(--mute); }

/* ---------- About ---------- */
.about { background: var(--paper-2); }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__fig { position: sticky; top: calc(var(--hd) + 24px); }
.about__fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; }
.about__txt { display: grid; gap: 26px; }
.about__txt .sec__hd { margin-bottom: 8px; }
.about__lead { font-family: var(--serif); font-size: clamp(1.55rem, 2.4vw, 2.05rem); line-height: 1.4; }
.about__p { color: var(--ink-2); max-width: 60ch; }
.about__dl { border-top: 1px solid var(--line); }
.about__dl div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.about__dl dt { font-size: .82rem; color: var(--mute); padding-top: 2px; }
.flow { counter-reset: f; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 10px; }
.flow li { counter-increment: f; display: grid; grid-template-columns: 34px 1fr; gap: 2px 8px; padding: 16px 0; border-top: 1px solid var(--line); }
.flow li::before { content: counter(f, persian); grid-row: span 2; font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; color: var(--red); }
html[lang="en"] .flow li::before { content: counter(f); }
.flow b { font-weight: 500; }
.flow span { font-size: .9rem; color: var(--mute); }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__fig { position: static; }
  .about__fig img { aspect-ratio: 4 / 5; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; }
  .about__dl div { grid-template-columns: 96px 1fr; }
}

/* ---------- Quiz ---------- */
.quiz { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.quiz__intro .sec__hd { margin-bottom: 18px; }
.quiz__panel { position: relative; background: var(--ink); color: var(--chalk); padding: clamp(26px, 4vw, 48px); display: grid; align-content: start; gap: 18px; }
.quiz__panel::before { content: ''; position: absolute; inset: 10px; border: 1px dashed var(--chalk-line); pointer-events: none; }
.quiz__progress { display: flex; gap: 6px; }
.quiz__progress i { height: 2px; flex: 1; background: var(--chalk-line); transition: background .3s; }
.quiz__progress i.on { background: var(--chalk); }
.quiz__step { display: none; gap: 16px; animation: qin .45s var(--ease); }
.quiz__step.active { display: grid; }
@keyframes qin { from { opacity: 0; translate: 0 10px; } }
.quiz__count { font-size: .78rem; color: var(--chalk-mute); }
.quiz__q { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.12; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; position: relative; }
.option { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--chalk-line); text-align: start; font-size: .95rem; transition: color .2s; }
.option:hover { color: #fff; }
.option__dot { width: 12px; height: 12px; border: 1px solid var(--chalk-mute); flex: none; transition: background .2s, border-color .2s; }
.option.selected .option__dot { background: var(--red); border-color: var(--red); }
.quiz__result { display: none; gap: 18px; animation: qin .5s var(--ease); }
.quiz__result.active { display: grid; }
.quiz__result h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.2; }
.quiz__recs { display: grid; }
.rec { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--chalk-line); text-align: start; }
.rec > span { display: grid; }
.rec b { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; }
.rec span span { font-size: .85rem; color: var(--chalk-mute); }
.rec svg { width: 18px; height: 18px; transition: translate .3s var(--ease); }
.rec:hover b { color: #b58fd0; }
.quiz__note { font-size: .88rem; color: var(--chalk-mute); padding-top: 14px; }
.quiz__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.quiz .btn { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.quiz .btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.quiz .btn svg { width: 18px; height: 18px; }
.quiz .txtlink { color: var(--chalk); text-decoration-color: var(--chalk-line); }
.quiz .fine { color: var(--chalk-mute); }
.quiz__nav [hidden] { display: none; }
@media (max-width: 860px) { .quiz { grid-template-columns: 1fr; } .quiz__panel { min-height: 0; } }
@media (max-width: 560px) { .options { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
#faq { padding-top: 0; }
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; padding-top: clamp(80px, 10vw, 150px); }
.faq__hd { position: sticky; top: calc(var(--hd) + 24px); margin-bottom: 0; }
.faq__list { border-bottom: 1px solid var(--line); }
.qa { border-top: 1px solid var(--line); }
.qa__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; text-align: start; font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.3; }
.qa__q:hover { color: var(--red); }
.qa__icon { position: relative; width: 14px; height: 14px; flex: none; }
.qa__icon::before, .qa__icon::after { content: ''; position: absolute; inset: 6.5px 0 auto; height: 1px; background: currentColor; transition: rotate .35s var(--ease); }
.qa__icon::after { rotate: 90deg; }
.qa.open .qa__icon::after { rotate: 0deg; }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.qa.open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { padding-bottom: 24px; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq__hd { position: static; } }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--chalk); padding-block: clamp(80px, 10vw, 140px); }
.contact .sec__hd { border-top-color: var(--chalk); }
.contact .sec__no { color: #d8c19a; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact__tel { display: inline-block; font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; margin: 8px 0 34px; font-variant-numeric: tabular-nums; transition: color .2s; }
.contact__tel:hover { color: #b58fd0; }
.contact__dl { border-top: 1px solid var(--chalk-line); }
.contact__dl div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--chalk-line); }
.contact__dl dt { font-size: .82rem; color: var(--chalk-mute); padding-top: 2px; }
.contact__dl a { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--chalk-line); }
.contact__dl a:hover { color: #b58fd0; text-decoration-color: currentColor; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; padding-top: 6px; }
.form__intro { grid-column: 1 / -1; color: var(--chalk-mute); font-size: .95rem; max-width: 52ch; }
.field { display: grid; gap: 6px; }
.field.full, .full { grid-column: 1 / -1; }
.field label { font-size: .8rem; color: var(--chalk-mute); }
.input {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(246, 241, 234, .38); border-radius: 0;
  padding: 8px 0 10px; color: var(--chalk); font-size: 1rem; outline: none; transition: border-color .2s; -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: rgba(246, 241, 234, .35); }
.input:focus { border-bottom-color: var(--chalk); }
select.input { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-size: 5px 5px; background-repeat: no-repeat; background-position: left 4px center, left 9px center; padding-inline-end: 20px; cursor: pointer; }
html[dir="ltr"] select.input { background-position: right 9px center, right 4px center; }
select.input option { color: var(--ink); background: var(--paper); }
textarea.input { resize: vertical; min-height: 90px; }
.form__end { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.contact .btn { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.contact .btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.contact .fine { color: var(--chalk-mute); }
.form .err { color: #b58fd0 !important; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .contact__dl div { grid-template-columns: 96px 1fr; }
}

/* ---------- Footer ---------- */
.ft { background: var(--night); color: var(--chalk-mute); font-size: .9rem; padding-top: 56px; border-top: 1px dashed var(--chalk-line); }
.ft__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-bottom: 44px; }
.ft__brand .mark__fa { color: var(--chalk); display: block; margin-bottom: 10px; }
.ft__col { display: grid; align-content: start; gap: 6px; justify-items: start; }
.ft__col h4 { font-size: .78rem; font-weight: 500; color: var(--chalk); margin-bottom: 6px; }
.ft__col a:hover { color: var(--chalk); }
.ft__ic { display: inline-flex; align-items: center; gap: 10px; }
.ft__ic svg { width: 18px; height: 18px; transition: color .2s; }
.ft__ic--tel svg { color: var(--chalk); }
.ft__ic--wa svg { color: #25d366; }
.ft__ic--tg svg { color: #2aabee; }
.ft__ic--ig svg { color: #e1306c; }
.ft__ic--map svg { color: #ea4335; }
.ft__bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 18px 26px; border-top: 1px solid var(--chalk-line); font-size: .8rem; }
.ft__bottom a:hover { color: var(--chalk); }
@media (max-width: 760px) { .ft__grid { grid-template-columns: 1fr 1fr; } .ft__brand { grid-column: 1 / -1; } }

/* ---------- Mobile bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    position: fixed; inset: auto 0 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr 1.3fr;
    background: var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
    translate: 0 100%; transition: translate .35s var(--ease);
  }
  .mobile-bar.show { translate: 0 0; }
  .mobile-bar a { display: grid; place-content: center; height: 54px; font-size: .9rem; font-weight: 500; }
  .mobile-bar a + a { border-inline-start: 1px solid var(--line); }
  .mobile-bar .book { background: var(--ink); color: var(--paper); border: 0; }
  .ft { padding-bottom: 54px; }
}

/* =====================================================================
   Inner pages (treatments, results, journal, cost)
   ===================================================================== */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .8rem; color: var(--mute); }
.crumbs a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.crumbs a:hover { color: var(--red); }

.phero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-top: calc(var(--hd) + clamp(28px, 4vw, 56px)); padding-bottom: clamp(48px, 6vw, 88px); }
.phero__copy { display: grid; gap: 22px; align-content: center; }
.phero__h { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: 1.04; letter-spacing: -.01em; }
.phero__h em { font-style: normal; color: var(--red); }
.phero__lead { color: var(--ink-2); font-size: 1.05rem; max-width: 46ch; }
.phero__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); max-width: 560px; }
.phero__facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.phero__facts div:nth-child(odd) { padding-inline-end: 16px; }
.phero__facts div:nth-child(even) { padding-inline-start: 16px; border-inline-start: 1px solid var(--line); }
.phero__facts dt { font-size: .76rem; color: var(--mute); }
.phero__facts dd { font-weight: 500; font-size: .95rem; }
.phero__vis { position: relative; }
.phero__photo { position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 5; }
.phero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.phero__photo::after { content: ''; position: absolute; inset: 12px; border: 1px dashed rgba(255, 255, 255, .5); pointer-events: none; }
@media (max-width: 860px) { .phero { grid-template-columns: 1fr; } .phero__vis { max-width: 520px; } }

.body2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .body2 { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 18px; max-width: 68ch; font-size: 1.02rem; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.1; margin-top: 18px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.2; margin-top: 14px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { display: grid; gap: 8px; }
.prose ul li { position: relative; padding-inline-start: 20px; }
.prose ul li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .8em; width: 8px; height: 1px; background: var(--red); }
.prose ol { counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--line); }
.prose ol li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prose ol li::before { content: counter(s, persian); font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; color: var(--red); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-2); }
.prose a:hover { color: var(--red); text-decoration-color: currentColor; }
.prose .note { font-size: .86rem; color: var(--mute); border-inline-start: 2px solid var(--red); padding-inline-start: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 500; color: var(--mute); font-size: .8rem; }

.aside { position: sticky; top: calc(var(--hd) + 24px); background: var(--ink); color: var(--chalk); padding: 30px 26px; display: grid; gap: 16px; }
.aside::before { content: ''; position: absolute; inset: 8px; border: 1px dashed var(--chalk-line); pointer-events: none; }
.aside h3 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1.15; }
.aside p { color: var(--chalk-mute); font-size: .92rem; }
.aside .btn { background: var(--chalk); color: var(--ink); border-color: var(--chalk); position: relative; }
.aside .btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.aside__links { display: grid; gap: 4px; font-size: .9rem; position: relative; }
.aside__links a { color: var(--chalk-mute); }
.aside__links a:hover { color: var(--chalk); }
@media (max-width: 960px) { .aside { position: relative; top: 0; } }

a.svc { color: inherit; }
.subidx { margin-top: 26px; }
.subidx__h { font-size: .8rem; color: var(--mute); margin-bottom: 4px; }

.sec--tint { background: var(--paper-2); }
.cta-band { background: var(--ink); color: var(--chalk); position: relative; }
.cta-band::before { content: ''; position: absolute; inset: 14px; border: 1px dashed var(--chalk-line); pointer-events: none; }
.cta-band__in { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; padding-block: clamp(56px, 7vw, 96px); position: relative; }
.cta-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.08; max-width: 18ch; }
.cta-band .btn { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.cta-band .btn:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* Journal */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
.post-card { display: grid; gap: 10px; align-content: start; }
.post-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.post-card:hover .post-card__img img { scale: 1.03; }
.post-card__meta { font-size: .78rem; color: var(--mute); }
.post-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.2; }
.post-card:hover h3 { color: var(--red); }
.post-card p { color: var(--ink-2); font-size: .92rem; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--mute); }
.toc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; display: grid; gap: 4px; font-size: .92rem; }
.toc b { font-size: .78rem; color: var(--mute); font-weight: 500; }
.ft__grid--4 { grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); }
.ft__more { margin-top: 14px; }
@media (max-width: 900px) { .ft__grid--4 { grid-template-columns: 1fr 1fr; } }
.sublinks { margin-top: 36px; display: grid; gap: 12px; }
.sublinks__h { font-size: .8rem; font-weight: 500; color: var(--mute); }
.sublinks__list { display: flex; flex-wrap: wrap; gap: 8px; }
a.chip { transition: background .2s, color .2s, border-color .2s; }
a.chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sublinks__more { margin-top: 18px; font-size: .92rem; }
.cases__more { align-items: center; gap: 28px; flex-wrap: wrap; }

/* ---------- Logo ---------- */
.mark { display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; justify-content: start; }
.mark__logo { grid-row: 1 / 3; width: auto; height: 42px; }
.mark__fa, .mark__en { grid-column: 2; }
.menu__top .mark__fa, .ft__brand .mark__fa { grid-column: auto; }
@media (max-width: 560px) { .mark__logo { height: 36px; } }
.ft__logo { width: auto; height: 56px; margin-bottom: 12px; filter: brightness(0) invert(1); opacity: .85; }

/* Rotating badge on the hero photo */
.badge { position: absolute; z-index: 2; top: 28px; inset-inline-start: 28px; width: 124px; height: 124px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(29, 19, 34, .18); }
.badge__ring { direction: ltr; unicode-bidi: isolate; position: absolute; inset: 0; width: 100%; height: 100%; animation: badge-spin 22s linear infinite; }
.badge__ring text { font-family: var(--serif); font-size: 11.5px; letter-spacing: .5px; fill: var(--ink); }
.badge__mark { width: auto; height: 58px; }
@keyframes badge-spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .badge { width: 96px; height: 96px; top: 20px; inset-inline-start: 20px; } .badge__mark { height: 44px; } }
.hero__fig .badge__mark, .js .hero__fig .badge__mark { position: relative; inset: auto; width: auto; height: 58px; object-fit: contain; opacity: 1; scale: 1; }
@media (max-width: 900px) { .hero__fig .badge__mark, .js .hero__fig .badge__mark { height: 44px; } }
