/* UK-all 프로토타입 공통 스타일. 색·폰트·폭은 tokens.css 변수만 사용한다. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--uk-burgundy); outline-offset: 3px; border-radius: 2px;
}
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(calc(100% - var(--gutter) * 2), var(--content-max)); margin: 0 auto; }
.reading { max-width: var(--reading-max); }

/* ── 상단 ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); color: var(--header-fg);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--header-line); }
.site-header a:focus-visible { outline-color: currentColor; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--logo-color); }
.logo-mark {
  display: block; width: 148px; aspect-ratio: 5599 / 1069; background: currentColor;
  -webkit-mask: url('../img/logo.png') center / contain no-repeat;
  mask: url('../img/logo.png') center / contain no-repeat;
}
.site-nav ul { display: flex; gap: 6px; }
.site-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 16px; font-weight: 600; text-decoration: none; color: var(--header-fg); border-radius: 6px;
}
.site-nav a:hover { background: var(--header-hover-bg); }

/* ── 공통 타이포 ── */
.headline {
  font-size: clamp(28px, 3.4vw, 38px); line-height: 1.38; letter-spacing: -.035em;
  font-weight: 700; color: var(--c-heading);
}
.prose p + p { margin-top: 1.1em; }
.prose strong { color: var(--c-heading); font-weight: 650; }
.muted { color: var(--c-muted); }
.caption { font-size: 15px; line-height: 1.7; color: var(--c-muted); }
.gold-rule { width: 48px; height: 2px; background: var(--uk-gold-soft); margin: 0 0 24px; border: 0; }

/* 간격 규칙 (PC·휴대폰 각각 하나): 섹션 --section-pad / 큰 묶음 사이 --block-gap / 제목→내용 --head-gap */
.chapter { padding: var(--section-pad) 0; }

/* PC 2단: 왼쪽 제목(5/12) · 오른쪽 본문(7/12). 휴대폰은 1단 */
.split { display: grid; gap: var(--head-gap); }
.split-main > * + * { margin-top: 16px; }

/* 섹션 배경 리듬: 아이보리(기본) / 흰색(.sec-alt) / 네이비(.sec-dark) */
.sec-alt { background: var(--sec-alt-bg); }
.sec-dark {
  background: var(--sec-dark-bg); color: var(--sec-dark-text);
  --c-heading: var(--sec-dark-heading); --c-text: var(--sec-dark-text);
  --c-muted: var(--sec-dark-muted);
  --c-link: var(--sec-dark-heading);
}
.sec-dark button:focus-visible { outline-color: var(--sec-dark-heading); }
.sec-dark a:focus-visible { outline-color: var(--sec-dark-heading); }
.chapter-head { margin-bottom: var(--head-gap); }

/* 준비 중 / 예시 자리 */
.placeholder {
  position: relative; background: var(--uk-placeholder); border-radius: var(--radius);
  --c-heading: var(--uk-navy); --c-muted: var(--uk-muted);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--c-muted); font-size: 15px; line-height: 1.6; padding: 20px;
}
.placeholder strong { display: block; color: var(--c-heading); font-size: 16px; font-weight: 650; }
.tag-ready {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--uk-burgundy);
  border: 1px solid currentColor; border-radius: 99px; padding: 1px 10px; margin-bottom: 8px;
}
.example-note { font-size: 14px; margin-top: 14px; }
.example-note::before { content: '※ '; }

/* ── 01 첫 화면 ── */
/* 배경 영상(한 번 재생 후 마지막 장면에서 멈춤). 정지 이미지는 배경으로 먼저 깔아 둔다 */
.hero-video {
  position: relative; overflow: hidden; display: flex; color: var(--uk-ivory);
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  background: var(--uk-navy) url('../video/hero-pc-poster.webp') center / cover no-repeat;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.hero-video.is-playing .hero-bg { opacity: 1; }
/* 반복 재생 이음새 (25차): 끝나기 직전 어둡게 → 처음부터 밝게. 글자(.hero-copy, z-index 2)는 막 위 */
.hero-fade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgb(20, 24, 40); opacity: 0; transition: opacity .6s ease; }
.hero-fade.is-dim { opacity: .6; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, var(--hero-shade-strong) 0%, var(--hero-shade-mid) 30%, transparent 55%);
}
.hero-copy { position: relative; z-index: 2; align-self: flex-end; text-align: center; padding-bottom: 56px; }
.hero-video h1 {
  font-size: clamp(40px, 4.1vw, 52px); line-height: 1.28; letter-spacing: -.04em; font-weight: 700;
  color: var(--uk-ivory); text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.hero-video .hero-lede { margin-top: 14px; font-size: 19px; line-height: 1.6; color: var(--uk-ivory); text-shadow: 0 1px 10px rgba(0, 0, 0, .3); }
.br-mo { display: none; }

/* ── 02 공감 ── */
.concerns { display: grid; gap: 28px; }
.concern-card { background: var(--uk-white); border: 1px solid var(--uk-border); border-radius: var(--radius); overflow: hidden; }
.concern-photo { display: block; width: 100%; height: auto; }
.concern-list { padding: 4px 20px 8px; }
.concern-list li + li { border-top: 1px solid var(--uk-border); }
.concern {
  display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 16px 0;
  color: inherit; text-decoration: none;
}
.concern-text { flex: 1; min-width: 0; }
.concern-q { display: block; font-size: 18px; line-height: 1.5; letter-spacing: -.02em; font-weight: 700; color: var(--c-heading); }
.concern-field { display: block; margin-top: 4px; font-size: 14px; color: var(--c-muted); }
.concern-arrow { flex: none; font-size: 20px; color: var(--c-accent); transition: transform .2s; }
.concern:hover .concern-arrow { transform: translateX(4px); }
.concern:hover .concern-q { text-decoration: underline; text-underline-offset: 4px; }
.concern:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.voices-close { margin-top: var(--block-gap); }

/* ── 03 진료 관점 ── */
.persp-top { display: grid; gap: var(--head-gap); }
.persp-text .prose { margin-top: var(--head-gap); }
/* 원형 그림 (14차): 글자는 사이트 글꼴, 휴대폰은 글자를 키워 13px 아래로 줄지 않게 */
.wheel { width: 100%; max-width: 460px; margin: 0 auto; }
.wheel-svg { display: block; width: 100%; height: auto; }
.wheel-svg text { text-anchor: middle; font-weight: 700; }
.wheel-svg .wn { font-size: 13px; }
.wheel-svg .wl { font-size: 17px; }
.wheel-svg .wc { font-size: 18px; font-weight: 800; }
.wheel-svg .wq { transform-origin: 280px 230px; transition: opacity .3s ease, transform .3s ease; }
.wheel-svg .wq2 { transition-delay: .2s; }
.wheel-svg .wq3 { transition-delay: .4s; }
.wheel-svg .wq4 { transition-delay: .6s; }
.wheel.is-pending .wq { opacity: 0; transform: scale(.94); }
.perspectives { display: grid; gap: 36px; counter-reset: pv; margin-top: var(--block-gap); }
.perspectives li { counter-increment: pv; }
.perspectives h3 { font-size: 21px; line-height: 1.45; color: var(--c-heading); font-weight: 700; margin-bottom: 10px; }
.perspectives h3::before {
  content: counter(pv, decimal-leading-zero); display: block;
  font-size: 15px; font-weight: 700; color: var(--c-accent); letter-spacing: .06em; margin-bottom: 6px;
}
/* 안내 문장 (14차): 사이트 전체 한 형식 — 골드 세로선 + 조금 진한 회색. 주의사항 박스는 별도 */
/* 폭은 콘텐츠 폭까지, 문단 사이는 줄 간격과 비슷하게 (15차) */
.guide-note { max-width: none; border-left: 3px solid var(--c-line-gold); padding-left: 14px; color: var(--c-note); line-height: 1.7; }
.guide-note > p + p { margin-top: 4px; }
.persp-note { margin-top: var(--block-gap); font-size: 16px; }

/* ── 04 의료진 ── */
.people { display: grid; gap: 0; }
/* 두 원장 사이 구분선 (15차): 아이보리 20%, 위아래 56px 이상 */
.person + .person { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--sec-dark-rule); }
/* 비율은 이미지 자체(720×900, 4:5)를 따른다. 래퍼에 aspect-ratio 를 걸지 않는다 (iOS Safari) */
.person-photo { display: block; width: 100%; max-width: 360px; height: auto; border-radius: var(--radius); background: var(--uk-placeholder); }
.person h3 { margin-top: 22px; font-size: 26px; color: var(--c-heading); font-weight: 700; letter-spacing: -.03em; }
.person h3 small { font-size: 17px; font-weight: 500; color: var(--c-muted); margin-left: 6px; }
.person .creds { margin-top: 8px; font-size: 16px; color: var(--c-muted); }
.person .focus { margin-top: 14px; }

