:root {
  color-scheme: light dark;
  --surface: #fcf6f3;
  --surface-raised: #f5e5e0;
  --surface-deep: #ead1c8;
  --text: #2c201e;
  --muted: #674d46;
  --accent: #8c4436;
  --accent-hover: #713429;
  --accent-text: #fff9f6;
  --line: #d6bdb5;
  --header: rgb(252 246 243 / 0.96);
  --shadow: rgb(64 34 27 / 0.18);
  --sans: "Helvetica Neue", "Avenir Next", Avenir, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --max: 1560px;
  --header-height: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #211a19;
    --surface-raised: #302422;
    --surface-deep: #48312b;
    --text: #f7eae4;
    --muted: #d6bdb5;
    --accent: #edab9a;
    --accent-hover: #f7c0b2;
    --accent-text: #271a18;
    --line: #654b44;
    --header: rgb(33 26 25 / 0.96);
    --shadow: rgb(0 0 0 / 0.32);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  background: var(--text);
  color: var(--surface);
  padding: 0.7rem 1rem;
}
.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  height: var(--header-height);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--header);
  padding: 0 clamp(1.1rem, 3.5vw, 3.5rem);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.brand, .footer-brand {
  display: inline-flex;
  width: max-content;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}
.brand span, .footer-brand span { font-size: 1.05rem; font-weight: 750; letter-spacing: 0.03em; }
.brand small, .footer-brand small { margin-top: 0.24rem; font-size: 0.48rem; font-weight: 650; letter-spacing: 0.19em; }

