/* ==========================================================================
   Остеопат и иглотерапевт — лендинг
   Serena rhythm: giant condensed serif hero on soft light, bold sans headings,
   white sections alternating with warm light bands, one clay accent.
   ========================================================================== */

:root {
  --white: #fffcf8;
  --sand: #f3eae0;
  --card: #f6efe7;
  --ink: #2a211c;
  --ink-hero: rgba(42, 33, 28, 0.8);
  --muted: #6f6057;
  --line: rgba(42, 33, 28, 0.12);

  --clay: #ad5f45;
  --clay-hover: #8f4a33;
  --clay-text: #99513a;
  --clay-soft: #c06f52;
  --clay-tint: #f4dfd3;
  --on-clay: #ffffff;
  --night: #2a211c;
  --night-ink: #f3eae0;
  --night-soft: #bfb0a5;
  --night-accent: #e09a7e;

  --serif: "Noto Serif Display", "Georgia", serif;
  --sans: "Golos Text", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(88px, 5rem + 4vw, 136px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  scrollbar-color: var(--clay-soft) var(--white);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--clay-tint); color: var(--ink); }

img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 10px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--clay); color: var(--on-clay); text-decoration: none;
}
.skip:focus { top: 12px; }

/* Warm light band: the page's material (generated texture, see assets/img/light.jpg) */
.band {
  /* darker text tokens: keep AA on the deepest part of the light texture */
  --muted: #574a42;
  --clay-text: #7d412b;
  background-color: var(--sand);
  background-image: url("../img/light.jpg");
  background-image: image-set(url("../img/light.webp") type("image/webp"), url("../img/light.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
}

/* ---------- Type ---------- */
.h-xl {
  font-weight: 600;
  font-size: clamp(2.125rem, 1.4rem + 2.4vw, 3.45rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h-lg {
  font-weight: 600;
  font-size: clamp(1.875rem, 1.4rem + 1.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.sub {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: balance;
}

.center-head {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-width: 720px; margin-inline: auto;
  text-align: center;
}
.center-head .btn { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px;
  padding: 6px 6px 6px 24px;
  border-radius: 999px;
  background: var(--clay);
  color: var(--on-clay);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn__dot {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--on-clay);
  color: var(--clay);
  transition: transform 260ms var(--ease-out);
}
.btn__dot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--clay-hover); }
  .btn:hover .btn__dot { transform: translateX(3px); }
}

.round {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.round:active { transform: scale(0.94); }
.round:disabled { opacity: 0.4; cursor: default; transform: none; }
@media (hover: hover) and (pointer: fine) { .round:hover { background: var(--clay-tint); } }

/* ---------- Floating top controls ---------- */
.top {
  position: fixed; top: 16px; left: 16px; right: 16px; z-index: 46;
  display: flex; justify-content: space-between; align-items: flex-start;
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.top__menu { position: relative; }
/* without JavaScript the menu can't open; the footer keeps the navigation */
html:not(.js) .top__menu { display: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0; border-radius: 12px;
  background: var(--white);
  color: var(--clay-text);
  font-size: 0.9375rem; font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px -8px rgba(42, 33, 28, 0.22); /* taste-skill-ignore: floats over the page */
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.pill svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.pill:active { transform: scale(0.97); }
.pill--menu { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .pill--menu:hover { background: var(--on-clay); }
}

.top { align-items: center; justify-content: flex-end; }
.top__menu .pill { min-height: 48px; }

.menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  display: grid; min-width: 260px;
  max-width: calc(100vw - 24px);
  padding: 8px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 18px 40px -16px rgba(42, 33, 28, 0.3); /* taste-skill-ignore: open menu floats */
  transform-origin: top right;
  /* closed: quick, quiet exit */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.96);
  pointer-events: none;
  transition: opacity 160ms ease, transform 200ms var(--ease-out), visibility 0s linear 200ms;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity 220ms ease, transform 360ms var(--ease-out), visibility 0s;
}
/* items arrive one after another, leave together */
.menu a {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 120ms ease, transform 160ms var(--ease-out), background-color 160ms ease;
}
.menu.is-open a {
  opacity: 1;
  transform: none;
  transition: opacity 260ms ease calc(var(--i, 0) * 28ms + 40ms), transform 380ms var(--ease-out) calc(var(--i, 0) * 28ms + 40ms), background-color 160ms ease;
}

/* burger turns into a cross */
.burger path { transform-box: fill-box; transform-origin: center; transition: transform 320ms var(--ease-out); }
[aria-expanded="true"] .burger__a { transform: translateY(4px) rotate(45deg); }
[aria-expanded="true"] .burger__b { transform: translateY(-4px) rotate(-45deg); }

.menu a {
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1rem;
}
.menu a:hover, .menu a:focus-visible { background: var(--card); }
.menu .menu__book { margin-top: 6px; background: var(--clay); color: var(--on-clay); text-align: center; font-weight: 500; }
.menu .menu__book:hover, .menu .menu__book:focus-visible { background: var(--clay-hover); }

/* Doctor byline: sits in the hero, docks top-left on scroll (main.js) */
.byline-slot { margin-top: 32px; display: flex; justify-content: center; }
.byline {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 24px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.78);
  text-decoration: none;
  text-align: left;
  transition: background-color 200ms ease, box-shadow 300ms ease;
}
@media (hover: hover) and (pointer: fine) { .byline:hover { background: var(--white); } }
.byline__photo {
  display: grid; place-items: center; flex: none;
  overflow: hidden;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--clay-tint) center / cover;
  color: var(--clay);
  font-family: var(--serif);
  font-stretch: 62.5%;
  font-size: 1.875rem;
  line-height: 1;
}
.byline__photo img { width: 100%; height: 100%; object-fit: cover; }
.byline__text { display: flex; flex-direction: column; gap: 3px; }
.byline__name {
  font-family: var(--serif);
  font-stretch: 62.5%;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ink);
}
.byline__role { font-size: 0.875rem; line-height: 1.35; color: var(--clay-text); }
.byline { max-width: 100%; }
.byline.is-docked .byline__name, .byline.is-docked .byline__role { white-space: nowrap; }

.byline.is-docked {
  position: fixed; top: 16px; left: 16px; z-index: 47;
  gap: 10px;
  padding: 6px 18px 6px 6px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 6px 20px -8px rgba(42, 33, 28, 0.22); /* taste-skill-ignore: floats over the page */
}
.byline.is-docked .byline__photo { width: 44px; height: 44px; font-size: 1.5rem; }
.byline.is-docked .byline__name { font-size: 1.375rem; }
.byline.is-docked .byline__role { font-size: 0.8125rem; }

/* ---------- Hero ---------- */
.hero {
  display: grid; place-items: center;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 112px 88px;
  text-align: center;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-stretch: 62.5%;
  font-size: clamp(2.875rem, 1.6rem + 7.4vw, 8rem);
  line-height: 1.06;
  letter-spacing: -0.005em;
  color: var(--ink-hero);
  max-width: 7.2em;
  text-wrap: balance;
}
.hero__lead {
  margin-top: 28px;
  max-width: 23em;
  font-size: clamp(1.1875rem, 0.95rem + 1vw, 1.875rem);
  line-height: 1.4;
  color: var(--muted);
  text-wrap: balance;
}
.hero .btn { margin-top: 24px; }
.hero__call { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); }
.hero__call a { color: var(--ink); font-weight: 500; text-decoration-color: rgba(42, 33, 28, 0.3); white-space: nowrap; }

