/* 하늘체한의원 대전점 — 진료 차트처럼 한 줄로 읽히는 모바일 우선 레이아웃.
   밝은 화면 하나로 고정(병원 사이트), 강조색은 하늘체 로고의 하늘색 하나만 쓴다.
   예약·카톡·전화 버튼만 각 서비스의 원래 색을 쓴다. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --mist: #f1f5fa;
  --ink: #16233a;
  --sub: #4b586c;
  --faint: #7b8799;
  --line: #dce3ec;
  --sky: #2a6bd0;
  --sky-deep: #1b4c99;
  --sky-tint: #e4eefb;
  --navy: #13213a;
  --naver: #03c75a;
  --kakao: #fee500;
  --kakao-ink: #191600;
  --caution: #b4462f;
  --caution-tint: #fbf0ec;

  --f-display: "Hahmlet", "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --f-body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;

  --s-1: .8125rem;  /* 13 캡션 */
  --s0: 1rem;       /* 16 본문 */
  --s1: 1.125rem;   /* 18 */
  --s2: 1.375rem;   /* 22 소제목 */
  --s3: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);    /* 섹션 제목 */
  --s4: clamp(2rem, 1.5rem + 2.6vw, 3.25rem);   /* 첫 화면 */

  --wrap: 1080px;
  --read: 680px;
  --dock-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--s0);
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-deep); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1, h2 { font-family: var(--f-display); font-weight: 700; line-height: 1.32; }
h3 { font-size: var(--s1); font-weight: 700; line-height: 1.45; }
ul, ol { margin: 0; padding: 0; }
.num { font-variant-numeric: tabular-nums; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 640px) { .wrap { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); } }

