/* ==========================================================================
   Fizioterapevt Aygün Ocaqzadə — site styles
   Identity: bone paper, ink, clay; a posture-assessment grid and a plumb line.
   Motion is always a body movement: vertebrae aligning, a head returning to
   midline, footsteps, a balance correction. Nothing floats or spins.
   ========================================================================== */

:root {
  --paper: #F5F1EA;
  --paper-2: #EDE6DB;
  --paper-3: #E4DBCD;
  --card: #FFFFFF;
  --ink: #14222E;
  --ink-2: #2A3947;
  --muted: #56626D;
  --line: #DCD3C6;
  --line-2: #CCC1B0;
  --clay: #C4552F;
  --clay-ink: #A2401F;
  --clay-btn: #B4452A;
  --clay-btn-h: #9C3A22;
  --clay-t: #F5E3D9;
  --sage: #3F6152;
  --sage-t: #E3EBE4;
  --grid: rgba(20, 34, 46, .07);
  --ok: #2F6B52;
  --warn: #9A3B21;
  --warn-t: #F8E7DF;

  --font: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-lg: 26px;
  --r: 18px;
  --r-s: 12px;
  --shadow: 0 1px 2px rgba(20, 34, 46, .05), 0 12px 32px -18px rgba(20, 34, 46, .28);
  --shadow-lg: 0 2px 4px rgba(20, 34, 46, .05), 0 28px 60px -28px rgba(20, 34, 46, .38);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.45, .55, 1);
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 32px);
  --hdr: 74px;
  --dock: 0px;
  color-scheme: light;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 20px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.65 var(--font); font-feature-settings: "kern", "liga";
  overflow-wrap: break-word; padding-bottom: var(--dock);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--clay-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; font-weight: 600; letter-spacing: -.012em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); font-weight: 500; letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.15rem); font-weight: 500; letter-spacing: -.016em; }
h3 { font-size: 1.14rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
abbr[title] { text-decoration: none; }
mark { background: var(--clay-t); color: var(--ink); border-radius: 3px; padding: 0 .1em; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------------------------------------------------------------- icons */
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- layout */
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gut), 880px); }
.sec { padding-block: clamp(56px, 7vw, 104px); }
.sec--tight { padding-block: clamp(36px, 4vw, 56px) clamp(56px, 6vw, 88px); }
.sec--tint { background: var(--paper-2); }
.sec__more { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 32px 0 0; }

/* the posture-assessment grid */
.grid-lines, .hero__bg, .phead::before, .board, .pboard {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---------------------------------------------------------------- small parts */
.badge {
  display: inline-grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 11px 11px 11px 4px;
  background: var(--clay-t); color: var(--clay-ink);
}
.badge .i { width: 18px; height: 18px; }
.badge--lg { width: 46px; height: 46px; border-radius: 14px 14px 14px 5px; }
.badge--lg .i { width: 23px; height: 23px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--clay-ink);
}
.kicker .badge { width: 28px; height: 28px; border-radius: 9px 9px 9px 3px; }
.kicker .badge .i { width: 15px; height: 15px; }

.shead { max-width: 720px; margin-bottom: clamp(28px, 3.4vw, 44px); }
.shead h2 { margin-bottom: 0; }
.shead__intro { margin: 14px 0 0; color: var(--muted); font-size: 1.05rem; }
.shead--light .kicker { color: #F0B79D; }
.shead--light .kicker .badge { background: rgba(245, 241, 234, .1); color: #F0B79D; }
.shead--light h2 { color: var(--paper); }
.shead--light .shead__intro { color: #C3CAD0; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 99px;
  font-size: .76rem; font-weight: 500; letter-spacing: .02em; white-space: nowrap;
}
.tag .i { width: 14px; height: 14px; }
.tag--pro { background: var(--clay-t); color: var(--clay-ink); }
.tag--gen { background: var(--sage-t); color: var(--sage); }

.link-arrow {
  display: inline; font-weight: 500; color: var(--clay-ink); text-decoration: none; width: fit-content;
}
.link-arrow span { text-decoration: underline; text-decoration-color: rgba(162, 64, 31, .35); text-underline-offset: .22em; }
.link-arrow .i { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.16em; margin-left: 6px; transition: translate .35s var(--ease); }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover .i { translate: 4px 0; }

.chip {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-size: .9rem; text-decoration: none; transition: border-color .2s, background .2s;
}
.chip:hover { border-color: var(--clay); color: var(--clay-ink); }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(245, 241, 234, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled::before { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(20, 34, 46, .5); }
.hdr { display: flex; align-items: center; gap: 20px; min-height: var(--hdr); }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.bm-v { fill: var(--ink); }
.bm-s { fill: var(--clay); }
.brand__txt { display: grid; line-height: 1.1; min-width: 0; }
.brand__name { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand__sub { font-size: .76rem; color: var(--muted); letter-spacing: .05em; margin-top: 3px; white-space: nowrap; }
.brand:hover .bm-v { transition: translate .5s var(--spring); }
.brand:hover .bm-v1 { translate: 0 -1px; }
.brand:hover .bm-v2 { translate: 0 -.5px; }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 400; font-size: .98rem; white-space: nowrap;
}
.nav__link:hover, .nav__item.is-open > .nav__link { background: rgba(20, 34, 46, .05); color: var(--ink); }
.nav__link[aria-current] { color: var(--clay-ink); }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--clay); }
.nav__chev { width: 15px; height: 15px; opacity: .6; transition: rotate .25s var(--ease); }
.nav__item.is-open .nav__chev, .has-sub:hover .nav__chev { rotate: 180deg; }

.sub {
  position: absolute; top: calc(100% + 6px); left: 50%; translate: -50% 0; z-index: 5;
  width: 340px; padding: 10px; border-radius: var(--r); background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.is-open > .sub {
  opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s;
}
.sub--mega { width: 660px; }
.sub--mega .sub__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.sub__list { list-style: none; }
.sub__link { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.sub__link:hover, .sub__link[aria-current] { background: var(--paper); }
.sub__txt { display: grid; gap: 1px; min-width: 0; }
.sub__t { font-weight: 500; font-size: .95rem; line-height: 1.3; }
.sub__d { font-size: .82rem; color: var(--muted); line-height: 1.35; }
.sub__link .badge { width: 32px; height: 32px; }
.sub__link:hover .badge { background: var(--clay); color: #fff; }

.hdr__actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none;
  transition: border-color .2s, background .2s, color .2s;
}
.iconbtn:hover { border-color: var(--ink); color: var(--ink); }
.iconbtn .i { width: 20px; height: 20px; }
.iconbtn--menu { display: none; }

/* the single call to action of every page */
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px;
  border-radius: 14px 14px 14px 5px; background: var(--clay-btn); color: #fff; text-decoration: none;
  font-weight: 500; font-size: .98rem; white-space: nowrap; box-shadow: 0 10px 22px -12px rgba(180, 69, 42, .8);
  transition: background .2s, box-shadow .2s;
}
.btn-cta .i { width: 18px; height: 18px; transition: rotate .45s var(--spring); }
.btn-cta:hover { background: var(--clay-btn-h); color: #fff; }
.btn-cta:hover .i { rotate: -8deg; }

/* ---------------------------------------------------------------- home hero */
.hero { position: relative; overflow: hidden; overflow: clip; padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 84px); }
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 45%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 75% at 50% 45%, #000 20%, transparent 78%);
}
.hero__in { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }
.hero__h1 {
  display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "role role role" "first spine last";
  align-items: center; column-gap: clamp(28px, 5vw, 76px); width: 100%; margin: 0;
  font-size: clamp(2.6rem, 1.4rem + 3.6vw, 3.9rem); font-weight: 300; letter-spacing: -.03em; line-height: 1;
}
.hero__role {
  grid-area: role; justify-self: center; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 8px;
  font-size: .82rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--clay-ink);
}
.hero__role .badge { width: 28px; height: 28px; border-radius: 9px 9px 9px 3px; }
.hero__role .badge .i { width: 15px; height: 15px; }
.hero__first { grid-area: first; justify-self: end; text-align: right; }
.hero__last { grid-area: last; justify-self: start; text-align: left; font-weight: 500; }
.hero__lead { max-width: 58ch; margin: 30px auto 0; font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); color: var(--ink-2); }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 0; max-width: 920px; }
.hero__facts li {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px 9px 12px; border-radius: 99px;
  background: rgba(255, 255, 255, .72); border: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); text-align: left;
}
.hero__facts .i { width: 18px; height: 18px; color: var(--clay-ink); }
.hero__down { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; color: var(--muted); text-decoration: none; font-size: .92rem; }
.hero__down .i { rotate: 90deg; width: 18px; height: 18px; }
.hero__down:hover { color: var(--clay-ink); }