/* 자세히 읽기 링크 */
.more-wrap { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 18px; }
.more-link {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 650;
  color: var(--c-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.more-link:hover { text-decoration-thickness: 2px; }

/* 원장 영상 카드: 썸네일만 먼저, 누르면 크게 보기에서 재생 */
.video-block { margin-top: 28px; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.video-grid li { min-width: 0; }
.video-card {
  display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left;
  font: inherit; color: inherit; cursor: pointer;
}
.video-thumb { position: relative; display: block; border-radius: 8px; overflow: hidden; background: rgba(0, 0, 0, .2); line-height: 0; }
.video-thumb img { display: block; width: 100%; height: auto; transition: transform .3s; }
.video-card:hover .video-thumb img { transform: scale(1.03); }
.video-play {
  position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding-left: 3px;
  background: var(--uk-ivory); color: var(--uk-burgundy); box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.video-len {
  position: absolute; right: 6px; bottom: 6px; padding: 3px 6px; border-radius: 4px;
  background: rgba(12, 18, 38, .82); color: var(--uk-ivory); font-size: 12px; font-weight: 600; line-height: 1.2;
}
.video-title {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;  /* 짧은 제목 한 줄 (14차) */
  margin-top: 8px; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--c-heading);
}
.video-card:focus-visible { outline-offset: 4px; border-radius: 8px; }

/* 원장 상세 페이지 머리 */
.doctor-intro .headline small { font-size: .55em; font-weight: 500; color: var(--c-muted); margin-left: 4px; }
.doctor-sub { margin-top: 10px; font-size: clamp(19px, 2vw, 22px); font-weight: 600; color: var(--c-heading); }
.doctor-intro .creds { margin-top: 10px; font-size: 16px; color: var(--c-muted); }

/* ── 05 진료 배경 ── */
.books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; margin-top: var(--block-gap); }
.books-note { margin-top: 20px; }
/* 책 표지 (12차, 시안 540×780): 책 느낌 — 거의 직각 모서리·은은한 그림자, 누르면 크게 보기 */
.book-item {
  display: block; width: 100%; padding: 0; border: 0; background: var(--uk-white); cursor: zoom-in; line-height: 0;
  border-radius: 2px; overflow: hidden; box-shadow: 0 1px 2px rgba(28, 45, 96, .14), 0 8px 22px rgba(28, 45, 96, .16);
}
.book-item img { display: block; width: 100%; height: auto; transition: transform .3s; }
.book-item:hover img { transform: scale(1.02); }
.book-item:focus-visible { outline-offset: 3px; }
.book h3 .tag-ready { margin: 0 0 0 4px; vertical-align: 2px; font-size: 12px; }
.book h3 { margin-top: 14px; line-height: 1.5; font-size: 18px; color: var(--c-heading); font-weight: 650; }
.book p { font-size: 15px; color: var(--c-muted); }
.book .tag-mo { display: none; }

/* ── 06 진료 과정 ── */
.flow { display: grid; gap: 0; counter-reset: fl; }
.flow li {
  counter-increment: fl; position: relative; padding: 0 0 26px 52px;
  font-size: 19px; font-weight: 650; color: var(--c-heading); min-height: 44px;
}
.flow li::before {
  content: counter(fl); position: absolute; left: 0; top: -2px; width: 36px; height: 36px;
  border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent);
  font-size: 16px; display: flex; align-items: center; justify-content: center;
}
.flow li::after { content: ''; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--c-line-gold); }
.flow li:last-child::after { display: none; }
.principle { font-size: clamp(20px, 2.2vw, 24px); font-weight: 650; color: var(--c-heading); line-height: 1.55; }

/* 7가지 평가: 사진(위) + 제목·설명. 사진 비율은 이미지 자체(800×600)로 — 버튼에 aspect-ratio 금지 */
.equip-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: var(--block-gap); }
.equip {
  flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column;
  background: var(--uk-white); border: 1px solid var(--uk-border); border-radius: var(--radius); overflow: hidden;
}
.equip-photo { display: block; width: 100%; padding: 0; border: 0; background: var(--uk-placeholder); cursor: zoom-in; line-height: 0; overflow: hidden; }
.equip-photo img { display: block; width: 100%; height: auto; transition: transform .3s; }
.equip-photo:hover img { transform: scale(1.03); }
.equip-photo:focus-visible { outline-offset: -3px; }
.equip-text { padding: 18px 20px 22px; }
.equip-text h3 { font-size: 19px; line-height: 1.45; font-weight: 700; color: var(--c-heading); margin: 0 0 8px; }
.equip-text p { font-size: 16px; line-height: 1.7; }
.equip-text .use { margin-top: 8px; font-size: 15px; color: var(--c-muted); }
.equip-note { border-color: var(--uk-gold-soft); justify-content: center; }  /* 12차: 다른 카드와 같은 바탕, 골드 테두리로만 구분 */
.equip-note .equip-text p { color: var(--c-text); }
.equip-row .equip-grid { margin-top: 0; }


/* 진료 과정 5단계 묶음 (15차): 휴대폰은 번호+이름이 제목, PC 는 왼쪽 3/12 · 오른쪽 9/12 */
.steps { margin-top: var(--block-gap); }
.step { padding: var(--row-gap) 0; border-top: 1px solid var(--uk-border); }
.step:last-child { padding-bottom: 0; }
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.step-nums { display: flex; gap: 6px; flex: none; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent);
  font-size: 16px; font-weight: 650; display: flex; align-items: center; justify-content: center;
}
.step-head h3 { font-size: 21px; line-height: 1.4; font-weight: 700; color: var(--c-heading); }
.step-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.step-photos .equip-photo { border-radius: var(--radius); }
.step-lead { font-size: 19px; font-weight: 700; color: var(--c-heading); line-height: 1.55; }
.step-body > p + p { margin-top: 10px; }
.step-body > .more-wrap { margin-top: 18px; }
.step .equip-grid { margin-top: 0; justify-content: flex-start; gap: 12px; }
.step .equip { flex-basis: calc((100% - 12px) / 2); }
.step .equip-text { padding: 14px 14px 18px; }
.step .equip-text h3 { font-size: 17px; }
.step .equip-text p { font-size: 15px; line-height: 1.65; }
.equip-guide { margin-top: 24px; font-size: 16px; }

