/* 페이지.com 진료탭형 슬롯 스타일 v2
   기준: 04_템플릿/벤치마크 연세볼트치과(히어로·정보바·번호섹션·sticky탭·퀵메뉴·CTA밴드)
        + 서울정석치과(줄 마스크 텍스트 리빌·숫자 증거 섹션·FAQ 열림 카드)
   외부 폰트·아이콘·JS 라이브러리를 쓰지 않는다. 수백 슬롯에 외부 의존을 만들지 않기 위해서다.
   숨김 계열 효과는 전부 .js 스코프 안에서만 동작한다. 스크립트가 없으면 내용은 전부 보인다. */

:root {
  --navy: #1d2b51;
  --navy-2: #16213f;
  --navy-3: #0f172e;
  --blue: #2b61d1;
  --blue-d: #1e49a4;
  --blue-l: #e6eefc;
  --glass: #eef3f8;
  --glass-2: #e2eaf3;
  --ink: #141922;
  --body: #39414f;
  --muted: #6b7585;
  --line: #dfe5ec;
  --line-2: #eef1f5;
  --bg: #ffffff;
  --foot: #0f131b;

  --container: 1200px;
  --gutter: 56px;
  --radius: 6px;
  --radius-l: 14px;
  --head-h: 92px;
  --head-h-s: 62px;

  --sans: Pretendard, "Pretendard Variable", -apple-system, BlinkMacSystemFont,
          "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow: 0 1px 2px rgba(20, 25, 34, .04), 0 8px 24px rgba(20, 25, 34, .06);
  --shadow-l: 0 2px 6px rgba(20, 25, 34, .06), 0 18px 48px rgba(20, 25, 34, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.78;
  color: var(--body); background: var(--bg); -webkit-font-smoothing: antialiased;
  word-break: keep-all; overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--navy); color: #fff; padding: 12px 20px; }
.skip:focus { left: 0; }
.wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- 영문 라벨 (볼트 헤딩 패턴) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono);
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; display: block; width: 28px; height: 1.5px; background: currentColor; }
.eyebrow.on-dark { color: rgba(255, 255, 255, .92); }