.site-nav { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.8rem); }
.site-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.045em;
}
.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.42rem;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; }
.language-button {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0.6rem;
  font-size: 0.74rem;
  font-weight: 650;
}
.menu-button { display: none; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
  padding: 0.78rem 1.5rem;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  transition: background 220ms ease, border-color 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.button:hover { border-color: var(--accent-hover); background: var(--accent-hover); transform: translateY(-2px); }
.button:active { transform: translateY(1px) scale(0.98); }
.button:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.button-secondary { border-color: var(--text); background: transparent; color: var(--text); }
.button-secondary:hover { border-color: var(--text); background: var(--text); color: var(--surface); }
.button-compact { min-height: 38px; padding: 0.55rem 1.05rem; font-size: 0.72rem; }

.kicker {
  color: var(--accent-hover);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.hero {
  display: grid;
  width: min(100%, var(--max));
  min-height: min(100dvh, 840px);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  margin: 0 auto;
  padding: calc(var(--header-height) + clamp(1.5rem, 4vw, 4rem)) clamp(1.4rem, 5vw, 5.5rem) clamp(2.5rem, 5vw, 5rem);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: clamp(1.5rem, 4vw, 4rem);
}
.hero h1 {
  max-width: 720px;
  margin-top: 1.4rem;
  font-size: clamp(2.6rem, 4.35vw, 4.6rem);
  font-weight: 450;
  letter-spacing: -0.06em;
  line-height: 1.04;
}
.hero-summary {
  max-width: 510px;
  margin-top: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2.2rem; }
.hero-method-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin-top: 0.45rem; color: var(--accent-hover); font-size: 0.88rem; font-weight: 600; text-underline-offset: 0.25em; }
.hero-media { aspect-ratio: 1963 / 1280; overflow: hidden; background: var(--surface-deep); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.section { width: min(100%, var(--max)); margin: 0 auto; padding: clamp(4rem, 7vw, 7rem) clamp(1.4rem, 5vw, 5.5rem); }
h2 {
  font-size: clamp(2.4rem, 4.4vw, 4.5rem);
  font-weight: 430;
  letter-spacing: -0.058em;
  line-height: 0.98;
}

.method { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 2rem clamp(2rem, 8vw, 8rem); align-items: start; border-top: 1px solid var(--line); }
.method-lead { max-width: 1040px; }
.method-lead p { max-width: 630px; margin-top: 1.8rem; color: var(--muted); font-size: 1.05rem; }
.method-steps { grid-column: 1; background: var(--surface-raised); padding: clamp(1.1rem, 3vw, 2rem); }
.method-process { margin: 0; padding-inline-start: 1.55rem; }
.method-process li { border-top: 1px solid var(--line); padding: 0.65rem 0 0.65rem 0.25rem; }
.method-process li::marker { color: var(--accent-hover); }
.method-process strong { display: block; }
.method-process span { color: var(--muted); }
.method-story { grid-area: 1 / 2 / span 2; }
.method-story img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 66%; }
.method-story h2 { margin-top: 1.1rem; font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 550; }
.method-story p { margin-top: 0.6rem; color: var(--muted); }

.treatments { background: var(--surface-raised); }
.treatments-heading { max-width: 920px; }
.treatments-heading p { max-width: 620px; margin-top: 1.6rem; color: var(--muted); }
.treatments-overview { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(1.5rem, 5vw, 5rem); }
.treatments-room img { width: 100%; height: auto; }
.service-categories { margin: 1.5rem 0 0; }
.service-categories dt { border-top: 1px solid var(--line); padding-top: 0.65rem; font-weight: 650; }
.service-categories dd { margin: 0.15rem 0 0.65rem; color: var(--muted); }
.service-categories a { color: var(--accent-hover); text-underline-offset: 0.2em; }
.featured-heading { margin-top: clamp(2.5rem, 5vw, 5rem); font-size: clamp(1.65rem, 3vw, 2.65rem); font-weight: 550; }
.featured-intro { margin-top: 0.6rem; color: var(--muted); }
.featured-services { margin-top: clamp(1.5rem, 4vw, 3rem); }
.featured-chapters { display: grid; gap: 1.75rem; }
.featured-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.featured-service img, .featured-stage img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-deep);
}
.featured-service:nth-child(2) img, .featured-stage img:nth-child(2) { object-position: center 76%; }
.chapter-copy { min-width: 0; }
.chapter-index { display: block; color: var(--accent-hover); font-size: 0.82rem; font-variant-numeric: tabular-nums; letter-spacing: 0.13em; }
.featured-service .chapter-label { color: var(--accent-hover); font-size: 0.82rem; }
.featured-service h4 {
  margin: 0.6rem 0 0;
  font-size: clamp(1.55rem, 3.15vw, 3.2rem);
  font-weight: 550;
  line-height: 1.09;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.featured-stage { display: none; }
@media (min-width: 900px) and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
  .featured-services.has-scenes {
    display: grid;
    grid-template-columns: minmax(0, 1.37fr) minmax(0, 1fr);
    gap: clamp(2.25rem, 7vw, 7rem);
    align-items: start;
  }
  .has-scenes .featured-stage {
    position: sticky;
    top: max(calc(var(--header-height) + 1rem), calc(50dvh - min(31dvh, 21rem)));
    display: block;
    grid-area: 1 / 1;
    height: min(62dvh, 42rem);
    overflow: hidden;
    isolation: isolate;
    background: var(--surface-deep);
  }
  .has-scenes .featured-stage img {
    position: absolute;
    inset: 0;
    height: 100%;
    opacity: 0;
    transform: scale(1.035);
    transition: opacity 460ms ease, transform 900ms cubic-bezier(.2,.65,.3,1);
  }
  .has-scenes .featured-stage img.is-outgoing { z-index: 1; }
  .has-scenes .featured-stage img.is-current { z-index: 2; opacity: 1; transform: scale(1); }
  .has-scenes .featured-chapters { grid-area: 1 / 2; gap: 0; }
  .has-scenes .featured-service {
    grid-template-columns: minmax(0, 1fr);
    min-height: min(62dvh, 42rem);
    padding: 1.5rem 0;
  }
  .has-scenes .featured-service > img {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
}
@media (max-width: 620px) {
  .featured-service { grid-template-columns: minmax(0, 1fr); gap: 0.95rem; }
}
.featured-service p { margin-top: 0.65rem; color: var(--muted); }
.featured-service details { border-top: 1px solid var(--line); margin-top: 1.15rem; }
.featured-service summary { cursor: pointer; min-height: 44px; padding: 0.7rem 0; color: var(--accent-hover); font-weight: 600; }
.featured-service summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.featured-service details p { margin-top: 0.25rem; }
.featured-service details .service-duration { margin-top: 0.85rem; color: var(--text); font-size: 0.9rem; }
.treatment-contact { margin-top: 2.25rem; }
.treatment-contact a { color: var(--accent-hover); font-weight: 650; text-underline-offset: 0.3em; }
.treatment-bridge { margin-top: 1.3rem; color: var(--muted); }
.treatment-medical-link { display: inline-block; margin-top: 0.35rem; color: var(--accent-hover); text-underline-offset: 0.3em; }

.medical {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  border-bottom: 1px solid var(--line);
}
.medical-copy > p { margin: 1.35rem 0 1.5rem; color: var(--muted); }
.medical-copy details { border-top: 1px solid var(--line); }
.medical-copy summary { min-height: 44px; padding: 0.7rem 0; color: var(--accent-hover); cursor: pointer; font-weight: 600; }
.medical-copy summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.medical-copy details p { margin-bottom: 0.9rem; color: var(--muted); }
.medical-copy .button { margin-top: 1.35rem; }
.medical-media img { width: 100%; height: auto; }
.medical-media figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.85rem; }
.medical-equipment { grid-column: 1 / -1; }
.medical-equipment h3 { font-size: clamp(1.45rem, 2.6vw, 2.2rem); font-weight: 550; }
.medical-equipment dl {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  margin: 1.1rem 0 0;
}
.medical-equipment dt, .medical-equipment dd { border-top: 1px solid var(--line); padding: 0.75rem 0; }
.medical-equipment dt { padding-inline-end: 0.85rem; font-weight: 650; }
.medical-equipment dd { margin: 0; color: var(--muted); }