/* ③④ 순환 고리 (17차, 기준 docs/source/design/process-cycle.svg): 그림의 원 색 = 카드 점 색 */
.cycle { display: grid; gap: 24px; margin-top: 20px; }
.cycle-fig { width: 100%; max-width: 360px; margin: 0 auto; }
.cycle-svg { display: block; width: 100%; height: auto; }
.cycle-svg text { text-anchor: middle; font-weight: 700; }
.cycle-svg .cy-node { font-size: 14px; }
.cycle-svg .cy-center { font-size: 15px; fill: var(--uk-navy); }
.cycle-svg .cy-arrow { fill: none; stroke: var(--c-line-gold); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .2s linear; }
.cycle-svg .cy-head { fill: var(--c-line-gold); transition: opacity .05s; }
.cycle-svg .cy-a2 { transition-delay: .2s; }
.cycle-svg .cy-a3 { transition-delay: .4s; }
.cycle-svg .cy-a4 { transition-delay: .6s; }
.cycle-svg .cy-head.cy-a1 { transition-delay: .18s; }
.cycle-svg .cy-head.cy-a2 { transition-delay: .38s; }
.cycle-svg .cy-head.cy-a3 { transition-delay: .58s; }
.cycle-svg .cy-head.cy-a4 { transition-delay: .78s; }
.cycle-fig.is-pending .cy-arrow { stroke-dashoffset: 1; transition-delay: 0s; transition-duration: 0s; }
.cycle-fig.is-pending .cy-head { opacity: 0; transition-delay: 0s; }
.cycle-cards { display: grid; gap: 12px; }
.cycle-card { background: var(--uk-white); border: 1px solid var(--uk-border); border-radius: var(--radius); padding: 18px 20px 18px 42px; position: relative; }
.cycle-card::before { content: ''; position: absolute; left: 20px; top: 26px; width: 10px; height: 10px; border-radius: 50%; }
.cycle-card.c1::before { background: var(--uk-burgundy); }
.cycle-card.c2::before { background: var(--uk-navy); }
.cycle-card.c3::before { background: var(--uk-gold-soft); }
.cycle-card.c4::before { background: #3E4757; }
.cycle-card h4 { margin: 0; font-size: 18px; font-weight: 700; color: var(--c-heading); }
.cycle-card p { margin-top: 4px; font-size: 16px; line-height: 1.65; }

/* ⑤ 분야 탭 (17차): 휴대폰 알약 탭 가로 밀기 / PC 폭 전체 밑줄 탭 */
.ptabs { margin-top: 20px; }
.ptabs-hint { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 10px; font-size: 14px; font-weight: 650; color: var(--c-accent); }
.ptabs-hint.is-done { display: none; }
.ptabs-arrow {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--c-accent); color: var(--c-on-accent); font-size: 14px; animation: ptabs-nudge 1.2s ease-in-out infinite alternate;
}
@keyframes ptabs-nudge { from { transform: translateX(-2px); } to { transform: translateX(3px); } }
.ptabs-list {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin-right: calc(var(--gutter) * -1); padding: 2px var(--gutter) 2px 2px;  /* 화면 끝까지 — 마지막 탭이 잘려 보여 더 있음을 알린다 */
}
.ptabs-list::-webkit-scrollbar { display: none; }
.ptab {
  flex: none; min-height: 44px; padding: 8px 16px; border-radius: 99px; border: 1.5px solid var(--uk-border); background: var(--uk-white);
  font: inherit; font-size: 16px; font-weight: 650; color: var(--c-heading); white-space: nowrap; cursor: pointer;
}
.ptab[aria-selected="true"] { background: var(--uk-navy); border-color: var(--uk-navy); color: var(--uk-white); }
.ptabs-panels { display: grid; margin-top: 14px; }
.ppanel {
  grid-area: 1 / 1; display: none; gap: 20px; align-content: start;
  background: var(--uk-white); border: 1px solid var(--uk-border); border-radius: var(--radius); padding: 22px 20px;
}
.ppanel.is-current { display: grid; }
.pp-k { font-size: 14px; font-weight: 700; color: var(--c-accent); }
.pp-t { margin-top: 6px; font-size: 18px; line-height: 1.6; font-weight: 700; color: var(--c-heading); }
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.principles { display: grid; gap: 16px; margin-top: 24px; }
.principles .pr-t { font-weight: 700; color: var(--c-heading); }
.chip {
  display: inline-block; font-size: 15px; line-height: 1.4; padding: 6px 12px;
  background: var(--c-accent-soft); border: 1px solid transparent; border-radius: 99px; color: var(--c-text);
}

/* ── 07 마무리 ── */
.closing-line { font-size: clamp(24px, 3vw, 32px); line-height: 1.5; letter-spacing: -.035em; font-weight: 700; color: var(--c-heading); }
.process-close { margin-top: var(--block-gap); padding-top: 32px; border-top: 1px solid var(--uk-border); }
/* 메인 FAQ (16차): 휴대폰 아코디언 / PC 탭 — 같은 마크업, 선택 상태 하나(.is-current)를 함께 쓴다 */
.faq-block { margin-top: var(--block-gap); }
.faq-sub { margin-top: 12px; color: var(--c-muted); }
.faq-tabs { display: none; }
.faq-items { margin-top: var(--head-gap); border-top: 1px solid var(--uk-border); }
.faq-item { border-bottom: 1px solid var(--uk-border); }
.faq-toggle {
  width: 100%; min-height: 56px; display: flex; align-items: center; gap: 14px; padding: 14px 6px 14px 14px;
  border: 0; background: transparent; text-align: left; font: inherit; font-size: 17px; font-weight: 650; line-height: 1.5;
  color: var(--c-heading); cursor: pointer;
}
.faq-toggle-q { flex: 1; min-width: 0; }
.faq-icon { position: relative; flex: none; width: 30px; height: 30px; border: 1.5px solid var(--c-line-gold); border-radius: 50%; }
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 1px;
  background: var(--c-accent); transform: translate(-50%, -50%);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-current { background: var(--uk-ivory); }