/* ---------- 줄 마스크 텍스트 리빌 (정석 .txtline) ---------- */
.tl { display: block; overflow: hidden; }
.tl-in { display: block; }
.js .txtline .tl-in { transform: translateY(105%); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.js .txtline.on .tl-in { transform: none; }
.js .txtline .tl:nth-child(2) .tl-in { transition-delay: .12s; }
.js .txtline .tl:nth-child(3) .tl-in { transition-delay: .24s; }
.js .txtline .tl:nth-child(4) .tl-in { transition-delay: .36s; }

/* ---------- 헤더 : 히어로 위 투명 -> 스크롤 시 흰 blur + 축소 ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-head.is-stuck {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(20, 25, 34, .03);
}
.head-in { display: flex; align-items: center; gap: 28px; height: var(--head-h); transition: height .25s ease; }
.site-head.is-stuck .head-in { height: var(--head-h-s); }
.brand { color: #fff; font-weight: 800; font-size: 21px; letter-spacing: -.02em; flex: none; transition: color .25s; }
.brand:hover { text-decoration: none; }
.site-head.is-stuck .brand { color: var(--navy); }
.gnb { margin-left: auto; }
.gnb > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.gnb a, .sub-t {
  display: block; padding: 10px 16px; color: #fff; font-weight: 600; font-size: 16px;
  background: none; border: 0; font-family: inherit; cursor: pointer; border-radius: var(--radius); transition: color .25s;
}
.site-head.is-stuck .gnb a, .site-head.is-stuck .sub-t { color: var(--ink); }
.gnb a:hover, .sub-t:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.site-head.is-stuck .gnb a:hover, .site-head.is-stuck .sub-t:hover { background: var(--glass); }
.has-sub { position: relative; }
.sub-t::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; vertical-align: 2px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); }
.sub {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 640px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-l); padding: 18px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub, .sub-t[aria-expanded="true"] + .sub { opacity: 1; visibility: visible; transform: none; }
.sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; list-style: none; margin: 0; padding: 0; }
.sub-grid a { padding: 9px 12px; font-weight: 500; font-size: 15px; color: var(--body) !important; }
.sub-grid a:hover { background: var(--glass) !important; color: var(--navy) !important; }
.head-cta { flex: none; color: #fff !important; border-color: rgba(255, 255, 255, .4) !important; background: transparent !important; }
.site-head.is-stuck .head-cta { color: var(--navy) !important; border-color: var(--line) !important; }
.head-cta:hover { background: rgba(255, 255, 255, .12) !important; }
.site-head.is-stuck .head-cta:hover { background: var(--glass) !important; }
.burger { display: none; }
.site-head.light .brand, .site-head.light .gnb a, .site-head.light .sub-t { color: var(--navy); }
.site-head.light .head-cta { color: var(--navy) !important; border-color: var(--line) !important; }

/* ---------- 모바일 시트 ---------- */
.msheet { position: fixed; inset: 0; z-index: 150; background: #fff; overflow-y: auto; }
.msheet[hidden] { display: none; }
.msheet-in { padding: 24px 20px 56px; }
.msheet-x { float: right; background: none; border: 0; font: inherit; font-weight: 600; color: var(--muted); padding: 8px; cursor: pointer; }
.msheet-h { clear: both; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .12em; margin: 22px 0 10px; }
.msheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; margin: 0; padding: 0; }
.msheet-grid a { display: block; padding: 14px 12px; background: var(--glass); border-radius: var(--radius); color: var(--navy); font-weight: 600; font-size: 15px; text-align: center; }
.msheet-grid a:hover { text-decoration: none; background: var(--glass-2); }

/* ---------- 홈 히어로 : 전체폭 사진 + 어두운 오버레이 + 정보바 4칸 (볼트) ---------- */
.hero-home { position: relative; min-height: 92vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-home::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(15, 23, 46, .88) 0%, rgba(15, 23, 46, .62) 48%, rgba(15, 23, 46, .28) 100%),
  linear-gradient(180deg, rgba(15, 23, 46, .45) 0%, rgba(15, 23, 46, .15) 40%, rgba(15, 23, 46, .85) 100%); }
