/* 明醫診所治療中心 — 設計提案 · 範本二
   「現代中式醫館」— warm paper, clinic blue, restrained gold.
   zh-Hant · elder-readable · no frameworks */

:root {
  --paper: #faf7f2;
  --paper-deep: #f3ede2;
  --card: #ffffff;
  --ink: #2a2a2a;
  --ink-soft: #5c5850;
  --blue: #17508f;
  --blue-deep: #0f3a6b;
  --blue-soft: #eaf1f8;
  --gold: #b8912f;
  --gold-soft: #f4ead2;
  --line: #e9e2d6;
  --line-strong: #d8cfbd;
  --radius: 12px;
  --shadow: 0 12px 34px rgba(42, 42, 42, 0.07);
  --shadow-lg: 0 22px 60px rgba(23, 80, 143, 0.12);
  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-size: 17px;
}

html[data-size="sm"] { font-size: 15.5px; }
html[data-size="md"] { font-size: 17px; }
html[data-size="lg"] { font-size: 19px; }

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: var(--blue-soft); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 80;
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
}

/* ——— topbar ——— */
.topbar {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.42rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  flex-wrap: wrap;
}
.topbar a { color: var(--blue); font-weight: 500; }
.topbar a:hover { color: var(--blue-deep); text-decoration: underline; }
.topbar .gold {
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.3em;
}

/* ——— header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.brand img { height: 46px; width: auto; }
/* the logo.png already carries the 明醫/MINGYI wordmark */
.brand-text {
  display: none;
  flex-direction: column;
  line-height: 1.2;
}
.brand-text strong {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.28em;
  color: var(--ink);
}
.brand-text span {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
}
.nav a {
  padding: 0.5rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}
.nav a:hover { background: var(--blue-soft); color: var(--blue-deep); }
.nav a[aria-current="page"] {
  color: var(--blue);
  background: var(--blue-soft);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.sizer {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  overflow: hidden;
}
.sizer span {
  padding: 0 0.2rem 0 0.65rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.sizer button {
  border: 0;
  background: transparent;
  padding: 0.32rem 0.55rem;
  min-width: 2.1rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}
.sizer button[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
}
.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--blue);
  color: #fff !important;
  padding: 0.55rem 1.05rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(23, 80, 143, 0.25);
  transition: background 0.25s, transform 0.25s;
}
.btn-call:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-call svg { width: 15px; height: 15px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--card);
  width: 44px;
  height: 44px;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.site-header.is-open .nav-toggle span { background: transparent; }
.site-header.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ——— layout bits ——— */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 4.6rem 0; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}
.section-head { margin-bottom: 2.4rem; max-width: 46rem; }
.section-head h2,
.display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  letter-spacing: 0.06em;
  line-height: 1.35;
  margin: 0.2rem 0 0;
}
.section-head .lede { margin-top: 0.8rem; }
.lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 42rem;
}
.rule {
  width: 52px;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 1.2rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.14em;
  font-size: 0.92rem;
  box-shadow: 0 8px 20px rgba(23, 80, 143, 0.22);
  transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(23, 80, 143, 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--blue);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--blue); color: #fff; }

/* ——— hero ——— */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(23, 80, 143, 0.06), transparent 60%),
    var(--paper);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.2rem 1.5rem 4.6rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.15;
  margin: 0.4rem 0 0.2rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue);
  position: relative;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0.08em;
  right: 0.08em;
  bottom: 0.06em;
  height: 0.14em;
  background: var(--gold);
  opacity: 0.55;
  z-index: -1;
}
.hero .sub {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.34em;
  color: var(--ink-soft);
  margin: 0.4rem 0 1.1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }
.hero-meta {
  display: flex;
  gap: 2.4rem;
  margin-top: 2.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}
.hero-meta b {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--blue);
}
.hero-meta span {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.hero-visual { position: relative; }
.hero-visual .clinic-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.hero-visual .clinic-card img {
  width: 100%;
  height: 100%;
  max-height: 540px;
  object-fit: cover;
}
.hero-visual .plate {
  position: absolute;
  left: -3.2rem;
  bottom: -1.8rem;
  width: min(220px, 46%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.7rem 0.85rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s var(--ease);
}
.hero-visual .plate:hover { transform: translateY(-4px); }
.hero-visual .plate img { width: 100%; border-radius: 8px; }
.hero-visual .plate figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-align: center;
  margin-top: 0.55rem;
  color: var(--blue);
}
.hero-visual .plate figcaption::after { content: "→"; }

/* ——— 醫館簡介 ——— */
.intro-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
}
.photo-mosaic {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 200px 170px 160px;
  gap: 0.8rem;
}
.photo-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.photo-mosaic .span2 { grid-row: span 2; }
.prose p { color: var(--ink-soft); margin: 0 0 1rem; }
.prose p.lead { color: var(--ink); font-size: 1.06rem; }
.prose .btn { margin-top: 0.6rem; }