.faq-item.is-current .faq-icon::after { display: none; }
.faq-panel { display: none; padding: 0 14px 24px; }
.faq-item.is-current .faq-panel { display: block; }
.faq-q { display: none; }
/* 진료 분야 상세 FAQ (17차): 메인 휴대폰 FAQ 와 같은 아코디언 + 골드 Q, PC 에서도 같은 모양 */
.faq-accordion { border-top: 1px solid var(--uk-border); }
.faq-toggle .faq-mark { flex: none; font-size: 19px; font-weight: 800; color: var(--c-line-gold); }
.faq-accordion .faq-panel p { color: var(--c-text); }
.faq-a > p + p { margin-top: 10px; }
/* 첫 진료 준비물: 흰 카드 · 골드 테두리 체크 상자 + 버건디 체크. 카드 왼쪽 선은 안내 문장과 맞춘다 */
.faq-check { margin-top: 16px; padding: 4px 18px; background: var(--uk-white); border: 1px solid var(--uk-border); border-radius: var(--radius); }
.faq-check li { position: relative; padding: 12px 0 12px 34px; }
.faq-check li + li { border-top: 1px solid var(--uk-border); }
.faq-check li::before {
  content: ''; position: absolute; left: 0; top: 15px; width: 20px; height: 20px;
  border: 1.5px solid var(--c-line-gold); border-radius: 4px; box-sizing: border-box;
}
.faq-check li::after {
  content: ''; position: absolute; left: 7px; top: 18px; width: 6px; height: 11px;
  border: solid var(--c-accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.visit { display: grid; gap: var(--head-gap); }
.visit-main .prose { margin-top: 24px; }
/* 안내 카드 (진료시간 · 위치 안내, 16차): 흰 바탕 · 옅은 테두리 · 모서리 12px · 작은 버건디 제목 */
.info-card { background: var(--uk-white); border: 1px solid var(--uk-border); border-radius: 12px; padding: 22px 24px; }
.info-title { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--c-accent); letter-spacing: .02em; }
.info-table { width: 100%; border-collapse: collapse; font-size: 17px; }
.info-table th, .info-table td { padding: 12px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--uk-border); font-variant-numeric: tabular-nums; }
.info-table tr:first-child th, .info-table tr:first-child td { border-top: 0; }
.info-table th { width: 92px; padding-right: 12px; font-weight: 650; color: var(--c-muted); white-space: nowrap; }
.info-table td { color: var(--c-text); font-weight: 600; }
.hours-tel {
  display: grid; grid-template-columns: 92px auto 1fr; align-items: baseline; row-gap: 2px;
  margin-top: 6px; padding-top: 16px; border-top: 2px solid var(--c-line-gold);
}
.hours-tel-k { font-weight: 650; color: var(--c-muted); }
.hours-tel-num {
  font-size: 24px; font-weight: 800; letter-spacing: -.01em; color: var(--c-accent); white-space: nowrap;
  text-decoration: none; font-variant-numeric: tabular-nums;
}
.hours-tel-note { justify-self: end; padding-left: 10px; font-size: 13px; color: var(--c-note); white-space: nowrap; }
.info-list { display: grid; gap: 18px; }
.info-list dt { font-size: 15px; font-weight: 700; color: var(--c-muted); }
.info-list dd { margin-top: 2px; }
.pending { display: inline-block; font-size: 14px; font-weight: 700; color: var(--uk-burgundy); margin-left: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 20px;
  border-radius: 7px; font-size: 17px; font-weight: 650; line-height: 1.35; text-align: center;
  text-decoration: none; border: 0; cursor: pointer;
}
/* 버튼은 두 가지만: 채운 버튼(버건디) / 테두리 버튼(버건디 테두리) — 12차 */
.btn-primary { background: var(--c-accent); color: var(--c-on-accent); }
.btn-outline { background: transparent; color: var(--c-accent); box-shadow: inset 0 0 0 1.5px var(--c-accent); }
/* 돌아가기 (14차): 골드 = 안내·이동. 네이비 글자 대비 5.3:1 */
.btn-back { background: var(--c-back-bg); color: var(--c-back-fg); }
/* 버튼 묶음 (모든 페이지 공통, 12차): 휴대폰은 위아래로 꽉 찬 폭, PC(769px~)는 나란히 같은 너비 */
.btn-group { display: grid; grid-template-columns: 1fr; gap: 10px; }
.btn-group > .btn { width: 100%; }
.btn-group > .btn + .btn { margin-top: 0; }  /* 상세 본문 .doc-main > * + * 여백보다 앞서게 */

/* ── 공간 사진 콜라주 ── */
.chapter.space { padding: 72px 0; }
.space-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.space-grid li { min-width: 0; }
/* 사진은 모두 16:9 — 자르지 않고 원래 비율. 버튼에 aspect-ratio·높이를 걸지 않는다 (iOS Safari 칸 무너짐 방지) */
.space-item {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--uk-placeholder);
  border-radius: 6px; overflow: hidden; cursor: zoom-in; line-height: 0;
}
.space-item img { display: block; width: 100%; height: auto; transition: transform .3s; }
.space-item:hover img { transform: scale(1.03); }
.space-item:focus-visible { outline-offset: 2px; }
.space-note { margin-top: 14px; font-size: 14px; }
/* JS가 있을 때만 화면에 들어오면 살짝 나타난다 */
.space-grid.fade-ready li { opacity: 0; transition: opacity .8s ease; }
.space-grid.fade-ready li.is-in { opacity: 1; }
@media (min-width: 769px) {
  /* PC: 왼쪽 절반 209호, 오른쪽 절반 201호 (HTML 순서는 209호 3장 → 201호 3장) */
  .space-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "r r l l" "h w o t"; gap: 8px; }
  .space-grid .sp-r { grid-area: r; } .space-grid .sp-h { grid-area: h; } .space-grid .sp-w { grid-area: w; }
  .space-grid .sp-l { grid-area: l; } .space-grid .sp-o { grid-area: o; } .space-grid .sp-t { grid-area: t; }
}

/* ── 크게 보기 (공간 사진) ── */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: var(--lightbox-bg); color: var(--uk-ivory);
  display: grid; grid-template-rows: auto 1fr; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.lightbox[hidden] { display: none; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; }
.lb-title { font-size: 17px; font-weight: 600; line-height: 1.5; }
.lb-title b { font-weight: 700; margin-right: 10px; }
.lb-btn {
  flex: none; min-width: 56px; min-height: 56px; border: 0; border-radius: 50%;
  background: rgba(248, 247, 241, .14); color: var(--uk-ivory); font-size: 30px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.lb-btn:hover { background: rgba(248, 247, 241, .26); }
.lb-btn:focus-visible { outline: 3px solid var(--uk-ivory); outline-offset: 2px; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 8px 76px 24px; min-height: 0; touch-action: pan-y; }
.lb-stage { flex-direction: column; }
.lb-media { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 0; }
.lb-media img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; }
.lightbox.is-video .lb-media { height: auto; }
.lb-media iframe { display: block; width: min(100%, 1100px, calc((100svh - 220px) * 16 / 9)); aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 4px; background: #000; }
.lb-caption { margin-top: 14px; max-width: 900px; padding: 0 8px; text-align: center; font-size: 17px; font-weight: 600; line-height: 1.5; color: var(--uk-ivory); }
.lb-caption:empty { display: none; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (max-width: 768px) {
  .lb-stage { padding: 8px 0 96px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 72px); }
  .lb-next { right: calc(50% - 72px); }
}
body.lb-open { position: fixed; left: 0; right: 0; overflow: hidden; }

/* ── 오시는 길 ── */
.visit-way { margin-top: var(--block-gap); }
.way-grid { display: grid; gap: 20px; }
.way-title { font-size: 22px; font-weight: 700; color: var(--c-heading); margin-bottom: 16px; }
.map-item {
  display: block; width: 100%; padding: 0; border: 1px solid var(--uk-border); border-radius: var(--radius);
  overflow: hidden; background: var(--uk-white); cursor: zoom-in; line-height: 0;
}
.map-item img { display: block; width: 100%; height: auto; }
.way-card { display: flex; flex-direction: column; }
/* 지도 버튼 (16차): 각 사 색 · 같은 너비 한 줄 · 높이 44px. 공식 로고를 구하지 못해 글자만 (docs/source/brand/map-logos.md) */
.map-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.map-btn {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; border-radius: 7px;
  font-size: 16px; font-weight: 700; text-decoration: none; text-align: center;
}
.map-naver { background: var(--naver-bg); color: var(--naver-fg); }
.map-kakao { background: var(--kakao-bg); color: var(--kakao-fg); }


/* ── 상세 페이지 (care/) ── */
.care { padding: 56px 0 var(--section-pad); }
/* 상세 페이지 행: PC 왼쪽 제목(4/12) · 오른쪽 본문(8/12), 표·장비 카드는 전체 폭. 휴대폰은 1단 */
.doc-row { display: grid; gap: 14px; }
.doc-side h2, .doc-side h3 { margin: 0; }
.doc-side h3 { font-size: 20px; line-height: 1.45; }
.doc-main { min-width: 0; max-width: var(--reading-max); }
.doc-full { min-width: 0; }
.doc-main > * + * { margin-top: 1em; }
.doc-main > .caution, .doc-main > .faq-accordion { margin-top: 20px; }
.privacy .doc-side h2 { font-size: 21px; }
.doc-full .table-wrap { margin-top: 8px; }
.doc-head .doc-main .field-switch { margin: 0; }
.care-end-row { margin-top: var(--row-gap); }
.care-end-row .care-end { margin-top: 0; }
.doctor-row .person-photo { max-width: 340px; }
.doctor-body { margin-top: 28px; }
.doctor-body p + p { margin-top: 1em; }
.doctor-row .video-block { margin-top: 32px; }
.doctor-row .care-end { margin-top: 40px; }
.doc-main .visit-way { margin-top: 40px; }
.care-head .headline { font-size: clamp(32px, 4.2vw, 46px); }
.care-lede { font-size: clamp(20px, 2.2vw, 23px); line-height: 1.6; font-weight: 600; color: var(--c-heading); }
.field-switch { margin: 32px 0 8px; padding: 18px 0; border-top: 1px solid var(--uk-border); border-bottom: 1px solid var(--uk-border); display: grid; gap: 8px; }
.field-switch-title { font-size: 14px; font-weight: 700; color: var(--c-muted); }
.field-switch > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
.field-switch span { font-size: 14px; font-weight: 700; color: var(--uk-burgundy); min-width: 5.5em; }
.field-switch ul { display: flex; flex-wrap: wrap; gap: 0 4px; }
.field-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 16px; text-decoration: none; border-radius: 6px; }
.field-switch a:hover { background: var(--c-accent-soft); }
.field-switch a[aria-current="page"] { background: var(--c-accent); color: var(--c-on-accent); font-weight: 650; }