.hero-home h1, .hero-copy, .hero-lead, .hero-home .eyebrow { text-shadow: 0 2px 22px rgba(5, 10, 25, .55), 0 1px 3px rgba(5, 10, 25, .5); }
.hero-home .wrap { position: relative; width: 100%; padding-top: 160px; padding-bottom: 0; }
.hero-home h1 { margin: 18px 0 8px; font-size: clamp(38px, 5.6vw, 64px); line-height: 1.12; letter-spacing: -.04em; font-weight: 800; color: #fff; }
.hero-copy { margin: 0 0 14px; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.28; letter-spacing: -.03em; font-weight: 700; color: #fff; }
.hero-lead { margin: 0; max-width: 60ch; font-size: 17px; line-height: 1.75; color: rgba(255, 255, 255, .84); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 48px; }
.hstats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0 0 40px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius); overflow: hidden;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hstat { background: rgba(255, 255, 255, .08); padding: 20px 22px; }
.hstat-l { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: rgba(255, 255, 255, .7); margin-bottom: 8px; }
.hstat-l::before { content: ""; width: 20px; height: 1px; background: rgba(255, 255, 255, .5); }
.hstat-n { font-family: var(--mono); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; color: #fff; letter-spacing: -.02em; }
.hstat-n small { font-family: var(--sans); font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .75); margin-left: 6px; }

/* ---------- 서브 히어로 : 컨테이너 안 라운드 카드 (볼트 서브) ---------- */
.hero-page { padding: calc(var(--head-h) + 22px) 0 0; }
.hero-card {
  position: relative; min-height: 440px; border-radius: var(--radius-l); overflow: hidden;
  background: var(--navy); color: #fff; display: flex; align-items: center;
}
.hero-card .hero-bg { object-position: center; }
.hero-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 23, 46, .95) 0%, rgba(15, 23, 46, .82) 42%, rgba(15, 23, 46, .35) 78%, rgba(15, 23, 46, .15) 100%); }
.hero-card h1, .hero-card .hero-lead, .hero-card .eyebrow { text-shadow: 0 2px 20px rgba(5, 10, 25, .55), 0 1px 3px rgba(5, 10, 25, .5); }
.hero-card-in { position: relative; padding: 56px 60px; max-width: 700px; }
.hero-card h1 { margin: 16px 0 14px; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.14; letter-spacing: -.035em; font-weight: 800; color: #fff; }
.hero-card .hero-lead { font-size: 17.5px; }

/* ---------- 층 순서 : 사진(0) < 오버레이(1) < 글자(2) ----------
   ::before 는 첫 자식으로 그려지고 <img> 가 그 다음이라 z-index 가 같으면 사진이 오버레이를 덮는다.
   글자 그림자만으로 버티던 상태를 여기서 바로잡는다. */
.hero-home .hero-bg, .hero-card .hero-bg, .proof-bg, .care-big img { z-index: 0; }
.hero-home::before, .hero-card::before, .proof::before, .care-big::before { z-index: 1; }
.hero-home .wrap, .hero-card-in, .proof .wrap, .care-big-in { position: relative; z-index: 2; }

/* ---------- 브레드크럼 + sticky 페이지 탭 (볼트 서브) ---------- */
.crumb { display: flex; gap: 9px; align-items: center; padding: 14px 0 0; font-size: 14px; color: var(--muted); }
.crumb a { color: var(--muted); }
.crumb span[aria-current] { color: var(--ink); font-weight: 600; }
.ptabs-wrap { position: sticky; top: var(--head-h-s); z-index: 60; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); margin-top: 28px; }
.ptabs { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs a { flex: none; padding: 16px 22px; font-size: 15px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ptabs a:hover { color: var(--navy); text-decoration: none; }
.ptabs a.is-cur { color: var(--navy); border-bottom-color: var(--blue); }

/* ---------- 본문 ---------- */
.prose { padding: 56px 0 84px; max-width: 980px; }
.prose > h2 { margin: 72px 0 22px; padding-top: 0; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.3; letter-spacing: -.03em; color: var(--navy); font-weight: 800; }
.prose > h2:first-child { margin-top: 0; }
.prose > h2::before { display: none; }
.h2-num { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .18em; color: var(--blue); margin-bottom: 12px; }
.h2-num::before { content: ""; width: 28px; height: 1.5px; background: var(--blue); }
.h2-num .en { color: var(--muted); margin-left: 6px; }
.prose h3 { margin: 38px 0 12px; font-size: 20px; line-height: 1.45; letter-spacing: -.02em; color: var(--ink); font-weight: 700; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--blue); }
.prose strong, .prose b { color: var(--ink); font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 52px 0; }
.prose blockquote { margin: 26px 0; padding: 20px 24px; background: var(--glass); border-left: 3px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.cols { columns: 2; column-gap: 32px; }
@media (max-width: 640px) { .cols { columns: 1; } }

/* ---------- 차트 figure ---------- */
.fig { margin: 28px 0 34px; }
.fig img { border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow); }
.fig figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ---------- 표 ---------- */
.tbl { overflow-x: auto; margin: 26px 0 32px; -webkit-overflow-scrolling: touch; }
table.fact { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 520px; }
table.fact caption { caption-side: top; text-align: left; font-size: 13.5px; line-height: 1.6; color: var(--muted); padding: 0 0 11px; font-weight: 500; }
table.fact caption b { color: var(--ink); }
table.fact th, table.fact td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-2); }
table.fact thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; border-bottom: 0; white-space: nowrap; }
table.fact thead th:first-child { border-radius: var(--radius) 0 0 0; }
table.fact thead th:last-child { border-radius: 0 var(--radius) 0 0; }
table.fact tbody tr:nth-child(even) { background: #fafcfe; }
table.fact tbody tr:hover { background: var(--glass); }
table.fact td b { color: var(--navy); font-weight: 700; }
table.price td:not(:first-child) { font-family: var(--mono); font-size: 14.5px; white-space: nowrap; }
table.fact tbody td:first-child { font-weight: 600; color: var(--ink); }

/* ---------- 숫자 증거 밴드 (정석 spec-con) ---------- */
.proof { position: relative; background: var(--navy-3); color: #fff; padding: 88px 0; overflow: hidden; }
.proof-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.proof::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 23, 46, .96) 0%, rgba(15, 23, 46, .6) 60%, rgba(15, 23, 46, .35) 100%); }
.proof .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.proof h2 { margin: 14px 0 18px; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.22; letter-spacing: -.035em; font-weight: 800; color: #fff; }
.proof p { margin: 0; color: rgba(255, 255, 255, .78); max-width: 46ch; }
.proof-rows { list-style: none; margin: 0; padding: 0; }
.proof-rows li { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.proof-rows li:first-child { border-top: 1px solid rgba(255, 255, 255, .16); }
.proof-n { font-family: var(--mono); font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.02em; color: #fff; }
.proof-l { font-size: 15.5px; color: rgba(255, 255, 255, .78); text-align: right; }
.proof-note { position: relative; margin-top: 26px; font-size: 13px; color: rgba(255, 255, 255, .5); max-width: 60ch; }

/* ---------- 진료안내 그리드 : 1 대형 + 3 소형 + 나머지 카드 (볼트) ---------- */
.care { padding: 84px 0; }
.care-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.care-head h2 { margin: 12px 0 0; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.035em; line-height: 1.2; color: var(--navy); font-weight: 800; }
.care-head p { margin: 0; color: var(--muted); max-width: 44ch; }
.care-top { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.care-big { position: relative; min-height: 520px; border-radius: var(--radius-l); overflow: hidden; color: #fff; display: flex; align-items: flex-end; background: var(--navy); }
.care-big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.care-big:hover img { transform: scale(1.04); }
.care-big::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 46, 0) 30%, rgba(15, 23, 46, .88) 100%); }
.care-big-in { position: relative; padding: 34px; }
.care-big h3 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.03em; color: #fff; }
.care-big p { margin: 0 0 16px; color: rgba(255, 255, 255, .84); max-width: 40ch; }
.care-side { display: grid; gap: 14px; }
.care-row { display: grid; grid-template-columns: 220px 1fr; border-radius: var(--radius-l); overflow: hidden; background: var(--glass); min-height: 160px; }
.care-row img { width: 100%; height: 100%; object-fit: cover; }
.care-row-in { padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; }
.care-row h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.02em; color: var(--navy); }
.care-row p { margin: 0 0 10px; font-size: 15px; color: var(--body); }
.care-link { font-weight: 700; color: var(--navy); font-size: 15px; }
.care-link::after { content: " →"; }
.care-link:hover { text-decoration: none; color: var(--blue); }
.care-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.care-card { display: block; padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); transition: .16s; }
.care-card:hover { text-decoration: none; border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.care-card b { display: block; font-size: 16.5px; letter-spacing: -.02em; margin-bottom: 4px; color: var(--navy); }
.care-card span { font-size: 14px; color: var(--muted); line-height: 1.55; display: block; }

/* ---------- 번호 섹션 / FAQ ---------- */
details.faq { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: #fff; overflow: hidden; transition: background .2s, border-color .2s; }
details.faq[open] { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, .88); }
details.faq > summary { padding: 18px 52px 18px 22px; font-weight: 700; color: var(--ink); cursor: pointer; position: relative; list-style: none; line-height: 1.6; }
details.faq[open] > summary { color: #fff; }
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::before { content: "Q."; font-family: var(--mono); color: var(--blue); margin-right: 10px; }
details.faq[open] > summary::before { color: rgba(255, 255, 255, .7); }
details.faq > summary::after { content: ""; position: absolute; right: 22px; top: 26px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; }
details.faq[open] > summary::after { transform: rotate(-135deg); border-color: #fff; }
details.faq > summary:hover { background: var(--glass); }
details.faq[open] > summary:hover { background: var(--navy-2); }
.faq-a { padding: 0 22px 20px; }
details.faq[open] .faq-a { color: rgba(255, 255, 255, .88); }
.faq-a p:last-child { margin-bottom: 0; }
details.faq[open] .faq-a a { color: #fff; text-decoration: underline; }

/* ---------- 임대 배너 · 버튼 · 연관 ---------- */
.rental { margin: 48px 0; padding: 32px 34px; background: var(--glass); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); }
.rental-head { margin: 0 0 12px; font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.rental p { margin: 0 0 12px; }
.rental-terms { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.rental-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: var(--radius); font-weight: 700; font-size: 15px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; transition: .15s; }
.btn:hover { text-decoration: none; border-color: #b9c8dd; background: var(--glass); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn.ghost { padding: 9px 17px; font-size: 14.5px; }
.btn.on-dark { background: #fff; border-color: #fff; color: var(--navy); }
.btn.on-dark:hover { background: var(--glass); }
.related { padding: 0 0 70px; }
.related h2 { font-size: 22px; color: var(--navy); margin: 0 0 18px; letter-spacing: -.02em; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rel-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: .16s; }
.rel-card:hover { text-decoration: none; border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.rel-t { font-weight: 700; color: var(--navy); font-size: 17px; letter-spacing: -.02em; }
.rel-m { font-size: 13.5px; color: var(--muted); }
.disclaimer { margin: 40px 0 0; padding: 16px 20px; background: var(--glass); border-radius: var(--radius); font-size: 14px; line-height: 1.7; color: var(--muted); }
ul.contact { list-style: none; padding: 0; margin: 20px 0; }
ul.contact li { padding: 11px 0; border-bottom: 1px solid var(--line-2); }
ul.contact strong { display: inline-block; min-width: 92px; color: var(--muted); font-weight: 600; font-size: 14.5px; }

/* ---------- CTA 밴드 (볼트 공통 마지막 h2) ---------- */
.cta { background: var(--navy); color: #fff; padding: 76px 0; text-align: center; }
.cta h2 { margin: 12px 0 10px; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.035em; line-height: 1.25; color: #fff; font-weight: 800; }
.cta p { margin: 0 auto 26px; max-width: 52ch; color: rgba(255, 255, 255, .78); }
.cta .btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

/* ---------- 푸터 ---------- */
.site-foot { background: var(--foot); color: rgba(255, 255, 255, .62); padding: 60px 0 30px; font-size: 14.5px; }
.site-foot a { color: rgba(255, 255, 255, .74); }
.foot-h { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: rgba(255, 255, 255, .42); margin: 0 0 14px; font-family: var(--mono); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 40px; }
.foot-meta p { margin: 0 0 9px; line-height: 1.7; }
.foot-brand { color: #fff; font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.foot-disc { font-size: 13px; color: rgba(255, 255, 255, .42); padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 20px; }
.foot-copy { font-size: 13px; color: rgba(255, 255, 255, .34); }

/* ---------- 고정 장치 : 우측 퀵메뉴(데스크톱) · 하단 도크(모바일) · TOP ---------- */
.quick { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-l); overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.quick.on { opacity: 1; visibility: visible; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 82px; padding: 14px 8px; font-size: 12px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.quick a:last-child { border-bottom: 0; }
.quick a:hover { background: var(--glass); text-decoration: none; }
.quick svg { width: 22px; height: 22px; stroke: var(--navy); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dock { display: none; }
.totop { position: fixed; right: 22px; bottom: 26px; z-index: 90; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.totop.on { opacity: 1; visibility: visible; }
.totop:hover { text-decoration: none; background: var(--navy-2); }

/* ---------- 섹션 리빌 (.js 스코프에서만 숨긴다) ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .txtline .tl-in { opacity: 1; transform: none; transition: none; }
  .site-head, .head-in, .sub, .rel-card, .totop, .care-big img { transition: none; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
  :root { --gutter: 32px; }
  .sub { min-width: 460px; }
  .sub-grid { grid-template-columns: repeat(2, 1fr); }
  .care-grid { grid-template-columns: repeat(3, 1fr); }
  .quick { display: none; }
}
@media (max-width: 860px) {
  :root { --gutter: 20px; --head-h: 62px; --head-h-s: 56px; }
  body { font-size: 16px; }
  .gnb, .head-cta { display: none; }
  .burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; width: 42px; height: 42px; padding: 0 9px; background: none; border: 0; cursor: pointer; }
  .burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }
  .site-head.is-stuck .burger span, .site-head.light .burger span { background: var(--navy); }
  .hero-home { min-height: 86vh; }
  .hero-home .wrap { padding-top: 110px; }
  .hstats { grid-template-columns: 1fr 1fr; margin-bottom: 26px; }
  .hstat { padding: 16px 16px; }
  .hero-page { padding-top: calc(var(--head-h) + 14px); }
  .hero-card { min-height: 360px; }
  .hero-card-in { padding: 34px 26px; }
  .ptabs-wrap { top: var(--head-h-s); }
  .prose { padding: 40px 0 60px; }
  .prose > h2 { margin: 50px 0 16px; }
  .proof { padding: 60px 0; }
  .proof .wrap { grid-template-columns: 1fr; gap: 30px; }
  .proof-l { text-align: left; }
  .care { padding: 56px 0; }
  .care-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .care-top { grid-template-columns: 1fr; }
  .care-big { min-height: 320px; }
  .care-row { grid-template-columns: 120px 1fr; min-height: 120px; }
  .care-grid { grid-template-columns: repeat(2, 1fr); }
  .rel-grid { grid-template-columns: 1fr; }
  .rental { padding: 24px 22px; margin: 34px 0; }
  .cta { padding: 56px 0; }
  .dock { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); }
  .dock a { text-align: center; font-size: 13px; font-weight: 600; color: var(--navy); padding: 7px 0; }
  .dock a:hover { text-decoration: none; }
  .site-foot { padding-bottom: 88px; }
  .totop { bottom: 84px; right: 16px; }
}
@media (max-width: 420px) {
  .hero-home h1 { font-size: 34px; }
  .hero-copy { font-size: 22px; }
  .msheet-grid, .care-grid { grid-template-columns: 1fr; }
  .care-row { grid-template-columns: 1fr; }
  .care-row img { height: 140px; }
}
@media print {
  .site-head, .msheet, .dock, .totop, .quick, .rental, .cta { display: none; }
  .hero-home, .hero-card, .proof { background: none; color: #000; min-height: 0; }
  .hero-home h1, .hero-card h1, .proof h2 { color: #000; }
}

/* ---------- 업체 모드(tenant) : 히어로 정보칸(문자) · 핵심 요약 박스 · 진료시간 · 오시는 길 · CTA (2026-09-28) ---------- */
.hstat-t { display: block; font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -.01em; line-height: 1.4; }
.hstat-t a { color: #fff; }
.biz-sum { margin: 0 0 44px; padding: 28px 32px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius-l); }
.biz-sum dl { display: grid; grid-template-columns: 112px 1fr; gap: 10px 18px; margin: 0; }
.biz-sum dt { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; color: var(--blue); font-weight: 600; padding-top: 4px; }
.biz-sum dd { margin: 0; color: var(--ink); font-weight: 500; }
.biz-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px; }
.biz-loc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin: 26px 0 34px; }
.biz-loc address { font-style: normal; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; }
.biz-loc address b { display: block; font-size: 19px; color: var(--navy); margin-bottom: 10px; letter-spacing: -.02em; }
.biz-loc dl { margin: 0; display: grid; grid-template-columns: 84px 1fr; gap: 8px 14px; font-size: 15.5px; }
.biz-loc dt { color: var(--muted); font-weight: 600; }
.biz-loc dd { margin: 0; color: var(--ink); }
.biz-map { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px 26px; border-radius: var(--radius-l); background: var(--navy); color: #fff; }
.biz-map p { margin: 0 0 6px; color: rgba(255, 255, 255, .8); font-size: 15px; }
.biz-map .btn { justify-content: center; }
.foot-nap { color: rgba(255, 255, 255, .72); font-size: 14px; }
.msheet-cta { display: flex; gap: 8px; margin: 0 0 18px; }
.msheet-cta .btn { flex: 1; padding: 12px 8px; font-size: 14px; }
@media (max-width: 860px) {
  .biz-loc { grid-template-columns: 1fr; }
  .biz-sum { padding: 20px 18px; }
  .biz-sum dl { grid-template-columns: 88px 1fr; }
}

/* ---------- 네이버 캐러셀 (2단계, exto.kr·medilane.kr 실측 2026-09-29) ----------
   블록은 <main> 앞에 absolute z1 로 두고 main 이 relative z10 으로 덮는다. display:none·visibility·clip 은 쓰지 않는다. */
#naver-carousel { display: flex; position: absolute; top: 100px; left: 0; width: 100%; z-index: 1; overflow: hidden; background: #fff; color: #000; padding: 16px; box-sizing: border-box; }
#naver-carousel ul { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; width: 100%; }
#naver-carousel li { flex: 1; min-width: 0; }
#naver-carousel a { display: block; color: inherit; text-decoration: none; }
#naver-carousel .thumb { height: 300px; }
#naver-carousel img { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
#naver-carousel .title { padding: 16px 0; text-align: center; font-size: 14px; }
main#main { position: relative; z-index: 10; background: var(--bg); }

/* ---------- 임대 문의 팝업 : 좌측 하단 (2026-10-07 전 슬롯) ---------- */
.rentpop { position: fixed; left: 22px; bottom: 22px; z-index: 92; font-size: 14px; line-height: 1.6; }
.rentpop > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; }
.rentpop > summary::-webkit-details-marker { display: none; }
.rentpop .rp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-l); }
.rentpop .rp-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fee500; }
.rentpop .rp-x { display: none; }
.rentpop[open] { width: 340px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-l); overflow: hidden; }
.rentpop[open] > summary { position: absolute; top: 10px; right: 10px; z-index: 1; }
.rentpop[open] .rp-pill { display: none; }
.rentpop[open] .rp-x { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 20px; line-height: 1; }
.rentpop[open] .rp-x:hover { background: rgba(255, 255, 255, .3); }
.rp-body { display: flex; flex-direction: column; }
.rp-tag { display: block; padding: 22px 22px 0; background: var(--navy); color: #9fb8f0; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.rp-h { margin: 0; padding: 6px 50px 20px 22px; background: var(--navy); color: #fff; font-size: 19px; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; word-break: keep-all; }
.rp-p { margin: 0; padding: 18px 22px 0; color: var(--body); word-break: keep-all; }
.rp-p b { color: var(--ink); }
.rp-terms { margin: 12px 22px 0; padding: 12px 0 0; list-style: none; border-top: 1px solid var(--line-2); color: var(--ink); font-weight: 600; }
.rp-terms li { position: relative; padding-left: 14px; }
.rp-terms li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.rp-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 22px 22px; padding: 13px 16px; border-radius: 10px; background: #fee500; color: #191600; font-weight: 800; text-align: center; }
.rp-btn:hover { background: #f5dc00; text-decoration: none; }
.rp-btn svg { width: 19px; height: 19px; fill: currentColor; stroke: none; flex: none; }
@media (max-width: 768px) {
  .rentpop { left: 12px; bottom: calc(66px + env(safe-area-inset-bottom)); }
  .rentpop[open] { width: 300px; }
  .rentpop .rp-pill { padding: 9px 14px; font-size: 13px; }
  .rp-h { font-size: 17px; }
}
@media print { .rentpop { display: none; } }