/* the spine: a posterior view, 20 vertebrae + sacrum on a plumb line */
.spine { grid-area: spine; position: relative; display: flex; justify-content: center; padding: 14px 0 34px; font-size: 15px; }
.spine__col { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .3em; }
.vb {
  position: relative; display: block; width: var(--w); height: var(--h); border-radius: 42% / 50%;
  background: var(--ink); translate: 0 0; rotate: 0deg;
  transition: translate 1.15s var(--ease) var(--d, 0s), rotate 1.15s var(--ease) var(--d, 0s), background .4s;
}
.vb::before { content: ""; position: absolute; left: -36%; right: -36%; top: 30%; height: 36%; border-radius: 99px; background: inherit; opacity: .26; }
.vb::after { content: ""; position: absolute; left: 50%; top: 26%; width: 9%; height: 48%; translate: -50% 0; border-radius: 99px; background: var(--paper); opacity: .22; }
.vb:nth-child(n+16) { background: var(--clay); }
.vb:nth-child(1){--w:1.55em;--h:.72em;--bx:5.5px;--br:-5.6deg;--d:1.405s}
.vb:nth-child(2){--w:1.64em;--h:.72em;--bx:9.5px;--br:-4.8deg;--d:1.36s}
.vb:nth-child(3){--w:1.73em;--h:.72em;--bx:12.8px;--br:-3.6deg;--d:1.315s}
.vb:nth-child(4){--w:1.82em;--h:.72em;--bx:15px;--br:-2.1deg;--d:1.27s}
.vb:nth-child(5){--w:1.91em;--h:.72em;--bx:16px;--br:-.4deg;--d:1.225s}
.vb:nth-child(6){--w:2em;--h:.72em;--bx:15.6px;--br:1.4deg;--d:1.18s}
.vb:nth-child(7){--w:2.1em;--h:.9em;--bx:13.9px;--br:3deg;--d:1.135s}
.vb:nth-child(8){--w:2.18em;--h:.93em;--bx:11.1px;--br:4.3deg;--d:1.09s}
.vb:nth-child(9){--w:2.25em;--h:.95em;--bx:7.3px;--br:5.3deg;--d:1.045s}
.vb:nth-child(10){--w:2.33em;--h:.98em;--bx:3px;--br:5.9deg;--d:1s}
.vb:nth-child(11){--w:2.4em;--h:1em;--bx:-1.6px;--br:5.9deg;--d:.955s}
.vb:nth-child(12){--w:2.48em;--h:1.02em;--bx:-6.1px;--br:5.5deg;--d:.91s}
.vb:nth-child(13){--w:2.55em;--h:1.05em;--bx:-10.1px;--br:4.7deg;--d:.865s}
.vb:nth-child(14){--w:2.62em;--h:1.07em;--bx:-13.2px;--br:3.4deg;--d:.82s}
.vb:nth-child(15){--w:2.7em;--h:1.1em;--bx:-15.2px;--br:1.9deg;--d:.775s}
.vb:nth-child(16){--w:2.85em;--h:1.2em;--bx:-16px;--br:.2deg;--d:.73s}
.vb:nth-child(17){--w:2.96em;--h:1.25em;--bx:-15.4px;--br:-1.6deg;--d:.685s}
.vb:nth-child(18){--w:3.07em;--h:1.3em;--bx:-13.6px;--br:-3.2deg;--d:.64s}
.vb:nth-child(19){--w:3.18em;--h:1.35em;--bx:-10.6px;--br:-4.5deg;--d:.595s}
.vb:nth-child(20){--w:3.29em;--h:1.4em;--bx:-6.7px;--br:-5.4deg;--d:.55s}
.spine__sac {
  display: block; width: 3.1em; height: 2.7em; margin-top: .1em; background: var(--clay);
  clip-path: polygon(0 0, 100% 0, 78% 58%, 56% 100%, 44% 100%, 22% 58%); border-radius: 6px;
}
.spine__plumb {
  position: absolute; left: 50%; top: -6px; bottom: 6px; width: 0; translate: -.5px 0; z-index: 0;
  border-left: 1.5px dashed rgba(196, 85, 47, .55); transform-origin: 50% 0;
}
.spine__plumb::after {
  content: ""; position: absolute; left: -5.75px; bottom: -14px; width: 10px; height: 13px;
  background: var(--clay); border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%; opacity: .85;
}
.vb__l { position: absolute; inset: 0; pointer-events: none; }
.vb__l::before { content: ""; position: absolute; top: 50%; left: calc(100% + 1.1em); width: 1.6em; border-top: 1px solid var(--line-2); }
.vb__l::after {
  content: attr(data-l); position: absolute; top: 50%; left: calc(100% + 3em); translate: 0 -50%;
  font-size: 11.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); white-space: nowrap; line-height: 1;
}
.vb:nth-child(8) .vb__l::before, .spine__sac .vb__l::before { left: auto; right: calc(100% + 1.1em); }
.vb:nth-child(8) .vb__l::after, .spine__sac .vb__l::after { left: auto; right: calc(100% + 3em); }
.spine__sac .vb__l { inset: 20% 22%; }

/* bent state before arrival (motion allowed); JS adds .is-aligned */
.m-on .spine:not(.is-aligned) .vb { translate: var(--bx) 0; rotate: var(--br); transition: none; }
.m-on .spine:not(.is-aligned) .spine__plumb { scale: 1 0; }
.spine .spine__plumb { transition: scale .7s var(--ease); }
.spine.is-settled .vb { translate: var(--mx, 0px) 0; rotate: var(--mr, 0deg); transition: translate .7s var(--ease), rotate .7s var(--ease); }
.spine.is-live .vb { transition: translate .14s linear, rotate .14s linear; }
.m-done .spine:not(.is-aligned) .vb { translate: 0 0 !important; rotate: 0deg !important; }
.m-done .spine .spine__plumb { scale: 1 1 !important; }

/* ---------------------------------------------------------------- intro (home) */
.intro__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.intro__photo { margin: 0; }
.intro__photo figcaption { margin-top: 12px; font-size: .86rem; color: var(--muted); text-align: center; }
.intro__lead { font-size: 1.16rem; color: var(--ink); }
.intro__txt h2 { margin-bottom: 18px; }
.intro__txt p { color: var(--ink-2); }