.care-sec { margin-top: var(--row-gap); }
.doc-head + .care-sec { margin-top: var(--head-gap); }
.care-sec h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(23px, 2.6vw, 28px); line-height: 1.4; color: var(--c-heading); font-weight: 700; letter-spacing: -.03em; margin-bottom: 20px; }
.care-sec h2 span { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--c-line-gold); color: var(--c-accent); font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
.care-sec h3 { font-size: 19px; color: var(--c-heading); margin: 32px 0 10px; }
.care-sec p + p { margin-top: 1em; }
.care-sec strong { color: var(--c-heading); font-weight: 650; }
.care-lede + p { margin-top: 18px; }
.care-list { display: grid; gap: 10px; margin-top: 8px; }
.care-list li { position: relative; padding-left: 20px; }
.care-list li::before { content: ''; position: absolute; left: 2px; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--uk-gold-rich); }

.table-wrap { margin-top: 24px; overflow-x: auto; }
.assess-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.6; background: var(--uk-white); }
.assess-table th, .assess-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--uk-border); }
.assess-table thead th { background: var(--c-accent); color: var(--c-on-accent); font-weight: 650; font-size: 15px; }
.assess-table tbody th { color: var(--c-heading); font-weight: 650; width: 34%; }
.assess-table td:last-child { color: var(--c-muted); width: 26%; }

.caution { background: var(--uk-white); border: 1px solid var(--uk-border); border-left: 4px solid var(--uk-burgundy); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 24px; }
.care-sec .caution h2 { color: var(--uk-burgundy); font-size: 20px; margin-bottom: 8px; }
.caution p { font-weight: 600; color: var(--c-text); }
.caution .pending-note { font-weight: 500; color: var(--c-muted); }
.care-end { margin-top: 56px; }
/* 첫 진료 준비 카드 (17차): 메인 FAQ 03 과 같은 체크리스트 */
.prep-card { background: var(--uk-ivory); border: 1px solid var(--uk-border); border-radius: 12px; padding: 22px 24px; }
.prep-title { font-size: 15px; font-weight: 700; color: var(--c-accent); letter-spacing: .02em; margin-bottom: 6px; }
.care-sec .prep-title { display: block; margin: 0 0 6px; font-size: 15px; }
.prep-card .faq-check { margin-top: 14px; }
/* 상세 하단 (18차): 한 줄 2칸 [전화 아이콘 1800-6544][← 메인으로] — 휴대폰 360px 에서도 한 줄 */
.care-end-tel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.care-end-tel > .btn { width: 100%; margin: 0; padding: 12px 10px; white-space: nowrap; }
.care-tel { font-variant-numeric: tabular-nums; }
.care-tel-btn { background: var(--c-accent); color: var(--c-on-accent); }
.care-tel-text { display: none; }
.flow-vertical li { font-size: 18px; }

/* ── 하단 ── */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); padding: 44px 0 calc(48px + var(--bottom-nav-h)); font-size: 15px; }
.site-footer .logo { color: var(--footer-logo); }
.site-footer a:focus-visible { outline-color: currentColor; }
.footer-info { margin-top: 20px; display: grid; gap: 6px; }
.fi-row { display: contents; }
.fi { display: flex; flex-wrap: wrap; gap: 0 12px; }
.fi-k { color: var(--footer-fg); font-weight: 700; min-width: 7.5em; }
.fi-v { color: var(--footer-muted); }
.footer-copy { margin-top: 4px; color: var(--footer-muted); font-size: 14px; }
.footer-info a { text-decoration: none; }
.footer-links { margin-top: 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--footer-fg); text-decoration: underline; text-underline-offset: 4px; }
.footer-links + .footer-note { margin-top: 4px; }
.footer-note { margin-top: 20px; color: var(--footer-muted); font-size: 14px; }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr;
  background: rgba(248, 247, 241, .98); border-top: 1px solid var(--uk-border);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--bottom-nav-h);
  font-size: 16px; font-weight: 700; line-height: 1; text-decoration: none;
}
.bottom-nav .bn-icon { flex: none; display: block; }
.bottom-nav a.call { background: var(--c-accent); color: var(--uk-ivory); }
.bottom-nav a.kakao { background: var(--kakao-bg); color: var(--kakao-fg); }