/* ---------- Intro ---------- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-block: var(--section) clamp(64px, 6vw, 96px);
}
.intro__side { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.intro__side p { font-size: 1.125rem; color: var(--muted); max-width: 30em; }

/* ---------- Statement ---------- */
.statement { padding-block: clamp(32px, 4vw, 64px) var(--section); }
.statement__by {
  margin-top: 24px;
  text-align: center;
  color: var(--clay-text);
  font-weight: 500;
}
.statement blockquote p {
  max-width: 21em;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.875rem);
  line-height: 1.38;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ---------- Doctor ---------- */
.doctor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-bottom: var(--section);
}
.doctor__role { margin-top: 12px; font-size: 1.125rem; color: var(--clay-text); font-weight: 500; }
.doctor__text > p:not(.doctor__role) { margin-top: 18px; color: var(--muted); max-width: 34em; }
.doctor__text > .doctor__role + p { margin-top: 28px; }

.doctor__photo picture, .bento__photo picture { display: contents; }
.doctor__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 24px;
  background: var(--card);
}

.ph {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--sand) url("../img/light-sm.jpg") 30% center / cover;
  background-image: image-set(url("../img/light-sm.webp") type("image/webp"), url("../img/light-sm.jpg") type("image/jpeg"));
}
.ph__label {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Method ---------- */
.method { padding-block: var(--section); }
.steps {
  counter-reset: step;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(56px, 6vw, 88px);
  text-align: center;
}
.steps::before {
  content: "";
  position: absolute; left: 6%; right: 6%; top: 41px;
  height: 1px; /* taste-skill-ignore: Serena timeline track */
  background: rgba(173, 95, 69, 0.4);
}
.steps li { position: relative; counter-increment: step; padding-top: 64px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  font-size: 1rem; font-weight: 500; color: var(--clay-text);
}
.steps li::after {
  content: "";
  position: absolute; top: 37px; left: 50%;
  width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%;
  background: var(--clay);
}
.steps h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.3; color: var(--clay-text); letter-spacing: -0.01em; }
.steps p { margin-top: 10px; font-size: 1rem; line-height: 1.55; color: var(--muted); }