/* portrait on a posture board: grid + plumb line through the midline */
.pboard { position: relative; padding: 14px; border-radius: var(--r-lg); background-color: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pboard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; position: relative; z-index: 1; }
.pboard__plumb { position: absolute; left: 50%; top: 4px; bottom: 4px; z-index: 0; border-left: 1.5px dashed rgba(196, 85, 47, .55); pointer-events: none; }
.pboard__plumb::before, .pboard__plumb::after { content: ""; position: absolute; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
.pboard__plumb::before { top: 0; }
.pboard__plumb::after { bottom: 0; }

.facts { display: grid; gap: 0; margin: 0; }
.facts__row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts__row:first-child { padding-top: 0; }
.facts__row:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; }
.facts dt .i { width: 17px; height: 17px; color: var(--clay-ink); }
.facts dd { margin: 0; font-weight: 500; font-size: .96rem; line-height: 1.45; }
.facts--compact .facts__row { grid-template-columns: 1fr; gap: 3px; padding: 11px 0; }
.intro__facts { padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.intro__facts .facts__row { grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 11px 0; }

/* ---------------------------------------------------------------- movement illustrations */
.mi { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.mi * { transform-box: view-box; }
.mi-v { fill: color-mix(in srgb, currentColor 13%, transparent); translate: var(--o, 0px) 0; transition: translate .75s var(--ease) calc(var(--i, 0) * 45ms); }
.mi-plumb { stroke: var(--clay); stroke-width: 1.2; stroke-dasharray: 2 3.2; }
.mi-sac { fill: var(--clay); stroke: none; }
.mi-ground { stroke: var(--line-2); }
.mi-dot { fill: currentColor; stroke: none; }
.mi--skolioz .mi-v:nth-child(1) { --o: 1.5px; --i: 5; }
.mi--skolioz .mi-v:nth-child(2) { --o: 3.4px; --i: 4; }
.mi--skolioz .mi-v:nth-child(3) { --o: 3.8px; --i: 3; }
.mi--skolioz .mi-v:nth-child(4) { --o: 1.2px; --i: 2; }
.mi--skolioz .mi-v:nth-child(5) { --o: -2.6px; --i: 1; }
.mi--skolioz .mi-v:nth-child(6) { --o: -1.4px; --i: 0; }
.mi--schroth .mi-v:nth-child(1) { --o: 1px; --i: 5; }
.mi--schroth .mi-v:nth-child(2) { --o: 2.4px; --i: 4; }
.mi--schroth .mi-v:nth-child(3) { --o: 2.8px; --i: 3; }
.mi--schroth .mi-v:nth-child(4) { --o: .8px; --i: 2; }
.mi--schroth .mi-v:nth-child(5) { --o: -2px; --i: 1; }
.mi--schroth .mi-v:nth-child(6) { --o: -1px; --i: 0; }
.mi-ribs { transform-origin: 24px 22px; transition: scale .9s var(--ease); }
.mi-up { transform-origin: 22px 29px; rotate: 21deg; transition: rotate .9s var(--spring); }
.mi-body { transform-origin: 24px 44.5px; rotate: 10deg; transition: rotate 1s var(--spring); }
.mi-head { transform-origin: 24px 33.5px; rotate: -20deg; transition: rotate .9s var(--spring); }
.mi-fp { fill: color-mix(in srgb, currentColor 16%, transparent); opacity: .24; transition: opacity .35s var(--ease); }
.mi--motor g:nth-child(2) .mi-fp { transition-delay: .14s; }
.mi--motor g:nth-child(3) .mi-fp { transition-delay: .28s; }
.mi--motor g:nth-child(4) .mi-fp { transition-delay: .42s; }
.mi--motor g:nth-child(1) .mi-fp { opacity: 1; }
.mi--parkinson > g > path, .mi--parkinson .mi-step path { fill: color-mix(in srgb, currentColor 16%, transparent); }
.mi-cues { stroke: var(--clay); opacity: .22; transition: opacity .4s var(--ease); }
.mi-step { transition: translate .75s var(--ease) .15s; }
.mi-arm-l { transform-origin: 24px 19.2px; transition: rotate .7s var(--spring); }
.mi-arm-r { transform-origin: 24px 19.2px; transition: rotate .7s var(--spring); }
.mi--kinez .mi-arm-l, .mi--kinez .mi-arm-r { transform-origin: 24px 16px; }
.mi-band-slack { stroke: var(--clay); transition: opacity .3s; }
.mi-band-taut { stroke: var(--clay); opacity: 0; transition: opacity .3s .35s; }
.mi-kid { transform-origin: 24px 34px; translate: 0 2.6px; rotate: -8deg; transition: translate .8s var(--spring), rotate .8s var(--spring); }
.mi-hand { stroke: var(--clay); }

:is(.svc:hover, .svc:focus-visible, .mcard:hover, .mcard:focus-visible, .is-play) .mi-v { translate: 0 0; }
:is(.svc:hover, .svc:focus-visible, .mcard:hover, .mcard:focus-visible, .is-play) .mi-up,
:is(.svc:hover, .svc:focus-visible, .mcard:hover, .mcard:focus-visible, .is-play) .mi-body,
:is(.svc:hover, .svc:focus-visible, .mcard:hover, .mcard:focus-visible, .is-play) .mi-head { rotate: 0deg; }
:is(.svc:hover, .svc:focus-visible, .mcard:hover, .mcard:focus-visible, .is-play) .mi-fp { opacity: 1; }
:is(.svc:hover, .svc:focus-visible, .mcard:hover, .mcard:focus-visible, .is-play) .mi-cues { opacity: 1; }
:is(.svc:hover, .svc:focus-visible, .mcard:hover, .mcard:focus-visible, .is-play) .mi-step { translate: 6px -6px; }
:is(.svc:hover, .svc:focus-visible, .mcard:hover, .mcard:focus-visible, .is-play) .mi--onlayn .mi-arm-l { rotate: 78deg; }
:is(.svc:hover, .svc:focus-visible, .mcard:hover, .mcard:focus-visible, .is-play) .mi--onlayn .mi-arm-r { rotate: -78deg; }
:is(.svc:hover, .svc:focus-visible, .mcard:hover, .mcard:focus-visible, .is-play) .mi--kinez .mi-arm-l { rotate: 60deg; }
:is(.svc:hover, .svc:focus-visible, .mcard:hover, .mcard:focus-visible, .is-play) .mi--kinez .mi-arm-r { rotate: -60deg; }
:is(.svc:hover, .svc:focus-visible, .mcard:hover, .mcard:focus-visible, .is-play) .mi-band-slack { opacity: 0; }
:is(.svc:hover, .svc:focus-visible, .mcard:hover, .mcard:focus-visible, .is-play) .mi-band-taut { opacity: 1; }
:is(.svc:hover, .svc:focus-visible, .mcard:hover, .mcard:focus-visible, .is-play) .mi-ribs { scale: 1.07; }
:is(.svc:hover, .svc:focus-visible, .mcard:hover, .mcard:focus-visible, .is-play) .mi-kid { translate: 0 0; rotate: 0deg; }

/* ---------------------------------------------------------------- service cards (bento) */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); gap: 16px; }
.svc {
  position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 14px 18px;
  padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; overflow: hidden;
  transition: border-color .3s, box-shadow .3s, translate .4s var(--ease);
}
.svc:hover { border-color: var(--line-2); box-shadow: var(--shadow); translate: 0 -3px; color: var(--ink); }
.svc__art {
  grid-row: 1 / 3; width: 76px; height: 76px; padding: 12px; border-radius: 20px 20px 20px 7px;
  background: var(--paper); color: var(--ink); transition: background .3s;
}
.svc:hover .svc__art { background: var(--clay-t); }
.svc__body { display: grid; align-content: start; gap: 8px; min-width: 0; }
.svc__t { font-size: 1.16rem; font-weight: 500; line-height: 1.25; }
.svc__d { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.svc__who { display: flex; gap: 8px; align-items: flex-start; margin-top: 4px; font-size: .86rem; color: var(--ink-2); }
.svc__who .i { width: 16px; height: 16px; margin-top: 2px; color: var(--clay-ink); }
.svc__go {
  grid-column: 2; justify-self: start; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink); transition: background .3s, color .3s, border-color .3s;
}
.svc__go .i { width: 17px; height: 17px; transition: translate .35s var(--ease); }
.svc:hover .svc__go { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.svc:hover .svc__go .i { translate: 2px 0; }
.svc--lg { grid-row: span 2; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto auto; padding: 28px; background: var(--ink); border-color: var(--ink); color: var(--paper); }
.svc--lg .svc__art { grid-row: auto; width: 100%; height: auto; min-height: 220px; padding: 26px; background: rgba(245, 241, 234, .06); color: var(--paper); display: grid; place-items: center; border-radius: 22px; }
.svc--lg .svc__art .mi { width: min(180px, 70%); height: auto; }
.svc--lg:hover { color: var(--paper); border-color: var(--ink); }
.svc--lg:hover .svc__art { background: rgba(245, 241, 234, .1); }
.svc--lg .svc__t { font-size: 1.45rem; }
.svc--lg .svc__d { color: #C3CAD0; font-size: 1rem; }
.svc--lg .svc__go { grid-column: 1; border-color: rgba(245, 241, 234, .3); color: var(--paper); }
.svc--lg:hover .svc__go { background: var(--clay); border-color: var(--clay); }
.svc--lg .mi-v { fill: rgba(245, 241, 234, .12); }
.svc--lg .mi { stroke-width: 1.15; }
.board .mi-v, .svc--lg .mi-v { fill: currentColor; stroke: none; }
.board .mi--skolioz .mi-v:nth-child(n+5), .svc--lg .mi--skolioz .mi-v:nth-child(n+5) { fill: var(--clay); }
.board .mi, .nf__art .mi { stroke-width: 1.35; }
.mcard__art .mi { stroke-width: 1.8; }
.svc--wide { grid-column: span 2; }
.sgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc--hub { min-height: 0; }
.sgrid .svc--hub:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- rehabilitation path (footsteps) */
.gait { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; counter-reset: g; }
.gait::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 36px; border-top: 1.5px dashed var(--line-2); z-index: 0;
}
.gait__step { position: relative; z-index: 1; padding: 22px 22px 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.gait__feet { position: absolute; top: 18px; right: 16px; width: 48px; height: 30px; color: var(--clay); }
.gait__feet svg { width: 100%; height: 100%; }
.gait__fp { fill: currentColor; opacity: .85; }
.gait__n { position: absolute; top: 20px; right: 72px; font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; }
.gait__step .badge { margin-bottom: 18px; }
.gait__step h3 { margin-bottom: 8px; }
.gait__step p { margin: 0; color: var(--muted); font-size: .95rem; }
.gait__note { display: flex; gap: 10px; align-items: center; margin: 24px 0 0; color: var(--muted); font-size: .95rem; }
.gait__note .i { color: var(--clay-ink); }

/* ---------------------------------------------------------------- methods (ink band) */
.sec--ink { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; overflow: clip; }
.sec--ink::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(245, 241, 234, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 241, 234, .05) 1px, transparent 1px);
  background-size: 40px 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent); mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
}
.sec--ink .wrap { position: relative; }
.mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mcard {
  display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 6px; padding: 26px; border-radius: var(--r-lg);
  background: rgba(245, 241, 234, .05); border: 1px solid rgba(245, 241, 234, .12); color: var(--paper); text-decoration: none;
  transition: background .3s, border-color .3s, translate .4s var(--ease);
}
.mcard:hover { background: rgba(245, 241, 234, .09); border-color: rgba(245, 241, 234, .24); color: var(--paper); translate: 0 -3px; }
.mcard__art { width: 92px; height: 92px; padding: 14px; margin-bottom: 14px; border-radius: 22px 22px 22px 8px; background: rgba(245, 241, 234, .07); color: var(--paper); }
.mcard .mi-v { fill: rgba(245, 241, 234, .12); }
.mcard__t { font-size: 1.25rem; font-weight: 500; }
.mcard__area { font-size: .84rem; color: #F0B79D; letter-spacing: .02em; }
.mcard__d { color: #C3CAD0; font-size: .95rem; margin-top: 4px; }
.mcard__go { margin-top: 14px; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(245, 241, 234, .3); }
.mcard__go .i { width: 17px; height: 17px; }
.mcard:hover .mcard__go { background: var(--clay); border-color: var(--clay); }
.mgrid--light .mcard { background: var(--card); border-color: var(--line); color: var(--ink); }
.mgrid--light .mcard:hover { color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow); }
.mgrid--light .mcard__art { background: var(--paper); color: var(--ink); }
.mgrid--light .mcard .mi-v { fill: color-mix(in srgb, currentColor 13%, transparent); }
.mgrid--light .mcard__area { color: var(--clay-ink); }
.mgrid--light .mcard__d { color: var(--muted); }
.mgrid--light .mcard__go { border-color: var(--line); color: var(--ink); }
.mgrid--light .mcard:hover .mcard__go { color: #fff; }

/* ---------------------------------------------------------------- knowledge sharing (home) */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; }
.duo__card { padding: 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); display: grid; align-content: start; gap: 14px; }
.duo__card h3 { font-size: 1.3rem; font-weight: 500; }
.duo__card p { margin: 0; color: var(--ink-2); }
.duo__card--photo { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 24px; align-items: center; }
.duo__fig { margin: 0; }
.duo__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.duo__txt { display: grid; gap: 14px; align-content: start; }