.gift {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
}
.gift-media { overflow: hidden; }
.gift-media img { width: 100%; height: auto; }
.gift-copy h2 { max-width: 620px; margin-top: 1.2rem; }
.gift-copy > p:not(.kicker) { max-width: 520px; margin-top: 1.6rem; color: var(--muted); }
.gift-copy .button { margin-top: 1.6rem; }
.gift-copy > small:not([hidden]) { display: block; max-width: 430px; margin-top: 1rem; color: var(--muted); }

.location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  background: var(--surface-raised);
}
.location-copy h2 { font-size: clamp(3rem, 5vw, 5.6rem); }
.location-origin { margin-top: 1rem; color: var(--muted); }
.location-branches { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem clamp(1.5rem, 6vw, 5rem); }
.location-branches article { border-top: 1px solid var(--line); padding-top: 1.15rem; }
.location-branches h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 550; }
.location-branches p, .location-branches address { margin-top: 0.6rem; color: var(--muted); }
.location-branches address { font-style: normal; }
.location-copy address { margin-top: 2.2rem; color: var(--muted); font-style: normal; font-size: 1.06rem; }
.phone { display: inline-block; margin-top: 1rem; text-decoration: none; font-size: 1.25rem; font-weight: 600; }
.location-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2.2rem; }
.location-media { overflow: hidden; justify-self: center; width: min(100%, 480px); }
.location-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center bottom; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding: 3rem clamp(1.4rem, 5vw, 5.5rem);
}
.footer-links { display: flex; gap: 1.6rem; }
.footer-links a, .footer-links button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  font-size: 0.78rem;
}
.site-footer > p { justify-self: end; color: var(--muted); font-size: 0.72rem; }

.modal {
  width: min(600px, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: 0 30px 90px var(--shadow);
}
.modal::backdrop { background: rgb(20 23 25 / 0.72); backdrop-filter: blur(8px); }
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
}
.modal h2 { margin-top: 1.3rem; font-size: clamp(2.5rem, 5vw, 4.6rem); }
.modal > p:not(.kicker) { max-width: 470px; margin: 1.5rem 0 2rem; color: var(--muted); }

.hero-enter { animation: hero-in 900ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-media.hero-enter { animation-delay: 100ms; }
.can-reveal .reveal { opacity: 0; transform: translateY(12px); transition: opacity 420ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1); }
.can-reveal .reveal.is-visible { opacity: 1; transform: none; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    padding: 0 1.4rem 1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { border-bottom: 1px solid var(--line); padding: 1rem 0; }
  .menu-button {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-button span:not(.sr-only) { width: 23px; height: 1px; background: var(--text); }
  .hero { min-height: auto; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
  .hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
}

@media (max-width: 767px) {
  :root { --header-height: 66px; }
  .site-header { padding: 0 1rem; }
  .header-actions > .button { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: calc(var(--header-height) + 0.9rem) 1.2rem 3rem; gap: 1.8rem; }
  .hero-copy { padding: 0; }
  .hero-media { order: -1; }
  .hero h1 { font-size: clamp(2.25rem, 9.5vw, 3.5rem); margin-top: 0.7rem; }
  .hero-summary, .hero-actions { margin-top: 1rem; }
  .section { padding: 3.5rem 1.2rem; }
  h2 { font-size: clamp(2.2rem, 8vw, 3.3rem); }
  .method, .medical, .gift, .location { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .method-story { grid-area: auto; }
  .treatments-overview { grid-template-columns: minmax(0, 1fr); }
  .treatments-room { order: -1; }
  .location-media img { aspect-ratio: 4 / 5; }
  .location-branches { grid-template-columns: minmax(0, 1fr); }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
  .footer-links { flex-wrap: wrap; gap: 1rem 1.4rem; }
  .site-footer > p { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-enter { animation: none; }
  .can-reveal .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .modal::backdrop { backdrop-filter: none; }
}