/* ---------- Trust bento ---------- */
.trust { padding-block: var(--section); }
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(240px, 22vw, 320px);
  gap: 20px;
  margin-top: clamp(48px, 5vw, 72px);
}
.bento__text {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 24px;
  background: var(--sand) url("../img/light-sm.jpg") center / cover;
  background-image: image-set(url("../img/light-sm.webp") type("image/webp"), url("../img/light-sm.jpg") type("image/jpeg"));
}
.bento__text--a { grid-column: span 2; background-position: 20% 30%; }
.bento__photo {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
}
.bento__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 41%;
  transition: transform 700ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .bento__photo:hover img { transform: scale(1.03); } }
.bento__photo figcaption {
  position: absolute; right: 16px; top: 16px;
  max-width: calc(100% - 32px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.92);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
}
.bento__text--b { grid-column: span 2; background-position: 80% 60%; }
.bento__big {
  max-width: 14em;
  font-family: var(--serif);
  font-stretch: 62.5%;
  font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.5rem);
  line-height: 1.05;
  color: var(--ink-hero);
  text-wrap: balance;
}
.bento__text p:not(.bento__big) { color: var(--muted); font-size: 1.0625rem; }
.bento__stat {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 6px;
  padding: 24px;
  border-radius: 24px;
  background: var(--clay);
  color: var(--on-clay);
  text-align: center;
}
.bento__num { font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.bento__stat p:not(.bento__num) { font-size: 1.0625rem; }

/* ---------- Approach ---------- */
.approach {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  padding-bottom: var(--section);
}
.approach__head p { margin-top: 18px; color: var(--muted); font-size: 1.125rem; max-width: 24em; }
.approach__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(24px, 4vw, 56px);
}
.approach__grid dt { font-size: 1.25rem; font-weight: 600; color: var(--clay-text); letter-spacing: -0.01em; }
.approach__grid dd { margin-top: 8px; color: var(--muted); font-size: 1rem; line-height: 1.6; }

/* ---------- Focus ---------- */
.focus { padding-block: var(--section); }
.focus__list {
  display: grid; gap: 16px;
  max-width: 780px;
  margin: clamp(48px, 5vw, 64px) auto 0;
}
.focus__list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
  padding: 26px 28px;
  border-radius: 20px;
  background: var(--white);
}
.focus__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--clay-tint);
  color: var(--clay);
}
.focus__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.focus__list h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.35; }
.focus__list p { margin-top: 6px; color: var(--muted); font-size: 1rem; line-height: 1.6; }