/* ---------------------------------------------------------------- article cards */
.agrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.acard {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: 24px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color .3s, box-shadow .3s, translate .4s var(--ease);
}
.acard:hover { color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow); translate: 0 -3px; }
.acard__top { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); }
.acard__topic { font-weight: 500; color: var(--clay-ink); letter-spacing: .02em; }
.acard__min { margin-left: auto; }
.acard__t { font-size: 1.14rem; font-weight: 500; line-height: 1.3; }
.acard__d { color: var(--muted); font-size: .94rem; }
.acard__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .92rem; color: var(--clay-ink); }
.acard__go .i { width: 17px; height: 17px; transition: translate .35s var(--ease); }
.acard:hover .acard__go .i { translate: 4px 0; }

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 10px; }
.faq__item { border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: border-color .25s; }
.faq__item[open] { border-color: var(--line-2); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer;
  list-style: none; font-weight: 500; font-size: 1.02rem; line-height: 1.4;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__ic { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); flex: none; transition: background .25s, rotate .35s var(--ease); }
.faq__ic .i { width: 17px; height: 17px; }
.faq__item[open] .faq__ic { rotate: 180deg; background: var(--clay-t); color: var(--clay-ink); }
.faq__a { padding: 0 20px 18px; color: var(--ink-2); }
.faq__a p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq__item { interpolate-size: allow-keywords; }
  .faq__item::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
  .faq__item[open]::details-content { height: auto; }
}
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.faq-wrap__head .shead { margin-bottom: 18px; }