/* ── 맨 위로 버튼 ── */
.to-top {
  position: fixed; right: 16px; bottom: 24px; z-index: 55;
  width: 56px; height: 56px; border: 0; border-radius: 50%; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  background: var(--uk-navy); color: var(--uk-ivory); cursor: pointer;
  box-shadow: 0 0 0 1.5px rgba(248, 247, 241, .6), 0 4px 14px rgba(0, 0, 0, .3);  /* 아이보리 테두리: 네이비 푸터 위에서도 보이게 (16차) */
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.to-top.is-shown { opacity: 1; visibility: visible; }
.to-top svg { color: var(--uk-gold-soft); }
.to-top span { font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .04em; margin-top: 1px; }
.to-top:focus-visible { outline-color: var(--uk-navy); }
body.lb-open .to-top, body.lb-open .kakao-float { display: none; }
/* PC 카톡 상담 떠 있는 버튼 (15차): 처음엔 TOP 자리, TOP 이 나타나면 그 위로 */
.kakao-float {
  position: fixed; right: 16px; bottom: 24px; z-index: 55; width: 56px; height: 56px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: var(--kakao-bg); color: var(--kakao-fg); box-shadow: 0 4px 14px rgba(28, 45, 96, .25);
  transition: transform .3s ease;
}
.kakao-float:focus-visible { outline-color: var(--uk-navy); }
html.top-shown .kakao-float { transform: translateY(-68px); }
/* 카톡 상담 버튼 (첫 진료 준비 안내) */
.btn-kakao { background: var(--kakao-bg); color: var(--kakao-fg); }
.btn-icon { flex: none; display: block; }

/* ── 인앱 브라우저 안내 띠 ── */
.inapp-bar {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px;
  background: var(--uk-navy); color: var(--uk-ivory); font-size: 15px; line-height: 1.5;
}
.inapp-text { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.inapp-hint { color: var(--uk-ivory-on-navy); font-weight: 600; }
.inapp-open, .inapp-close {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px;
  border-radius: 7px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.inapp-open { background: var(--uk-ivory); color: var(--uk-navy); }
.inapp-close { flex: none; border: 0; background: transparent; color: var(--uk-ivory); }
.inapp-bar a:focus-visible, .inapp-bar button:focus-visible { outline-color: var(--uk-ivory); }

/* ── 모바일 ── */
@media (max-width: 768px) {
  .btn-group > .btn-back { order: 9; }  /* 휴대폰: 돌아가기는 맨 아래 */
}
@media (max-width: 860px) {
  .br-pc { display: none; }

  .video-play { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .video-play svg { width: 18px; height: 18px; }
  .video-title { font-size: 14px; }
  .wheel-svg .wn, .wheel-svg .wl { font-size: 18px; }
  .wheel-svg .wc { font-size: 22px; }
  .to-top { right: 12px; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 12px); }
}

/* 휴대폰 첫 화면: 글자는 위쪽, 인물 얼굴과 하단 고정 메뉴를 가리지 않게 */
@media (max-width: 768px) {
  .hero-video {
    background-image: url('../video/hero-mobile-poster.webp');
    min-height: calc(100vh - var(--header-h) - var(--bottom-nav-h));
    min-height: calc(100svh - var(--header-h) - var(--bottom-nav-h));
  }
  .hero-shade { background: linear-gradient(to bottom, var(--hero-shade-top) 0%, var(--hero-shade-top-mid) 22%, transparent 40%); }
  .hero-copy { align-self: flex-start; padding: 52px 0 0; }
  .hero-video h1 { font-size: 31px; line-height: 1.32; }
  .hero-video .hero-lede { margin-top: 12px; font-size: 16px; }
  .br-mo { display: inline; }
}

/* 휴대폰 상단: [아이콘 로고] + 메뉴 5개 한 줄. 넘치면 메뉴만 가로 스크롤 + 오른쪽 흐림 */
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .header-row { gap: 8px; }
  .site-header .logo { flex: none; }
  .site-header .logo-mark {
    width: 30px; aspect-ratio: 1;
    -webkit-mask-image: url('../img/logo-icon.png'); mask-image: url('../img/logo-icon.png');
  }
  .site-nav {
    flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none;
    margin-right: calc(var(--gutter) * -1); padding-right: calc(var(--gutter) - 6px);
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { gap: 0; white-space: nowrap; width: max-content; margin-left: auto; }
  .site-nav a { font-size: 15px; padding: 0 6px; letter-spacing: -.02em; }
  .site-nav.is-overflow:not(.at-end) {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  }
}
@media (max-width: 860px) {
  .doc-side:empty { display: none; }
  .doc-main .way-grid, .doctor-row { gap: 20px; }
  .doctor-row .person-photo { max-width: 300px; }
}
@media (max-width: 768px) {
  /* 휴대폰: '출간 준비 중'은 분야명 아래 줄 (17차) */
  .book h3 .tag-ready { display: none; }
  .book .tag-mo { display: inline-block; margin: 6px 0 0; }
}
@media (max-width: 380px) {
  :root { --gutter: 18px; }
  .books { gap: 22px 14px; }
}

/* ── PC ── */
@media (min-width: 861px) {
  :root { --header-h: 76px; }
  .logo-mark { width: 170px; }
  .bottom-nav { display: none; }
  .site-footer { padding-bottom: 36px; }
  .kakao-float { display: flex; }  /* 하단 고정 메뉴가 사라지는 폭부터 */
  .video-grid { gap: 16px; }
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
  .split-main { max-width: var(--reading-max); }
  .concerns { grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
  .concern-list { padding: 8px 28px 12px; }
  .concern-q { font-size: 19px; }
  .doc-row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 56px; row-gap: 20px; align-items: start; }
  .doc-full { grid-column: 1 / -1; }
  .equip { flex-basis: calc((100% - 16px) / 2); }
  .way-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: stretch; }
  /* 약도는 카드 높이에 맞춰 자른다 — 교대역·출구 번호·서초리시온이 보이게 가운데에서 조금 오른쪽 */
  .way-grid .map-item { position: relative; min-height: 300px; }
  .way-grid .map-item picture, .way-grid .map-item img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .way-grid .map-item img { object-fit: cover; object-position: 56% 50%; }
  .way-card .map-links { margin-top: auto; padding-top: 20px; }
  .cycle { grid-template-columns: 320px minmax(0, 1fr); column-gap: 36px; align-items: center; }
  .cycle-cards { grid-template-columns: 1fr 1fr; }
  .ptabs-hint { display: none; }
  .ptabs-list { gap: 0; overflow: visible; margin-right: 0; padding: 0; border-bottom: 1px solid var(--uk-border); }
  .ptab { position: relative; flex: 1 1 0; min-width: 0; border: 0; border-radius: 0; background: transparent; padding: 12px 6px 14px; font-size: 17px; color: var(--c-muted); }
  .ptab:hover { color: var(--c-heading); }
  .ptab[aria-selected="true"] { background: transparent; color: var(--c-heading); }
  .ptab[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--c-line-gold); }
  .ptab:focus-visible { outline-offset: -3px; }
  .ptabs-panels { margin-top: 0; }
  /* PC: 다섯 칸을 겹쳐 가장 긴 칸 높이로 고정 — 탭을 바꿔도 출렁이지 않게 */
  .ppanel, .ppanel.is-current { display: grid; visibility: hidden; }
  .ppanel.is-current { visibility: visible; }
  .ppanel { grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 0; border-radius: 0 0 var(--radius) var(--radius); padding: 26px 28px; }
  .principles { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  /* 상세 하단 (18차): 왼쪽은 같은 모양의 번호 안내 칸 — 링크 아님 */
  .care-end-tel { max-width: 560px; }
  .care-end-tel .care-tel-btn { display: none; }
  .care-end-tel .care-tel-text {
    display: inline-flex; background: var(--uk-white); color: var(--c-accent);
    box-shadow: inset 0 0 0 1.5px var(--c-accent); cursor: default; user-select: text;
  }
  .faq-tabs { display: flex; margin-top: var(--head-gap); border-bottom: 1px solid var(--uk-border); }
  .faq-tab {
    position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 14px 8px 16px; border: 0; background: transparent; font: inherit; font-size: 18px; font-weight: 650;
    color: var(--c-muted); cursor: pointer;
  }
  .faq-tab:hover { color: var(--c-heading); }
  .ft-num { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--c-line-gold); }
  .faq-tab[aria-selected="true"] { color: var(--c-heading); }
  .faq-tab[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--c-line-gold); }
  .faq-tab:focus-visible { outline-offset: -3px; }
  /* 답변 칸: 다섯 답을 한 칸에 겹쳐 두어 가장 긴 답(03) 높이로 고정 — 탭을 바꿔도 출렁이지 않게 */
  .faq-block .faq-items { display: grid; margin-top: 0; border-top: 0; background: var(--uk-ivory); }
  .faq-block .faq-item { grid-area: 1 / 1; border: 0; visibility: hidden; background: transparent; }
  .faq-block .faq-item.is-current { visibility: visible; background: transparent; }
  .faq-block .faq-acc { display: none; }
  .faq-block .faq-panel, .faq-block .faq-item.is-current .faq-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; padding: 44px 48px; }
  .faq-block .faq-q { display: flex; gap: 14px; font-size: 24px; line-height: 1.45; font-weight: 700; letter-spacing: -.02em; color: var(--c-heading); }
  .faq-mark { flex: none; font-size: 28px; line-height: 1.25; font-weight: 800; color: var(--c-line-gold); }
  .doc-main .way-grid { grid-template-columns: 1fr; gap: 20px; }
  .persp-top { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 64px; align-items: center; }
  .wheel { margin-right: 0; }
  .perspectives { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding-top: 40px; border-top: 1px solid var(--uk-border); }
  .books { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  /* 5단계 막대 (15차): 1번은 왼쪽 끝 · 5번은 오른쪽 끝, 번호 사이 간격 같게(같은 폭 칸 + 양끝 정렬).
     골드 선은 막대 전체에 한 줄로 긋고 번호 원 둘레를 바탕색으로 비워 단계 사이 선 길이가 모두 같다 */
  .flow { display: flex; justify-content: space-between; position: relative; }
  .flow::before { content: ''; position: absolute; left: 44px; right: 44px; top: 17px; height: 2px; background: var(--c-line-gold); }
  .flow li { flex: 0 0 88px; min-width: 0; display: flex; justify-content: center; padding: 50px 0 0; font-size: 18px; white-space: nowrap; }  /* 긴 이름은 칸 밖으로 양쪽 같게 넘침 */
  .flow li::before { left: 50%; margin-left: -18px; z-index: 1; box-shadow: 0 0 0 8px var(--sec-bg); }
  .flow li::after { display: none; }
  .step { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: 48px; align-items: start; }
  .step-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 0; }
  .step .equip { flex-basis: calc((100% - 24px) / 3); }
  .step-photos { gap: 16px; }
  .step-text { max-width: 44em; }
  .step-lead { font-size: 21px; }
  .visit { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; align-items: start; }
  .flow-vertical { display: grid; grid-template-columns: 1fr; gap: 0; }
  .flow-vertical::before { display: none; }
  .flow-vertical li { display: block; padding: 0 0 26px 52px; text-align: left; white-space: normal; }
  .flow-vertical li::before { left: 0; margin-left: 0; box-shadow: none; }
  .flow-vertical li::after { display: block; }
  .flow-vertical li::after { left: 17px; right: auto; top: 38px; bottom: 2px; width: 2px; height: auto; }
}