/* ---------- Prices ---------- */
.prices { padding-block: var(--section); }
.price-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(48px, 5vw, 64px);
}
.price-card {
  display: flex; flex-direction: column;
  padding: 30px 26px 26px;
  border-radius: 24px;
  background: var(--card);
}
.price-card h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.price-card__for { margin-top: 4px; color: var(--muted); font-size: 0.9375rem; }
.price-card__sum {
  margin-top: 28px;
  font-size: clamp(2rem, 1.6rem + 1vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.price-card__note { margin-top: 14px; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; flex: 1; }
.price-card__btn {
  display: grid; place-items: center;
  min-height: 48px;
  margin-top: 24px;
  border-radius: 999px;
  background: var(--white);
  color: var(--clay-text);
  font-weight: 500;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.price-card__btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .price-card__btn:hover { background: var(--clay); color: var(--on-clay); }
}
.price-card--accent { background: var(--clay); color: var(--on-clay); }
.price-card--accent .price-card__for,
.price-card--accent .price-card__note { color: var(--on-clay); }
.price-card--accent .price-card__btn { background: var(--on-clay); color: var(--clay-text); }
@media (hover: hover) and (pointer: fine) {
  .price-card--accent .price-card__btn:hover { background: var(--clay-tint); color: var(--clay-hover); }
}

/* ---------- Certificates ---------- */
.edu { padding-bottom: var(--section); }
.edu__box {
  border-radius: 28px;
  background: var(--card);
  transition: background-color 200ms ease;
}
.edu__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 4vw, 48px);
  cursor: pointer;
  list-style: none;
  border-radius: 28px;
}
.edu__summary::-webkit-details-marker { display: none; }
.edu__summary .h-lg { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.edu__toggle {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--clay-text);
  transition: transform 300ms var(--ease-out), background-color 200ms ease;
}
.edu__toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.edu__box[open]:not(.is-closing) .edu__toggle { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .edu__summary:hover .edu__toggle { background: var(--clay-tint); }
}
.edu__summary:active .edu__toggle { transform: scale(0.94); }
.edu__box[open]:not(.is-closing) .edu__summary:active .edu__toggle { transform: rotate(180deg) scale(0.94); }
.edu__inner { padding: 0 clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px); }
.edu__list { display: grid; gap: 12px; max-width: 46em; }
.edu__list li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 12px; color: var(--muted); line-height: 1.5; }
.edu__list span { color: var(--clay-text); font-weight: 600; }
.edu__body .certs { margin-top: 32px; }

.certs { animation: open 320ms var(--ease-out); }
.edu__more .certs { margin-top: 28px; }

.certs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.cert {
  display: flex; flex-direction: column; align-items: flex-start;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: zoom-in;
}
.cert__img {
  display: grid; place-items: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 22px;
  border-radius: 20px;
  background: var(--white);
  transition: background-color 220ms ease;
}
.cert__img img { max-height: 100%; width: auto; border-radius: 2px; transition: transform 320ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .cert:hover .cert__img { background: var(--clay-tint); }
  .cert:hover .cert__img img { transform: translateY(-4px); }
}
.cert:active .cert__img img { transform: scale(0.98); }
.cert__year { margin-top: 16px; color: var(--clay-text); font-weight: 600; }
.cert__name { margin-top: 4px; font-weight: 600; line-height: 1.35; }
.cert__org { margin-top: 4px; color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }

/* ---------- Reviews ---------- */
.reviews { padding-block: var(--section); }
.reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(520px, 86vw);
  gap: 20px;
  margin-top: clamp(48px, 5vw, 64px);
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track:focus-visible { outline-offset: -3px; }
.review {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: 36px 32px 32px;
  border-radius: 24px;
  background: var(--white);
  text-align: center;
  scroll-snap-align: start;
}
.review__avatar {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--clay-tint);
  color: var(--clay);
  font-family: var(--serif);
  font-stretch: 62.5%;
  font-size: 2rem;
  line-height: 1;
}
.review blockquote p { font-size: 1.125rem; line-height: 1.6; text-wrap: pretty; }
.review__who { margin-top: auto; font-weight: 600; font-size: 0.9375rem; }
.reviews__nav { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--section); }
.faq__list { max-width: 780px; margin: clamp(40px, 5vw, 56px) auto 0; }
.faq details { border-bottom: 1px solid var(--line); } /* taste-skill-ignore: Serena accordion rule */
.faq summary {
  position: relative;
  display: block;
  padding: 24px 52px 24px 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 4px; top: 50%;
  width: 24px; height: 24px; margin-top: -12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2399513a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
  transition: transform 260ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 52px 24px 0; color: var(--muted); line-height: 1.65; }