/* ——— 四種治療方向 ——— */
.methods { background: var(--paper-deep); }
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.method {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem 1.8rem;
  min-height: 225px;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  overflow: hidden;
}
.method::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.method:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.method:hover::before { transform: scaleX(1); }
.method .num {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--blue);
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: 0.05em;
}
.method h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.1em;
  margin: 0.8rem 0 0.5rem;
}
.method p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* ——— 醫師團隊 ——— */
.team-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 1.5rem;
  align-items: start;
}
.team-lead {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 1.6rem 2.2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.team-lead img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1.1rem;
  border: 4px solid var(--gold-soft);
}
.team-lead h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  margin: 0 0 0.25rem;
}
.team-lead .role { color: var(--blue); font-size: 0.86rem; font-weight: 500; letter-spacing: 0.1em; }
.team-lead p { color: var(--ink-soft); font-size: 0.9rem; margin: 0.8rem 0 0; }
.team-list { display: grid; gap: 1rem; }
.physician {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 1.2rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.physician:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.physician img {
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--blue-soft);
}
.physician h3 {
  font-family: var(--serif);
  font-weight: 700;
  margin: 0 0 0.1rem;
  letter-spacing: 0.1em;
}
.physician .role { color: var(--blue); font-size: 0.82rem; font-weight: 500; }
.physician p { margin: 0.45rem 0 0; color: var(--ink-soft); font-size: 0.9rem; }

/* ——— CTA band ——— */
.cta-band {
  background:
    radial-gradient(50rem 20rem at 15% 0%, rgba(184, 145, 47, 0.1), transparent 55%),
    linear-gradient(120deg, #e9f1f9, #dce9f5);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 4.2rem 0;
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  letter-spacing: 0.08em;
  margin: 0.3rem 0 0.6rem;
  color: var(--blue-deep);
}
.cta-band p { color: var(--ink-soft); max-width: 34rem; margin: 0; }
.cta-band .actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ——— 人體圖鑑 ——— */
.atlas { padding: 3rem 0 4.5rem; }
.atlas-head { margin-bottom: 1.8rem; max-width: 46rem; }
.atlas-head h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  letter-spacing: 0.08em;
  margin: 0.2rem 0 0.5rem;
}
.atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 1.8rem;
  align-items: start;
}
.stage-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.4rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.stage-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.view-switch {
  display: inline-flex;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.view-switch button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.42rem 1.3rem;
  letter-spacing: 0.16em;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.view-switch button[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(23, 80, 143, 0.3);
}
.hint { font-size: 0.76rem; color: var(--ink-soft); letter-spacing: 0.06em; margin: 0; }

.viewport {
  position: relative;
  min-height: min(68vh, 640px);
}
.face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.stage-card[data-facing="front"] .face.front,
.stage-card[data-facing="back"] .face.back {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}
.stage-card[data-facing="front"] .face.back,
.stage-card[data-facing="back"] .face.front {
  position: absolute;
}
.figure-frame {
  position: relative;
  display: inline-block;
}
.figure-frame img {
  height: min(64vh, 600px);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  user-select: none;
  pointer-events: none;
}
.hotspots { position: absolute; inset: 0; }

.hotspot {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  padding: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 3px 10px rgba(23, 80, 143, 0.45);
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
  z-index: 2;
}
.hotspot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(23, 80, 143, 0.4);
  animation: ring 2.6s ease-out infinite;
}
.hotspot:hover,
.hotspot:focus-visible {
  transform: translate(-50%, -50%) scale(1.2);
  background: var(--blue-deep);
  outline: none;
  z-index: 3;
}
.hotspot.is-active {
  background: var(--gold);
  box-shadow: 0 3px 12px rgba(184, 145, 47, 0.55);
}
.hotspot.is-active::after { border-color: rgba(184, 145, 47, 0.45); }
@keyframes ring {
  0% { transform: scale(0.72); opacity: 0.9; }
  80% { transform: scale(1.45); opacity: 0; }
  100% { opacity: 0; }
}

.hotspot .tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.hotspot .tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
}
.hotspot:hover .tip,
.hotspot:focus-visible .tip { opacity: 1; }

/* chips + panel */
.region-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.region-chips button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  padding: 0.34rem 0.85rem 0.34rem 0.4rem;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.region-chips button .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
}
.region-chips button:hover { border-color: var(--blue); color: var(--blue-deep); }
.region-chips button.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.region-chips button.is-active .n { background: rgba(255, 255, 255, 0.22); color: #fff; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel-empty {
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
}
.panel-empty .mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.panel-empty h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
}
.panel-empty p { color: var(--ink-soft); margin: 0 0 0.8rem; font-size: 0.95rem; }