/* ---------------------------------------------------------------- visit band + week */
.visit { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.visit__txt h2 { margin-bottom: 18px; }
.visit__line { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; color: var(--ink-2); }
.visit__line .i { margin-top: 3px; color: var(--clay-ink); }
.visit__txt .cicons { margin: 20px 0 22px; }

.week { padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.week__t { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; font-weight: 500; }
.week__t .i { color: var(--clay-ink); }
.week__days { list-style: none; display: grid; gap: 9px; }
.week__day { display: grid; grid-template-columns: 44px minmax(0, 1fr) 56px; align-items: center; gap: 12px; font-size: .9rem; }
.week__day abbr { color: var(--muted); font-weight: 500; }
.week__bar { position: relative; height: 10px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.week__bar i { position: absolute; top: 0; bottom: 0; left: 37.5%; width: 37.5%; border-radius: 99px; background: var(--clay); transform-origin: left; }
.week__h { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.week__day.is-closed .week__bar i { display: none; }
.week__day.is-closed .week__h { color: var(--muted); }
.week__bar::before, .week__bar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(20, 34, 46, .12); }
.week__bar::before { left: 50%; }

/* contact icons */
.cicons { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.cicon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px 14px 14px 5px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: background .25s, color .25s, border-color .25s, translate .3s var(--ease);
}
.cicon .i { width: 21px; height: 21px; }
.cicon:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); translate: 0 -2px; }
.cicon--whatsapp:hover { background: #1F8F5A; border-color: #1F8F5A; }
.cicons--lg .cicon { width: 54px; height: 54px; }
.cicons--lg .cicon .i { width: 24px; height: 24px; }

/* ---------------------------------------------------------------- inner page head */
.phead { position: relative; padding: 20px 0 clamp(36px, 4.5vw, 60px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper-2), var(--paper)); overflow: hidden; overflow: clip; }
.phead::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%); mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.phead__in { position: relative; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: .86rem; color: var(--muted); margin-bottom: clamp(22px, 3vw, 36px); }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; margin: 0 10px; border-radius: 50%; background: var(--line-2); flex: none; }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-flex; }
.crumbs a:hover { color: var(--clay-ink); }
.crumbs .i { width: 17px; height: 17px; }
.crumbs [aria-current] { color: var(--ink); }
.phead__grid { display: grid; gap: 32px; align-items: end; }
.phead__grid--board { grid-template-columns: minmax(0, 1fr) auto; }
.phead__txt { max-width: 780px; min-width: 0; }
.phead h1 { margin-bottom: 22px; }
.answer { padding: 18px 20px; border-radius: var(--r); background: rgba(255, 255, 255, .75); border: 1px solid var(--line); }
.answer__label { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); }
.answer__label .i { width: 15px; height: 15px; }
.answer p { margin: 0; font-size: 1.04rem; color: var(--ink-2); }
.phead__meta { margin-top: 16px; }
.board {
  position: relative; display: grid; place-items: center; width: clamp(190px, 22vw, 250px); aspect-ratio: 1;
  border-radius: 28px 28px 28px 10px; background-color: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink);
}
.board .mi { width: 58%; height: auto; position: relative; z-index: 1; }
.board__plumb { position: absolute; left: 50%; top: 12px; bottom: 12px; border-left: 1.5px dashed rgba(196, 85, 47, .35); }
.board__cap { position: absolute; left: 12px; right: 12px; bottom: 12px; text-align: center; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.board .mi-plumb { display: none; }

/* ---------------------------------------------------------------- document layout (service, method, article) */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 64px); padding-block: clamp(36px, 4.5vw, 64px) clamp(56px, 6vw, 96px); align-items: start; }
.doc__main { min-width: 0; display: grid; gap: 18px; }
.doc__sticky { position: sticky; top: calc(var(--hdr) + 20px); display: grid; gap: 16px; }
.dsec { padding: clamp(22px, 2.6vw, 30px); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); scroll-margin-top: calc(var(--hdr) + 20px); }
.dsec__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.dsec__head h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); flex: 1 1 200px; }
.dsec--pro { background: linear-gradient(135deg, #FFF 0%, #FBF3EE 100%); border-color: #EBD5C9; }
.dsec--warn { background: var(--warn-t); border-color: #EBCBBD; }
.dsec--warn .badge { background: #fff; color: var(--warn); }
.dsec--faq { background: transparent; border: 0; padding: 0; }
.dsec--faq .faq__item { background: var(--card); }

.prose { color: var(--ink-2); }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); margin: 1.8em 0 .6em; color: var(--ink); scroll-margin-top: calc(var(--hdr) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.4em 0 .5em; }
.prose b, .prose strong { color: var(--ink); font-weight: 600; }
.prose ul:not([class]), .prose ol:not([class]) { padding-left: 1.2em; margin: 0 0 1em; }

.ticks { list-style: none; display: grid; gap: 10px; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 7px 7px 7px 2px; background: var(--clay-t);
}
.ticks li::after {
  content: ""; position: absolute; left: 5px; top: calc(.28em + 5px); width: 10px; height: 10px; background: var(--clay-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.flags { list-style: none; display: grid; gap: 10px; margin: 0 0 1em; }
.flags li { position: relative; padding-left: 32px; color: var(--ink); }
.flags li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1.5px solid #E2B3A1; }
.flags li::after { content: "!"; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; display: grid; place-items: center; font-size: .76rem; font-weight: 700; color: var(--warn); line-height: 20px; text-align: center; }
.nsteps { list-style: none; counter-reset: n; display: grid; gap: 12px; margin: 0 0 1em; }
.nsteps li { counter-increment: n; position: relative; padding-left: 44px; min-height: 30px; }
.nsteps li::before {
  content: counter(n); position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 10px 10px 10px 3px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: .86rem;
}
.nsteps--compact { gap: 8px; }
.tiles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.tiles li { padding: 13px 16px 13px 44px; border-radius: 14px; background: var(--paper); position: relative; color: var(--ink); font-weight: 500; font-size: .95rem; }
.tiles li::before { content: ""; position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 14px; height: 20px; border-radius: 6px; background: var(--clay); opacity: .85; box-shadow: 0 -8px 0 -3px var(--clay); }
.pgrid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 1em; }
.pgrid li { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--paper); }
.pgrid b { color: var(--ink); }
.pgrid span { font-size: .94rem; }
.callout { padding: 16px 18px; border-radius: 16px; background: var(--sage-t); color: var(--ink-2); margin: 0 0 1em; }
.callout p:last-child { margin-bottom: 0; }
.callout__t { font-weight: 600; color: var(--ink); margin-bottom: .35em; }
.callout--warn { background: var(--warn-t); }
.duo-note { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.tbl-wrap { margin: 0 0 1em; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; background: var(--card); }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl thead th { background: var(--paper); font-size: .84rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl tbody th { color: var(--ink); font-weight: 500; }

/* TOC with vertebra markers that fill as the reader passes each section */
.toc { padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.toc__t, .abox__t { margin: 0 0 12px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; display: grid; gap: 2px; position: relative; }
.toc ol::before { content: ""; position: absolute; left: 14px; top: 10px; bottom: 10px; border-left: 1.5px dashed var(--line-2); }
.toc a { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 8px 7px 4px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: .92rem; line-height: 1.35; }
.toc a:hover { background: var(--paper); color: var(--ink); }
.toc__v { width: 20px; height: 9px; flex: none; border-radius: 42% / 50%; background: var(--paper-3); position: relative; z-index: 1; transition: background .3s, translate .4s var(--spring); }
.toc a.is-past .toc__v { background: var(--ink); }
.toc a.is-current .toc__v { background: var(--clay); translate: 0 0; }
.toc a.is-current { color: var(--ink); font-weight: 500; }
.abox { padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.rel { list-style: none; display: grid; gap: 2px; }
.rel a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .94rem; }
.rel a:hover { background: var(--paper); color: var(--clay-ink); }
.rel .i { width: 18px; height: 18px; color: var(--clay-ink); }
.abox--visit .cicons { margin-top: 14px; }
.abox--visit .cicon { width: 42px; height: 42px; }
.visit__name { font-weight: 600; margin: 0 0 10px; }
.abox--visit .visit__line { font-size: .92rem; }

/* ---------------------------------------------------------------- article */
.ameta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0; font-size: .88rem; color: var(--muted); }
.ameta > span { display: inline-flex; align-items: center; gap: 7px; }
.ameta .i { width: 16px; height: 16px; }
.ameta a { color: var(--ink); text-decoration: none; font-weight: 500; }
.prose--article { font-size: 1.05rem; display: block; max-width: 760px; }
.prose--article > p, .prose--article > ul, .prose--article > ol, .prose--article > .callout, .prose--article > .duo-note, .prose--article > figure { margin-bottom: 1.1em; }
.sources { margin-top: 2.4em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.sources h2 { font-size: 1.1rem; margin: 0 0 .7em; }
.sources ol { padding-left: 1.2em; font-size: .88rem; color: var(--muted); display: grid; gap: 6px; }
.author { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.author__img img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.author__txt { display: grid; line-height: 1.35; }
.author__label { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.author__name { font-weight: 600; color: var(--ink); text-decoration: none; }
.author__role { font-size: .88rem; color: var(--muted); }
.readbar { position: sticky; top: var(--hdr); z-index: 40; display: flex; gap: 3px; height: 4px; padding: 0 3px; }
.readbar i { flex: 1; border-radius: 3px; background: transparent; transition: background .25s; }
.readbar i.is-on { background: var(--clay); }

/* WHO windows: range bars on a 0–18 month axis */
.range { margin: .4em 0 1.4em; padding: 20px 20px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.range__cap { font-size: .84rem; color: var(--muted); margin-bottom: 12px; }
.range__tbl { width: 100%; border-collapse: collapse; }
.range__tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.range__tbl th { width: 34%; padding: 8px 14px 8px 0; font-weight: 500; font-size: .92rem; color: var(--ink); text-align: left; vertical-align: middle; }
.range__tbl td { padding: 8px 0; vertical-align: middle; }
.range__tbl tr:hover th { color: var(--clay-ink); }
.range__track {
  position: relative; display: block; height: 12px; border-radius: 99px;
  background: repeating-linear-gradient(90deg, rgba(20, 34, 46, .1) 0 1px, transparent 1px calc(100% / 6)), var(--paper);
}
.range__bar { position: absolute; top: 1px; bottom: 1px; left: var(--l); width: var(--w); border-radius: 4px; background: var(--clay); transform-origin: left center; transition: scale .9s var(--ease); }
.range__tbl tr:nth-child(1) .range__bar { --l: 21.11%; --w: 30%; }
.range__tbl tr:nth-child(2) .range__bar { --l: 26.67%; --w: 36.67%; }
.range__tbl tr:nth-child(3) .range__bar { --l: 28.89%; --w: 46.11%; }
.range__tbl tr:nth-child(4) .range__bar { --l: 32.78%; --w: 43.33%; }
.range__tbl tr:nth-child(5) .range__bar { --l: 38.33%; --w: 55.56%; }
.range__tbl tr:nth-child(6) .range__bar { --l: 45.56%; --w: 52.22%; }
.range__tbl tr:nth-child(2) .range__bar { transition-delay: .08s; }
.range__tbl tr:nth-child(3) .range__bar { transition-delay: .16s; }
.range__tbl tr:nth-child(4) .range__bar { transition-delay: .24s; }
.range__tbl tr:nth-child(5) .range__bar { transition-delay: .32s; }
.range__tbl tr:nth-child(6) .range__bar { transition-delay: .4s; }
.range__val { display: block; margin-top: 4px; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.range__axis { display: flex; justify-content: space-between; margin-left: 34%; padding-top: 6px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.range__axis span:last-child::after { content: " ay"; }
.m-on .range:not(.is-drawn) .range__bar { scale: 0 1; }
.m-done .range .range__bar { scale: 1 1 !important; }

/* ---------------------------------------------------------------- about */
.about { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); padding-block: clamp(36px, 4.5vw, 64px) clamp(56px, 6vw, 96px); align-items: start; }
.about__sticky { position: sticky; top: calc(var(--hdr) + 20px); display: grid; gap: 16px; }
.about__photo { margin: 0; }
.about__main { display: grid; gap: clamp(36px, 4.5vw, 60px); min-width: 0; }
.about__sec h2 { margin-bottom: 18px; }
.about__sec .prose p { font-size: 1.05rem; }
.about__sec > .link-arrow { margin-top: 4px; }
.linklist { list-style: none; display: grid; gap: 8px; }
.linklist a {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  color: var(--ink-2); text-decoration: none; transition: border-color .25s, translate .35s var(--ease);
}
.linklist a > span:nth-child(2) { flex: 1; min-width: 0; }
.linklist a b { color: var(--ink); font-weight: 500; }
.linklist a > .i { width: 18px; height: 18px; color: var(--muted); flex: none; transition: translate .35s var(--ease), color .25s; }
.linklist a:hover { border-color: var(--line-2); translate: 4px 0; }
.linklist a:hover > .i { color: var(--clay-ink); translate: 3px 0; }
.linklist--plain a { background: var(--paper); border-color: transparent; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.principle { padding: 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.principle .badge { margin-bottom: 14px; }
.principle h3 { margin-bottom: 8px; }
.principle p { margin: 0; color: var(--muted); font-size: .96rem; }
.about__share { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; padding: 24px; border-radius: var(--r-lg); background: var(--paper-2); }
.about__share-img { margin: 0; }
.about__share-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.about__share-img figcaption { margin-top: 8px; font-size: .8rem; color: var(--muted); }
.about__share h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); margin-bottom: 12px; }
.about__links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; }

/* education path: each stage is a vertebra on the spine line */
.path { list-style: none; position: relative; display: grid; gap: 18px; padding: clamp(36px, 4.5vw, 64px) 0 clamp(56px, 6vw, 96px) 58px; }
.path::before { content: ""; position: absolute; left: 22px; top: clamp(36px, 4.5vw, 64px); bottom: clamp(56px, 6vw, 96px); border-left: 1.5px dashed rgba(196, 85, 47, .45); }
.path__item { position: relative; }
.path__vb {
  position: absolute; left: -50px; top: 26px; width: 28px; height: 13px; border-radius: 42% / 50%; background: var(--ink);
  box-shadow: 0 0 0 5px var(--paper); translate: var(--px, 0px) 0; transition: translate .9s var(--spring) .15s;
}
.path__vb::before { content: ""; position: absolute; left: -30%; right: -30%; top: 30%; height: 36%; border-radius: 99px; background: inherit; opacity: .26; }
.path__item:nth-child(2) .path__vb { --px: 6px; }
.path__item:nth-child(3) .path__vb { --px: -5px; }
.path__item:nth-child(4) .path__vb { --px: 7px; background: var(--clay); }
.path__item:nth-child(5) .path__vb { --px: -4px; }
.path__item.is-in .path__vb, .m-done .path__vb { translate: 0 0; }
.path__item--now .path__card { border-color: #EBD5C9; background: linear-gradient(135deg, #FFF 0%, #FBF3EE 100%); }
.path__card { padding: clamp(22px, 2.6vw, 30px); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.path__card h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); margin-bottom: 8px; }
.path__sub { color: var(--clay-ink); font-weight: 500; margin: 0; }
.path__card p { color: var(--ink-2); }
.path__addr { display: flex; gap: 8px; margin: 10px 0 0; font-size: .92rem; }
.path__addr .i { color: var(--clay-ink); margin-top: 2px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 99px; background: var(--paper); font-size: .92rem; color: var(--ink); }

/* ---------------------------------------------------------------- hubs */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.role { padding: 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.role .badge { margin-bottom: 14px; }
.role p { margin: 0; color: var(--ink-2); }
.conds { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cond {
  display: grid; grid-template-columns: 34px 34px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px;
  border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; height: 100%;
  transition: border-color .25s, box-shadow .25s;
}
.cond:hover { border-color: var(--line-2); box-shadow: var(--shadow); color: var(--ink); }
.cond__letter { font-size: 1.6rem; font-weight: 300; color: var(--clay-ink); text-align: center; line-height: 1; }
.cond__txt { display: grid; gap: 2px; min-width: 0; }
.cond__n { font-weight: 500; }
.cond__d { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.cond__go { width: 18px; height: 18px; color: var(--muted); transition: translate .3s var(--ease); }
.cond:hover .cond__go { translate: 3px 0; color: var(--clay-ink); }

/* trainings */
.trainings { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; padding-block: clamp(36px, 4.5vw, 64px) clamp(56px, 6vw, 96px); align-items: start; }
.training { padding: clamp(22px, 2.6vw, 30px); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); display: grid; gap: 18px; }
.training--main { grid-row: span 3; background: linear-gradient(160deg, #FFF 0%, #FBF3EE 100%); border-color: #EBD5C9; }
.training__head { display: flex; gap: 14px; align-items: flex-start; }
.training__head h2 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
.training__type { margin: 2px 0 6px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--clay-ink); font-weight: 500; }
.training__sub { font-size: 1rem; margin: 0; }
.training .ticks, .training .nsteps { margin: 0; }
.training__more { margin: 0; }
.training--contact { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.training--contact h2 { color: var(--paper); font-size: 1.3rem; }
.training--contact p { margin: 0; color: #C3CAD0; }
.training--contact .badge { background: rgba(245, 241, 234, .1); color: #F0B79D; }
.training--contact .cicon { background: rgba(245, 241, 234, .06); border-color: rgba(245, 241, 234, .2); color: var(--paper); }
.training--contact .cicon:hover { background: var(--paper); color: var(--ink); }

/* events */
.events { display: grid; gap: 16px; padding-block: clamp(36px, 4.5vw, 64px) clamp(56px, 6vw, 96px); }
.event { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 24px; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.event--feature { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; }
.event__fig { margin: 0; }
.event__fig img { width: 100%; border-radius: 18px; }
.event__fig figcaption { margin-top: 8px; font-size: .8rem; color: var(--muted); }
.event__body h2 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.65rem); margin-bottom: 14px; }
.event__body p { color: var(--ink-2); }
.event__date { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .88rem; color: var(--clay-ink); font-weight: 500; }
.event__date .i { width: 17px; height: 17px; }
.event__sub { font-size: 1rem; margin: 6px 0 10px; }
.event__role { margin: 14px 0 0; }
.event__src { margin: 10px 0 0; font-size: .9rem; }
.event__src a { display: inline-flex; align-items: center; gap: 6px; }
.event__src .i { width: 15px; height: 15px; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding-block: clamp(36px, 4.5vw, 64px) clamp(56px, 6vw, 96px); align-items: start; }
.contact__main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ccard { padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.ccard--wide { grid-column: 1 / -1; }
.ccard h2 { font-size: 1.2rem; }
.ccard__sub { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 6px; }
.ccard__line { display: flex; gap: 10px; margin: 0; color: var(--ink-2); }
.ccard__line .i { color: var(--clay-ink); margin-top: 3px; }
.ccard__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.ccard__links a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .92rem; }
.ccard__links a:hover { background: var(--clay-t); color: var(--clay-ink); }
.ccard__links .i { width: 17px; height: 17px; }
.ccard__note { display: flex; gap: 8px; align-items: center; margin: 0; color: var(--muted); font-size: .9rem; }
.ccard--wide .week { padding: 0; border: 0; }
.ccard .nsteps { margin: 0; }
.contact__map { position: sticky; top: calc(var(--hdr) + 20px); }
.mapframe { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); aspect-ratio: 4 / 5; width: 100%; }
.mapframe iframe { display: block; width: 100%; height: 100%; border: 0; }

/* legal, sitemap, search, booking, 404 */
.legal { padding-block: clamp(36px, 4.5vw, 56px) clamp(56px, 6vw, 96px); }
.legal h2 { font-size: 1.3rem; margin: 1.8em 0 .6em; }
.legal__date { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: .9rem; }
.legal__date .i { width: 17px; height: 17px; }
.smap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-block: clamp(36px, 4.5vw, 56px) clamp(56px, 6vw, 96px); align-items: start; }
.smap__group { padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.smap__group h2 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 14px; }
.smap__group ul { list-style: none; display: grid; gap: 4px; }
.smap__group a { display: block; padding: 6px 0; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.smap__group a:hover { color: var(--clay-ink); }
.srch { padding-block: clamp(32px, 4vw, 48px) clamp(56px, 6vw, 96px); }
.srch__form { display: flex; gap: 10px; }
.srch__form .search__field { flex: 1; min-width: 0; }
.search__field input { width: 100%; }
.srch__btn { padding: 0 20px; border-radius: 14px; border: 1px solid var(--ink); background: var(--card); color: var(--ink); font-weight: 500; }
.srch__btn:hover { background: var(--ink); color: var(--paper); }
.srch__count { margin: 22px 0 14px; color: var(--muted); }
.srch__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.results { list-style: none; display: grid; gap: 10px; }
.result { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; }
.result:hover { border-color: var(--line-2); color: var(--ink-2); }
.result__t { font-weight: 500; color: var(--ink); }
.result__u { font-size: .8rem; color: var(--clay-ink); }
.result__x { font-size: .92rem; }
.book-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); padding-block: clamp(36px, 4.5vw, 56px) clamp(56px, 6vw, 96px); align-items: start; }
.book-page__form { padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.nf { padding: clamp(48px, 7vw, 96px) 0; }
.nf__in { max-width: 640px; text-align: center; display: grid; justify-items: center; }
.nf__art { width: 120px; height: 120px; margin-bottom: 18px; color: var(--ink); }
.nf h1 { margin-bottom: 14px; }
.nf p { color: var(--muted); }
.nf .srch__form { width: 100%; margin: 10px 0 20px; }
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }
.faq-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); padding-block: clamp(36px, 4.5vw, 56px) clamp(56px, 6vw, 96px); align-items: start; }
.faq-page__aside { display: grid; gap: 16px; position: sticky; top: calc(var(--hdr) + 20px); }

/* ---------------------------------------------------------------- dialogs */
.dlg { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
.dlg:not([open]) { display: none !important; }
.dlg::backdrop { background: rgba(20, 34, 46, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dlg__panel { background: var(--paper); border-radius: 24px; box-shadow: var(--shadow-lg); }
.is-locked, .is-locked body { overflow: hidden; }

.dlg--drawer { margin: 0 0 0 auto; height: 100dvh; width: min(420px, 100vw); }
.dlg--drawer .drawer { height: 100%; border-radius: 24px 0 0 24px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer__nav { overflow-y: auto; min-height: 0; padding: 12px 14px; display: grid; align-content: start; gap: 2px; overscroll-behavior: contain; }
.drawer__link, .drawer__group summary {
  display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 14px; color: var(--ink); text-decoration: none; font-size: 1.05rem; cursor: pointer; list-style: none;
}
.drawer__group summary::-webkit-details-marker { display: none; }
.drawer__link .i { width: 20px; height: 20px; color: var(--clay-ink); }
.drawer__link:hover, .drawer__group summary:hover { background: var(--paper-2); }
.drawer__link[aria-current] { background: var(--card); font-weight: 500; }
.drawer__group summary { justify-content: space-between; font-weight: 500; }
.drawer__group summary .i { width: 18px; height: 18px; transition: rotate .3s var(--ease); }
.drawer__group[open] summary .i { rotate: 180deg; }
.drawer__group ul { list-style: none; display: grid; gap: 2px; padding: 2px 0 8px 8px; }
.drawer__sublink { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-size: .96rem; }
.drawer__sublink .badge { width: 30px; height: 30px; }
.drawer__sublink:hover, .drawer__sublink[aria-current] { background: var(--card); color: var(--ink); }
.drawer__foot { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 14px; }
.drawer__cta:empty { display: none; }
.drawer__cta .btn-cta { width: 100%; }
.drawer__foot .cicons { justify-content: center; }

.dlg--search { margin: 10vh auto auto; width: min(680px, calc(100vw - 24px)); }
.search { padding: 20px; display: grid; gap: 16px; max-height: 80vh; grid-template-rows: auto auto auto minmax(0, 1fr); }
.search__head { display: flex; align-items: center; justify-content: space-between; }
.search__t { font-size: 1.15rem; }
.search__field { display: flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 54px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line); }
.search__field:focus-within { border-color: var(--ink); }
.search__field .i { color: var(--muted); }
.search__field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1.05rem; height: 50px; }
.search__field input::-webkit-search-cancel-button { display: none; }
.search__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.search__hint { font-size: .86rem; color: var(--muted); margin-right: 2px; }
.search__results { overflow-y: auto; min-height: 0; display: grid; gap: 8px; align-content: start; overscroll-behavior: contain; }
.search__results:empty { display: none; }
.search__empty { color: var(--muted); padding: 8px 2px; margin: 0; }

.dlg--book { margin: auto; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
.book { padding: 22px; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.book__head { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 18px; }
.book__img img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.book__kicker { margin: 0 0 2px; font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.book h2 { font-size: 1.3rem; }

/* form */
.bform { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: .94rem; }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card);
  font-size: 1rem; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); }
.field.is-bad input, .field.is-bad .check__box { border-color: var(--warn); }
.field__err { margin: 0; font-size: .86rem; color: var(--warn); }
.field__hint { margin: 0; font-size: .84rem; color: var(--muted); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; }
.select .i { position: absolute; right: 14px; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: .9rem !important; color: var(--ink-2); cursor: pointer; line-height: 1.5; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 8px 8px 8px 3px; border: 1.5px solid var(--line-2); background: var(--card); color: transparent; transition: background .2s, border-color .2s, color .2s; }
.check__box .i { width: 16px; height: 16px; stroke-width: 2.6; }
.check input:checked + .check__box { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.check input:focus-visible + .check__box { outline: 2.5px solid var(--clay); outline-offset: 2px; }
.bform__send {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 0;
  border-radius: 14px 14px 14px 5px; background: var(--clay-btn); color: #fff; font-weight: 500; font-size: 1.02rem;
  transition: background .2s;
}
.bform__send:hover { background: var(--clay-btn-h); }
.bform__send .i { width: 20px; height: 20px; }
.bform__note { display: flex; gap: 8px; margin: 0; font-size: .84rem; color: var(--muted); }
.bform__note .i { width: 16px; height: 16px; margin-top: 2px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #C3CAD0; padding-top: clamp(48px, 6vw, 80px); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.15fr); gap: 32px; padding-bottom: 40px; }
.brand--foot { color: var(--paper); }
.brand--foot .bm-v { fill: var(--paper); }
.brand--foot .brand__sub { color: #9AA5AF; }
.footer__about { margin: 16px 0 20px; font-size: .94rem; max-width: 34ch; }
.cicons--foot { gap: 8px; }
.cicons--foot .cicon { background: rgba(245, 241, 234, .06); border-color: rgba(245, 241, 234, .16); color: var(--paper); width: 40px; height: 40px; }
.cicons--foot .cicon .i { width: 19px; height: 19px; }
.cicons--foot .cicon:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.site-footer h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #F0B79D; font-weight: 600; margin-bottom: 16px; }
.footer__col ul { list-style: none; display: grid; gap: 8px; }
.footer__col a { color: #D3D9DE; text-decoration: none; font-size: .93rem; line-height: 1.4; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__clinic { color: var(--paper); font-weight: 500; margin: 0 0 10px; }
.footer__line { display: flex; gap: 10px; font-size: .92rem; margin: 0 0 10px; }
.footer__line .i { width: 18px; height: 18px; margin-top: 2px; color: #F0B79D; }
.footer__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 22px 0 28px; border-top: 1px solid rgba(245, 241, 234, .12); font-size: .86rem; }
.footer__bar p { margin: 0; }
.footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal a { color: #D3D9DE; text-decoration: none; }
.footer__legal a:hover { color: #fff; text-decoration: underline; }
.footer__otx { margin-left: auto !important; }
.footer__otx a { color: var(--paper); font-weight: 600; text-decoration: none; }
.footer__otx a:hover { color: #F0B79D; }

/* ---------------------------------------------------------------- reveal: "elongation" — blocks rise and extend upward */
.m-on .rv:not(.is-in) { opacity: 0; }
.m-on .rv.is-in { animation: rv-in .7s var(--ease) backwards; animation-delay: var(--sd, 0s); transform-origin: 50% 100%; }
@keyframes rv-in {
  from { opacity: 0; translate: 0 22px; scale: 1 .96; }
  to { opacity: 1; translate: 0 0; scale: 1 1; }
}
.m-done .rv { opacity: 1 !important; animation: none !important; }
.m-on .week:not(.is-in) .week__bar i { scale: 0 1; }
.week .week__bar i { transition: scale .8s var(--ease); }
.week__day:nth-child(2) .week__bar i { transition-delay: .06s; }
.week__day:nth-child(3) .week__bar i { transition-delay: .12s; }
.week__day:nth-child(4) .week__bar i { transition-delay: .18s; }
.week__day:nth-child(5) .week__bar i { transition-delay: .24s; }
.week__day:nth-child(6) .week__bar i { transition-delay: .3s; }
.m-done .week__bar i { scale: 1 1 !important; }

/* footsteps walk the rehabilitation path */
.m-on .gait:not(.is-walk) .gait__fp { opacity: 0; }
.gait__fp { transition: opacity .3s var(--ease); }
.gait.is-walk .gait__step:nth-child(1) g:nth-child(1) .gait__fp { transition-delay: .1s; }
.gait.is-walk .gait__step:nth-child(1) g:nth-child(2) .gait__fp { transition-delay: .3s; }
.gait.is-walk .gait__step:nth-child(2) g:nth-child(1) .gait__fp { transition-delay: .5s; }
.gait.is-walk .gait__step:nth-child(2) g:nth-child(2) .gait__fp { transition-delay: .7s; }
.gait.is-walk .gait__step:nth-child(3) g:nth-child(1) .gait__fp { transition-delay: .9s; }
.gait.is-walk .gait__step:nth-child(3) g:nth-child(2) .gait__fp { transition-delay: 1.1s; }
.gait.is-walk .gait__step:nth-child(4) g:nth-child(1) .gait__fp { transition-delay: 1.3s; }
.gait.is-walk .gait__step:nth-child(4) g:nth-child(2) .gait__fp { transition-delay: 1.5s; }
.m-done .gait__fp { opacity: .85 !important; }

@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1239.98px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .intro__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .intro__facts { grid-column: 1 / -1; }
  .intro__facts .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
  .intro__facts .facts__row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; border-bottom: 0; }
}

@media (max-width: 1099.98px) {
  .nav { display: none; }
  .iconbtn--menu { display: inline-grid; }
  .hdr__actions { margin-left: auto; }
  .doc, .faq-page, .book-page { grid-template-columns: minmax(0, 1fr); }
  .doc__aside .toc { display: none; }
  .doc__sticky, .faq-page__aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 280px minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc--lg { grid-column: 1 / -1; grid-row: auto; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); grid-template-rows: auto auto; }
  .svc--lg .svc__art { grid-row: 1 / 3; min-height: 200px; }
  .svc--lg .svc__go { grid-column: 2; }
  .svc--wide { grid-column: auto; }
  .gait { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gait::before { display: none; }
  .mgrid { grid-template-columns: minmax(0, 1fr); }
  .mcard { grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: auto; column-gap: 20px; }
  .mcard__art { grid-row: 1 / 6; margin: 0; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .trainings { grid-template-columns: minmax(0, 1fr); }
  .training--main { grid-row: auto; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact__map { position: static; }
  .mapframe { aspect-ratio: 16 / 10; }
  .smap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .conds { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 859.98px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .about__sticky { position: static; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); align-items: start; }
  .phead__grid--board { grid-template-columns: minmax(0, 1fr); }
  .phead__board { display: none; }
  .intro__grid { grid-template-columns: minmax(0, 1fr); }
  .intro__photo { max-width: 320px; margin-inline: auto; }
  .intro__facts .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roles { grid-template-columns: minmax(0, 1fr); }
  .event, .event--feature { grid-template-columns: minmax(0, 1fr); }
  .event__icon { display: none; }
  .event--feature .event__fig { max-width: 340px; }
  .visit__grid { grid-template-columns: minmax(0, 1fr); }
  .sgrid { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* phones: the call to action becomes a fixed bar at the bottom */
@media (max-width: 767.98px) {
  :root { --hdr: 64px; --dock: 84px; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 1.02rem; }
  .brand__sub { font-size: .72rem; }
  .cta-home {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom));
    background: rgba(245, 241, 234, .94); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .cta-home .btn-cta { width: 100%; min-height: 52px; font-size: 1.02rem; }
  .p-qebul .bform__send { position: sticky; bottom: 12px; box-shadow: 0 12px 28px -12px rgba(180, 69, 42, .9); }

  .hero__h1 { grid-template-columns: minmax(0, 1fr); grid-template-areas: "role" "spine" "first" "last"; font-size: clamp(2.5rem, 11vw, 3.1rem); line-height: 1.02; }
  .hero__first, .hero__last { justify-self: center; text-align: center; }
  .spine { font-size: 10px; padding: 6px 0 26px; margin-bottom: 12px; }
  .vb__l::after { font-size: 10px; }
  .hero__facts { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .hero__facts li { border-radius: 14px; }
  .bento, .agrid, .gait, .principles, .pgrid, .tiles, .contact__main, .smap, .duo-note { grid-template-columns: minmax(0, 1fr); }
  .svc { grid-template-columns: 64px minmax(0, 1fr); padding: 20px; }
  .svc__art { width: 64px; height: 64px; padding: 10px; }
  .svc.svc--lg { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .svc.svc--lg .svc__art { grid-row: auto; width: 100%; height: auto; min-height: 190px; padding: 22px; }
  .svc.svc--lg .svc__go { grid-column: 1; }
  .mcard { grid-template-columns: minmax(0, 1fr); }
  .mcard__art { grid-row: auto; margin-bottom: 10px; }
  .duo__card--photo { grid-template-columns: minmax(0, 1fr); }
  .duo__fig { max-width: 220px; }
  .doc__sticky, .faq-page__aside { grid-template-columns: minmax(0, 1fr); }
  .about__sticky { grid-template-columns: minmax(0, 1fr); }
  .about__photo { max-width: 300px; }
  .about__share { grid-template-columns: minmax(0, 1fr); }
  .about__share-img { max-width: 220px; }
  .facts__row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .intro__facts .facts { grid-template-columns: minmax(0, 1fr); }
  .path { padding-left: 44px; }
  .path::before { left: 15px; }
  .path__vb { left: -41px; width: 24px; height: 11px; }
  .cond { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .cond__letter { display: none; }
  .ccard--wide { grid-column: auto; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer__otx { margin-left: 0 !important; }
  .readbar { top: var(--hdr); }
  .dlg--search { margin-top: 12px; }
  .book__head { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .book__img img { width: 48px; height: 48px; }
  .range__tbl th { width: auto; display: block; padding: 10px 0 4px; }
  .range__tbl td { display: block; padding: 0 0 6px; }
  .range__tbl tr { display: block; }
  .range__axis { margin-left: 0; }
  .tbl--compare thead { display: none; }
  .tbl--compare, .tbl--compare tbody, .tbl--compare tr, .tbl--compare th, .tbl--compare td { display: block; width: 100%; }
  .tbl--compare tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .tbl--compare tbody tr:last-child { border-bottom: 0; }
  .tbl--compare th, .tbl--compare td { border: 0; padding: 6px 16px; }
  .tbl--compare td::before { content: attr(data-label); display: block; font-size: .78rem; color: var(--muted); font-weight: 500; }
  .tbl--kv thead { display: none; }
  .tbl--kv, .tbl--kv tbody, .tbl--kv tr, .tbl--kv th, .tbl--kv td { display: block; width: 100%; }
  .tbl--kv tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .tbl--kv tbody tr:last-child { border-bottom: 0; }
  .tbl--kv th, .tbl--kv td { border: 0; padding: 3px 16px; }
  .srch__btn { padding: 0 16px; }
  .tbl--three thead { display: none; }
  .tbl--three, .tbl--three tbody, .tbl--three tr, .tbl--three th, .tbl--three td { display: block; width: 100%; }
  .tbl--three tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .tbl--three th, .tbl--three td { border: 0; padding: 4px 16px; }
  .tbl--three td::before { content: attr(data-label); display: block; font-size: .78rem; color: var(--muted); font-weight: 500; }
}

@media (max-width: 420px) {
  .brand__sub { display: none; }
  .hdr { gap: 10px; }
  .iconbtn { width: 42px; height: 42px; }
  .spine { font-size: 9px; }
}