.faq details[open] p { animation: open 280ms var(--ease-out); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Contacts ---------- */
.contacts { padding-bottom: var(--section); }
.contacts__head .sub { margin-top: 14px; max-width: 34em; text-wrap: pretty; }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.contact-card {
  display: flex; flex-direction: column; gap: 6px;
  height: 100%;
  padding: 26px;
  border-radius: 20px;
  background: var(--card);
  text-decoration: none;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.contact-card:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .contact-card:hover { background: var(--clay-tint); } }
.contact-card__icon { color: var(--clay); margin-bottom: 14px; }
.contact-card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-card__title { font-weight: 600; font-size: 1.0625rem; }
.contact-card__value { color: var(--muted); font-size: 1rem; line-height: 1.5; }

.map {
  position: relative;
  display: grid;
  height: clamp(320px, 34vw, 440px);
  margin-top: 16px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
}
.map__fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; color: var(--clay-text); }
.map iframe {
  position: relative;
  width: 100%; height: 100%;
  border: 0;
  filter: sepia(0.25) saturate(0.85) contrast(0.95);
}

/* ---------- Footer: closing call + warm dark base ---------- */
.foot__cta { padding-block: var(--section); text-align: center; }
.foot__cta-inner { display: flex; flex-direction: column; align-items: center; }
.foot__cta-title {
  font-family: var(--serif);
  font-stretch: 62.5%;
  font-size: clamp(3rem, 1.6rem + 5vw, 6rem);
  line-height: 1.05;
  color: var(--ink-hero);
  text-wrap: balance;
}
.foot__cta-text {
  margin-top: 20px;
  max-width: 26em;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.45;
  color: var(--muted);
  text-wrap: balance;
}
.foot__cta .btn { margin-top: 32px; }

.foot__main {
  --f-ink: var(--night-ink);
  --f-soft: var(--night-soft);
  padding-block: clamp(56px, 6vw, 88px) 28px;
  background: var(--night);
  color: var(--f-ink);
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px clamp(24px, 4vw, 56px);
}
.foot__name {
  font-family: var(--serif);
  font-stretch: 62.5%;
  font-size: clamp(2.25rem, 1.8rem + 1.4vw, 3rem);
  line-height: 1.05;
  color: var(--f-ink);
}
.foot__brand p:not(.foot__name) { margin-top: 14px; max-width: 24em; color: var(--f-soft); line-height: 1.6; }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot__col .foot__label { margin-bottom: 4px; color: var(--night-accent); font-weight: 600; }
.foot__col a, .foot__col p { color: var(--f-ink); line-height: 1.45; }
.foot__col a { text-decoration: none; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .foot__col a:hover { color: var(--night-accent); } }
.foot__col .foot__soft { color: var(--f-soft); }
.foot__bottom p { text-wrap: pretty; }
.foot__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  margin-top: clamp(48px, 5vw, 72px);
  padding-top: 24px;
  border-top: 1px solid rgba(243, 234, 224, 0.14); /* taste-skill-ignore: footer base rule */
  font-size: 0.9375rem;
  color: var(--f-soft);
}
.foot__up {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  color: var(--f-ink);
  text-decoration: none;
}
.foot__up svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .foot__up:hover svg { transform: translateY(-3px); } }

/* ---------- Certificate viewer ---------- */
.viewer {
  width: min(92vw, 900px);
  max-height: 92vh;
  padding: clamp(16px, 3vw, 32px);
  border: 0; border-radius: 24px;
  background: var(--white); color: var(--ink);
  overflow: auto;
}
.viewer::backdrop { background: rgba(42, 33, 28, 0.55); }
.viewer[open] { animation: viewer-in 260ms var(--ease-out); }
@keyframes viewer-in { from { opacity: 0; transform: scale(0.97); } }
.viewer figure { display: grid; gap: 16px; }
.viewer img { max-height: 74vh; width: auto; margin-inline: auto; border-radius: 2px; }
.viewer figcaption { text-align: center; color: var(--muted); padding-inline: 40px; }
.viewer__close { position: sticky; top: 0; float: right; z-index: 1; background: var(--card); }