/* 진료시간 카드 전화 줄: 카드가 좁으면 작은 글씨를 번호 아래 줄로 */
@media (max-width: 1099px) {
  .hours-tel { grid-template-columns: 92px 1fr; }
  .hours-tel-note { grid-column: 2; justify-self: start; padding-left: 0; white-space: normal; }
}

/* 넓은 PC: 장비 카드 4열 */
@media (min-width: 1200px) {
  .equip { flex-basis: calc((100% - 48px) / 4); }
}

/* 평가 항목표: 좁은 화면에서는 항목별로 쌓아 보여 준다 */
@media (max-width: 640px) {
  .assess-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .assess-table, .assess-table tbody, .assess-table tr, .assess-table th, .assess-table td { display: block; width: auto !important; }
  .assess-table tr { padding: 14px 16px; border-bottom: 1px solid var(--uk-border); }
  .assess-table th, .assess-table td { padding: 0; border: 0; }
  .assess-table tbody th { font-size: 17px; margin-bottom: 4px; }
  .assess-table td::before { content: attr(data-label) ' · '; font-size: 14px; font-weight: 650; color: var(--c-muted); }
  .assess-table td + td { margin-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .space-grid.fade-ready li { opacity: 1; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.nowrap { white-space: nowrap; }


/* ── PC(769px~) 15차: 푸터 가로 배치 · 카톡 떠 있는 버튼 ── */
@media (min-width: 769px) {
  .footer-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 64px; align-items: start; }
  .footer-info { margin-top: 0; gap: 8px; }
  .fi-row { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; }
  .fi { display: inline-flex; gap: 8px; align-items: center; }
  .fi-k { min-width: 0; }
  .fi-name .fi-k { display: none; }
  .fi-name .fi-v { color: var(--footer-fg); font-weight: 700; }
  .fi + .fi::before { content: ''; width: 1px; height: 12px; margin: 0 8px 0 16px; background: var(--footer-rule); }
  .footer-bottom {
    grid-column: 1 / -1; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--footer-rule);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
  }
  .footer-bottom p { margin: 0; }
  .footer-links a { min-height: 32px; }
}

/* ── PC(769px~) 12차: 버튼 묶음 나란히·같은 너비 / 원장 소개 한 줄씩(사진 왼쪽 · 글 오른쪽) ── */
@media (min-width: 769px) {
  .btn-group { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); max-width: 560px; }
  .btn-group-3 { max-width: 840px; }
  .people { grid-template-columns: 1fr; }
  .person + .person { margin-top: 64px; padding-top: 64px; }
  .person { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); column-gap: 56px; align-items: stretch; }
  .person .person-photo { align-self: start; }
  /* 오른쪽은 사진 높이: 글은 위, 영상은 아래 — 영상 제목 바닥 = 사진 바닥 (14차) */
  .person-body { display: flex; flex-direction: column; }
  .person-body .video-block { margin-top: auto; padding-top: 28px; }  /* 사진 약 4/12 — 정확히 4/12 면 지금(360px)과 같아 조금 넓힘(1140px 폭에서 약 417px) */
  .person .person-photo { max-width: none; }
  .person-body h3 { margin-top: 0; }
  .person .video-grid { max-width: 620px; }
}

/* ── 휴대폰 상세: 오른쪽으로 쓸어 넘겨 메인으로 (18차) — 밀리는 페이지 뒤에 드러나는 층 ── */
.sw-layer { position: fixed; inset: 0; z-index: -1; background: var(--uk-ivory); visibility: hidden; pointer-events: none; }
html.sw-drag .sw-layer { visibility: visible; }
html.sw-drag main { background: var(--sec-bg); }
.sw-band { height: var(--header-h); background: var(--header-bg); }
.sw-reveal {
  position: absolute; left: 0; top: var(--header-h); bottom: 0; width: 0; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.sw-logo { width: 34px; height: 34px; background: var(--uk-gold-soft); -webkit-mask: url('../img/logo-icon.png') center / contain no-repeat; mask: url('../img/logo-icon.png') center / contain no-repeat; }
.sw-circle {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--uk-gold-soft); color: var(--uk-gold-soft);
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; line-height: 1;
  transition: background-color .15s, color .15s;
}
.sw-text { font-size: 15px; font-weight: 650; color: var(--c-muted); white-space: nowrap; }
.sw-layer.is-armed .sw-circle { background: var(--uk-gold-soft); color: var(--uk-navy); }
.sw-layer.is-armed .sw-text { color: var(--uk-burgundy); }
.sw-shadow { position: absolute; top: 0; bottom: 0; left: 0; width: 18px; background: linear-gradient(to right, transparent, rgba(28, 45, 96, .14)); }