/* ---------- 머리글 ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; margin-right: auto; }
.logo svg { width: 26px; height: 26px; flex: none; }
.logo b { font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.02em; }
.logo span { font-size: var(--s-1); color: var(--sub); margin-left: 2px; }
.hdr-nav { display: none; gap: 22px; font-size: .9375rem; }
.hdr-nav a { color: var(--ink); text-decoration: none; }
.hdr-nav a:hover { color: var(--sky); }
.hdr .hdr-book { display: none; }
.logo b, .logo span, .menu-btn { white-space: nowrap; }
.menu-btn { appearance: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: .875rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
@media (min-width: 900px) {
  .hdr-nav { display: flex; }
  .hdr .hdr-book { display: inline-flex; }
  .menu-btn { display: none; }
}
.menu-panel { border-top: 1px solid var(--line); background: var(--paper); max-height: calc(100vh - 60px); overflow-y: auto; }
.menu-panel .wrap { padding-block: 18px 26px; display: grid; gap: 18px; }
.menu-group h2 { font-family: var(--f-body); font-size: var(--s-1); font-weight: 700; color: var(--faint); letter-spacing: .04em; margin-bottom: 6px; }
.menu-group ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.menu-group a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--mist); color: var(--ink); text-decoration: none; font-size: .9375rem; }
.menu-group a.hub { background: var(--sky-tint); color: var(--sky-deep); font-weight: 700; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-naver { background: var(--naver); color: #fff; }
.btn-kakao { background: var(--kakao); color: var(--kakao-ink); }
.btn-tel { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .875rem; border-radius: 10px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 460px; }
.btn-row .btn-naver { grid-column: 1 / -1; }
@media (min-width: 640px) { .btn-row { display: flex; flex-wrap: wrap; max-width: none; } }

/* ---------- 하단 예약 바 (모바일) ---------- */
.dock { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px; padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(19,33,58,.06); }
.dock a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; border-radius: 12px; font-weight: 700; font-size: .9375rem; text-decoration: none; }
.dock svg { width: 18px; height: 18px; }
.dock .d-tel { background: var(--navy); color: #fff; }
.dock .d-kakao { background: var(--kakao); color: var(--kakao-ink); }
.dock .d-naver { background: var(--naver); color: #fff; }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- 공통 띠 ---------- */
.band { padding-block: 56px; }
.band.mist { background: var(--mist); }
@media (min-width: 900px) { .band { padding-block: 84px; } }
.eyebrow { display: inline-block; font-size: var(--s-1); font-weight: 700; color: var(--sky); letter-spacing: .06em; margin-bottom: 10px; }
.sec-head { max-width: var(--read); margin-bottom: 28px; display: grid; gap: 10px; }
.sec-head h2 { font-size: var(--s3); }
.sec-head p { color: var(--sub); }
.lead { font-size: var(--s1); color: var(--sub); }

/* ---------- 메인 첫 화면 ---------- */
.hero { background: linear-gradient(180deg, var(--mist), var(--paper)); padding-block: 36px 44px; }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
.hero-copy { display: grid; gap: 16px; }
.hero h1 { font-size: var(--s4); line-height: 1.22; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero .lead { max-width: 34em; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.facts li { font-size: .875rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.hero-photo { position: relative; justify-self: center; width: min(100%, 320px); margin: 0; }
@media (min-width: 900px) { .hero-photo { width: min(100%, 420px); } }
.hero-photo img { width: 100%; border-radius: 20px; background: #fff; }
.hero-photo figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); border-radius: 10px; padding: 6px 12px; font-size: .8125rem; font-weight: 600; color: var(--ink); }
@media (min-width: 900px) {
  .hero { padding-block: 64px 72px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}

/* ---------- 고민 찾기 ---------- */
.finder { display: grid; gap: 14px; }
.feature { display: grid; gap: 14px; padding: 24px 22px; border-radius: 20px; background: var(--navy); color: #fff; text-decoration: none; }
.feature .tag { font-size: var(--s-1); font-weight: 700; color: #9cc2ff; letter-spacing: .04em; }
.feature h3 { font-family: var(--f-display); font-size: var(--s2); }
.feature p { color: #d5deeb; }
.feature ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.feature li { font-size: .875rem; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; }
.feature .go { font-weight: 700; color: #fff; }
.cats { display: grid; gap: 12px; }
@media (min-width: 720px) { .cats { grid-template-columns: 1fr 1fr; } }
.cat { padding: 20px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.cat-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cat h3 a { color: var(--ink); text-decoration: none; }
.cat-top > a { font-size: .875rem; white-space: nowrap; }
.cat p { font-size: .9375rem; color: var(--sub); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips a { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--mist); color: var(--ink); text-decoration: none; font-size: .9375rem; }
.chips a:hover { background: var(--sky-tint); color: var(--sky-deep); }

/* ---------- 약속(편평사마귀) ---------- */
.promises { list-style: none; display: grid; gap: 12px; }
@media (min-width: 720px) { .promises { grid-template-columns: 1fr 1fr; } }
.promises li { display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; padding: 18px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.promises svg { width: 24px; height: 24px; color: var(--sky); margin-top: 2px; }
.promises b { font-size: var(--s1); }
.promises p { grid-column: 2; color: var(--sub); font-size: .9375rem; }
.price-strip { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 16px 18px; border-radius: 14px; background: var(--sky-tint); }
.price-strip p { font-weight: 600; }
.price-strip strong { color: var(--sky-deep); font-size: var(--s1); }

/* ---------- 순서 있는 단계 ---------- */
.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; padding: 22px 20px; border-top: 3px solid var(--sky); background: var(--paper); border-radius: 0 0 14px 14px; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: "STEP " counter(s); font-size: var(--s-1); font-weight: 800; color: var(--sky); letter-spacing: .06em; }
.steps p { color: var(--sub); font-size: .9375rem; }

/* ---------- 원장 ---------- */
.docs { display: grid; gap: 22px; }
@media (min-width: 900px) { .docs { grid-template-columns: 380px 1fr; gap: 44px; align-items: start; } }
.docs-photo img { width: 100%; max-width: 420px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.docs-quote { font-family: var(--f-display); font-size: var(--s2); line-height: 1.5; }
.docs-body { display: grid; gap: 18px; }
.docs-body > p { color: var(--sub); }
.doc-list { display: grid; gap: 12px; }
@media (min-width: 640px) { .doc-list { grid-template-columns: 1fr 1fr; } }
.doc { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--paper); display: grid; gap: 8px; align-content: start; }
.doc-name { display: flex; align-items: baseline; gap: 8px; }
.doc-name b { font-size: var(--s1); }
.doc-name span { font-size: var(--s-1); color: var(--sub); }
.doc ul { list-style: none; display: grid; gap: 2px; font-size: .9375rem; color: var(--sub); }
.doc li::before { content: "· "; color: var(--faint); }
.doc .when { font-size: .875rem; color: var(--sky-deep); font-weight: 600; }
.check { font-size: var(--s-1); color: var(--caution); }

/* ---------- 접는 상자 (FAQ 등) ---------- */
.qa { display: grid; gap: 8px; max-width: 820px; }
.qa details { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.qa summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.qa details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.qa .a { padding: 0 18px 18px; color: var(--sub); display: grid; gap: 10px; }

/* ---------- 진료 시간·오시는 길 ---------- */
.visit { display: grid; gap: 22px; }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1fr; gap: 40px; } }
.now { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9375rem; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 12px; }
.now i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.now.open i { background: var(--naver); }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: .9375rem; vertical-align: top; }
.hours th { font-weight: 700; width: 5.5em; }
.hours td small { display: block; color: var(--faint); font-size: .8125rem; }
.hours tr.today th, .hours tr.today td { color: var(--sky-deep); background: var(--sky-tint); }
.hours tr.today th { border-radius: 8px 0 0 8px; padding-left: 10px; }
.note { font-size: .875rem; color: var(--sub); margin-top: 10px; }
.place { display: grid; gap: 12px; }
.place dl { margin: 0; display: grid; grid-template-columns: 4.5em 1fr; gap: 8px 12px; font-size: .9375rem; }
.place dt { font-weight: 700; }
.place dd { margin: 0; color: var(--sub); }
.place img { border-radius: 14px; }

/* ---------- 질환 페이지 ---------- */
.crumb { font-size: var(--s-1); color: var(--faint); padding-top: 14px; }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.crumb li + li::before { content: "›"; margin-right: 4px; }
.crumb a { color: var(--sub); text-decoration: none; }
.p-hero { padding-block: 18px 36px; background: linear-gradient(180deg, var(--mist), var(--paper)); }
.p-hero .wrap { display: grid; gap: 18px; }
.p-hero h1 { font-size: clamp(1.75rem, 1.35rem + 2vw, 2.75rem); max-width: 22em; }
.p-hero .lead { max-width: 40em; }
.note-doc { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; max-width: 760px; padding: 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.note-doc img { width: 56px; height: 56px; border-radius: 50%; }
.note-doc p { color: var(--ink); }
.note-doc .by { display: block; font-size: var(--s-1); color: var(--sub); margin-top: 6px; }
.keyfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 760px; margin: 0; }
@media (min-width: 720px) { .keyfacts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.keyfacts div { padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.keyfacts dt { font-size: var(--s-1); color: var(--faint); font-weight: 600; }
.keyfacts dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }

.prose { max-width: var(--read); display: grid; gap: 14px; }
.prose p { color: var(--ink); }
.prose .sub { color: var(--sub); }
.blist { list-style: none; display: grid; gap: 10px; max-width: var(--read); }
.blist li { position: relative; padding-left: 18px; }
.blist li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }

.sym { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .sym { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sym figure { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper); }
.sym img, .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sym figcaption { padding: 14px 16px 16px; display: grid; gap: 4px; }
.sym figcaption p { font-size: .9375rem; color: var(--sub); }
.ph { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--mist) 0 10px, #e9eef5 10px 20px); color: var(--faint); font-size: .8125rem; text-align: center; padding: 10px; }

.flow { list-style: none; display: grid; gap: 0; max-width: 760px; }
.flow li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding-bottom: 18px; position: relative; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line); }
.flow .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .875rem; background: var(--sky); color: #fff; }
.flow .wait .dot { background: var(--paper); color: var(--sky-deep); border: 2px solid var(--sky-tint); font-size: .75rem; }
.flow b { display: block; padding-top: 7px; }
.flow p { color: var(--sub); font-size: .9375rem; }

.cases { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cases figure { margin: 0; display: grid; gap: 8px; }
.cases img, .cases .ph { border-radius: 14px; }
.cases figcaption { font-weight: 700; }

.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); max-width: 820px; }
.tbl table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 11px 12px; text-align: right; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.tbl th:not(:first-child), .tbl td.hl, .tbl td:nth-child(n+2) { white-space: nowrap; }
.tbl td.wrap { white-space: normal; text-align: left; }
.tbl th:first-child, .tbl td:first-child { text-align: left; position: sticky; left: 0; background: var(--paper); }
.tbl thead th { font-size: var(--s-1); color: var(--sub); font-weight: 700; background: var(--mist); }
.tbl thead th:first-child { background: var(--mist); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td.hl { color: var(--sky-deep); font-weight: 800; }
.tbl s { color: var(--faint); font-weight: 400; margin-right: 6px; }
.tbl-note { font-size: .875rem; color: var(--sub); margin-top: 10px; max-width: 820px; }
.tbl-cap { font-weight: 700; margin: 26px 0 10px; }
.posters { margin-top: 14px; max-width: 820px; }
.posters .a { display: grid; gap: 12px; }
.posters img { border-radius: 10px; border: 1px solid var(--line); }

.must { max-width: 760px; padding: 20px; border-radius: 16px; background: var(--caution-tint); display: grid; gap: 12px; }
.must h2 { font-family: var(--f-body); font-size: var(--s1); color: var(--caution); }
.must .blist li::before { background: var(--caution); }
.disclaim { font-size: .875rem; color: var(--sub); max-width: 760px; padding: 14px 16px; border-left: 3px solid var(--line); }

.cta { background: var(--navy); color: #fff; border-radius: 20px; padding: 26px 22px; display: grid; gap: 14px; }
.cta h2 { font-size: var(--s3); }
.cta p { color: #d5deeb; }
.cta .btn-tel { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }

.stack > * + * { margin-top: 48px; }
@media (min-width: 900px) { .stack > * + * { margin-top: 64px; } }

/* ---------- 바닥글 ---------- */
.ftr { background: var(--navy); color: #b8c3d4; font-size: .8125rem; line-height: 1.7; }
.ftr .wrap { padding-block: 36px 40px; display: grid; gap: 14px; }
.ftr b { color: #fff; font-size: .9375rem; }
.ftr a { color: #dce6f5; }
.ftr nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }

/* ---------- 추가: 원장 사진, 전후, 둘러보기, 지도 ---------- */
.direct { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--sky-deep); }
.direct svg { width: 20px; height: 20px; flex: none; }
.doc-name { align-items: center; gap: 12px; }
.doc-name img { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
.doc-name div { display: grid; }
.ba { margin: 0; display: grid; gap: 8px; }
.ba-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; border-radius: 14px; overflow: hidden; }
.ba-pair > div { position: relative; }
.ba-pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.ba-pair span { position: absolute; left: 8px; top: 8px; font-size: .6875rem; font-weight: 800; letter-spacing: .08em; padding: 3px 7px; border-radius: 6px; background: rgba(19,33,58,.75); color: #fff; }
.ba-pair span.after { background: var(--sky); }
.ba figcaption { font-weight: 700; }
.gallery { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 72%); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
@media (min-width: 900px) { .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }
.gallery li { scroll-snap-align: start; position: relative; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.gallery span { position: absolute; left: 10px; bottom: 10px; font-size: .8125rem; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.92); color: var(--ink); }
.map { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.map img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.map span { position: absolute; right: 10px; bottom: 10px; font-size: .8125rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: var(--paper); color: var(--sky-deep); }
.tbl td:first-child, .tbl th:first-child { white-space: nowrap; }
.ba-pair img { aspect-ratio: auto; height: 100%; object-fit: cover; }
.ba figcaption small { display: block; font-weight: 500; color: var(--sub); font-size: .875rem; font-variant-numeric: tabular-nums; }
.cases { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.review { margin-top: 14px; }
.prose .blist b { display: block; color: var(--ink); }
.prose .blist { color: var(--sub); }
.tbl td:first-child { white-space: normal; min-width: 4.5em; max-width: 9em; }
@media (max-width: 480px) { .tbl th, .tbl td { padding: 10px 8px; font-size: .875rem; } }
.flow .dot { font-size: .75rem; letter-spacing: -.02em; }
.docs-photo { display: grid; gap: 14px; align-content: start; }
.docs-photo figure { margin: 0; position: relative; }
.docs-photo figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); border-radius: 10px; padding: 5px 11px; font-size: .8125rem; font-weight: 700; }
@media (max-width: 899px) { .docs-photo { grid-template-columns: repeat(2, minmax(0, 1fr)); } .docs-photo img { height: 100%; object-fit: cover; } }
.sym.one { max-width: 560px; grid-template-columns: minmax(0, 1fr); }
.check-box { margin-top: 16px; max-width: 760px; padding: 18px 20px; border-radius: 16px; background: var(--mist); display: grid; gap: 10px; }
.check-box h3 { font-size: var(--s1); }
.check-box p b { color: var(--sky-deep); }
.hub-list { list-style: none; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .hub-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hub-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); text-decoration: none; height: 100%; }
.hub-card:hover { border-color: var(--sky); }
.hub-card img { width: 112px; height: 112px; object-fit: cover; border-radius: 12px; }
.hc-body { display: grid; gap: 4px; align-content: start; }
.hc-tag { font-size: var(--s-1); color: var(--sky); font-weight: 700; }
.hc-body p { font-size: .9375rem; color: var(--sub); }
.hc-price { font-size: .875rem; font-weight: 700; color: var(--sky-deep); font-variant-numeric: tabular-nums; }
.hc-go { font-size: .875rem; font-weight: 700; }
@media (max-width: 420px) { .hub-card { grid-template-columns: 84px minmax(0, 1fr); } .hub-card img { width: 84px; height: 84px; } }
.hub-card { grid-template-columns: minmax(0, 1fr); padding: 0; overflow: hidden; gap: 0; }
.hub-card img, .hub-card img[width] { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 0; }
.hc-body { padding: 14px 16px 16px; }
@media (max-width: 420px) { .hub-card { grid-template-columns: minmax(0, 1fr); } .hub-card img { width: 100%; height: auto; } }
.ba-pair img, .ba-pair img[width] { aspect-ratio: 1 / 1; height: auto; object-fit: cover; }
.cases { align-items: start; }
.tbl th:nth-child(2) { text-align: left; }
/* 피부질환 허브 그룹 */
.hub-group { font-family: var(--display, inherit); font-size: var(--s2, 1.25rem); margin: 28px 0 4px; color: var(--navy); }
.hub-group:first-of-type { margin-top: 8px; }
.hub-gp { color: var(--muted, #5b6575); margin: 0 0 12px; }
/* 모바일 메뉴: .hdr .wrap 의 60px 높이가 메뉴 안쪽에도 적용되어 잘리던 문제 수정 */
.hdr .menu-panel .wrap { height: auto; display: grid; align-items: start; }
.menu-panel { max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); overscroll-behavior: contain; }
/* 모바일 메뉴: 하단 예약 바(.dock)에 마지막 항목이 가려지던 문제 수정 */
@media (max-width: 899px) {
  .hdr .menu-panel .wrap { padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px) + 24px); }
}
/* 진료비 안내 페이지 */
.pr-item { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.pr-item h3 { font-size: var(--s2); margin-bottom: 8px; }
.pr-item > p:first-of-type { color: var(--sub); }
.pr-go { margin-top: 14px; font-weight: 700; }
.pr-go a { color: var(--sky-deep); }
.pr-for { font-weight: 700; margin: 20px 0 10px; }
.pr-item, section[id^="cat-"] { scroll-margin-top: 76px; }
.answer { font-size: var(--s1); font-weight: 500; color: var(--ink); background: var(--sky-tint); border-radius: 12px; padding: 14px 16px; margin-top: 4px; }
.answer { max-width: 820px; }
/* 원장 칼럼 */
.col-list { list-style: none; display: grid; gap: 16px; }
@media (min-width: 720px) { .col-list { grid-template-columns: 1fr 1fr; } }
.col-card { display: grid; grid-template-rows: auto 1fr; height: 100%; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper); text-decoration: none; color: inherit; }
.col-card .cc-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.col-card .hc-body { padding: 16px 18px 18px; }
.col-card h3 { font-size: var(--s1); margin: 6px 0; }
.col-card p { color: var(--sub); }
.col-card .hc-go { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--sky-deep); }
article .prose .flow { margin-top: 16px; }
/* 메인 진료비 카드 */
.pcards { display: grid; gap: 12px; max-width: 1000px; }
@media (min-width: 640px) { .pcards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .pcards { grid-template-columns: repeat(3, 1fr); } }
.pcard { display: flex; flex-direction: column; padding: 20px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.pcard:hover { border-color: var(--sky); box-shadow: 0 6px 18px rgba(19,33,58,.08); }
.pcard h3 { font-size: var(--s1); }
.pc-sub { font-size: var(--s-1); color: var(--sub); margin-top: 2px; }
.pcard dl { margin: 14px 0 12px; display: grid; gap: 8px; }
.pcard dl > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.pcard dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.pcard dt { font-size: .9375rem; }
.pcard dd { font-weight: 800; color: var(--sky-deep); white-space: nowrap; }
.pc-go { margin-top: auto; font-weight: 700; font-size: .9375rem; color: var(--sky-deep); }
/* 상단 메뉴 7개: 좁은 PC 화면에서 간격 조정 */
@media (min-width: 900px) and (max-width: 1099px) { .hdr-nav { gap: 14px; font-size: .875rem; } .hdr-book { padding: 0 12px; } }
.hdr-nav a { white-space: nowrap; }
