/* =====================================================================
   송도화담외과가정의학과의원 — 공통 스타일 (디자인 v3 · 웜 토프)
   팔레트: 토프 #8C7465 · 샌드 #D8C9B6 · 페이퍼 #FBF8F4 · 잉크 #3A332D (레이아웃 시안 a-classic 과 동일)
   포인트: 옐로 #EFCE5A · 리프 #61B176 (아이콘·라벨 소량)
   형태: 직각 모서리 + 떠 있는 그림자 (카드·이미지)
   타이포: Noto Serif KR(제목) · Pretendard(본문) · Cormorant Garamond(영문 레이블)
   ===================================================================== */
:root {
  /* 브랜드 (옛 변수명 유지 — 값만 토프 계열로 교체) */
  --mint: #8C7465;        /* 토프 (주 색) */
  --mint-d: #6E5A4E;      /* 토프 딥 (텍스트·호버) */
  --mint-h: #5A4839;      /* 호버 */
  --mint-dd: #3A332D;     /* 다크 섹션 */
  --mint-l: #EAE1D5;      /* 샌드 라이트 (연한 배경) */
  --mint-ll: #F4EEE6;
  --sage: #A89483;        /* 보조 토프 */
  --mustard: #EFCE5A;     /* 옐로 포인트 */
  --mustard-d: #D4B23A;
  --leaf: #61B176;
  --cream: #F4EEE6;       /* 페이지 배경 */
  --white: #FBF8F4;       /* 페이퍼 (카드·표면) */
  --paper: #FFFFFF;
  --beige: #EAE1D5;       /* 섹션 교차 배경 */
  --beige-d: #D8C9B6;     /* 샌드 */
  --sand: #D8C9B6;
  --ink: #3A332D;
  --ink-2: #5C534A;
  --ink-3: #7D7268;
  --line: #E2D7C9;
  --line-2: #EDE5DA;
  --bg: var(--cream);
  --bg-2: var(--beige);
  --bg-3: var(--beige-d);
  --focus: #6E5A4E;
  --tbd-bg: #FFF6DC;
  --tbd-ink: #7A5600;
  --tbd-line: #E3C56E;
  --alert-bg: #F7ECE6;
  --alert-line: #D9A897;
  --alert-ink: #8A3A28;
  --serif: "Noto Serif KR", "Nanum Myeongjo", "Apple SD Gothic Neo", serif;
  --sans: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --en: "Cormorant Garamond", "Noto Serif KR", Georgia, serif;
  --max: 1240px;
  --header-h: 84px;
  --radius: 0px;
  --radius-s: 0px;
  --radius-l: 0px;
  --radius-b: 0px;
  --gap: 24px;
  --shadow: 0 14px 34px -22px rgba(110, 90, 78, .45);
  --shadow-1: 0 2px 6px -2px rgba(110, 90, 78, .12), 0 14px 34px -22px rgba(110, 90, 78, .45);
  --shadow-2: 0 4px 10px -4px rgba(110, 90, 78, .16), 0 28px 56px -28px rgba(110, 90, 78, .55);
  --shadow-hover: 0 6px 12px -6px rgba(110, 90, 78, .18), 0 34px 60px -30px rgba(110, 90, 78, .6);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .5s;
}
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  overflow-x: clip; margin: 0; color: var(--ink); background: var(--bg);
  font-family: var(--sans); font-size: 17px; line-height: 1.8; letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; }
a:not([class]) { color: var(--mint-d); text-decoration-color: rgba(140, 116, 101, .35); text-underline-offset: 3px; transition: color .2s; }
a:not([class]):hover { color: var(--mint-dd); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.025em; }
h1 { font-size: 48px; line-height: 1.35; }
h2 { font-size: 38px; line-height: 1.4; }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 15px; background: var(--white); border: 1px solid var(--line); border-radius: 0; overflow: hidden; }
th, td { border-bottom: 1px solid var(--line-2); padding: 12px 14px; text-align: left; vertical-align: top; }
tr:last-child > th, tr:last-child > td { border-bottom: 0; }
thead th { background: var(--beige); font-weight: 700; font-size: 14px; color: var(--ink-2); letter-spacing: .01em; }
tbody th { font-weight: 600; background: rgba(234, 225, 213, .45); }
caption { text-align: left; font-weight: 700; padding: 0 0 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 0; }
::selection { background: rgba(140, 116, 101, .18); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: calc(var(--max) + 96px); margin: 0 auto; padding: 0 48px; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
hr.sep { border: 0; border-top: 1px solid var(--line-2); margin: 0; }
.en { font-family: var(--en); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: 13px; color: var(--mint-d); }
.kicker, .eyebrow { font-family: var(--en); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: var(--mint-d); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before, .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--mustard-d); }

/* ---------- 확인 필요 마커 ---------- */
.tbd { display: inline-block; background: var(--beige); color: var(--ink-2); border-radius: 0; padding: 0 8px; font-size: .88em; line-height: 1.7; }
.note-tbd { background: var(--tbd-bg); border: 1px dashed var(--tbd-line); color: var(--tbd-ink); padding: 12px 16px; border-radius: 0; font-size: 14px; margin: 12px 0; }
.note-review { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--sage); padding: 12px 16px; font-size: 14px; color: var(--ink-2); margin: 12px 0; border-radius: 0; }
.note-demo { display: inline-block; background: var(--beige); border-radius: 0; padding: 2px 8px; font-size: 13px; color: var(--ink-2); }
.sec-tag { display: none !important; }

/* ---------- 본문 바로가기 ---------- */
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 10px 14px; border: 2px solid var(--mint); z-index: 1000; border-radius: 0; }
.skip:focus { left: 8px; }

/* ---------- 헤더 ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 248, 244, .97); border-bottom: 1px solid transparent; transition: box-shadow .35s var(--ease), border-color .35s, background .35s; }
.site-header.is-scrolled { border-bottom-color: var(--line-2); box-shadow: 0 10px 30px -22px rgba(110, 90, 78, .35); background: rgba(251, 248, 244, .94); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; transition: transform .3s var(--ease); }
.brand:hover img { transform: translateY(-1px); }
.brand .brand-text { display: none; }
.gnb { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.gnb > li { position: relative; }
.gnb .top { display: flex; align-items: center; border-radius: 0; transition: background .25s; }
.gnb .top > a { padding: 10px 6px 10px 16px; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; display: inline-flex; align-items: center; position: relative; color: var(--ink); }
.gnb .top > a::after { content: ""; position: absolute; left: 16px; right: 6px; bottom: 6px; height: 2px; background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); border-radius: 0; }
.gnb .top > button { border: 0; background: transparent; padding: 0 12px 0 2px; color: var(--ink-3); transition: transform .3s var(--ease); display: inline-flex; align-items: center; }
.gnb .top > button svg { width: 12px; height: 12px; }
.gnb li.is-open .top > button { transform: rotate(180deg); }
.gnb .top:hover, .gnb li.is-open .top { background: rgba(255, 255, 255, .7); }
.gnb .top:hover > a::after, .gnb li.is-current .top > a::after { transform: scaleX(1); }
.gnb li.is-current .top > a { color: var(--mint-d); }
.mega { display: block; position: absolute; left: 50%; top: calc(100% + 10px); min-width: 280px; background: var(--white); border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow-2); padding: 14px; z-index: 50; opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s; }
.mega::before { content: ""; position: absolute; left: 50%; top: -7px; width: 12px; height: 12px; background: var(--white); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.gnb li.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s; }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega li { margin: 0; }
.mega li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; text-decoration: none; border-radius: 0; font-size: 15px; color: var(--ink-2); transition: background .2s, color .2s, padding-left .2s; }
.mega li a::after { content: "→"; opacity: 0; transform: translateX(-4px); transition: all .2s; color: var(--mint); font-size: 13px; }
.mega li a:hover { background: var(--mint-ll); color: var(--mint-dd); padding-left: 16px; }
.mega li a:hover::after { opacity: 1; transform: none; }
.mega li a[aria-current="page"] { background: var(--mint-l); color: var(--mint-dd); font-weight: 700; }
.mega .mega-head { font-family: var(--en); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--mint); padding: 4px 12px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
.header-cta { display: flex; gap: 8px; align-items: center; }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--white); border-radius: 0; padding: 9px 14px; font-weight: 600; font-size: 14px; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 0; border: 1px solid var(--mint); background: var(--white); color: var(--mint-d); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.2; min-height: 46px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s; position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s var(--ease); pointer-events: none; }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(140, 116, 101, .55); background: var(--mint-ll); }
.btn.primary { background: var(--mint-d); color: #fff; border-color: var(--mint-d); }
.btn.primary:hover { background: var(--mint-h); border-color: var(--mint-h); }
.btn.small { padding: 9px 16px; font-size: 14px; min-height: 40px; white-space: nowrap; }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--white); font-weight: 600; }
.btn.ghost:hover { border-color: var(--mint); color: var(--mint-d); box-shadow: 0 10px 22px -14px rgba(110, 90, 78, .35); }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.light { background: #fff; color: var(--mint-dd); border-color: #fff; }
.btn.light:hover { background: var(--cream); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cta-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; margin-top: 14px; }
.cta-links a { text-decoration: none; color: var(--ink-2); font-weight: 600; position: relative; padding-right: 14px; transition: color .2s; }
.cta-links a::after { content: "→"; position: absolute; right: 0; transition: transform .25s var(--ease); font-size: 12px; }
.cta-links a:hover { color: var(--mint-d); }
.cta-links a:hover::after { transform: translateX(3px); }
.popover { position: relative; display: inline-block; }
.popover .pop { display: none; position: absolute; left: 0; top: calc(100% + 8px); z-index: 60; background: var(--white); border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow-2); padding: 12px 14px; min-width: 260px; max-width: 320px; font-size: 14px; font-weight: 400; text-align: left; }
.popover.is-open .pop { display: block; }
.pop p { margin: 0 0 8px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(10px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 0; font-size: 14px; z-index: 300; opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility 0s linear .3s; box-shadow: var(--shadow-2); }
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%); transition: opacity .3s, transform .3s var(--ease), visibility 0s; }

/* ---------- 스크롤 진행 바 ---------- */
.scroll-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 120; pointer-events: none; }
.scroll-progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mint), var(--sage)); transition: width .1s linear; }

/* ---------- 모바일 전체 메뉴 ---------- */
.mobile-nav { display: block; position: fixed; inset: 0; background: var(--cream); z-index: 200; overflow: auto; padding: 16px 20px 120px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s linear .35s; }
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s; }
.mobile-nav[hidden] { display: block; }
.mobile-nav .mn-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; min-height: 48px; }
.mobile-nav .mn-top strong { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.mobile-nav .mn-group { border-top: 1px solid var(--line); }
.mobile-nav .mn-group > button { width: 100%; text-align: left; background: none; border: 0; padding: 16px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
.mobile-nav .mn-group > button span { width: 28px; height: 28px; border-radius: 50%; background: var(--beige); display: inline-flex; align-items: center; justify-content: center; font-weight: 400; color: var(--mint-d); transition: transform .3s var(--ease), background .3s; }
.mobile-nav .mn-group.is-open > button span { transform: rotate(45deg); background: var(--mint-l); }
.mobile-nav .mn-group ul { display: block; max-height: 0; list-style: none; padding: 0 0 0 4px; margin: 0; overflow: hidden; transition: max-height .4s var(--ease), padding .35s; }
.mobile-nav .mn-group.is-open ul { max-height: 640px; padding-bottom: 12px; }
.mobile-nav .mn-group li { margin: 0; }
.mobile-nav .mn-group li a { display: block; padding: 10px 0; text-decoration: none; font-size: 15px; color: var(--ink-2); }
.mobile-nav .mn-group li a[aria-current="page"] { font-weight: 700; color: var(--mint-d); }
.mobile-nav .mn-landing { display: block; padding: 6px 0 10px; font-size: 14px; color: var(--mint-d) !important; font-weight: 600; }

/* ---------- 브레드크럼·페이지 머리 ---------- */
.crumb { font-size: 13px; color: var(--ink-3); margin: 0 0 18px; }
.crumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumb li { margin: 0; }
.crumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { color: var(--mint-d); }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--ink-3); margin: 14px 0 0; }
.badge { display: inline-block; border: 1px solid var(--line); border-radius: 0; padding: 2px 11px; font-size: 12px; background: var(--white); color: var(--ink-2); }
.badge.cond { border-style: dashed; }