/* ── 메인 진료 분야 (21차): 색으로 묶은 카드 3개 — 남성 네이비 / 여성 버건디 / 대사 골드 ── */
.fields-sub { margin-top: 12px; color: var(--c-muted); }
.fields { display: grid; gap: 16px; align-items: start; }
.field-card {
  --fc: var(--uk-navy); --fc-on: var(--uk-white); --fc-sub: rgba(255, 255, 255, .86); --fc-soft: #E8EBF2; --fc-arrow: var(--uk-navy);
  background: var(--uk-white); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 14px rgba(28, 45, 96, .07);
}
.fc-women { --fc: var(--uk-burgundy); --fc-soft: var(--uk-burgundy-soft); --fc-arrow: var(--uk-burgundy); }
.fc-meta { --fc: var(--uk-gold-soft); --fc-on: var(--uk-navy); --fc-sub: var(--uk-navy); --fc-soft: #F3ECDF; --fc-arrow: #7E6232; }
.fc-head { background: var(--fc); color: var(--fc-on); padding: 22px 24px 20px; }
.fc-head h3 { font-size: 20px; line-height: 1.4; font-weight: 700; color: inherit; }
.fc-head p { margin-top: 4px; font-size: 14px; color: var(--fc-sub); }
.fc-list li + li { border-top: 1px solid #EEEAE0; }
.fc-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 18px 24px; text-decoration: none; }
.fc-list a:hover { background: #FBFAF6; }
.fc-list a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.fc-list a:focus-visible { outline-offset: -3px; }
.fc-text b { display: block; font-size: 18px; line-height: 1.45; font-weight: 700; color: var(--c-heading); }
.fc-text > span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.55; color: var(--c-muted); }
.fc-arrow {
  flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--fc-soft); color: var(--fc-arrow); font-size: 17px; font-weight: 700; line-height: 1;
}
.field-card .field-note { margin: 6px 24px 24px; font-size: 15px; }
/* FAQ 는 진료 분야와 떼어 흰 바탕 독립 섹션 */
.faq-sec { border-top: 1px solid #E6E1D5; }
.faq-sec .faq-block { margin-top: 0; }
@media (min-width: 861px) {
  .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

/* ── 진료 분야 상세 (21차): 머리(분야 알약·제목·요약·다른 분야) → PC 왼쪽 목차 + 본문 1~5 ── */
.cd-head { padding-bottom: 36px; border-bottom: 1px solid var(--uk-border); }
.cd-group {
  display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: 999px;
  background: var(--uk-navy); color: var(--uk-white); font-size: 14px; font-weight: 700; line-height: 1.4;
}
.cd-group-women { background: var(--uk-burgundy); }
.cd-group-meta { background: var(--uk-gold-soft); color: var(--uk-navy); }
.cd-head .headline { margin-top: 14px; font-size: clamp(32px, 4.2vw, 46px); }
.cd-lede { margin-top: 10px; font-size: clamp(18px, 2vw, 21px); line-height: 1.6; color: var(--c-text); }
.cd-switch { margin-top: 24px; display: flex; align-items: center; gap: 12px; }
.cd-switch-label { flex: none; font-size: 14px; color: var(--c-muted); }
.cd-switch ul { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-switch a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--uk-border); background: var(--uk-white); color: var(--c-text); font-size: 15px; text-decoration: none;
}
.cd-switch a:hover { border-color: var(--uk-navy); }
.cd-switch a[aria-current="page"] { background: var(--uk-navy); border-color: var(--uk-navy); color: var(--uk-white); font-weight: 650; }
.cd-switch a:focus-visible { outline-offset: 2px; }
.cd-body { margin-top: 48px; }
.cd-toc { display: none; }
.cd-sec + .cd-sec { margin-top: var(--row-gap); padding-top: var(--row-gap); border-top: 1px solid var(--uk-border); }
.cd-sec h2 {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  font-size: clamp(23px, 2.6vw, 28px); line-height: 1.4; font-weight: 700; letter-spacing: -.03em; color: var(--c-heading);
}
.cd-sec h2:focus { outline: none; }
.cd-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--c-accent); color: var(--c-on-accent); font-size: 15px; font-weight: 700; letter-spacing: 0;
}
.cd-sec p + p { margin-top: 1em; }
.cd-sec strong { color: var(--c-heading); font-weight: 650; }
.cd-sec h3 { font-size: 19px; line-height: 1.45; color: var(--c-heading); margin: 28px 0 12px; }
/* ① 불편 목록: 흰 카드 2열(휴대폰 1열), 앞에 골드 점 */
.cd-cards { display: grid; gap: 10px; }
.cd-sec p + .cd-cards { margin-top: 20px; }
.cd-cards li {
  position: relative; padding: 12px 16px 12px 34px; border: 1px solid var(--uk-border); border-radius: 8px;
  background: var(--uk-white); font-size: 17px; line-height: 1.55;
}
.cd-cards li::before { content: ""; position: absolute; left: 16px; top: calc(12px + .775em - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--uk-gold-rich); }
/* ② 문단 + 장비 사진 (PC 오른쪽 240px / 휴대폰 아래) */
.cd-intro { display: grid; gap: 20px; }
.cd-figs { display: grid; grid-template-columns: minmax(0, 280px); gap: 12px; }
.cd-intro.is-two .cd-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 440px; }
.cd-fig .equip-photo { border-radius: var(--radius); }
.cd-fig figcaption { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--c-muted); }
.cd-sec .table-wrap { margin-top: 28px; border-radius: 8px; }
.assess-2col tbody th { width: 45%; }
.assess-2col td:last-child { width: auto; color: var(--c-text); }
.cd-note { margin-top: 16px; font-size: 15px; }
.cd-note .example-note { margin-top: 4px; }
.cd-sec .faq-accordion { margin-top: 4px; }
/* ⑤ 주의사항 → 첫 진료 준비 */
.cd-sec .caution h3 { margin: 0 0 8px; font-size: 20px; color: var(--uk-burgundy); }
.cd-sec .prep-card { margin-top: 16px; }
.cd-sec .prep-card .prep-title { margin: 0 0 6px; font-size: 15px; line-height: 1.5; color: var(--c-accent); }
@media (min-width: 641px) {
  .cd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .cd-switch { display: block; }
  .cd-switch-label { margin-bottom: 8px; }
  .cd-switch ul {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 2px;
  }
  .cd-switch ul::-webkit-scrollbar { display: none; }
  .cd-switch li { flex: none; }
  .cd-switch a { min-height: 44px; }
  .cd-body { margin-top: 40px; }
}
/* PC: 왼쪽 목차(3/12) sticky + 본문(9/12) */
@media (min-width: 861px) {
  .cd-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: 48px; align-items: start; }
  .cd-toc { display: block; position: sticky; top: calc(var(--header-h) + 24px); border-left: 2px solid var(--uk-border); }
  .cd-toc a {
    display: flex; gap: 10px; margin-left: -2px; padding: 8px 0 8px 18px; border-left: 2px solid transparent;
    font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--c-muted); text-decoration: none;
  }
  .cd-toc a:hover { color: var(--c-heading); }
  .cd-toc a.is-current { color: var(--c-accent); border-left-color: var(--c-accent); }
  .cd-toc a:focus-visible { outline-offset: -2px; }
  .cd-toc-n { flex: none; font-variant-numeric: tabular-nums; }
  .cd-intro { grid-template-columns: minmax(0, 1fr) 240px; column-gap: 32px; align-items: start; }
  .cd-intro.is-two { grid-template-columns: minmax(0, 1fr) 360px; }
  .cd-intro .cd-figs, .cd-intro.is-two .cd-figs { grid-template-columns: 1fr; max-width: none; }
  .cd-intro.is-two .cd-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