/* ---------- Floating booking pill (full width on phones, compact on desktop) ---------- */
.dock {
  position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 50;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--clay);
  color: var(--on-clay);
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 12px 30px -12px rgba(42, 33, 28, 0.45); /* taste-skill-ignore: fixed floating dock */
  transform: translateY(160%);
  transition: transform 320ms var(--ease-out), background-color 200ms ease;
}
.dock.is-visible { transform: translateY(0); }
.dock__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .dock:hover { background: var(--clay-hover); } }

/* ---------- Motion ---------- */
.js [data-load] {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 640ms var(--ease-out) forwards;
}
.js [data-load="2"] { animation-delay: 90ms; }
.js [data-load="3"] { animation-delay: 170ms; }
.js [data-load="4"] { animation-delay: 240ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-load] { animation: fade 300ms ease forwards; transform: none; }
  .js [data-reveal] { transform: none; transition: opacity 300ms ease; }
  .faq details[open] p, .viewer[open] { animation: fade 200ms ease; }
  .menu, .menu.is-open, .menu a, .menu.is-open a { transform: none; transition: opacity 160ms ease, visibility 0s; }
  .burger path { transition: none; }
  .dock { transition: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .price-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .intro, .doctor, .approach { grid-template-columns: 1fr; }
  .doctor__photo { max-width: 480px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .steps::before { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__text--a, .bento__text--b { grid-column: span 2; }
  .contact-cards { grid-template-columns: 1fr; }
  .dock { left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); min-height: 56px; }
  .foot__main { padding-bottom: 104px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 380px) {
  .pill--menu { padding: 0 13px; }
  .pill--menu > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .byline.is-docked { gap: 8px; padding-right: 12px; }
  .byline.is-docked .byline__photo { width: 36px; height: 36px; }
  .byline.is-docked .byline__name { font-size: 1.25rem; }
  .byline.is-docked .byline__first { display: none; }
  .byline.is-docked .byline__role { font-size: 0.6875rem; }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .band { background-image: url("../img/light-sm.jpg"); background-image: image-set(url("../img/light-sm.webp") type("image/webp"), url("../img/light-sm.jpg") type("image/jpeg")); }
  .name-docked .top::before {
    content: "";
    position: fixed; top: 0; left: 0; right: 0; height: 76px;
    background: rgba(255, 252, 248, 0.94);
    box-shadow: 0 1px 0 rgba(42, 33, 28, 0.06); /* taste-skill-ignore: phone header strip */
    z-index: -1;
  }
  .top { top: 12px; left: 12px; right: 12px; gap: 8px; }
  .top__menu .pill { padding: 0 14px; }
  .byline { padding-right: 18px; }
  .byline__name { font-size: 1.5rem; }
  .byline__role { font-size: 0.8125rem; }
  .byline.is-docked { top: 12px; left: 12px; padding-right: 14px; }
  .byline__mid, .byline__extra { display: none; }
  .byline.is-docked .byline__photo { width: 40px; height: 40px; }
  .byline.is-docked .byline__name { font-size: 1.25rem; }
  .byline.is-docked .byline__role { font-size: 0.75rem; }
  .hero { padding-block: 96px 72px; }
  .steps { grid-template-columns: 1fr; text-align: left; row-gap: 0; }
  .steps li { padding: 0 0 36px 44px; }
  .steps li::before { left: 0; top: 0; transform: none; width: 26px; text-align: center; }
  .steps li::after { top: 30px; left: 13px; margin-left: -4.5px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento__text--a, .bento__text--b { grid-column: auto; min-height: 240px; }
  .bento__photo { min-height: 360px; }
  .bento__stat { min-height: 160px; }
  .approach__grid { grid-template-columns: 1fr; gap: 28px; }
  .focus__list li { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .price-cards { grid-template-columns: 1fr; }
  .certs { gap: 16px 12px; }
  .cert__img { padding: 14px; }
  .cert__name { font-size: 0.9375rem; }
  .faq summary { font-size: 1.0625rem; }
  .faq details p { padding-right: 0; }
  .foot__grid { grid-template-columns: 1fr; gap: 32px; }
  .foot__bottom { flex-direction: column; align-items: flex-start; }
}