.panel-body { padding: 1.8rem 1.8rem 1.2rem; }
.panel-kicker {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
}
.panel h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  margin: 0.2rem 0 0.5rem;
}
.panel .blurb { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 1.2rem; }

.condition {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem 1.1rem;
  margin-bottom: 0.9rem;
}
.condition h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.55rem;
}
.condition .media {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.9rem;
  align-items: start;
}
.condition .media img {
  width: 96px;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
}
.condition p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.7; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}
.tags .tag-label {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  align-self: center;
  margin-right: 0.15rem;
}
.tags .tag {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 0.14rem 0.6rem;
}
.panel-cta {
  margin-top: auto;
  padding: 1rem 1.8rem 1.6rem;
  border-top: 1px solid var(--line);
}
.panel-cta .btn { width: 100%; }

/* ——— contact ——— */
.page-hero {
  background:
    radial-gradient(50rem 22rem at 80% -20%, rgba(23, 80, 143, 0.07), transparent 60%),
    var(--paper-deep);
  border-bottom: 1px solid var(--line);
  padding: 3.4rem 0 2.6rem;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  letter-spacing: 0.1em;
  margin: 0.25rem 0 0.5rem;
}
.page-hero .lede { margin: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  padding: 3.2rem 1.5rem 4.2rem;
  align-items: start;
}
.facts { display: grid; gap: 1.1rem; }
.fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow);
}
.fact h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--blue-deep);
}
.fact p { margin: 0; }
.fact p, .fact a { color: var(--ink-soft); }
.fact a { color: var(--blue); font-weight: 500; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hours th, .hours td {
  text-align: left;
  padding: 0.32rem 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
}
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 500; width: 5rem; color: var(--ink); }

.map-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 240px;
  background: var(--paper-deep);
  box-shadow: var(--shadow);
}
.map-wrap iframe { width: 100%; height: 260px; border: 0; display: block; }

.form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2rem 2.2rem;
  box-shadow: var(--shadow);
}
.form h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 0.3rem;
}
.form .note { color: var(--ink-soft); font-size: 0.88rem; margin: 0 0 1.3rem; }
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 80, 143, 0.16);
}
.form .btn { width: 100%; margin-top: 0.4rem; }
.form-success {
  display: none;
  background: #edf7f0;
  border: 1px solid #a8d8bc;
  border-radius: 10px;
  padding: 1.8rem 1.5rem;
  color: var(--ink);
  line-height: 1.8;
}
.form-success strong {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 1.2rem;
  color: #1e6b41;
  margin-bottom: 0.4rem;
}
.form.is-sent .form-success { display: block; }
.form.is-sent .form-fields { display: none; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0 1.5rem 4.2rem;
}
.gallery img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* ——— footer ——— */
.site-footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.2rem;
}
.site-footer h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 1rem;
  margin: 0 0 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.site-footer p { margin: 0; }
.site-footer a:hover { color: var(--blue); }
.legal {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* ——— mobile ——— */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.6rem; padding: 3rem 1.5rem 5rem; }
  .hero-visual .plate { left: auto; right: 1rem; bottom: -2.2rem; }
  .intro-grid,
  .team-grid,
  .atlas-layout,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .stage-card { position: static; }
  .viewport { min-height: 0; }
  .figure-frame img { height: auto; width: 100%; max-width: 460px; }
}

@media (max-width: 760px) {
  .header-inner { padding: 0 1rem; gap: 0.8rem; }
  .brand-text span { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1rem 1rem;
    gap: 0.2rem;
  }
  .nav a { border-radius: 10px; padding: 0.7rem 0.9rem; }
  .site-header.is-open .nav { display: flex; }
  .btn-call { display: none; }
  .sizer span { display: none; }
  .hero-meta { gap: 1.2rem; flex-wrap: wrap; }
  .photo-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 150px 150px;
  }
  .photo-mosaic .span2 { grid-row: auto; }
  .method-grid { grid-template-columns: 1fr; }
  .method { min-height: 0; }
  .physician { grid-template-columns: 88px 1fr; }
  .physician img { width: 88px; height: 88px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .hero-visual .plate { width: min(170px, 44%); right: 0.8rem; bottom: -1.4rem; }
  .hero-visual .plate figcaption { font-size: 0.7rem; letter-spacing: 0.06em; }
  .stage-toolbar { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .region-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
  }
  .region-chips button { flex-shrink: 0; }
  .panel { min-height: 0; }
  .condition .media { grid-template-columns: 1fr; }
  .condition .media img { width: 100%; height: 110px; }
  .form { padding: 1.5rem 1.2rem 1.7rem; }
  .gallery img { height: 130px; }
  .topbar-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