/* ---------- 구간(Section) ---------- */
.sec { padding: 112px 0; position: relative; }
.sec.alt { background: var(--white); }
.sec.beige { background: var(--beige); }
.sec.dark { background: var(--mint-dd); color: #fff; }
.sec.dark h2, .sec.dark h3 { color: #fff; }
.sec.dark .kicker { color: var(--mustard); }
.sec.dark .lead, .sec.dark .muted { color: rgba(255, 255, 255, .75); }
.sec-head { margin-bottom: 48px; max-width: 760px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .kicker { justify-content: center; }
.sec-head h2 { margin-bottom: 14px; }
.sec-head .lead { font-size: 18px; color: var(--ink-2); max-width: 720px; margin-bottom: 0; }
.split { display: grid; grid-template-columns: 55fr 45fr; gap: 56px; align-items: start; }
.split.media-left .col-media { order: -1; }
.split.narrow { grid-template-columns: 35fr 65fr; }
.col-text > :last-child { margin-bottom: 0; }
.split > *, .hero-grid > *, .two-col > *, .cards > *, .after > *, .media-grid > *, .visit-summary > *, .doctor-row > *, .f-info > *, .cta-band > *, .stats > * { min-width: 0; }
.card, .band, .plan-item { min-width: 0; max-width: 100%; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; border: 1px solid var(--line); border-radius: 0; padding: 4px 14px; font-size: 13px; text-decoration: none; background: var(--white); }

/* 서브 페이지 첫 화면 */
.hero { padding: 48px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -10%; top: -30%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(140, 116, 101, .08), transparent 70%); pointer-events: none; }
.hero h1 { margin-bottom: 14px; }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 640px; }
.hero .btn-row { margin-top: 22px; }
.hero-grid { display: grid; grid-template-columns: 55fr 45fr; gap: 16px 56px; align-items: start; }
.hero-grid .col-head { grid-column: 1; grid-row: 1; }
.hero-grid .col-rest { grid-column: 1; grid-row: 2; }
.hero-grid .col-media { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.hero-grid .col-rest > :last-child { margin-bottom: 0; }
.hero-grid .col-media .media-ph, .hero-grid .col-media figure, .hero-grid .col-media img { border-radius: 0; }
.home-hero, .hero { position: relative; }

/* 진료 안내 요약 (GEO 답변 블록) */
.summary-box { margin-top: 40px; background: var(--white); border: 1px solid var(--line); border-radius: 0; padding: 28px 32px; max-width: 860px; box-shadow: var(--shadow-1); position: relative; }
.summary-box::before { content: ""; position: absolute; left: 32px; top: 0; width: 24px; height: 2px; background: var(--mustard); }
.summary-box .en { display: block; margin-bottom: 4px; }
.summary-box strong { display: block; font-size: 15px; margin-bottom: 8px; }
.summary-box p:last-child { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------- 카드 ---------- */
.cards { display: grid; gap: 20px; }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.card { border: 1px solid var(--line); border-radius: 0; padding: 26px; background: var(--white); display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-1); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(140, 116, 101, .35); }
.card h3 { font-size: 20px; margin: 0; }
.card p { margin: 0; font-size: 15px; color: var(--ink-2); }
.card .card-link { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--mint-d); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: gap .25s var(--ease); }
.card .card-link:hover { gap: 10px; }
.card.emph { border-color: rgba(140, 116, 101, .5); background: linear-gradient(180deg, var(--white), var(--mint-ll)); }
.card.emph::before { content: ""; position: absolute; left: 26px; top: 0; width: 44px; height: 3px; background: var(--mustard); border-radius: 0; }
.card.link-card { text-decoration: none; }
.card .mini-media { margin: -6px -6px 6px; }
.card .mini-media .media-ph { aspect-ratio: auto; min-height: 110px; border-radius: 0; }
.card .mini-media img, .card .mini-media figure { border-radius: 0; }
.sec.dark .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.sec.dark .card p, .sec.dark .card h3 { color: #fff; }
.sec.dark .card .card-link { color: var(--mustard); }

/* 번호 인덱스·핵심 정리 패널 */
.card .mini-media .idx { font-family: var(--en); font-size: 30px; font-weight: 500; color: var(--mint); line-height: 1; display: block; padding: 8px 6px 2px; position: relative; }
.card .mini-media .idx::after { content: ""; display: block; width: 24px; height: 2px; background: var(--mustard); margin-top: 10px; }
.keypoints { background: var(--white); border: 1px solid var(--line); border-radius: 0; padding: 28px 30px; box-shadow: var(--shadow-1); position: sticky; top: calc(var(--header-h) + 24px); }
.keypoints .en { display: block; margin-bottom: 6px; }
.keypoints h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin-bottom: 18px; }
.keypoints ol { list-style: none; margin: 0; padding: 0; counter-reset: kp; display: grid; gap: 14px; }
.keypoints li { counter-increment: kp; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.keypoints li:last-child { border-bottom: 0; padding-bottom: 0; }
.keypoints li::before { content: counter(kp, decimal-leading-zero); font-family: var(--en); font-size: 20px; color: var(--mint); line-height: 1.2; }
.keypoints li strong { display: block; font-size: 16px; margin-bottom: 2px; }
.keypoints li span { font-size: 14px; color: var(--ink-2); line-height: 1.6; grid-column: 2; }
.keypoints .small { margin: 14px 0 0; }

/* 금지·권장 타일, 촬영 예정 타일 */
.dont-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dont-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.dont-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.dont-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.dont { background: var(--white); border: 1px solid var(--line); border-radius: 0; padding: 22px 20px; display: grid; gap: 4px; }
.dont .mark { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.dont.no .mark { background: var(--alert-bg); color: var(--alert-ink); }
.dont.ok .mark { background: var(--mint-l); color: var(--mint-d); }
.dont strong { font-size: 16px; }
.dont > span:last-child { font-size: 14px; color: var(--ink-2); }
.photo-pending { aspect-ratio: 3 / 2; border: 1px dashed var(--line); border-radius: 0; background: var(--beige); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 16px; color: var(--ink-3); }
.photo-pending svg { color: var(--mint); margin-bottom: 4px; }
.photo-pending strong { color: var(--ink-2); font-size: 15px; }
.photo-pending span { font-size: 12px; }
.media-ph .ph-id, .media-ph dl, .media-ph::after { display: none; }
.media-ph { justify-content: center; align-items: center; text-align: center; }
.media-ph .ph-scene { font-weight: 600; color: var(--ink-2); }
.media-ph .ph-replace { margin-top: 4px; }

/* ---------- 이미지 ---------- */
figure { margin: 0; }
figure.pic { position: relative; overflow: hidden; border-radius: 0; background: var(--beige); }
figure.pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
figure.pic:hover img { transform: scale(1.04); }
figure.pic.r169 { aspect-ratio: 16 / 9; }
figure.pic.r43 { aspect-ratio: 4 / 3; }
figure.pic.r32 { aspect-ratio: 3 / 2; }
figure.pic.r45 { aspect-ratio: 4 / 5; }
figure.pic.r11 { aspect-ratio: 1 / 1; }
figure.pic .ai-tag { position: absolute; right: 10px; bottom: 10px; background: rgba(30, 30, 30, .55); color: #fff; font-size: 11px; letter-spacing: .04em; padding: 3px 9px; border-radius: 0; backdrop-filter: blur(6px); }
figcaption { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
figure.pic + figcaption, figure.has-cap figcaption { margin-top: 8px; }
.media-ph { border: 1px solid var(--line); background: linear-gradient(135deg, var(--beige) 0%, var(--cream) 60%, var(--mint-ll) 100%); border-radius: 0; padding: 16px; font-size: 13px; color: var(--ink-3); display: flex; flex-direction: column; justify-content: space-between; min-height: 180px; position: relative; overflow: hidden; }
.media-ph::after { content: ""; position: absolute; right: -8%; bottom: -14%; width: 52%; aspect-ratio: 1; border-radius: 50%; border: 18px solid rgba(140, 116, 101, .07); pointer-events: none; }
.media-ph.r169 { aspect-ratio: 16 / 9; }
.media-ph.r43 { aspect-ratio: 4 / 3; }
.media-ph.r32 { aspect-ratio: 3 / 2; }
.media-ph.r45 { aspect-ratio: 4 / 5; max-width: 320px; }
.media-ph.r11 { aspect-ratio: 1 / 1; }
.media-ph .ph-id { font-family: var(--en); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-d); }
.media-ph .ph-id span { font-family: var(--sans); font-weight: 600; color: var(--ink-2); letter-spacing: 0; text-transform: none; }
.media-ph .ph-scene { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.media-ph dl { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 12px; }
.media-ph dt { color: var(--ink-3); }
.media-ph dd { margin: 0; }
.media-ph .ph-replace { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.media-ph.compact { min-height: 120px; padding: 12px; font-size: 12px; }
.media-ph.compact dl, .media-ph.compact .ph-replace { display: none; }
.media-grid { display: grid; gap: 14px; }
.media-grid.g2 { grid-template-columns: 1fr 1fr; }
.media-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.media-grid.g13 { grid-template-columns: 2fr 1fr; align-items: start; }
.media-grid.g13 .big { grid-row: span 3; }

/* ---------- 영상 자리 ---------- */
.video-ph { border: 1px solid var(--line); border-radius: 0; overflow: hidden; background: var(--white); box-shadow: var(--shadow-1); }
.video-ph .poster { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--mint-dd), var(--mint)); display: flex; align-items: center; justify-content: center; }
.video-ph .poster .poster-label { position: absolute; left: 14px; top: 12px; font-size: 12px; color: #fff; background: rgba(255, 255, 255, .18); padding: 3px 10px; border-radius: 0; }
.video-ph .play { width: 72px; height: 72px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--mint-d); font-size: 22px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); transition: transform .3s var(--ease); }
.video-ph .play:hover { transform: scale(1.08); }
.video-ph .v-info { padding: 14px 18px; font-size: 14px; }
.video-ph .v-info strong { display: block; font-size: 15px; }
.video-ph .v-info ul { margin: 6px 0; font-size: 13px; }
.video-ph .v-status { display: none; background: var(--tbd-bg); color: var(--tbd-ink); padding: 8px 18px; font-size: 14px; border-top: 1px dashed var(--tbd-line); }
.video-ph.show-status .v-status { display: block; }
.video-ph details { font-size: 13px; }
.video-ph summary { cursor: pointer; }

/* ---------- 단계도 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; margin: 0 0 28px; padding: 0; list-style: none; }
.steps li { border: 1px solid var(--line); border-radius: 0; padding: 22px 20px 20px; background: var(--white); position: relative; margin: 0; box-shadow: var(--shadow-1); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.steps li:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: inline-block; font-family: var(--en); font-size: 28px; font-weight: 500; color: var(--mint); line-height: 1; margin-bottom: 12px; }
.steps li::after { content: ""; position: absolute; left: 20px; top: 56px; width: 24px; height: 2px; background: var(--mustard); border-radius: 0; }
.steps h3 { font-size: 16px; margin: 0 0 6px; }
.steps p { margin: 0; font-size: 14px; color: var(--ink-2); }
.steps.v { grid-template-columns: 1fr; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* ---------- 4필드 계획표 ---------- */
.plan { display: grid; gap: 14px; }
.plan-item { border: 1px solid var(--line); border-radius: 0; padding: 20px 22px; background: var(--white); }
.plan-item h3 { font-size: 17px; margin-bottom: 12px; }
.plan-item dl { display: grid; grid-template-columns: 90px 1fr; gap: 8px 14px; margin: 0; font-size: 15px; }
.plan-item dt { color: var(--mint-d); font-weight: 600; font-size: 14px; }
.plan-item dd { margin: 0; }

/* ---------- 이후 안내 3묶음 ---------- */
.after { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.after .card ul { margin: 0; padding-left: 1.1em; font-size: 15px; }
.after .card h3 { padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }

/* ---------- 체크 목록·메모 ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--mustard); }
.checklist li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 5px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.memo { border: 1px solid var(--line); border-radius: 0; background: var(--white); overflow: hidden; }
.memo .memo-row { display: grid; grid-template-columns: 120px 1fr; border-top: 1px solid var(--line-2); min-height: 56px; }
.memo .memo-row:first-child { border-top: 0; }
.memo .memo-row > span:first-child { padding: 10px 14px; background: var(--beige); font-size: 14px; font-weight: 600; }
.memo .memo-row > span:last-child { padding: 10px 14px; color: #aaa; font-size: 13px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; margin: 0; font-size: 15px; }
.kv dt { color: var(--mint-d); font-weight: 600; font-size: 14px; }
.kv dd { margin: 0; }
.big-phone { font-family: var(--en); font-size: 40px; font-weight: 500; letter-spacing: .02em; margin: 4px 0 8px; color: var(--mint-d); line-height: 1.1; }

/* ---------- 알림/긴급 ---------- */
.alert { background: var(--alert-bg); border: 1px solid var(--alert-line); color: var(--alert-ink); border-radius: 0; padding: 22px 24px; }
.alert h2, .alert h3 { color: inherit; font-family: var(--sans); }
.alert .btn { border-color: var(--alert-ink); color: var(--alert-ink); background: #fff; }
.alert .btn.primary { background: var(--alert-ink); color: #fff; }
.alert ul { margin-bottom: .5em; }
.band { background: var(--beige); border: 1px solid var(--line); border-radius: 0; padding: 16px 20px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 52px 20px 0; font-weight: 700; font-size: 17px; position: relative; transition: color .2s; }
.faq-q:hover { color: var(--mint-d); }
.faq-q::after { content: ""; position: absolute; right: 6px; top: 50%; width: 32px; height: 32px; transform: translateY(-50%); border-radius: 50%; background: var(--beige); transition: background .3s, transform .35s var(--ease); }
.faq-q::before { content: "+"; position: absolute; right: 6px; top: 50%; width: 32px; height: 32px; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 400; color: var(--mint-d); z-index: 1; transition: transform .35s var(--ease); }
.faq-q[aria-expanded="true"]::before { transform: translateY(-50%) rotate(45deg); }
.faq-q[aria-expanded="true"]::after { background: var(--mint-l); }
.faq-a { display: grid; grid-template-rows: 0fr; color: var(--ink-2); font-size: 15px; transition: grid-template-rows .4s var(--ease), padding .4s var(--ease); overflow: hidden; padding: 0; }
.faq-a > * { min-height: 0; }
.faq-a.is-open { grid-template-rows: 1fr; padding: 0 0 22px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a .faq-inner { overflow: hidden; }
.faq-topic { margin-bottom: 36px; }
.faq-search { display: flex; gap: 8px; margin: 12px 0 16px; }
.faq-search input, .list-tools input, .list-tools select { padding: 11px 14px; border: 1px solid var(--line); border-radius: 0; font: inherit; min-width: 0; background: var(--white); }
.faq-search input { flex: 1; }
.empty { border: 1px dashed var(--line); border-radius: 0; padding: 24px; text-align: center; color: var(--ink-2); background: var(--white); }
.empty strong { display: block; margin-bottom: 6px; color: var(--ink); }

/* ---------- 목록 ---------- */
.list-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.list-tools input { flex: 1 1 200px; }
.notice-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.notice-list li { border-bottom: 1px solid var(--line); padding: 14px 4px; display: grid; grid-template-columns: 90px 1fr 110px; gap: 12px; align-items: baseline; font-size: 15px; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 16px 0 0; flex-wrap: wrap; }
.pager button { border: 1px solid var(--line); background: var(--white); border-radius: 0; min-width: 36px; height: 36px; padding: 0 10px; }
.pager button[aria-current="page"] { background: var(--mint); color: #fff; border-color: var(--mint); }
.story-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 14px; }

/* ---------- 일정표 ---------- */
.hours-table td.closed { color: var(--ink-3); }
.hours-cards { display: none; }

/* ---------- 관련 안내·S08 ---------- */
.related .cards { margin-bottom: 28px; }
.cta-band { background: var(--mint-dd); color: #fff; border-radius: 0; padding: 40px 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .06); }
.cta-band .cta-text h3 { margin-bottom: 6px; font-family: var(--serif); font-size: 24px; font-weight: 600; color: #fff; }
.cta-band .cta-text p { margin: 0; color: rgba(255, 255, 255, .78); }
.cta-band .cta-actions { text-align: right; position: relative; }
.cta-band .cta-actions .btn-row { justify-content: flex-end; }
.cta-band .cta-actions .btn { background: #fff; color: var(--mint-dd); border-color: #fff; }
.cta-band .cta-actions .btn.primary { background: var(--mustard); color: var(--ink); border-color: var(--mustard); }
.cta-band .cta-actions .btn:hover { box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5); }
.cta-band .cta-links { justify-content: flex-end; }
.cta-band .cta-links a { color: rgba(255, 255, 255, .85); }
.cta-band .cta-links a:hover { color: #fff; }

/* ---------- 공통 푸터 F-01 ---------- */
.site-footer { margin-top: 0; background: var(--mint-dd); color: rgba(255, 255, 255, .86); position: relative; }
.site-footer a { color: inherit; }
.f-visit { padding: 72px 0 56px; border-bottom: 1px solid rgba(255, 255, 255, .12); background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent); }
.f-visit .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.f-visit h2 { font-size: 32px; margin-bottom: 8px; color: #fff; }
.f-visit p { margin: 0; color: rgba(255, 255, 255, .72); max-width: 560px; }
.f-visit .btn { background: #fff; color: var(--mint-dd); border-color: #fff; }
.f-visit .btn.primary { background: var(--mustard); color: var(--ink); border-color: var(--mustard); }
.f-info { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: 28fr 28fr 44fr; gap: 40px; }
.f-info h3 { font-family: var(--en); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mustard); font-weight: 600; margin-bottom: 14px; }
.f-info .f-logo { height: 40px; width: auto; margin-bottom: 18px; display: block; }
.f-info .f-name { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: #fff; }
.f-info .f-phone { font-family: var(--en); font-size: 34px; font-weight: 500; margin: 0 0 10px; color: #fff; letter-spacing: .02em; line-height: 1.1; }
.f-info address { font-style: normal; margin: 0 0 10px; font-size: 15px; color: #fff; }
.f-info .f-parking { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.f-info .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.f-info .btn.ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.f-hours table { font-size: 14px; background: transparent; border: 0; border-radius: 0; color: #fff; }
.f-hours th, .f-hours td { padding: 8px 6px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.f-hours thead th { background: transparent; color: var(--mustard); font-size: 12px; letter-spacing: .06em; }
.f-hours tbody th { background: transparent; color: #fff; }
.f-hours td.closed { color: rgba(255, 255, 255, .5); }
.f-hours .f-hours-extra { margin: 14px 0 0; font-size: 14px; }
.f-hours .f-hours-extra div { display: flex; gap: 10px; }
.f-hours .f-hours-extra span:first-child { color: rgba(255, 255, 255, .6); min-width: 70px; }
.f-hours .f-links { margin-top: 12px; font-size: 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.map-ph { aspect-ratio: 4 / 3; border: 1px dashed var(--line); border-radius: 0; background: linear-gradient(135deg, var(--beige), var(--mint-ll)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; font-size: 14px; color: var(--ink-2); }
.map-ph strong { display: block; color: var(--ink); margin-bottom: 4px; }
.map-ph .pin { width: 28px; height: 28px; border: 2px solid var(--mint); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); margin-bottom: 12px; background: var(--mustard); }
.site-footer .map-ph { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .7); }
.site-footer .map-ph strong { color: #fff; }
.site-footer .map-ph .pin { border-color: var(--mustard); background: transparent; }
.f-map .map-btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.f-legal { border-top: 1px solid rgba(255, 255, 255, .12); padding: 24px 0 28px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.f-legal .f-policy { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.f-legal .f-policy a { color: rgba(255, 255, 255, .85); font-weight: 600; text-decoration: none; }
.f-legal .f-policy a:hover { color: #fff; text-decoration: underline; }
.f-legal .f-reg { margin-bottom: 8px; }
.f-legal .f-reg span + span::before { content: " · "; }
.f-legal details { margin: 8px 0; }
.f-legal details summary { cursor: pointer; color: rgba(255, 255, 255, .75); }
.f-legal .f-sitemap { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 12px; }
.f-legal .f-sitemap ul { list-style: none; padding: 0; margin: 0; }
.f-legal .f-sitemap li a { text-decoration: none; color: rgba(255, 255, 255, .7); }
.f-legal .f-sitemap li a:hover { color: #fff; }
.f-legal .f-sitemap strong { display: block; color: #fff; margin-bottom: 4px; }
.to-top { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; text-decoration: none; color: rgba(255, 255, 255, .8); }
.to-top:hover { color: #fff; }
.f-legal .tbd { background: rgba(255, 246, 220, .12); color: var(--mustard); border-color: rgba(239, 206, 90, .4); }

/* ---------- 모바일 하단 고정 바 ---------- */
.fixed-bar { display: none; }

/* ---------- 메인 전용 ---------- */
.home-hero { padding: 0; position: relative; overflow: hidden; background: var(--cream); }
.home-hero .hero-split { display: grid; grid-template-columns: 42fr 58fr; min-height: 680px; align-items: stretch; }
.home-hero .hero-copy { padding: 72px 56px 72px 0; display: flex; flex-direction: column; justify-content: center; max-width: 560px; }
.home-hero .hero-media { position: relative; min-height: 560px; }
.home-hero .hero-media .pic, .home-hero .hero-media .media-ph { position: absolute; inset: 0; border-radius: 0; overflow: hidden; aspect-ratio: auto; height: 100%; }
.home-hero .hero-media .pic img { transform: scale(1.06); animation: kenburns 16s var(--ease) forwards; }
.home-hero .hero-media::after { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 120px; background: linear-gradient(90deg, var(--cream), transparent); pointer-events: none; opacity: .0; }
.home-hero .hero-media .hero-badge { position: absolute; left: 32px; bottom: 32px; background: rgba(251, 248, 244, .94);  border-radius: 0; padding: 16px 20px; box-shadow: var(--shadow-2); max-width: 340px; border-left: 3px solid var(--mustard); }
.home-hero .hero-media .hero-badge .en { display: block; margin-bottom: 4px; }
.home-hero .hero-media .hero-badge strong { display: block; font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.home-hero .hero-media .hero-badge span { font-size: 13px; color: var(--ink-2); }
.home-hero h1 { font-size: clamp(36px, 4.2vw, 56px); margin-bottom: 22px; line-height: 1.35; }
.home-hero .sub { font-size: 18px; color: var(--ink-2); max-width: 480px; }
.home-hero .kicker { margin-bottom: 20px; }
.home-hero .btn-row { margin-top: 10px; }
.home-hero .hero-scroll { position: absolute; left: 48px; bottom: 26px; font-family: var(--en); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 12px; text-decoration: none; }
.home-hero .hero-scroll::after { content: ""; width: 48px; height: 1px; background: var(--mint); animation: slideX 2.2s var(--ease) infinite; transform-origin: left; }
@keyframes kenburns { from { transform: scale(1.08) translateX(1%); } to { transform: scale(1) translateX(0); } }
@keyframes slideX { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
.home-hero .hero-grid { display: block; }

/* 메인: 정보 띠 (진료시간·전화·위치) */
.info-strip { position: relative; z-index: 2; margin-top: -48px; }
.info-strip .strip { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); border-radius: 0; box-shadow: var(--shadow-2); border: 1px solid var(--line); overflow: hidden; }
.info-strip .strip > div { padding: 26px 30px; border-left: 1px solid var(--line-2); }
.info-strip .strip > div:first-child { border-left: 0; }
.info-strip .strip h3 { font-family: var(--en); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mint-d); margin-bottom: 8px; font-weight: 600; }
.info-strip .strip p { margin: 0; font-size: 15px; }
.info-strip .strip .big { font-family: var(--en); font-size: 30px; color: var(--ink); font-weight: 500; line-height: 1.1; margin-bottom: 4px; }
.info-strip .strip a.more { font-size: 13px; font-weight: 600; color: var(--mint-d); text-decoration: none; }

/* 메인: 통계 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 30px 16px; background: var(--white); border-radius: 0; border: 1px solid var(--line); }
.stat .num { font-family: var(--en); font-size: 52px; font-weight: 500; color: var(--mint); line-height: 1; }
.stat .num small { font-size: 22px; margin-left: 2px; color: var(--mint-d); }
.stat .lbl { font-size: 14px; color: var(--ink-2); margin-top: 8px; }

/* 메인: 철학 인용 */
.quote-band { text-align: center; max-width: 920px; margin: 0 auto; }
.quote-band blockquote { margin: 0; font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); line-height: 1.5; font-weight: 500; color: #fff; }
.quote-band blockquote::before { content: "“"; display: block; font-family: var(--en); font-size: 90px; line-height: .6; color: var(--mustard); margin-bottom: 18px; }
.quote-band cite { display: block; margin-top: 22px; font-style: normal; font-size: 14px; color: rgba(255, 255, 255, .7); letter-spacing: .04em; }

/* 메인: 클리닉 카드·의료진 카드 */
.clinic-cards .card { padding: 0; overflow: hidden; }
.clinic-cards .card > figure, .clinic-cards .card > .media-ph { border-radius: 0; border: 0; margin: 0; }
.clinic-cards .card > figure.pic { aspect-ratio: 16/10; }
.clinic-cards .card > h3, .clinic-cards .card > p, .clinic-cards .card > ul, .clinic-cards .card > .card-link { margin-left: 26px; margin-right: 26px; }
.clinic-cards .card > h3 { margin-top: 22px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.clinic-cards .card > .card-link { margin-bottom: 24px; }
.clinic-cards .card.emph::before { display: none; }
.clinic-links { columns: 2; margin: 4px 0 10px; padding-left: 1.1em; font-size: 14px; }
.clinic-links li { break-inside: avoid; }
.clinic-links a { text-decoration: none; color: var(--ink-2); }
.clinic-links a:hover { color: var(--mint-d); text-decoration: underline; }
.doc-card { padding: 0; overflow: hidden; }
.doc-card-top { display: grid; grid-template-columns: 200px 1fr; gap: 0; align-items: stretch; }
.doc-card-top > figure, .doc-card-top > .media-ph { border-radius: 0; border: 0; min-height: 100%; }
.doc-card-top > figure.pic { aspect-ratio: auto; height: 100%; min-height: 260px; }
.doc-card-top > div { padding: 26px 26px 10px; }
.doc-card-top h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.doc-card .card-link { margin: 0 26px 22px; }
.doctor-row { display: grid; grid-template-columns: 35fr 65fr; gap: 32px; align-items: start; border: 1px solid var(--line); border-radius: 0; padding: 28px; background: var(--white); }
.doctor-row .doc-info h3 { font-size: 22px; }
.visit-summary { display: grid; grid-template-columns: 60fr 40fr; gap: 32px; }
.mini-list { list-style: none; padding: 0; margin: 0; }
.mini-list li { border-bottom: 1px solid var(--line-2); padding: 10px 0; font-size: 15px; display: flex; justify-content: space-between; gap: 10px; }

/* ---------- 탭 ---------- */
.tab-list { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 16px 0 20px; flex-wrap: wrap; }
.tab-list [role="tab"] { border: 0; background: transparent; padding: 12px 18px; font-weight: 600; font-size: 15px; margin-bottom: -1px; position: relative; color: var(--ink-3); border-radius: 0; transition: color .25s; }
.tab-list [role="tab"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--mint); transform: scaleX(0); transition: transform .3s var(--ease); }
.tab-list [role="tab"]:hover { color: var(--ink); }
.tab-list [role="tab"][aria-selected="true"] { color: var(--mint-d); }
.tab-list [role="tab"][aria-selected="true"]::after { transform: scaleX(1); }
.tab-panel { animation: fadeUp .45s var(--ease); }
.tab-panel > :last-child { margin-bottom: 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 사진 슬라이드 ---------- */
.slider { max-width: 1000px; margin: 0 auto; }
.slider .slides { list-style: none; margin: 0; padding: 0; position: relative; }
.slider .slide { display: none; border: 1px solid var(--line); border-radius: 0; overflow: hidden; background: var(--white); box-shadow: var(--shadow-2); margin: 0; }
.slider .slide.is-active { display: block; animation: fadeUp .5s var(--ease); }
.slider .slide .media-ph, .slider .slide figure.pic { border: 0; border-radius: 0; }
.slider .slide-cap { padding: 18px 24px 20px; border-top: 1px solid var(--line-2); display: flex; gap: 16px; align-items: baseline; }
.slider .slide-cap strong { display: block; font-family: var(--serif); font-size: 19px; margin-bottom: 2px; font-weight: 600; }
.slider .slide-cap p { margin: 0; color: var(--ink-2); font-size: 15px; }
.slider-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.slider-nav .btn { width: 46px; padding: 0; border-radius: 50%; }
.slider .dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.slider .dots [role="tab"] { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); padding: 0; transition: width .3s var(--ease), background .3s; }
.slider .dots [role="tab"][aria-selected="true"] { background: var(--mint); width: 28px; border-radius: 0; }

/* ---------- 사이트맵 ---------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.sitemap-grid strong { font-family: var(--serif); font-size: 18px; font-weight: 600; display: block; margin-bottom: 10px; }
.sitemap-grid strong a { text-decoration: none; color: var(--ink); }
.sitemap-grid ul { list-style: none; padding: 0; margin: 0; }
.sitemap-grid li a { text-decoration: none; color: var(--ink-2); display: block; padding: 5px 0; }
.sitemap-grid li a:hover { color: var(--mint-d); }
@media (max-width: 900px) { .sitemap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .sitemap-grid { grid-template-columns: 1fr; } }
.site-table td, .site-table th { font-size: 14px; }

/* ---------- 스크롤 리빌 ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="zoom"] { transform: scale(.96); }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ===================== 태블릿 ===================== */
@media (max-width: 1100px) {
  .gnb .top > a { padding: 10px 4px 10px 12px; font-size: 14px; }
  .brand img { height: 38px; }
}
@media (max-width: 1024px) {
  .wrap { padding: 0 32px; }
  .cards.c4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .f-info { grid-template-columns: 1fr 1fr; }
  .f-info .f-map { grid-column: 1 / -1; }
  .f-legal .f-sitemap { grid-template-columns: repeat(3, 1fr); }
  .sec { padding: 88px 0; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .col-head, .hero-grid .col-rest, .hero-grid .col-media { grid-column: 1; grid-row: auto; }
  .gnb, .header-cta .btn-text { display: none; }
  .menu-toggle { display: inline-block; }
  .split, .split.narrow, .doctor-row, .visit-summary, .two-col, .cta-band { grid-template-columns: 1fr; }
  .split { gap: 28px; }
  .split.media-left .col-media { order: 0; }
  .cta-band { padding: 30px 28px; }
  .cta-band .cta-actions, .cta-band .cta-actions .btn-row, .cta-band .cta-links { text-align: left; justify-content: flex-start; }
  .after { grid-template-columns: 1fr; }
  .cards.c3 { grid-template-columns: 1fr 1fr; }
  .story-cards { grid-template-columns: 1fr 1fr; }
  .info-strip .strip { grid-template-columns: 1fr; }
  .info-strip .strip > div { border-left: 0; border-top: 1px solid var(--line-2); }
  .info-strip .strip > div:first-child { border-top: 0; }
  .home-hero .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .home-hero .hero-copy { padding: 48px 0 32px; max-width: none; }
  .home-hero .hero-media { min-height: 0; margin: 0 -32px 0 0; }
  .home-hero .hero-media { display: grid; }
  .home-hero .hero-media .pic { position: relative; inset: auto; aspect-ratio: 4 / 3; height: auto; border-radius: 0; }
  .home-hero .hero-media .hero-badge { position: static; max-width: none; margin: 14px 32px 0 0; box-shadow: var(--shadow-1); }
  .home-hero .hero-scroll { display: none; }
}

/* ===================== 화상 클리닉 전용 레이아웃 ===================== */
/* 안내 띠 (장비 / 진료 불가) */
.info-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.info-row > div { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--mint); border-radius: 0; padding: 20px 24px; display: grid; gap: 6px; }
.info-row > div + div { border-left-color: var(--mustard); }
.info-row .en { margin: 0; }
.info-row strong { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.info-row span { font-size: 15px; color: var(--ink-2); line-height: 1.7; }
/* 상황별 판단 (응급 / 내원) */
.decide { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.decide-col { background: var(--white); border: 1px solid var(--line); border-radius: 0; padding: 32px 32px 30px; display: flex; flex-direction: column; gap: 14px; }
.decide-col.urgent { background: var(--alert-bg); border-color: #D9A897; }
.decide-col.urgent .en { color: var(--alert-ink); }
.decide-col.urgent h3 { color: var(--alert-ink); }
.decide-col .en { margin: 0; }
.decide-col h3 { margin: 0; font-size: 24px; }
.decide-col ul { margin: 0; padding: 0 0 0 20px; flex: 1; }
.decide-col li { margin: 6px 0; line-height: 1.7; }
.decide-col .btn, .decide-col .btn-row { margin-top: 10px; }
.decide-col.urgent .btn.primary { background: var(--alert-ink); border-color: var(--alert-ink); }
.decide-col.urgent .btn.primary:hover { background: #6E2A1B; }
/* 화상 종류 카드 */
.type-cards .card { position: relative; }
.type-cards .card.urgent { border-color: #D9A897; background: linear-gradient(180deg, var(--white), var(--alert-bg)); }
.type-cards .kv.small { grid-template-columns: 86px 1fr; font-size: 14px; margin: 14px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); }
.type-cards .kv.small dt { font-size: 13px; }
.badge.urgent-badge { margin-top: 14px; align-self: flex-start; justify-self: start; width: max-content; background: var(--alert-ink); color: #fff; border-color: var(--alert-ink); font-weight: 600; }
/* 깊이 단계 스케일 */
.scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.scale-item { background: var(--white); border: 1px solid var(--line); border-radius: 0; padding: 26px 24px 24px; }
.scale-bar { height: 8px; margin-bottom: 18px; border-radius: 0; background: var(--mint-l); overflow: hidden; }
.scale-bar span { display: block; height: 100%; width: calc(var(--lv) * 25%); border-radius: 0; background: linear-gradient(90deg, var(--mint), var(--mint-d)); }
.scale-item .en { margin: 0 0 4px; }
.scale-item h3 { margin: 0 0 14px; font-size: 20px; }
.scale-item dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 2px; font-size: 14px; }
.scale-item dt { color: var(--mint-d); font-weight: 600; font-size: 13px; margin-top: 8px; }
.scale-item dd { margin: 0; color: var(--ink-2); line-height: 1.65; }
/* 타임라인 */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 40px; padding: 0 0 36px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 144px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--mint); border: 3px solid var(--cream); box-shadow: 0 0 0 2px var(--mint); }
.sec.alt .timeline li::before, .sec.beige .timeline li::before { border-color: var(--white); }
.tl-when { font-family: var(--en); font-size: 20px; font-weight: 500; color: var(--mint-d); line-height: 1.3; text-align: right; padding-top: 1px; }
.tl-body h3 { margin: 0 0 8px; font-size: 21px; }
.tl-body p { margin: 0 0 6px; }
.tl-body .small { margin-top: 8px; }
/* 번호 카드 (idx 단독 사용) */
.card > .idx { font-family: var(--en); font-size: 30px; font-weight: 500; color: var(--mint); line-height: 1; display: block; margin-bottom: 14px; }
.card > .idx::after { content: ""; display: block; width: 24px; height: 2px; background: var(--mustard); margin-top: 10px; }

@media (max-width: 1024px) {
  .scale { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .info-row, .decide { grid-template-columns: 1fr; }
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding-left: 36px; padding-bottom: 28px; }
  .timeline li::before { left: 1px; }
  .tl-when { text-align: left; font-size: 17px; }
}

/* ===================== 모바일 ===================== */
@media (max-width: 640px) {
  .scale { grid-template-columns: 1fr; }
  .decide-col { padding: 24px 22px; }
  :root { --header-h: 62px; --radius: 14px; --radius-l: 18px; }
  body { font-size: 16px; padding-bottom: 96px; }
  .wrap { padding: 0 20px; }
  h1 { font-size: 32px; line-height: 1.45; }
  h2 { font-size: 28px; }
  .brand img { height: 32px; }
  .sec { padding: 64px 0; }
  .sec-head { margin-bottom: 26px; }
  .hero { padding: 20px 0 52px; }
  .hero .lead { font-size: 16px; }
  .home-hero h1 { font-size: 34px; }
  .home-hero .sub { font-size: 16px; }
  .home-hero .hero-copy { padding: 36px 0 28px; }
  .home-hero .hero-media { margin-right: -20px; }
  .home-hero .hero-media .pic { border-radius: 0; }
  .home-hero .hero-media .hero-badge { margin: 12px 20px 0 0; padding: 14px 16px; }
  .info-strip { margin-top: -36px; }
  .info-strip .strip > div { padding: 20px 22px; }
  .cards.c2, .cards.c3, .cards.c4, .story-cards, .media-grid.g2, .media-grid.g3, .media-grid.g13, .stats, .dont-grid, .dont-grid.c2, .dont-grid.c3, .dont-grid.c4 { grid-template-columns: 1fr; }
  .cards { gap: 14px; }
  .card { padding: 22px; }
  .media-grid.g13 .big { grid-row: auto; }
  .steps { grid-template-columns: 1fr; }
  .split { gap: 20px; }
  .split .col-media { order: 0; }
  .split.m-media-first .col-media { order: -1; }
  .keypoints { position: static; padding: 22px 20px; }
  .plan-item dl { grid-template-columns: 1fr; gap: 2px; }
  .plan-item dt { margin-top: 6px; }
  .memo .memo-row { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dt { margin-top: 8px; }
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 0; }
  .table-scroll table { min-width: 560px; }
  .table-scroll th, .table-scroll td { white-space: nowrap; }
  .table-note { display: block; font-size: 12px; color: var(--ink-3); margin: 6px 0 0; }
  .hours-table { display: none; }
  .hours-cards { display: grid; gap: 8px; }
  .hours-cards .hc { border: 1px solid var(--line); border-radius: 0; padding: 10px 14px; font-size: 14px; display: grid; grid-template-columns: 60px 1fr auto; gap: 4px 10px; align-items: center; background: var(--white); }
  .f-hours .hours-cards .hc { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
  .notice-list li { grid-template-columns: 1fr; gap: 4px; }
  .post-nav { grid-template-columns: 1fr; }
  .big-phone { font-size: 32px; }
  .clinic-links { columns: 1; }
  .doc-card-top { grid-template-columns: 1fr; }
  .doc-card-top > figure.pic { aspect-ratio: 4/3; min-height: 0; }
  .stat .num { font-size: 42px; }
  .quote-band blockquote::before { font-size: 64px; }
  .f-visit { padding: 52px 0 40px; }
  .f-visit h2 { font-size: 26px; }
  .f-visit .wrap { flex-direction: column; align-items: stretch; }
  .f-info { display: flex; flex-direction: column; gap: 28px; padding-top: 36px; padding-bottom: 36px; }
  .f-info .f-contact { display: contents; }
  .f-info .f-contact .f-ident { order: 1; }
  .f-info .f-hours { order: 2; }
  .f-info .f-contact .f-addr { order: 3; }
  .f-info .f-map { order: 4; }
  .f-info .f-parking { border-top: 0; padding-top: 0; margin-top: 8px; }
  .f-legal .f-sitemap { grid-template-columns: 1fr 1fr; }
  .site-footer { padding-bottom: 16px; }
  .toast { bottom: 90px; }
  .mobile-nav { padding-bottom: 140px; }
  .slider .slide-cap { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
@media print { .site-header, .fixed-bar, .draft-bar, .sec-tag, .scroll-progress { display: none !important; } body { padding-bottom: 0; } [data-reveal] { opacity: 1; transform: none; } }
/* 이미지 로딩 페이드 */
figure.pic img { opacity: 0; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
figure.pic img.is-loaded, .no-js figure.pic img { opacity: 1; }
@media (prefers-reduced-motion: reduce) { figure.pic img { opacity: 1; } }

/* ===================== v3 · 직각 + 플로팅 섀도 오버라이드 ===================== */
.card, .band, .plan-item, .summary-box, .keypoints, .decide-col, .scale-item, .info-row > div, .after .card, .related .card, .doctor-row, .alert, .note-review, .empty, .memo, .faq, .table-scroll, .hero-badge, .quote-band, .cta-band, .mega, .popover .pop {
  border-color: transparent; box-shadow: var(--shadow-1); background-clip: padding-box;
}
.card { border: 0; background: var(--white); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card.emph { border: 0; box-shadow: var(--shadow-2); }
.band { border: 0; background: var(--white); }
.sec.alt .band, .sec.beige .band { background: var(--white); }
.summary-box { border: 0; border-left: 4px solid var(--mint); background: var(--white); }
.keypoints { border: 0; background: var(--white); }
.sec.beige .card, .sec.beige .keypoints, .sec.beige .band, .sec.beige .scale-item, .sec.beige .decide-col { background: var(--paper); }
.sec.alt .card, .sec.alt .keypoints, .sec.alt .band, .sec.alt .scale-item, .sec.alt .decide-col, .sec.alt .info-row > div { background: var(--white); }
.sec.alt { background: var(--white); }
.sec.beige { background: var(--beige); }
.sec.alt .card, .sec.alt .strength, .sec.alt .keypoints, .sec.alt .band, .sec.alt .scale-item, .sec.alt .decide-col, .sec.alt .info-row > div, .sec.alt .summary-box { background: var(--paper); }
.sec.dark { background: var(--mint-dd); }
figure.pic { box-shadow: var(--shadow-2); background: var(--beige-d); }
figure.pic.compact, .card figure.pic { box-shadow: none; }
.media-ph { box-shadow: var(--shadow-1); border: 0; }
.table-scroll { background: var(--white); padding: 4px; }
.table-note { display: none; } /* '좌우로 밀어 확인' 안내는 휴대폰(≤900px)에서만 */
table { border-collapse: collapse; }
.faq { background: var(--white); padding: 4px 24px; }
.faq-item { border-color: var(--line); }
.faq-item:last-child { border-bottom: 0; }
.decide-col { border: 0; }
.decide-col.urgent { background: var(--alert-bg); }
.scale-item { border: 0; }
.info-row > div { border: 0; border-top: 3px solid var(--mint); }
.info-row > div + div { border-top-color: var(--mustard); }
.timeline li::before { border-color: var(--bg); }
.type-cards .card.urgent { background: linear-gradient(180deg, var(--white), var(--alert-bg)); }
/* 버튼: 직각, 토프 */
.btn { border-radius: 0; }
.btn.primary { background: var(--mint); border-color: var(--mint); color: #fff; }
.btn.primary:hover { background: var(--mint-d); border-color: var(--mint-d); }
.btn.ghost, .btn.line { border-color: var(--mint-d); color: var(--mint-d); background: transparent; }
.btn.ghost:hover, .btn.line:hover { background: rgba(140, 116, 101, .08); }
.badge { border-radius: 0; }
.toast { border-radius: 0; }
/* 헤더: 페이퍼 반투명 */
.site-header { background: rgba(251, 248, 244, .94); border-bottom-color: var(--line); }
.site-header.is-scrolled { box-shadow: var(--shadow-1); }
/* 강점 타일 */
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.strengths:has(> :nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
.strengths:has(> :nth-child(5)) { grid-template-columns: repeat(6, 1fr); }
.strengths:has(> :nth-child(5)) > .strength { grid-column: span 2; }
.strengths:has(> :nth-child(5):last-child) > .strength:nth-child(4), .strengths:has(> :nth-child(5):last-child) > .strength:nth-child(5) { grid-column: span 3; }
.strength { position: relative; background: var(--white); box-shadow: var(--shadow-1); padding: 32px 28px 28px; display: flex; flex-direction: column; gap: 8px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); border-top: 3px solid var(--mint); }
.strength:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.strength .num { font-family: var(--en); font-size: 44px; font-weight: 500; line-height: 1; color: var(--sand); position: absolute; right: 24px; top: 20px; }
.strength .en { margin: 0; }
.strength h3 { margin: 0; font-size: 21px; padding-right: 56px; }
.strength p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.strength .card-link { margin-top: auto; padding-top: 10px; }
.sec.alt .strength, .sec.beige .strength { background: var(--white); }
/* 섹션 리듬: 카드가 떠 보이도록 배경 대비 */
.sec { padding-block: 104px; }
.hero { background: var(--beige); }
.hero .summary-box { background: var(--white); }
/* 의료진 소개 띠(허브) */
.doctor-row { background: var(--white); padding: 32px; }
@media (max-width: 900px) {
  .strengths, .strengths:has(> :nth-child(4)), .strengths:has(> :nth-child(5)) { grid-template-columns: 1fr 1fr; }
  .strengths > .strength, .strengths:has(> :nth-child(5):last-child) > .strength:nth-child(n) { grid-column: auto; }
  .sec { padding-block: 72px; }
}
@media (max-width: 640px) {
  .strengths, .strengths:has(> :nth-child(4)), .strengths:has(> :nth-child(5)) { grid-template-columns: 1fr; }
  .strength { padding: 26px 22px; }
  .sec { padding-block: 56px; }
}

/* ===================== 우측 플로팅 퀵메뉴 ===================== */
.quick-menu { position: fixed; right: 0; top: 50%; transform: translate(0, -50%); z-index: 160; display: flex; flex-direction: column; background: var(--white); box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s linear .4s; }
.quick-menu.is-shown { opacity: 1; visibility: visible; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.qm-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 84px; height: 84px; text-decoration: none; color: var(--ink); font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; border-bottom: 1px solid var(--line-2); transition: background .25s, color .25s; }
.qm-item:last-child { border-bottom: 0; }
.qm-item:hover { background: var(--mint); color: #fff; }
.qm-ico { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }
.qm-ico svg, .qm-ico img { width: 26px; height: 26px; display: block; }
.qm-kakao { background: #FEE500; color: #191919; }
.qm-kakao:hover { background: #F2D900; color: #191919; }
.qm-kakao .qm-ico img { width: 30px; height: 30px; }
.qm-top { height: 52px; background: var(--mint-dd); color: #fff; font-family: var(--en); font-size: 12px; letter-spacing: .12em; gap: 2px; }
.qm-top .qm-ico { width: 18px; height: 18px; }
.qm-top .qm-ico svg { width: 18px; height: 18px; }
.qm-top:hover { background: var(--mint-d); }
.site-footer .to-top { display: none; }
@media (max-width: 900px) {
  .quick-menu { top: auto; bottom: 0; left: 0; right: 0; transform: none; flex-direction: row; opacity: 1; visibility: visible; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .qm-item { flex: 1; width: auto; height: 64px; border-bottom: 0; border-right: 1px solid var(--line-2); font-size: 12px; gap: 4px; }
  .qm-item:last-child { border-right: 0; }
  .qm-top { display: none; }
  body { padding-bottom: 72px; }
  .toast { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .quick-menu { transition: none; } }
@media print { .quick-menu { display: none !important; } }

/* ===================== 사진 레이아웃 (사진 페어 · 사진 단계 · 사진 카드) ===================== */
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.photo-steps { display: grid; gap: 56px; }
.pstep { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.pstep.rev .pstep-media { order: 2; }
.pstep-body { position: relative; padding-top: 6px; }
.pstep-num { display: block; font-family: var(--en); font-size: 40px; font-weight: 500; line-height: 1; color: var(--mint); margin-bottom: 14px; }
.pstep-num::after { content: ""; display: block; width: 36px; height: 2px; background: var(--mustard); margin-top: 12px; }
.pstep-body h3 { margin: 0 0 10px; font-size: 24px; }
.pstep-body p { margin: 0 0 8px; }
.card .mini-media figure.pic { box-shadow: none; margin: -26px -26px 14px; width: auto; }
.card .mini-media figure.pic .ai-tag { font-size: 10px; }
@media (max-width: 900px) {
  .photo-pair { gap: 18px; margin-top: 28px; }
  .pstep { grid-template-columns: 1fr; gap: 20px; }
  .pstep.rev .pstep-media { order: 0; }
  .photo-steps { gap: 40px; }
  .pstep-num { font-size: 32px; }
}
@media (max-width: 640px) {
  .photo-pair { grid-template-columns: 1fr; }
  .card .mini-media figure.pic { margin: -22px -22px 12px; }
}
/* 첫 화면 아래 사진 페어: 히어로 하단에 살짝 걸치게 */
.sec.photo-intro { padding-block: 0 88px; margin-top: -56px; position: relative; z-index: 2; }
.sec.photo-intro .photo-pair { margin-top: 0; }
@media (max-width: 900px) { .sec.photo-intro { margin-top: -28px; padding-block: 0 56px; } }

/* ===================== 일러스트 · 아이콘 카드 · 흐름도 ===================== */
.illus { margin: 0; background: #fff; border: 1px solid var(--line); padding: 18px; }
.illus img { display: block; width: 100%; height: auto; }
.illus figcaption { font-size: 13.5px; color: var(--ink-3); margin-top: 12px; text-align: center; }
.illus.plain { border: 0; padding: 0; background: transparent; }
.icon-cards .card { align-items: flex-start; }
.icon-wrap { display: inline-flex; width: 84px; height: 84px; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line-2); margin-bottom: 6px; }
.icon-wrap img { width: 70px; height: 70px; object-fit: contain; display: block; }
.icon-cards.center .card { align-items: center; text-align: center; }
.flow { list-style: none; margin: 0; padding: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; position: relative; }
.flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 72px; height: 2px; background: var(--sand); }
.flow li { position: relative; text-align: center; padding: 0 8px; }
.flow-num { display: inline-flex; width: 72px; height: 72px; border-radius: 50%; align-items: center; justify-content: center; background: var(--mint); color: #fff; font-family: var(--en); font-size: 24px; font-weight: 500; box-shadow: 0 0 0 10px var(--bg), var(--shadow-1); position: relative; z-index: 1; }
.sec.alt .flow-num { box-shadow: 0 0 0 10px var(--white), var(--shadow-1); }
.sec.beige .flow-num { box-shadow: 0 0 0 10px var(--beige), var(--shadow-1); }
.flow li:nth-child(2) .flow-num { background: var(--mint-d); }
.flow li:nth-child(3) .flow-num { background: var(--sage); }
.flow li:nth-child(4) .flow-num { background: var(--mint-dd); }
.flow li:nth-child(5) .flow-num { background: var(--mint-h); }
.flow h3 { margin: 18px 0 6px; font-size: 19px; }
.flow p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 640px) {
  .flow { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .flow::before { display: none; }
  .flow-num { width: 56px; height: 56px; font-size: 20px; }
}

/* 단계 일러스트(아이콘 크게) */
.illus.step-illus { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: 28px; background: #fff; }
.illus.step-illus img { width: auto; height: 100%; max-height: 260px; object-fit: contain; }


/* ===================== 홈 v2 · 공간 슬라이더 · 개원 팝업 · 손글씨 (원페이지 이관) ===================== */
/* 히어로 */
.hhero { position: relative; overflow: hidden; min-height: calc(100svh - var(--header-h)); display: grid; align-items: end; color: #fff; isolation: isolate; }
.hhero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hhero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: 0; transform: scale(1.04); transition: opacity 1.6s var(--ease), transform 5s linear; }
.hhero-bg img.is-on { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .hhero-bg img { transition: none; } }
.hhero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(58,51,45,.22) 0%, rgba(58,51,45,.30) 35%, rgba(58,51,45,.84) 100%); }
.hhero .wrap { padding-block: 120px 44px; }
.hhero-copy { margin-left: auto; max-width: 600px; }
.hhero-copy .kicker { justify-content: flex-start; }
.hhero .kicker { color: rgba(255,255,255,.85); } .hhero .kicker::before { background: var(--mustard); }
.hhero h1 { font-size: clamp(34px, 3.6vw, 48px); font-weight: 500; line-height: 1.22; max-width: 14em; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hhero .sub { font-size: 18px; max-width: 40em; color: rgba(255,255,255,.9); margin-top: 22px; line-height: 1.75; }
.hhero-info { display: grid; grid-template-columns: repeat(3, auto); gap: 0; margin-top: 36px; background: rgba(251,248,244,.96); color: var(--ink); width: max-content; max-width: 100%; box-shadow: var(--shadow-2); }
.hhero-info > div { padding: 20px 28px; border-right: 1px solid var(--line); min-width: 0; }
.hhero-info > div:last-child { border-right: 0; }
.hhero-info .en { font-family: var(--en); font-size: 12px; letter-spacing: .2em; color: var(--mint-d); margin: 0 0 4px; }
.hhero-info strong { display: block; font-size: 16px; font-weight: 700; }
.hhero-info span { font-size: 13.5px; color: var(--ink-2); }

/* 진료 안내 카드 */
.hclinics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hclinic { background: var(--paper); box-shadow: var(--shadow-1); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.hclinic:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.hclinic figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.hclinic figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hclinic:hover figure img { transform: scale(1.04); }
.hclinic .body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hclinic .en { font-family: var(--en); font-size: 12.5px; letter-spacing: .2em; color: var(--mint-d); margin: 0; }
.hclinic h3 { font-size: 23px; }
.hclinic p { font-size: 15px; color: var(--ink-2); margin: 0; }
.hclinic ul { list-style: none; margin: 8px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 6px; font-size: 14.5px; }
.hclinic li { padding-left: 16px; position: relative; }
.hclinic li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; background: var(--mustard); }
.notice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.notice-row > div { background: var(--paper); box-shadow: var(--shadow-1); border-top: 3px solid var(--mint); padding: 20px 24px; font-size: 15px; }
.notice-row > div + div { border-top-color: var(--mustard); }
.notice-row strong { font-family: var(--serif); font-size: 17px; display: block; margin-bottom: 4px; }
.notice-row span { color: var(--ink-2); }

/* 의료진 */
.hdoctors { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.hdoctor { background: var(--paper); box-shadow: var(--shadow-1); padding: 36px 36px 32px; display: grid; gap: 10px; border-top: 3px solid var(--mint); }
.hdoctor .en { font-family: var(--en); font-size: 12.5px; letter-spacing: .2em; color: var(--mint-d); margin: 0; }
.hdoctor h3 { font-size: 26px; }
.hdoctor h3 span { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink-3); margin-left: 8px; }
.hdoctor .spec { font-weight: 700; color: var(--mint-d); margin: 0; }
.hdoctor dl { margin: 10px 0 0; display: grid; grid-template-columns: 92px 1fr; gap: 8px 14px; font-size: 14.5px; }
.hdoctor dt { color: var(--mint-d); font-weight: 700; }
.hdoctor dd { margin: 0; color: var(--ink-2); line-height: 1.7; }

/* 원장 손글씨 메시지 */
.hdoctor .hand { font-family: "Nanum Brush Script", var(--serif); font-weight: 400; font-size: 25px; line-height: 1.5; color: var(--mint-d); margin: 8px 0 6px; padding: 14px 18px 12px; background: var(--beige); border-left: 3px solid var(--mustard); letter-spacing: .01em; text-wrap: pretty; }
@media (max-width: 640px) { .hdoctor .hand { font-size: 23px; padding: 12px 14px 10px; } }

/* 공간 */
.pslider { display: grid; gap: 14px; }
.pslider-main { position: relative; box-shadow: var(--shadow-2); background: var(--sand); }
.pslides { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; aspect-ratio: 16 / 9; outline: none; }
.pslides::-webkit-scrollbar { display: none; }
.pslides:focus-visible { outline: 3px solid var(--mustard); outline-offset: -3px; }
.pslide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.pslide img { width: 100%; height: 100%; object-fit: cover; }
.pslider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; background: rgba(251,248,244,.92); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-1); transition: background .25s, color .25s; }
.pslider-btn svg { width: 24px; height: 24px; }
.pslider-btn:hover { background: var(--mint); color: #fff; }
.pslider-btn.prev { left: 16px; } .pslider-btn.next { right: 16px; }
.pslider-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; background: linear-gradient(0deg, rgba(58,51,45,.7), rgba(58,51,45,0)); color: #fff; font-size: 14.5px; font-weight: 600; letter-spacing: .02em; }
.pslider-cap .count { font-family: var(--en); font-size: 15px; font-weight: 400; letter-spacing: .1em; }
.pslider-cap .count b { font-weight: 600; }
.pthumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.pthumbs::-webkit-scrollbar { display: none; }
.pthumb { flex: 0 0 112px; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--sand); cursor: pointer; opacity: .55; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .25s, outline-color .25s; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pthumb:hover, .pthumb.is-active { opacity: 1; }
.pthumb.is-active { outline-color: var(--mint); }

/* ===================== 개원 팝업 ===================== */
.popup { position: fixed; inset: 0; z-index: 400; background: rgba(58,51,45,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.popup[hidden] { display: none; }
.popup-open { overflow: hidden; }
.popup-box { width: 100%; max-width: 440px; background: var(--paper); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); animation: popIn .5s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.popup-head { background: linear-gradient(180deg, var(--beige), var(--sand)); padding: 34px 40px; display: flex; justify-content: center; }
.popup-head img { height: 54px; width: auto; }
.popup-body { padding: 26px 32px 28px; text-align: center; }
.popup-en { font-family: var(--en); font-size: 12.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--mint-d); margin: 0 0 14px; }
.popup-body h2 { font-size: 17px; font-weight: 500; line-height: 1.7; color: var(--ink); text-wrap: balance; }
.popup-status { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 16px; padding: 9px 16px; background: var(--beige); font-size: 14.5px; font-weight: 700; color: var(--ink); border-radius: 999px; }
.popup-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-d); }
.popup-info { font-size: 13px; color: var(--ink-2); margin: 0 0 18px; line-height: 1.75; }
.popup-btns { display: flex; justify-content: center; gap: 10px; }
.popup-btns .btn { padding: 12px 22px; font-size: 15px; }
.popup-foot { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.popup-foot button { background: none; border: 0; padding: 14px; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.popup-foot button + button { border-left: 1px solid var(--line); }
.popup-foot button:hover { background: var(--beige); color: var(--ink); }
@media (max-width: 640px) { .popup-head { padding: 26px 24px; } .popup-head img { height: 44px; } .popup-body { padding: 22px 20px 24px; } .popup-body h2 { font-size: 15.5px; } }
/* 팝업: 작은 화면·짧은 화면 대응 */
.popup { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.popup-box { max-height: calc(100svh - 32px); overflow-y: auto; margin: auto; }
.popup-btns .btn { white-space: nowrap; }
@media (max-width: 380px) {
  .popup { padding: 12px; }
  .popup-head { padding: 20px 18px; } .popup-head img { height: 38px; }
  .popup-body { padding: 18px 16px 20px; }
  .popup-en { font-size: 11px; letter-spacing: .18em; margin-bottom: 10px; }
  .popup-body h2 { font-size: 14.5px; line-height: 1.65; }
  .popup-status { font-size: 12.5px; padding: 7px 12px; margin: 12px 0 12px; }
  .popup-info { font-size: 12px; margin-bottom: 14px; }
  .popup-btns { gap: 8px; } .popup-btns .btn { padding: 10px 14px; font-size: 13.5px; }
  .popup-foot button { padding: 12px 8px; font-size: 13px; }
  .hhero h1 { font-size: 30px; }
  .brand img { height: 32px; }
  .hhero-info > div { padding: 12px 16px; }
}
@media (max-height: 600px) { .popup { align-items: flex-start; } }
/* 반응형 (홈 v2) */
@media (max-width: 1024px) { .hclinics { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .hhero-copy { margin-left: 0; }
  .hhero-info { grid-template-columns: 1fr; width: 100%; }
  .hhero-info > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 20px; }
  .hhero-info > div:last-child { border-bottom: 0; }
  .hdoctors, .notice-row { grid-template-columns: 1fr; }
  .pslides { aspect-ratio: 4 / 3; }
  .pslider-btn { width: 40px; height: 40px; }
  .pslider-btn.prev { left: 8px; } .pslider-btn.next { right: 8px; }
  .pthumb { flex-basis: 84px; }
  .quick-menu { opacity: 1; visibility: visible; }
}
@media (max-width: 640px) {
  .hhero .wrap { padding-block: 72px 48px; }
  .hdoctor { padding: 26px 22px; }
  .hdoctor dl { grid-template-columns: 1fr; gap: 2px; }
  .hdoctor dt { margin-top: 8px; }
}
@media (max-width: 380px) { .hhero h1 { font-size: 30px; } .hhero-info > div { padding: 12px 16px; } }
.hhero .kicker::before { background: var(--mustard); }
.hhero-info > div.status strong { color: var(--mint-d); }
.hdoctor .doc-links { margin-top: 8px; font-size: 14px; }
.hdoctor .doc-links a { color: var(--mint-d); text-decoration: underline; text-underline-offset: 3px; }
.first-visit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.first-visit > div { background: var(--paper); box-shadow: var(--shadow-1); padding: 22px 24px; border-top: 3px solid var(--mint); font-size: 15px; }
.first-visit strong { display: block; font-family: var(--serif); font-size: 17px; margin-bottom: 6px; }
.first-visit a { color: var(--mint-d); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1024px) { .first-visit { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .first-visit { grid-template-columns: 1fr; } }
.equip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.equip-grid > div { background: var(--paper); box-shadow: var(--shadow-1); display: grid; grid-template-columns: 42% 1fr; }
.equip-grid figure { margin: 0; } .equip-grid figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.equip-grid .body { padding: 20px 22px; font-size: 15px; } .equip-grid h3 { font-size: 19px; margin-bottom: 6px; } .equip-grid p { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) { .equip-grid { grid-template-columns: 1fr; } .equip-grid > div { grid-template-columns: 1fr; } }
.space-cta { font-size: 15px; color: var(--ink-2); }
br.mo { display: none; }
@media (max-width: 900px) { br.pc { display: none; } br.mo { display: inline; } }
.hhero-info a.btn-tel { color: inherit; text-decoration: none; }
.hhero .sub { text-wrap: pretty; }
.notice-row { margin-top: 32px; }
.hhero-info { grid-template-columns: repeat(4, auto); }
.hhero-copy { max-width: 720px; }
.hhero h1 { max-width: none; font-size: clamp(32px, 3.3vw, 44px); }
@media (max-width: 1100px) { .hhero-info { grid-template-columns: 1fr 1fr; width: 100%; } .hhero-info > div:nth-child(2) { border-right: 0; } }
@media (max-width: 900px) { .hhero-info { grid-template-columns: 1fr; } }
/* 메인 의료진 카드 안 손글씨 */
.doc-card .hand { font-family: "Nanum Brush Script", var(--serif); font-size: 22px; line-height: 1.5; color: var(--mint-d); margin: 10px 0 4px; padding: 12px 14px 10px; background: var(--beige); border-left: 3px solid var(--mustard); }
.home-hero .hero-copy .small a.btn-tel { text-decoration: none; }

/* ===================== 10차 고도화: 상호작용 ===================== */
/* 세로 확장 카드 */
.vcards { display: flex; gap: 14px; align-items: stretch; min-height: 520px; }
.vcard { position: relative; flex: 1 1 0; min-width: 0; background: var(--white); box-shadow: var(--shadow-1); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: flex .6s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease); outline: none; }
.vcard:focus-visible { box-shadow: 0 0 0 3px var(--mustard), var(--shadow-2); }
.vcard-media { aspect-ratio: 1 / 1; background: var(--beige); overflow: hidden; flex: 0 0 auto; transition: aspect-ratio .6s var(--ease); }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1s var(--ease); }
.vcard-head { padding: 18px 18px 14px; }
.vcard-num { font-family: var(--en); font-size: 13px; letter-spacing: .18em; color: var(--mint-d); display: block; margin-bottom: 6px; }
.vcard h3 { font-size: 19px; line-height: 1.3; margin: 0; writing-mode: horizontal-tb; }
.vcard-sub { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.vcard-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease), opacity .45s var(--ease); opacity: 0; padding: 0 18px; }
.vcard-body > div { overflow: hidden; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.vcard-body p { margin: 0 0 12px; }
.vcard-flag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--alert-ink); background: var(--alert-bg); padding: 4px 10px; margin-bottom: 16px !important; }
.vcard.is-open, .vcard:hover, .vcard:focus-visible { flex: 2.2 1 0; box-shadow: var(--shadow-2); }
.vcard.is-open .vcard-media img, .vcard:hover .vcard-media img { transform: scale(1.08); }
.vcard.is-open .vcard-body, .vcard:hover .vcard-body, .vcard:focus-visible .vcard-body { grid-template-rows: 1fr; opacity: 1; padding-bottom: 18px; }
.vcard.emph .vcard-head { border-top: 3px solid var(--alert-line); }
.vcards:hover .vcard.is-open:not(:hover) { flex: 1 1 0; }
.vcards:hover .vcard.is-open:not(:hover) .vcard-body { grid-template-rows: 0fr; opacity: 0; padding-bottom: 0; }
@media (max-width: 900px) {
  .vcards { flex-direction: column; min-height: 0; }
  .vcard, .vcard.is-open, .vcard:hover { flex: none; }
  .vcard { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto; }
  .vcard-media { aspect-ratio: 1 / 1; grid-row: 1 / 3; }
  .vcard-body { grid-column: 2; padding: 0 16px; }
  .vcards:hover .vcard.is-open:not(:hover) .vcard-body { grid-template-rows: 0fr; }
  .vcard.is-open .vcard-body { grid-template-rows: 1fr !important; opacity: 1 !important; padding-bottom: 16px !important; }
  .vcard:hover:not(.is-open) .vcard-body { grid-template-rows: 0fr; opacity: 0; padding-bottom: 0; }
}

/* 단계 탭 (1·2·3도) */
.levels { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: stretch; }
.lvtabs { display: grid; gap: 10px; align-content: start; }
.lvtab { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; text-align: left; padding: 16px 18px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font: inherit; color: var(--ink); transition: background .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.lvtab:hover, .lvtab.is-active { border-color: var(--mint); box-shadow: var(--shadow-1); transform: translateX(6px); }
.lvtab.is-active { background: var(--beige); }
.lvtab .en { display: block; font-family: var(--en); font-size: 12px; letter-spacing: .16em; color: var(--mint-d); margin-bottom: 2px; }
.lvtab strong { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.lv-bar { display: flex; flex-direction: column; justify-content: flex-end; height: 44px; width: 54px; background: var(--line-2); position: relative; }
.lv-bar span { display: block; height: calc(var(--lv) * 25%); background: linear-gradient(180deg, var(--mustard), var(--mint)); transition: height .5s var(--ease); }
.lvpanels { position: relative; background: var(--white); box-shadow: var(--shadow-1); min-height: 360px; }
.lvpanel { display: grid; grid-template-columns: 1fr 1fr; gap: 0; height: 100%; animation: fadeUp .5s var(--ease); }
.lvpanel[hidden] { display: none; }
.lv-illus { margin: 0; background: #fff; display: flex; align-items: center; justify-content: center; padding: 24px; border-right: 1px solid var(--line-2); }
.lv-illus img { max-width: 100%; max-height: 360px; object-fit: contain; }
.lv-info { padding: 30px 32px; }
.lv-info .en { margin-bottom: 4px; }
.lv-info h3 { font-size: 24px; margin: 0 0 16px; }
.lv-info dl { margin: 0; display: grid; grid-template-columns: 72px 1fr; gap: 10px 14px; font-size: 15px; }
.lv-info dt { color: var(--mint-d); font-weight: 700; }
.lv-info dd { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) {
  .levels { grid-template-columns: 1fr; }
  .lvtabs { grid-template-columns: repeat(2, 1fr); }
  .lvtab { grid-template-columns: 40px 1fr; padding: 12px; }
  .lvtab:hover, .lvtab.is-active { transform: none; }
  .lv-bar { width: 40px; height: 36px; }
  .lvtab strong { font-size: 15px; }
  .lvpanel { grid-template-columns: 1fr; }
  .lv-illus { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .lv-illus img { max-height: 240px; }
  .lv-info { padding: 22px 20px; }
}

/* 순서 블록 자동 하이라이트 (flow / photo-steps / timeline) */
.flow li { transition: transform .5s var(--ease); }
.flow-num { transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s; }
.flow li.is-current { transform: translateY(-6px); }
.flow li.is-current .flow-num { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(239,206,90,.35), var(--shadow-2); background: var(--mint-d) !important; }
.flow li.is-current h3 { color: var(--mint-d); }
.pstep { transition: box-shadow .5s var(--ease), background .5s var(--ease); }
.pstep.is-current { background: var(--white); box-shadow: var(--shadow-2); }
.pstep.is-current .pstep-num { color: var(--mint-d); }
.pstep.is-current .pstep-num::after { width: 72px; background: var(--mint-d); transition: width .5s var(--ease); }
.timeline li.is-current::before { background: var(--mustard); box-shadow: 0 0 0 2px var(--mustard), 0 0 0 8px rgba(239,206,90,.25); }
.timeline li.is-current .tl-when { color: var(--ink); }
.timeline li.is-current .tl-body h3 { color: var(--mint-d); }
.steps li.is-current, .plan-item.is-current { box-shadow: var(--shadow-2); }
@media (prefers-reduced-motion: reduce) { .flow li.is-current, .flow li.is-current .flow-num { transform: none; } }

/* 카드 안 사진 줌 */
.card figure.pic { overflow: hidden; }
.card figure.pic img { transition: transform 1.1s var(--ease); }
.card:hover figure.pic img { transform: scale(1.05); }
.equip-grid > div { transition: transform .4s var(--ease), box-shadow .4s var(--ease); overflow: hidden; }
.equip-grid > div:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.equip-grid > div:hover img { transform: scale(1.05); } .equip-grid img { transition: transform 1s var(--ease); }
.vcard-media { aspect-ratio: auto; flex: 1 1 auto; min-height: 180px; display: flex; align-items: center; justify-content: center; padding: 18px; background: #fff; }
.vcard-media img { width: auto; height: auto; max-width: 100%; max-height: 300px; object-fit: contain; }
.vcard-head { border-top: 1px solid var(--line-2); }
@media (max-width: 900px) { .vcard-media { min-height: 0; padding: 10px; } .vcard-media img { max-height: 90px; } }

/* ===================== 성능 최적화 ===================== */


.vcard { transition-duration: .45s, .35s, .35s; contain: layout paint; }
.vcard-media img, .card figure.pic img, .equip-grid img, .clinic figure img, .hclinic figure img { backface-visibility: hidden; transform: translateZ(0); }
.card:hover figure.pic img, .vcard:hover .vcard-media img, .equip-grid > div:hover img { will-change: transform; }
.card { transition-duration: .3s; }
.pslide img { contain: paint; }
.lvpanel { animation-duration: .35s; }
@media (prefers-reduced-motion: reduce) { .vcard, .card, .vcard-media img, .card figure.pic img { transition: none !important; } }
/* 사진 단계: 컴팩트 가로 카드 (좌우 번갈아) */
.photo-steps { gap: 18px; }
.pstep { grid-template-columns: 300px 1fr; gap: 32px; align-items: center; padding: 18px 28px 18px 18px; background: var(--white); box-shadow: var(--shadow-1); }
.pstep.rev { grid-template-columns: 1fr 300px; padding: 18px 18px 18px 28px; }
.pstep-media figure.pic, .pstep-media .illus.step-illus { aspect-ratio: 4 / 3; margin: 0; }
.illus.step-illus { padding: 16px; box-shadow: none; border: 0; }
.illus.step-illus img { max-height: 180px; }
.pstep-body { padding: 0; }
.pstep-num { font-size: 28px; margin-bottom: 8px; }
.pstep-num::after { width: 28px; margin-top: 8px; }
.pstep-body h3 { font-size: 20px; margin-bottom: 6px; }
.pstep-body p { font-size: 15.5px; }
.pstep.is-current { box-shadow: var(--shadow-2); outline: 1px solid var(--mint); outline-offset: -1px; }
@media (max-width: 900px) {
  .pstep, .pstep.rev { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .pstep.rev .pstep-media { order: 0; }
  .pstep-media figure.pic, .pstep-media .illus.step-illus { aspect-ratio: 16 / 9; }
  .illus.step-illus img { max-height: 120px; }
}
/* 고압산소 효과 */
.o2-fx { position: relative; overflow: hidden; }
.o2-fx figure.pic img { transition: none; }
.o2-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.o2-glow { position: absolute; left: 45%; right: 2%; top: 30%; bottom: 8%; background: radial-gradient(ellipse at center, rgba(190,235,255,.45), rgba(190,235,255,0) 65%); animation: o2pulse 5s ease-in-out infinite; mix-blend-mode: screen; }
.o2-glow.g2 { left: 55%; right: 10%; top: 45%; bottom: 15%; animation-delay: -2.5s; animation-duration: 7s; }
.o2-layer i { position: absolute; left: var(--x); bottom: var(--y, 20%); width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.95), rgba(220,245,255,.55) 55%, rgba(220,245,255,0) 72%); box-shadow: 0 0 6px rgba(200,240,255,.6); opacity: 0; animation: o2rise var(--t) linear infinite; animation-delay: var(--dl); }
@keyframes o2rise { 0% { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; } 12% { opacity: .9; } 85% { opacity: .5; } 100% { transform: translate3d(10px, -260px, 0) scale(1.15); opacity: 0; } }
@keyframes o2pulse { 0%, 100% { opacity: .35; transform: scale(.96); } 50% { opacity: .8; transform: scale(1.04); } }

.o2-cap { display: block; font-size: 13px; color: var(--ink-3); padding: 8px 2px 0; }
@media (prefers-reduced-motion: reduce) { .o2-layer { display: none; } }
/* 세로 여백 축소 */
.sec { padding-block: 80px; }
.sec-head { margin-bottom: 36px; }
@media (max-width: 1024px) { .sec { padding-block: 60px; } }
@media (max-width: 640px) { .sec { padding-block: 48px; } .sec-head { margin-bottom: 26px; } }
.photo-steps { gap: 14px; }
.pstep, .pstep.rev { padding: 14px 24px 14px 14px; }
/* 사진 240px + 글 2열은 PC 에서만 — 뒤에 오는 이 규칙이 위의 ≤900px 1열 규칙을 덮어써 휴대폰에서 글이 한 글자씩 세로로 늘어서던 것 수정 */
@media (min-width: 901px) {
  .pstep { grid-template-columns: 240px 1fr; }
  .pstep.rev { grid-template-columns: 1fr 240px; }
}
.illus.step-illus img { max-height: 150px; }
/* 단계 탭 v2: 번호 불릿 + 단계 눈금 */
.lvtabs-wrap { display: grid; gap: 14px; align-content: start; }
.lvtab { grid-template-columns: 36px 1fr; gap: 14px; padding: 13px 16px; }
.lv-bar { display: none; }
.lv-dot { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--en); font-size: 13px; letter-spacing: .04em; color: var(--mint-d); border: 1.5px solid var(--mint); background: var(--paper); transition: background .3s, color .3s, transform .3s var(--ease); }
.lvtab.is-active .lv-dot, .lvtab:hover .lv-dot { background: var(--mint); color: #fff; transform: scale(1.06); }
.lvtab:nth-child(1) .lv-dot { border-color: var(--sage); } .lvtab:nth-child(1).is-active .lv-dot { background: var(--sage); }
.lvtab:nth-child(3) .lv-dot { border-color: var(--mint-d); } .lvtab:nth-child(3).is-active .lv-dot { background: var(--mint-d); }
.lvtab:nth-child(4) .lv-dot { border-color: var(--mint-dd); } .lvtab:nth-child(4).is-active .lv-dot { background: var(--mint-dd); }
.lv-side { margin: 0; background: #fff; border: 1px solid var(--line); padding: 14px; display: flex; align-items: center; justify-content: center; }
.lv-side img { max-width: 100%; max-height: 150px; object-fit: contain; }
.levels-gauge .lvpanels { min-height: 0; }
.lvpanel.no-img { grid-template-columns: 1fr; }
.lv-gauge { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 6px; margin: 0 0 22px; }
.lv-gauge span { position: relative; height: 10px; background: var(--line-2); border-radius: 999px; }
.lv-gauge span.past { background: var(--sand); }
.lv-gauge span.now { background: linear-gradient(90deg, var(--mustard), var(--mint)); box-shadow: 0 0 0 4px rgba(239,206,90,.25); }
.lv-gauge span b { position: absolute; top: 16px; left: 0; right: 0; text-align: center; font-size: 11.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-gauge span.now b { color: var(--ink); font-weight: 700; }
.lv-gauge { margin-bottom: 44px; }
@media (max-width: 900px) { .lv-side { display: none; } .lv-gauge span b { font-size: 10.5px; } }
/* 세로 카드: 행 높이 고정 — 펼쳐져도 페이지 높이가 변하지 않음 */
.vcards { height: 500px; min-height: 0; }
.vcard { height: 100%; }
.vcard-media { flex: 1 1 auto; min-height: 0; }
.vcard-body > div { max-height: 220px; overflow: auto; }
.vcard-body { flex: 0 0 auto; }
.vcard-head { flex: 0 0 auto; }
.vcard-head h3 { min-height: 2.6em; display: flex; align-items: flex-end; }
@media (max-width: 1100px) { .vcards { height: 460px; } }
@media (max-width: 900px) { .vcards { height: auto; } .vcard { height: auto; } .vcard-head h3 { min-height: 0; } }
.levels { align-items: start; }
.levels-gauge .lvpanel { min-height: 0; }
.lvpanel.no-img .lv-info { padding: 28px 32px 30px; }
/* 지도 임베드 */
.map-embed { position: relative; background: var(--beige); box-shadow: var(--shadow-1); }
.map-embed.r169 iframe { aspect-ratio: 16 / 9; } .map-embed.r43 iframe { aspect-ratio: 4 / 3; }
.map-embed iframe { display: block; width: 100%; height: auto; border: 0; filter: saturate(.9); }
.map-embed .map-cap { margin: 10px 2px 0; }
.f-map-embed { box-shadow: none; border: 1px solid rgba(255,255,255,.15); }
.f-map-embed iframe { aspect-ratio: 4 / 3; max-height: 240px; }


/* ===================== 13차: 카드 텍스트 고정폭 / 홈 공간 풀스크린 / 원장 사진 ===================== */
/* 세로 확장 카드: 카드 폭이 변하는 동안 글이 다시 줄바꿈되지 않도록, 글 상자 폭을 두 상태(좁음/넓음)로 고정 */
.vcards { --vc-n: 180px; --vc-w: 396px; }
.vcard-head { width: var(--vc-n); max-width: 100%; box-sizing: border-box; }
.vcard-body > div { width: calc(var(--vc-w) - 36px); max-width: none; max-height: 300px; overflow: hidden; scrollbar-width: none; }
.vcard-body > div::-webkit-scrollbar { display: none; }
.vcard-body { overflow: hidden; }
.vcard.is-open .vcard-body, .vcard:hover .vcard-body, .vcard:focus-visible .vcard-body { transition-delay: .12s, .2s; }
@media (max-width: 900px) {
  .vcard-head, .vcard-body > div { width: auto; max-width: 100%; }
}

/* 홈 S07: 한 화면에 제목+사진을 고정(pin)하고, 스크롤에 따라 사진이 화면에 맞게 커짐 */
.hspace { padding: 0 0 56px; }
.hspace-pin { height: 175vh; position: relative; }
.hspace-stage { position: sticky; top: 0; height: 100vh; height: 100svh; box-sizing: border-box; padding: calc(var(--header-h, 84px) + 28px) 24px 24px; display: grid; grid-template-rows: auto 1fr; justify-items: center; align-content: start; overflow: hidden; }
.hspace-head { --p: 0; text-align: center; max-width: 820px; opacity: calc(1 - var(--p) * 1.6); transform: translateY(calc(var(--p) * -14px)); margin-bottom: 22px; }
.hspace-head .kicker { justify-content: center; }
.hspace-head h2 { font-size: clamp(28px, 3vw, 40px); margin: 6px 0 10px; }
.hspace-head .lead { margin: 0; font-size: 16.5px; color: var(--ink-2); text-wrap: balance; }
.hspace-frame { --p: 0; --avail: calc(100vh - var(--header-h, 84px) - 48px);
  --fw0: min(1040px, 100vw - 120px, calc((var(--avail) - 150px) * 16 / 9)); --fw1: min(100vw - 48px, calc(var(--avail) * 16 / 9));
  --fw: calc(var(--fw0) + (var(--fw1) - var(--fw0)) * var(--p));
  width: var(--fw); aspect-ratio: 16 / 9; position: relative; box-shadow: var(--shadow-2); background: var(--sand); align-self: start;
  transform: translateY(calc(var(--p) * -150px)); }
.hspace-frame .pslider { position: absolute; inset: 0; display: block; }
.hspace-frame .pslider-main { position: absolute; inset: 0; box-shadow: none; }
.hspace-frame .pslides { aspect-ratio: auto; height: 100%; width: 100%; }
.hspace-frame .pslider-cap { top: 0; bottom: auto; padding: 14px 22px; background: linear-gradient(180deg, rgba(58,51,45,.62), rgba(58,51,45,0)); }
.hspace-frame .pthumbs { position: absolute; left: 0; right: 0; bottom: 0; justify-content: center; padding: 10px 14px 14px; background: linear-gradient(0deg, rgba(58,51,45,.6), rgba(58,51,45,0)); }
.hspace-frame .pthumb { flex-basis: 84px; opacity: .5; }
.hspace-frame .pthumb.is-active { opacity: 1; outline-color: #fff; }
.hspace .space-cta { margin: 24px 0 0; text-align: center; }
@media (max-width: 900px) {
  .hspace { padding: 64px 0 48px; }
  .hspace-pin { height: auto; }
  /* justify-items: normal — Chrome 최신 버전은 block 컨테이너에도 justify-items 를 적용해(PC 규칙의 center 가 남으면) 사진 틀이 썸네일 17장 너비(약 1,550px)로 늘어나 휴대폰에서 확대·잘려 보였음 */
  .hspace-stage { position: static; height: auto; display: block; padding: 0 24px; overflow: visible; justify-items: normal; }
  .hspace-head { opacity: 1; transform: none; text-align: left; margin-bottom: 18px; max-width: none; justify-self: auto; }
  .hspace-head .kicker { justify-content: flex-start; }
  .hspace-frame { width: auto; max-width: 100%; height: auto; aspect-ratio: auto; max-height: none; margin: 0; transform: none; justify-self: auto; align-self: auto; }
  .hspace-frame .pslider, .hspace-frame .pslider-main { position: relative; inset: auto; }
  .hspace-frame .pslides { aspect-ratio: 4 / 3; height: auto; }
  .hspace-frame .pthumbs { position: static; background: none; justify-content: flex-start; padding: 8px 0 0; }
  .hspace-frame .pthumb.is-active { outline-color: var(--mint); }
}

/* 홈 의료진 카드: 한 줄에 한 분, 큰 사진 | 이름 + 자동 전환 탭(인사말·진료 분야·경력·학력·수련·수상·학회) */
.hdoctors { grid-template-columns: 1fr; gap: 24px; }
.hdoctor.has-photo { grid-template-columns: 360px minmax(0, 1fr); gap: 0 44px; align-items: stretch; padding: 32px 36px; }
.hdoctor .hdoc-photo { display: flex; }
.hdoctor .hdoc-photo figure { margin: 0; width: 100%; aspect-ratio: 4 / 5; min-height: 100%; overflow: hidden; background: var(--sand); box-shadow: var(--shadow-1); }
.hdoctor .hdoc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hdoctor .hdoc-body { display: grid; gap: 8px; min-width: 0; align-content: start; grid-template-rows: auto auto auto auto 1fr auto; }
.hdoctor .dtabs { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 14px 0 4px; border-bottom: 1px solid var(--line-2); }
.hdoctor .dtab { --pg: 0; position: relative; appearance: none; border: 0; background: none; padding: 10px 14px 12px; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; letter-spacing: .01em; }
.hdoctor .dtab i { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--line-2); transform: scaleX(0); transform-origin: left; }
.hdoctor .dtab.is-active { color: var(--mint-d); }
.hdoctor .dtab.is-active i { background: var(--mint); transform: scaleX(var(--pg)); transition: transform .25s linear; }
.hdoctor .dtab:hover { color: var(--mint-d); }
.hdoctor .dtab:focus-visible { outline: 2px solid var(--mustard); outline-offset: -2px; }
.hdoctor .dpanels { display: grid; align-items: start; min-height: 0; }
.hdoctor .dpanel { grid-area: 1 / 1; opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; visibility: hidden; }
.hdoctor .dpanel.is-active { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.hdoctor .dpanel { display: block !important; }
.hdoctor .dpanel .hand { margin: 8px 0 0; font-size: 25px; line-height: 1.55; }
.hdoctor .dpanel .dt-inline { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.hdoctor .dpanel .dt-inline b { color: var(--mint-d); font-size: 13px; letter-spacing: .06em; margin-right: 10px; }
.hdoctor .dpanel .dt-inline span { margin: 0 8px; color: var(--ink-3); }
.hdoctor .dpanel h5 { margin: 10px 0 6px; font-family: var(--sans); font-size: 13px; letter-spacing: .06em; color: var(--mint-d); font-weight: 700; }
.hdoctor .dpanel h5:first-child { margin-top: 6px; }
.hdoctor .dt-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.hdoctor .dt-list.two { grid-template-columns: 1fr 1fr; gap: 5px 18px; font-size: 14.5px; }
.hdoctor .dt-list li { padding-left: 13px; position: relative; }
.hdoctor .dt-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; background: var(--mustard); }
.hdoctor .hdoc-body .doc-links { margin: 10px 0 0; align-self: end; }
@media (max-width: 1100px) { .hdoctor.has-photo { grid-template-columns: 260px minmax(0, 1fr); gap: 0 28px; } .hdoctor .dt-list.two { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .hdoctor.has-photo { grid-template-columns: 1fr; padding: 26px 22px; gap: 18px; }
  .hdoctor .hdoc-photo { max-width: 260px; }
  .hdoctor .hdoc-photo figure { min-height: 0; }
  /* 탭 5개가 두 줄로 꺾이지 않게 — 좁으면 한 줄로 가로 스크롤 */
  .hdoctor .dtabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hdoctor .dtabs::-webkit-scrollbar { display: none; }
  .hdoctor .dtab { padding: 8px 10px 10px; font-size: 13.5px; white-space: nowrap; flex: 0 0 auto; }
  .hdoctor .dpanel .hand { font-size: 23px; }
  /* 휴대폰에서는 카드가 세로로 쌓이므로 안 보이는 탭 내용이 자리를 차지하지 않게 (인사말 아래 빈 공간 제거) */
  .hdoctor .dpanel:not(.is-active) { display: none !important; }
  .hdoctor .dpanels { min-height: 0 !important; }
}
@media (max-width: 480px) { .hdoctor .dtab { padding: 8px 7px 10px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .hdoctor .dpanel { transition: none; } .hdoctor .dtab.is-active i { transition: none; transform: scaleX(1); } }

/* 진료 방향 문장: 문장 단위 줄바꿈 */
.quote-band .quote-lead { margin-top: 22px; font-size: 17px; max-width: none; text-wrap: balance; }
@media (max-width: 900px) { .quote-band .quote-lead br.pc { display: none; } }
@media (max-width: 900px) { .pc-only { display: none; } }

/* ===================== 15차: 진행 단계 전용 장면 일러스트 ===================== */
.pstep.scene { grid-template-columns: 250px 1fr; gap: 30px; padding: 16px 28px 16px 16px; }
.pstep.scene.rev { grid-template-columns: 1fr 250px; padding: 16px 16px 16px 28px; }
.pstep-media .scene-pic { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
.pstep-media .scene-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform .8s var(--ease); }
.pstep.scene.is-current .scene-pic img { transform: scale(1.06); }
@media (max-width: 900px) {
  .pstep.scene, .pstep.scene.rev { grid-template-columns: 1fr; padding: 14px; }
  .pstep-media .scene-pic { aspect-ratio: 4 / 3; max-width: 100%; }
  .pstep-media .scene-pic img { object-position: center 35%; }
}

/* 가정의학과 진료 분야 2분류 */
.hdoctor .dt-groups { display: grid; grid-template-columns: 1.4fr 1fr; gap: 6px 24px; }
.hdoctor .dt-groups h5 { margin: 6px 0 2px; font-family: var(--sans); font-size: 13px; letter-spacing: .06em; color: var(--mint-d); font-weight: 700; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.field-groups { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px 28px; }
.field-groups h4 { margin: 8px 0 4px; font-size: 15px; color: var(--mint-d); }
.field-groups ul { margin: 0; }
@media (max-width: 640px) { .hdoctor .dt-groups, .field-groups { grid-template-columns: 1fr; } }

/* ===================== 17차: GEO '진료 안내 요약' — 본문 맨 아래, 눈에 덜 띄게 ===================== */
.geo-sec { padding-block: 10px 14px; background: var(--paper); border-top: 1px solid var(--line-2); }
.geo-details > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; padding: 10px 0; }
.geo-details > summary::-webkit-details-marker { display: none; }
.geo-details > summary:hover .geo-h { color: var(--mint-d); }
.geo-chev { width: 8px; height: 8px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(45deg); transition: transform .25s var(--ease); margin-right: 4px; }
.geo-details[open] .geo-chev { transform: rotate(-135deg); }
.geo-body { padding: 6px 0 18px; }
.geo-sec .wrap { max-width: 920px; }
.geo-h { font-family: var(--sans); font-size: 13.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); margin: 0; }
.geo-text { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--ink-3); text-wrap: pretty; }
.geo-facts { margin: 12px 0 0; font-size: 13.5px; line-height: 1.9; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 0 18px; }
.geo-facts b { font-weight: 700; color: var(--ink-2); margin-right: 5px; }
.geo-facts a { color: var(--ink-2); text-decoration: none; }
.geo-faq { margin-top: 14px; }
.geo-faq h3 { font-family: var(--sans); font-size: 13.5px; font-weight: 700; color: var(--ink-3); margin: 0 0 8px; }
.geo-faq .faq { max-width: none; background: transparent; padding: 0; box-shadow: none; border: 0; }
.geo-faq .faq-item { background: transparent; border-top: 1px solid var(--line-2); box-shadow: none; }
.geo-faq .faq-q { font-size: 14px; padding: 11px 36px 11px 0; color: var(--ink-2); }
.geo-faq .faq-q::after { width: 22px; height: 22px; font-size: 14px; }
.geo-faq .faq-inner { font-size: 14px; color: var(--ink-3); }
.geo-faq .faq-a.is-open { padding-bottom: 12px; }
@media (max-width: 900px) { .geo-sec { padding-block: 28px 32px; } }

/* 비급여 고지표 */
/* minmax(0,1fr) · min-width:0 — 그리드 칸이 표의 최소 너비(560px)만큼 늘어나 휴대폰에서 금액 열이 잘려 보이던 것 방지 (표는 .table-scroll 안에서 좌우 스크롤) */
.fee-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.fee-group { background: var(--white); box-shadow: var(--shadow-1); min-width: 0; }
.fee-group .table-note { padding: 0 20px 14px; margin: -6px 0 0; }
.fee-group > summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; }
.fee-group > summary::-webkit-details-marker { display: none; }
.fee-group > summary h3 { margin: 0; font-size: 18px; }
.fee-group > summary::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(45deg); transition: transform .25s var(--ease); margin-right: 4px; }
.fee-group[open] > summary::after { transform: rotate(-135deg); }
.fee-group .table-scroll { padding: 0 20px 18px; }
.fee-group table { font-size: 14px; }
.fee-group td:nth-child(3) { white-space: nowrap; font-weight: 700; color: var(--ink); }
@media (max-width: 640px) {
  .fee-group > summary { padding: 14px 16px; }
  .fee-group .table-scroll { padding: 0 10px 14px; }
  .fee-group table { font-size: 13px; }
  /* 휴대폰: 금액이 밀어 보지 않아도 보이게 — 코드 열은 숨기고(PC 에서 확인) 항목명은 줄바꿈 */
  .fee-group table { min-width: 0; width: 100%; }
  .fee-group th:nth-child(2), .fee-group td:nth-child(2) { display: none; }
  .fee-group th, .fee-group td { white-space: normal; }
  .fee-group th:first-child, .fee-group td:first-child { word-break: break-word; }
  .fee-group td:nth-child(3) { white-space: nowrap; text-align: right; }
  .fee-group th:nth-child(3) { text-align: right; }
  .fee-group .table-note { display: none; }
}

/* 단일 페이지 메뉴(비급여 진료비): 드롭다운 없음 */
.gnb > li.single .top a { padding-right: 0; }
.mobile-nav .mn-single { padding: 0; }
.mobile-nav .mn-single-link { display: block; width: 100%; padding: 16px 4px; font-size: 18px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav .mn-single-link[aria-current="page"] { color: var(--mint-d); }
