@charset "utf-8";
/* 숨앤잠 이비인후과
   글꼴(Pretendard · Noto Serif KR · Cormorant Garamond)은 index.html 의 <link> 로 불러온다.
   차례: 토큰 → 초기화 → 공통 → 헤더 → 히어로 → 의원소개 → 주요진료과목 → 시설보기 → 사진 띠
        → 진료안내 → 내원안내 → 푸터 → 팝업 → 등장 효과 → 동작 줄이기 */

:root {
    --navy-950: #060f29;
    --navy-900: #0a1a3d;
    --navy-800: #10265a;
    --navy-700: #193c8a;   /* 로고의 남색 */
    --blue-600: #1253b2;
    --sky-500: #1bbae3;    /* 로고의 하늘색 */
    --sky-300: #86dbf3;
    --ink: #121a2c;
    --text: #3b4457;
    --muted: #7b8499;
    --line: #e2e7f0;
    --line-soft: #edf0f6;
    --bg-soft: #f6f8fc;
    --bg-tint: #eef3fb;
    --grad: linear-gradient(120deg, #1253b2 0%, #1b8fd6 55%, #1bbae3 100%);

    --shadow-sm: 0 1px 2px rgb(10 26 61 / .05), 0 6px 18px rgb(10 26 61 / .06);
    --shadow-md: 0 2px 6px rgb(10 26 61 / .06), 0 18px 48px rgb(10 26 61 / .10);
    --shadow-lg: 0 30px 80px rgb(6 15 41 / .30);
    --r-lg: 28px;
    --r-md: 18px;
    --r-sm: 12px;

    --header-h: 64px;      /* 스크롤한 뒤의 헤더 높이 — 앵커 이동·붙박이 메뉴의 기준 */
    --wrap: 1160px;
    --gutter: max(1.5rem, calc((100vw - var(--wrap)) / 2));
    --gutter-neg: calc(var(--gutter) * -1);

    --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    --font-serif: 'Noto Serif KR', 'Nanum Myeongjo', 'AppleMyungjo', serif;
    --font-display: 'Cormorant Garamond', 'Noto Serif KR', serif;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ─── 초기화 ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body, div, span, h1, h2, h3, h4, p, a, em, img, strong, small, b, i, dl, dt, dd, ol, ul, li,
table, tbody, thead, tr, th, td, article, aside, figure, figcaption, footer, header, nav, section, main, video, button {
    margin: 0; padding: 0; border: 0; font: inherit; }
ol, ul, li { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
a { color: inherit; text-decoration: none; }
button { background: none; color: inherit; letter-spacing: inherit; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }   /* width·height 속성은 자리만 잡아 두고, 실제 높이는 비율대로 */
svg { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--sky-500); outline-offset: 3px; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }   /* 가로 넘침은 여기서만 막는다 — body 에 주면 붙박이(sticky) 탭이 풀린다 */
body {
    min-height: 100%;
    background: #fff; color: var(--text);
    font: 400 1rem/1.7 var(--font-sans); letter-spacing: -.01em;
    word-break: keep-all; overflow-wrap: anywhere;
    -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
html.menu-open, html.popup-open { overflow: hidden; }

/* ─── 공통 ───────────────────────────────────────────────── */
.ww { display: inline-block; }   /* 낱말 묶음 — 줄이 바뀔 때 묶음째 넘어간다 */
.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 300; padding: .7rem 1.1rem; border-radius: 999px; background: #fff; color: var(--navy-900); font-weight: 600; box-shadow: var(--shadow-md); transition: top .2s; }
.skip:focus { top: 1rem; }

main > section { position: relative; padding: clamp(5rem, 9vw, 8.5rem) var(--gutter); scroll-margin-top: calc(var(--header-h) - 1px); }

.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head.center { text-align: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .8rem;
    color: var(--sky-500); font: italic 500 1.375rem/1 var(--font-display); letter-spacing: .01em; }
.eyebrow::before { content: ''; width: 2.5rem; height: 1px; background: currentColor; opacity: .7; }
.sec-head.center .eyebrow::after { content: ''; width: 2.5rem; height: 1px; background: currentColor; opacity: .7; }
.sec-title { margin-top: .85rem; text-wrap: balance; color: var(--ink); font: 500 clamp(2rem, 3.6vw, 2.875rem)/1.25 var(--font-serif); letter-spacing: -.04em; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    height: 3.25rem; padding: 0 1.6rem; border-radius: 999px;
    font: 600 1rem/1 var(--font-sans); letter-spacing: -.01em; white-space: nowrap;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s; }
.btn svg { width: 1.125rem; height: 1.125rem; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-light { background: #fff; color: var(--navy-900); box-shadow: 0 12px 34px rgb(0 0 0 / .22); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgb(0 0 0 / .28); }
.btn-ghost { border: 1px solid rgb(255 255 255 / .45); background: rgb(255 255 255 / .07); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .7); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 28px rgb(18 83 178 / .30); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgb(18 83 178 / .40); }
.btn-line { height: 2.75rem; padding: 0 1.25rem; border: 1px solid var(--line); background: #fff; color: var(--navy-700); font-size: .9375rem; }
.btn-line:hover { border-color: var(--blue-600); color: var(--blue-600); }

/* ─── 헤더 ───────────────────────────────────────────────── */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; gap: 1.5rem;
    height: 5rem; padding: 0 var(--gutter); color: #fff;
    transition: height .4s var(--ease), background .4s, color .4s, box-shadow .4s; }
.site-header::before { content: '';   /* 영상 위에서 글자가 읽히게 하는 위쪽 그늘 */
    position: absolute; top: 0; left: 0; right: 0; z-index: -1; height: 9rem; pointer-events: none;
    background: linear-gradient(rgb(6 15 41 / .55), rgb(6 15 41 / 0)); transition: opacity .4s; }
.scrolled .site-header {
    height: var(--header-h); color: var(--ink);
    background: rgb(255 255 255 / .94); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
    box-shadow: 0 1px 0 rgb(10 26 61 / .07), 0 10px 30px rgb(10 26 61 / .06); }
.scrolled .site-header::before { opacity: 0; }

.brand { flex: none; display: block; }
.brand img { width: auto; height: 1.75rem; filter: brightness(0) invert(1); transition: filter .4s, height .4s var(--ease); }
.scrolled .brand img { height: 1.625rem; filter: none; }

.gnb { margin-left: auto; }
.gnb > ul { display: flex; align-items: center; gap: .125rem; }
.gnb li { position: relative; }
.gnb a { display: block; padding: .6rem .95rem; border-radius: 999px; font-weight: 500; white-space: nowrap; transition: background .25s, color .25s; }
.gnb > ul > li > a:hover,
.gnb > ul > li > a.active { background: rgb(255 255 255 / .16); }
.scrolled .gnb > ul > li > a:hover,
.scrolled .gnb > ul > li > a.active { background: var(--bg-tint); color: var(--blue-600); }
.gnb li ul {
    position: absolute; top: 100%; left: 50%; min-width: 10.5rem; padding: .5rem; border-radius: 1rem;
    background: rgb(255 255 255 / .97); color: var(--ink); box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translate(-50%, .5rem); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.gnb li ul::before { content: ''; position: absolute; left: 0; right: 0; top: -.75rem; height: .75rem; }   /* 메뉴와 사이의 틈을 메운다 */
.gnb li:hover > ul,
.gnb li:focus-within > ul { opacity: 1; visibility: visible; transform: translate(-50%, .375rem); }
.gnb li ul a { padding: .6rem .9rem; border-radius: .625rem; font-size: .9375rem; text-align: center; }
.gnb li ul a:hover { background: var(--bg-tint); color: var(--blue-600); }

.header-tel {
    display: inline-flex; align-items: center; gap: .5rem; height: 2.625rem; padding: 0 1.125rem; border-radius: 999px;
    border: 1px solid rgb(255 255 255 / .4); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
    transition: background .3s, border-color .3s, color .3s, box-shadow .3s; }
.header-tel svg { width: 1.0625rem; height: 1.0625rem; }
.header-tel:hover { background: rgb(255 255 255 / .16); }
.scrolled .header-tel { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgb(18 83 178 / .28); }

.menu-btn { display: none; position: relative; width: 2.75rem; height: 2.75rem; margin: 0 -.5rem 0 auto; border-radius: 50%; }
.menu-btn span { position: absolute; left: .6875rem; right: .6875rem; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease), opacity .25s; }
.menu-btn span:nth-child(1) { top: 1rem; }
.menu-btn span:nth-child(2) { top: 1.34rem; }
.menu-btn span:nth-child(3) { top: 1.68rem; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(.34rem) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-.34rem) rotate(-45deg); }

.drawer {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99;
    display: flex; flex-direction: column; padding: 6.5rem 1.75rem 2rem; overflow: auto; overscroll-behavior: contain;
    background: radial-gradient(120% 80% at 100% 0%, #17306b 0%, var(--navy-900) 50%, var(--navy-950) 100%); color: #fff;
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.menu-open .drawer { opacity: 1; visibility: visible; transition: opacity .4s, visibility 0s; }
.menu-open .site-header { color: #fff; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .site-header::before { opacity: 0; }
.menu-open .brand img { filter: brightness(0) invert(1); }
.drawer nav > ul > li { border-bottom: 1px solid rgb(255 255 255 / .12); opacity: 0; transform: translateY(1rem); transition: opacity .5s, transform .6s var(--ease-out); }
.menu-open .drawer nav > ul > li { opacity: 1; transform: none; }
.menu-open .drawer nav > ul > li:nth-child(2) { transition-delay: .05s; }
.menu-open .drawer nav > ul > li:nth-child(3) { transition-delay: .1s; }
.menu-open .drawer nav > ul > li:nth-child(4) { transition-delay: .15s; }
.menu-open .drawer nav > ul > li:nth-child(5) { transition-delay: .2s; }
.menu-open .drawer nav > ul > li:nth-child(6) { transition-delay: .25s; }
.drawer nav > ul > li > a { display: flex; align-items: center; justify-content: space-between; padding: 1.05rem 0; font: 500 1.5rem/1.3 var(--font-serif); letter-spacing: -.03em; }
.drawer nav > ul > li > a svg { width: 1.125rem; height: 1.125rem; opacity: .5; }
.drawer nav li ul { display: flex; flex-wrap: wrap; gap: .5rem; padding-bottom: 1.1rem; }
.drawer nav li ul a { display: block; padding: .4rem .95rem; border: 1px solid rgb(255 255 255 / .24); border-radius: 999px; font-size: .9375rem; }
.drawer-foot { margin-top: auto; padding-top: 2.5rem; color: rgb(255 255 255 / .7); font-size: .9375rem; }
.drawer-foot a { display: block; margin-bottom: .4rem; color: #fff; font: 600 1.75rem/1.2 var(--font-sans); font-variant-numeric: tabular-nums; }

@media (max-width: 1023px) {
    .gnb, .header-tel { display: none; }
    .menu-btn { display: block; }
    .site-header { height: 4.25rem; }
    .brand img, .scrolled .brand img { height: 1.5rem; }
}

/* ─── 히어로 ─────────────────────────────────────────────── */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
    min-height: 100vh; min-height: 100svh; padding: 7rem var(--gutter) 10.5rem;
    background: var(--navy-950); color: #fff; }
.hero-media { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -3; }
.hero-media img,
.hero-media video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
/* 영상이 돌기 전까지는 포스터가 아주 천천히 움직인다 — 영상을 틀지 않는 환경에서도 화면이 멈춰 보이지 않게 */
.hero-poster { animation: heroDrift 26s ease-in-out infinite alternate; }
.hero.is-playing .hero-poster { animation: none; }
.hero-media video { opacity: 0; transition: opacity 1.4s ease; }
.hero.is-playing .hero-media video { opacity: 1; }
@keyframes heroDrift { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero-shade { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -2;
    background:
        linear-gradient(97deg, rgb(6 15 41 / .88) 0%, rgb(6 15 41 / .66) 32%, rgb(6 15 41 / .22) 66%, rgb(6 15 41 / .34) 100%),
        linear-gradient(0deg, rgb(6 15 41 / .78) 0%, rgb(6 15 41 / 0) 40%); }
/* 숨 쉬듯 커졌다 작아지는 빛 */
.hero-glow {
    position: absolute; z-index: -1; left: -14vw; bottom: -24vw; width: 60vw; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgb(27 186 227 / .36), rgb(27 186 227 / 0)); mix-blend-mode: screen;
    animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.9); opacity: .6; } 50% { transform: scale(1.08); opacity: 1; } }

.hero-inner { max-width: 50rem; }
.hero-eyebrow { display: flex; align-items: center; gap: .9rem; color: rgb(255 255 255 / .85); font: 500 .8125rem/1 var(--font-sans); letter-spacing: .34em; text-transform: uppercase; }
.hero-eyebrow::before { content: ''; width: 2.75rem; height: 1px; background: linear-gradient(90deg, var(--sky-500), rgb(255 255 255 / .6)); }
.hero-title { margin-top: 1.5rem; }
.hero-display { display: block; font: 500 clamp(3.5rem, 9.4vw, 8.5rem)/.94 var(--font-display); letter-spacing: -.025em; }
.hero-display em { padding: 0 .04em; color: var(--sky-300); font-style: italic; }
.hero-ko { display: block; margin-top: 1.6rem; color: rgb(255 255 255 / .96); font: 400 clamp(1.1875rem, 2.1vw, 1.75rem)/1.5 var(--font-serif); letter-spacing: -.04em; }
.hero-sub { margin-top: .8rem; color: rgb(255 255 255 / .72); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.4rem; }

.hero-info {
    position: absolute; left: var(--gutter); right: var(--gutter); bottom: 2rem;
    display: flex; align-items: center; padding: 1.05rem .6rem 1.05rem 0; border-radius: 1.375rem;
    border: 1px solid rgb(255 255 255 / .18); background: rgb(255 255 255 / .10);
    -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 20px 60px rgb(0 0 0 / .25); }
.hero-info dl { display: flex; align-items: center; gap: .4rem 1rem; flex-wrap: wrap; padding: .15rem 1.75rem; }
.hero-info dl + dl { border-left: 1px solid rgb(255 255 255 / .18); }
.hero-info dt { color: var(--sky-300); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; white-space: nowrap; }
.hero-info dd { font-size: 1.0625rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-info dd + dd { padding-left: 1rem; border-left: 1px solid rgb(255 255 255 / .25); }
.hero-links { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.hero-links a { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 2.75rem; padding: 0 1.1rem; border-radius: 999px; border: 1px solid rgb(255 255 255 / .28); font-size: .9375rem; font-weight: 500; white-space: nowrap; transition: background .3s, border-color .3s; }
.hero-links a:hover { background: rgb(255 255 255 / .18); border-color: rgb(255 255 255 / .6); }
.hero-links a.icon { width: 2.75rem; padding: 0; }
.hero-links svg { width: 1.125rem; height: 1.125rem; }

.hero-toggle {   /* 배경 영상 멈춤·재생 */
    position: absolute; right: var(--gutter); bottom: 8.25rem; width: 2.75rem; height: 2.75rem; border-radius: 50%;
    display: grid; place-items: center; border: 1px solid rgb(255 255 255 / .3); background: rgb(255 255 255 / .08);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: .75; transition: opacity .3s, background .3s; }
.hero-toggle:hover { opacity: 1; background: rgb(255 255 255 / .18); }
.hero-toggle svg { width: 1rem; height: 1rem; fill: currentColor; stroke: none; }
.hero-toggle .play,
.hero-toggle.paused .pause { display: none; }
.hero-toggle.paused .play { display: block; }
.hero-toggle[hidden] { display: none; }

/* 첫 화면 글자는 순서대로 떠오른다(자바스크립트 없이도 나온다) */
.hero-eyebrow, .hero-display, .hero-ko, .hero-sub, .hero-actions, .hero-info { animation: rise 1.2s var(--ease-out) both; }
.hero-display { animation-delay: .12s; }
.hero-ko { animation-delay: .32s; }
.hero-sub { animation-delay: .44s; }
.hero-actions { animation-delay: .56s; }
.hero-info { animation-delay: .75s; }
@keyframes rise { from { opacity: 0; transform: translateY(2rem); } to { opacity: 1; transform: none; } }

@media (max-width: 1023px) {
    .hero-info dl { padding: .15rem 1.25rem; }
    .hero-info dd { font-size: 1rem; }
    .hero-links a:not(.icon) { display: none; }
}
@media (max-width: 767px) {
    .hero { justify-content: flex-end; padding: 6rem 1.5rem 1.5rem; }
    .hero-shade { background:
        linear-gradient(0deg, rgb(6 15 41 / .95) 0%, rgb(6 15 41 / .84) 40%, rgb(6 15 41 / .38) 66%, rgb(6 15 41 / .16) 84%, rgb(6 15 41 / .5) 100%); }
    .hero-glow { left: -40vw; bottom: -30vw; width: 120vw; }
    .hero-eyebrow { font-size: .6875rem; letter-spacing: .28em; }
    .hero-eyebrow::before { width: 1.75rem; }
    .hero-title { margin-top: 1.1rem; }
    .hero-ko { margin-top: 1.1rem; }
    .hero-ko .ww { display: block; }
    .hero-actions { margin-top: 1.75rem; }
    .hero-actions .btn { flex: 1; height: 3rem; padding: 0 1rem; font-size: .9375rem; }
    .hero-info { position: static; flex-wrap: wrap; margin-top: 1.75rem; padding: .35rem 0; border-radius: 1.125rem; }
    .hero-info dl { flex: 1 1 100%; padding: .7rem 1.125rem; }
    .hero-info dl + dl { border-left: 0; border-top: 1px solid rgb(255 255 255 / .16); }
    .hero-info dt { flex: 0 0 3.5rem; }
    .hero-links { display: none; }
    .hero-toggle { bottom: auto; top: 5.25rem; right: 1.5rem; width: 2.5rem; height: 2.5rem; }
}

/* ─── 의원소개 ───────────────────────────────────────────── */
#intro {
    display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
    background: linear-gradient(#fff 30%, var(--bg-soft)); }
#intro .sec-head { margin-bottom: 0; }
.intro-lead { margin-top: 2.25rem; text-wrap: balance; color: var(--ink); font: 400 clamp(1.375rem, 2.35vw, 1.9375rem)/1.55 var(--font-serif); letter-spacing: -.045em; }
.intro-lead .ww { display: block; }
.intro-lead strong { font-weight: 600; color: var(--blue-600); }
.intro-points { margin-top: 2.5rem; border-top: 1px solid var(--line); counter-reset: point; }
.intro-points li {
    display: grid; grid-template-columns: 3.25rem 1fr; align-items: baseline;
    padding: 1.15rem 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 1.0625rem; counter-increment: point; }
.intro-points li::before { content: counter(point, decimal-leading-zero); color: var(--sky-500); font: italic 500 1.4375rem/1 var(--font-display); font-variant-numeric: lining-nums; }

.doctor { display: grid; justify-items: center; }
.doctor-photo {   /* 유리벽의 아치 무늬를 닮은 틀 */
    position: relative; width: min(100%, 25rem); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px var(--r-lg) var(--r-lg);
    background: radial-gradient(90% 70% at 50% 28%, #fff 0%, #e4edf9 58%, #d4e2f5 100%); }
.doctor-photo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(rgb(212 226 245 / 0), #d4e2f5); }
.doctor-photo picture { display: contents; }
.doctor-photo img { position: absolute; top: 7%; left: 50%; width: auto; max-width: none; height: 130%; transform: translateX(-50%); }
.doctor figcaption {
    position: relative; width: min(100%, 29rem); margin-top: -4.5rem; padding: 1.75rem 2rem 2rem; border-radius: var(--r-md);
    border: 1px solid rgb(255 255 255 / .8); background: rgb(255 255 255 / .9); box-shadow: var(--shadow-md);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.doctor-name { color: var(--muted); font-weight: 500; }
.doctor-name strong { margin-right: .35rem; color: var(--ink); font: 600 1.75rem/1 var(--font-serif); letter-spacing: -.04em; }
.doctor-career { display: grid; gap: .3rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .9375rem; line-height: 1.55; }
.doctor-career li { position: relative; padding-left: .9rem; }
.doctor-career li::before { content: ''; position: absolute; left: 0; top: .68em; width: 4px; height: 4px; border-radius: 50%; background: var(--sky-500); }
.doctor .btn { margin-top: 1.4rem; }

@media (max-width: 899px) {
    #intro { grid-template-columns: 1fr; gap: 3.5rem; }
    .doctor-photo { width: min(100%, 21rem); }
    .doctor figcaption { padding: 1.5rem 1.5rem 1.75rem; }
}

/* ─── 주요진료과목 ───────────────────────────────────────── */
#subject { padding-bottom: 0; }
#subject > nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
#subject > nav button {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 1.1rem; padding: 1.35rem 1.6rem;
    border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--ink); text-align: left;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s, color .3s, background .3s; }
#subject > nav button svg { width: 2.75rem; height: 2.75rem; stroke-width: 1.25; color: var(--blue-600); transition: color .3s, transform .6s var(--ease-out); }
#subject > nav button b { display: block; font: 600 1.3125rem/1.2 var(--font-sans); letter-spacing: -.03em; }
#subject > nav button small { display: block; margin-top: .3rem; color: var(--muted); font: italic 500 1.0625rem/1 var(--font-display); letter-spacing: .01em; transition: color .3s; }
#subject > nav button:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-3px); }
#subject > nav button:hover svg { transform: scale(1.08) rotate(-4deg); }
#subject > nav button.on {
    border-color: transparent; color: #fff; box-shadow: 0 18px 44px rgb(18 83 178 / .30); transform: none;
    background: linear-gradient(125deg, var(--navy-800) 0%, var(--blue-600) 62%, #1b8fd6 100%); }
#subject > nav button.on svg { color: var(--sky-300); }
#subject > nav button.on small { color: rgb(255 255 255 / .7); }

#subject > section,
#subject > section > article { display: none; }
#subject > section.on,
#subject > section > article.on { display: block; animation: panel .7s var(--ease-out) both; }
@keyframes panel { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }

#subject > section > nav {
    position: sticky; top: var(--header-h); z-index: 5; margin: 1.5rem var(--gutter-neg) 0; padding: .75rem var(--gutter);
    border-bottom: 1px solid var(--line-soft); background: rgb(255 255 255 / .96);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
#subject > section > nav ul { display: flex; justify-content: safe center; gap: .375rem; overflow-x: auto; scrollbar-width: none; }
#subject > section > nav ul::-webkit-scrollbar { display: none; }
#subject > section > nav button { padding: .55rem 1.15rem; border-radius: 999px; color: var(--muted); font-weight: 500; white-space: nowrap; transition: background .25s, color .25s; }
#subject > section > nav button:hover { background: var(--bg-tint); color: var(--blue-600); }
#subject > section > nav button.on { background: var(--navy-800); color: #fff; }

#subject > section > article > section { padding: 5.5rem 0; }
#subject > section > article > section + section { padding-top: 0; }
#subject > section > article > section:last-child { padding-bottom: 7.5rem; }
#subject .bg { margin: 0 var(--gutter-neg); padding: 6rem var(--gutter); background: var(--bg-soft); }
#subject .bg > section + section { padding-top: 6rem; }
#subject .bg + section { padding-top: 6rem; }

#subject header.title {
    position: relative; width: fit-content; max-width: 100%; margin: 0 auto 2.5rem; padding-top: 1.25rem;
    color: var(--ink); font: 700 1.625rem/1.4 var(--font-sans); letter-spacing: -.035em; text-align: center; }
#subject header.title::before { content: ''; position: absolute; top: 0; left: 50%; width: 1.75rem; height: 3px; margin-left: -.875rem; border-radius: 3px; background: var(--grad); }
#subject p.text { margin: 0 auto; color: var(--text); font-size: 1.0625rem; line-height: 1.75; text-align: center; text-wrap: balance; }
#subject p.text + p.text { margin-top: 1.25em; }
#subject p.text strong { color: var(--blue-600); font-weight: 600; }
#subject p.note { margin-bottom: .2rem; padding-left: .85rem; color: var(--muted); font-size: .875rem; line-height: 1.5; text-indent: -.85rem; }
#subject p.note::before { content: '* '; color: var(--sky-500); font-weight: 600; }

#subject ul.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); gap: 1.25rem; max-width: 66rem; margin: 3.5rem auto 0; }
#subject ul.feature dl {
    height: 100%; padding: 1.75rem 1.75rem 1.9rem; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
    transition: border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease); }
#subject ul.feature dl:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-3px); }
#subject ul.feature dt { position: relative; padding-bottom: .9rem; color: var(--ink); font-size: 1.1875rem; font-weight: 600; line-height: 1.4; letter-spacing: -.03em; }
#subject ul.feature dt::after { content: ''; position: absolute; left: 0; bottom: 0; width: 1.5rem; height: 2px; border-radius: 2px; background: var(--grad); }
#subject ul.feature dd { margin-top: .9rem; font-size: .9688rem; line-height: 1.7; }
#subject ul.feature dd .info { display: block; margin-top: .6rem; padding-left: .85rem; color: var(--navy-700); font-size: .875rem; font-weight: 600; line-height: 1.5; text-indent: -.85rem; }
#subject ul.feature dd .info::before { content: '* '; color: var(--sky-500); }
#subject ul.feature .ww { display: inline; }

#subject ul.tag { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; max-width: 60rem; margin: 0 auto; }
#subject ul.tag li { padding: .65rem 1.15rem; border: 1px solid var(--line-soft); border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgb(10 26 61 / .04); color: var(--text); line-height: 1.35; }
#subject ul.tag li::before { content: '#'; margin-right: .2rem; color: var(--sky-500); font-weight: 600; }
#subject ul.tag .ww { display: inline; }

/* 진행 과정 — 번호가 붙은 카드 */
#subject ol.process { --cols: 4; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; }
#subject #sleep2 ol.process { --cols: 5; }
#subject ol.process li { position: relative; counter-increment: step; }
#subject ol.process li + li::before { content: '';   /* 카드 사이의 화살표 */
    position: absolute; top: 2.35rem; left: -.625rem; width: .5rem; height: .5rem; margin-left: -.25rem;
    border-top: 1.5px solid var(--sky-500); border-right: 1.5px solid var(--sky-500); transform: rotate(45deg); }
#subject ol.process dl { height: 100%; padding: 1.6rem 1.4rem 1.75rem; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-sm); }
#subject ol.process dl::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 1rem; color: var(--sky-500); font: italic 500 2.125rem/1 var(--font-display); font-variant-numeric: lining-nums; }
#subject ol.process dt { color: var(--ink); font-size: 1.125rem; font-weight: 600; line-height: 1.35; letter-spacing: -.03em; }
#subject ol.process dd { margin-top: .6rem; font-size: .9375rem; line-height: 1.65; }
#subject ol.process .ww { display: inline; }

#subject .keyword { display: block; width: fit-content; margin: .4rem auto 0; padding: .4em .85em; border-radius: 999px; background: var(--bg-tint); color: var(--blue-600); font-size: .8125rem; font-weight: 600; line-height: 1.2; }
#subject dl.price { width: fit-content; max-width: 100%; margin: 0 auto 2.5rem; text-align: center; }
#subject dl.price dt { color: var(--ink); font-size: 1.125rem; font-weight: 600; }
#subject dl.price dd.price { margin-top: .5rem; color: var(--navy-700); font-size: 3.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
#subject dl.price dd.price::before { content: '₩'; margin-right: .1em; font-size: .48em; font-weight: 500; vertical-align: .42em; }
#subject dl.price dd.price .unit { margin-left: .15em; font-size: .36em; font-weight: 500; letter-spacing: 0; }
#subject dl.price dd.price p.note { margin-top: .6rem; font-weight: 400; letter-spacing: -.01em; }

table.info {
    width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
    color: var(--ink); font-size: .9375rem; font-weight: 400; line-height: 1.3; letter-spacing: -.01em; text-align: center; font-variant-numeric: tabular-nums; }
table.info th { padding: .75rem .5rem; background: var(--bg-soft); color: var(--navy-700); font-weight: 600; }
table.info td { padding: .8rem .5rem; border-top: 1px solid var(--line); }
table.info thead + tbody tr:first-child th { border-top: 1px solid var(--line); }
table.info :where(th, td) + :where(th, td) { border-left: 1px solid var(--line-soft); }
ul.hyphen li { padding-left: .8em; line-height: 1.6; text-indent: -.8em; }
ul.hyphen li::before { content: '- '; }

/* 수면다원검사 */
#subject #sleep1 p.text { max-width: 30rem; }
#subject #sleep1 .definite dl {
    position: relative; max-width: 50rem; margin: 3.75rem auto 0; padding: 0 1.5rem; border-radius: var(--r-md);
    border: 1px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; color: var(--navy-700); }
#subject #sleep1 .definite dt { width: fit-content; margin: 0 auto; padding: 0 1rem; background: #fff; font-size: 1.1875rem; font-weight: 700; line-height: 1; transform: translateY(-50%); }
#subject #sleep1 .definite dd { padding: .9rem 0 1.9rem; font-size: 1.0625rem; font-weight: 500; }
#subject #sleep1 .definite dd ul { display: flex; flex-wrap: wrap; justify-content: space-evenly; gap: 1rem 1.5rem; }
#subject #sleep1 .facility figure { position: relative; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
#subject #sleep1 .facility figure img { width: 100%; }
#subject #sleep1 .facility figure figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 4rem 2rem 1.75rem;
    background: linear-gradient(rgb(6 15 41 / 0), rgb(6 15 41 / .72)); color: #fff; font: 400 1.125rem/1.6 var(--font-serif); letter-spacing: -.035em; }
#subject #sleep1 .facility ul.feature { grid-template-columns: repeat(auto-fit, minmax(16.5rem, 24rem)); justify-content: center; margin-top: 1.5rem; }
#subject #sleep1 .factor p.text { max-width: 50rem; margin-bottom: 2.5rem; }
#subject #sleep1 .factor .hi { color: var(--blue-600); font-weight: 700; }
#subject #sleep1 .factor ul {   /* 가운데 그림과 좌우 설명을 선으로 잇는다 — 점 위치가 그림에 맞춰져 있다 */
    position: relative; min-height: 19.1875rem;
    display: grid; grid-auto-flow: column; grid-column-gap: 2rem;
    grid-template-columns: 1fr 19.1875rem 1fr; grid-template-rows: repeat(5, auto); }
#subject #sleep1 .factor ul::before { content: '';
    display: block; width: 19.1875rem; aspect-ratio: 1 / 1; margin: auto; border-radius: 50%;
    background: url('./asset/subject1-factor.png') center / contain no-repeat; box-shadow: 0 20px 50px rgb(18 83 178 / .10);
    grid-column: 2 / 3; grid-row: 1 / 6; }
#subject #sleep1 .factor li { position: relative; z-index: 1; text-align: right; grid-column: 1 / 2; }
#subject #sleep1 .factor li:nth-child(3) ~ li { text-align: left; grid-column: 3 / 4; }
#subject #sleep1 .factor li:nth-child(1) { grid-row: 1 / 2; }
#subject #sleep1 .factor li:nth-child(2) { grid-row: 3 / 4; }
#subject #sleep1 .factor li:nth-child(3) { grid-row: 5 / 6; }
#subject #sleep1 .factor li:nth-child(4) { grid-row: 2 / 3; }
#subject #sleep1 .factor li:nth-child(5) { grid-row: 4 / 5; }
#subject #sleep1 .factor dl { position: relative; --lineWidth: calc(19.1875rem / 2); }
#subject #sleep1 .factor dl::before { content: '';
    position: absolute; top: calc(1.68rem / 2 - 1px); right: calc((var(--lineWidth) + 1rem) * -1);
    display: block; width: var(--lineWidth); height: 1px; background: var(--sky-500); }
#subject #sleep1 .factor dl::after { content: '';
    position: absolute; right: calc((var(--lineWidth) + 1rem) * -1); top: calc(1.68rem / 2 - 5px);
    display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--sky-500); }
#subject #sleep1 .factor dt { color: var(--navy-700); font-size: 1.4rem; font-weight: 700; line-height: 1.2; letter-spacing: -.03em; }
#subject #sleep1 .factor dt::after { content: '';
    position: absolute; right: -1rem; top: calc(1.68rem / 2 - 5px);
    display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--sky-500); }
#subject #sleep1 .factor dd { height: 1.5em; font-size: .9688rem; line-height: 1.5; }
#subject #sleep1 .factor li:nth-child(3) ~ li dl::before { left: calc((var(--lineWidth) + 1rem) * -1); right: auto; }
#subject #sleep1 .factor li:nth-child(3) ~ li dl::after { left: calc((var(--lineWidth) + 1rem) * -1); right: auto; }
#subject #sleep1 .factor li:nth-child(3) ~ li dt::after { left: -1rem; }   /* right 는 건드리지 않는다 — 좁은 화면 규칙이 right 로 점 위치를 잡는다 */
#subject #sleep1 .factor li:nth-child(1) dl { margin-top: 3.5rem; }
#subject #sleep1 .factor li:nth-child(2) dl { margin-top: -3.5rem; --lineWidth: calc(19.1875rem / 2 + 1rem); }
#subject #sleep1 .factor li:nth-child(3) dl { margin-top: -4rem; --lineWidth: calc(19.1875rem / 2 - 1rem); }
#subject #sleep1 .factor li:nth-child(4) dl { margin-top: -1.5rem; }
#subject #sleep1 .factor li:nth-child(5) dl { margin-top: -1rem; --lineWidth: calc(19.1875rem / 2 - .5rem); }
#subject #sleep1 .insurance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 46rem; margin: 0 auto; }
#subject #sleep1 .insurance p.note { grid-column: 1 / -1; margin: 0; }
#subject #sleep1 .insurance p.note + table { margin-top: .5rem; }
#subject #sleep1 .insurance p.note + table + table { margin-top: .5rem; }

/* 양압적정검사 */
#subject #sleep2 article.text { max-width: max-content; margin: 0 auto; }
#subject #sleep2 p.text .ww { display: block; }
#subject #sleep2 section.price article.text p.text { margin-bottom: .75rem; text-align: left; }
#subject #sleep2 article.price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 66rem; margin: 3rem auto 1.25rem; }
#subject #sleep2 article.price > dl.price { width: auto; margin: 0; padding: 2.4rem 2rem 2.2rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
#subject #sleep2 article.price > dl.price > dt { width: fit-content; margin: 0 auto; padding: .45rem 1.1rem; border-radius: 999px; background: var(--navy-800); color: #fff; font-size: .9375rem; line-height: 1.2; }
#subject #sleep2 article.price > dl.price.after > dt { background: var(--grad); }
#subject #sleep2 article.price > dl.price > dd.price { margin-top: 1.1rem; }
#subject #sleep2 table.info { max-width: 22rem; margin: 1.5rem auto 0; }
#subject #sleep2 .more { margin-top: 2.25rem; padding-top: 2rem; border-top: 1px dashed var(--line); text-align: left; font-size: .9688rem; font-weight: 400; letter-spacing: -.01em; color: var(--text); }
#subject #sleep2 .more dt { display: flex; align-items: center; gap: .5rem; color: var(--ink); font-size: 1.125rem; font-weight: 600; }
#subject #sleep2 .more dt .icon { display: flex; align-items: center; justify-content: center; background: center / contain no-repeat; color: #fff; font-size: .75rem; font-weight: 700; line-height: 1; letter-spacing: 0; }
#subject #sleep2 .more dt .calendar { width: 2.34375rem; height: 2.65625rem; padding-top: 1rem; background-image: url('./asset/subject-calendar.svg'); }
#subject #sleep2 .more dt .stopwatch { width: 2.15625rem; height: 2.65625rem; padding-top: .66rem; background-image: url('./asset/subject-stopwatch.svg'); }
#subject #sleep2 .more dd { margin-top: 1rem; }
#subject #sleep2 .more .condition { line-height: 1.6; }
#subject #sleep2 .more .condition strong { color: var(--blue-600); font-weight: 700; }
#subject #sleep2 .more .case dl { margin-top: 1.4rem; }
#subject #sleep2 .more .case dt { width: fit-content; padding: .45rem 1rem; border-radius: 999px; background: #c5c9d3; color: #fff; font-size: .9375rem; font-weight: 500; }
#subject #sleep2 .more .case .success dt { background: var(--navy-800); }
#subject #sleep2 .more .case dd { margin-top: .7rem; }
#subject #sleep2 .more .conversation dl { display: flex; flex-direction: column; gap: .9rem; margin-top: 1.4rem; }
#subject #sleep2 .more .conversation :where(dt, dd) { display: block; max-width: max-content; margin: 0; padding: .7rem 1.1rem; font-size: .9375rem; font-weight: 400; line-height: 1.55; }
#subject #sleep2 .more .conversation dt { border-radius: 1.25rem 1.25rem 1.25rem .25rem; background: #e2f5fb; color: var(--ink); }
#subject #sleep2 .more .conversation dd { align-self: flex-end; border-radius: 1.25rem 1.25rem .25rem 1.25rem; background: var(--navy-800); color: #fff; }
#subject #sleep2 .more .conversation dd .ww { display: block; }
#subject #sleep2 dl.price.mask { width: auto; max-width: 66rem; margin: 0 auto; padding: 2.2rem 2rem; border-radius: var(--r-lg); background: var(--bg-soft); }

/* 양압기소개 */
#subject #sleep3 figure::before { content: '';
    display: block; width: min(30rem, 100%); aspect-ratio: 1 / 1; margin: 0 auto; border-radius: 50%;
    border: .625rem solid #fff; outline: 1px solid var(--line); box-shadow: 0 30px 70px rgb(18 83 178 / .18);
    background: url('./asset/subject3-photo.jpg') 84% center / cover no-repeat; }
#subject #sleep3 figcaption { padding-top: 2.5rem; }
#subject #sleep3 figcaption p.text + p.text::before { content: ''; display: block; width: 2.5rem; height: 1px; margin: 0 auto 1.25rem; background: var(--line); }

/* 좋은숨 · 밝은귀 */
#subject :is(#subjectBreath, #subjectHearing) .definite { padding-bottom: 5rem; }
#subject :is(#subjectBreath, #subjectHearing) p.text { max-width: 44rem; }

@media (max-width: 1023px) {
    #subject ol.process,
    #subject #sleep2 ol.process { --cols: 2; }
    #subject ol.process li + li::before { display: none; }
}
@media (max-width: 767px) {
    #subject > nav { gap: .5rem; }
    #subject > nav button { flex-direction: column; align-items: center; gap: .6rem; padding: 1.1rem .5rem 1rem; text-align: center; }
    #subject > nav button svg { width: 2.125rem; height: 2.125rem; }
    #subject > nav button b { font-size: 1.0625rem; }
    #subject > nav button small { font-size: .875rem; }
    #subject > section > nav ul { justify-content: flex-start; }
    #subject > section > article > section { padding: 4rem 0; }
    #subject > section > article > section:last-child { padding-bottom: 5rem; }
    #subject .bg { padding: 4.5rem var(--gutter); }
    #subject .bg > section + section,
    #subject .bg + section { padding-top: 4.5rem; }
    #subject header.title { font-size: 1.375rem; }
    #subject p.text { font-size: 1rem; }
    #subject p.text .ww,
    #subject #sleep2 p.text .ww { display: inline; }
    #subject ul.feature { margin-top: 2.5rem; }
    #subject ul.tag { gap: .5rem; }
    #subject ul.tag li { padding: .55rem .95rem; font-size: .9375rem; }
    #subject dl.price dd.price { font-size: 2.75rem; }
    #subject #sleep1 .facility figure figcaption { position: static; padding: 1.25rem 1.5rem 1.5rem; background: var(--navy-900); font-size: 1rem; }
    #subject #sleep1 .facility figure figcaption .ww { display: inline; }
    #subject #sleep1 .insurance { grid-template-columns: 1fr; }
    #subject #sleep1 .insurance p.note + table + table { margin-top: 0; }
    #subject #sleep2 article.price { grid-template-columns: 1fr; }
    #subject #sleep2 article.price > dl.price { padding: 2rem 1.35rem; }
    #subject #sleep2 .more .conversation dd .ww { display: inline; }
}
@media (max-width: 739px) {   /* 분석 항목 그림 — 좌우로 펼칠 자리가 없으면 그림 아래로 내려 세운다 */
    #subject #sleep1 .factor ul { display: block; width: max-content; max-width: 100%; margin: 0 auto; }
    #subject #sleep1 .factor li { position: static; margin-top: 1.5rem; text-align: left; }
    #subject #sleep1 .factor dl { position: static; margin: 0 auto !important; }
    #subject #sleep1 .factor dl::before,
    #subject #sleep1 .factor dl::after { content: none; }
    #subject #sleep1 .factor dt::after { top: auto; bottom: auto; left: 0; right: 0; margin: 0 auto; }
    #subject #sleep1 .factor li:nth-child(1) dt::after { top: 4rem; right: 3rem; }
    #subject #sleep1 .factor li:nth-child(2) dt::after { top: 8.5rem; right: .4rem; }
    #subject #sleep1 .factor li:nth-child(3) dt::after { top: 13.8rem; right: 4.8rem; }
    #subject #sleep1 .factor li:nth-child(4) dt::after { top: 7.25rem; right: -3.5rem; }
    #subject #sleep1 .factor li:nth-child(5) dt::after { top: 13rem; right: -4.5rem; }
    #subject #sleep1 .factor dd { height: auto; }
}
@media (max-width: 519px) {
    #subject ol.process,
    #subject #sleep2 ol.process { --cols: 1; }
}

/* ─── 시설보기 ───────────────────────────────────────────── */
#space { overflow: hidden; color: #fff; background: radial-gradient(110% 90% at 85% 0%, #17306b 0%, var(--navy-900) 46%, var(--navy-950) 100%); }
#space::before { content: ''; position: absolute; left: -18rem; bottom: -22rem; width: 46rem; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgb(27 186 227 / .20), rgb(27 186 227 / 0)); }
#space .sec-title { color: #fff; }
#space .eyebrow { color: var(--sky-300); }

.tour { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 13.5rem; gap: 2.5rem; align-items: center; }
.tour-stage { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: var(--navy-800); box-shadow: var(--shadow-lg); touch-action: pan-y; }
.tour-stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 45%; pointer-events: none; background: linear-gradient(rgb(6 15 41 / 0), rgb(6 15 41 / .66)); }
.tour-slides li { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.1s ease; }
.tour-slides li.on { z-index: 1; opacity: 1; }
.tour-slides img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); transition: transform 1.6s var(--ease-out); -webkit-user-drag: none; user-select: none; }
.tour-slides li.on img { transform: none; transition-duration: 7s; transition-timing-function: linear; }
.tour-caption { position: absolute; left: 1.75rem; bottom: 1.5rem; z-index: 2; display: flex; align-items: baseline; gap: 1rem; text-shadow: 0 2px 14px rgb(0 0 0 / .35); }
.tour-count { color: rgb(255 255 255 / .75); font: italic 500 1.125rem/1 var(--font-display); font-variant-numeric: lining-nums; }
.tour-count b { margin-right: .15rem; color: #fff; font-size: 2.375rem; font-style: normal; }
.tour-name { font: 500 1.375rem/1 var(--font-serif); letter-spacing: -.04em; }
.tour-arrow {
    position: absolute; bottom: 1.25rem; z-index: 2; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
    border: 1px solid rgb(255 255 255 / .4); background: rgb(255 255 255 / .1);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .3s, border-color .3s; }
.tour-arrow:hover { background: rgb(255 255 255 / .25); border-color: #fff; }
.tour-arrow svg { width: 1.125rem; height: 1.125rem; }
.tour-arrow.prev { right: 5rem; }
.tour-arrow.next { right: 1.5rem; }
.tour-progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: rgb(255 255 255 / .16); }
.tour-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #1b8fd6, var(--sky-300)); }
@keyframes tourbar { from { width: 0; } to { width: 100%; } }
.tour-index { display: grid; gap: .1rem; }
.tour-index button { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .28rem 0; line-height: 1.6; color: rgb(255 255 255 / .5); text-align: left; white-space: nowrap; transition: color .3s; }
.tour-index button::before { content: ''; width: 1rem; height: 1px; background: currentColor; transition: width .4s var(--ease), background .3s; }
.tour-index button:hover { color: rgb(255 255 255 / .85); }
.tour-index button.on { color: #fff; font-weight: 600; }
.tour-index button.on::before { width: 2.25rem; background: var(--sky-500); }

@media (max-width: 1023px) {
    .tour { grid-template-columns: 1fr; gap: 1.25rem; }
    .tour-index { display: flex; gap: .5rem; margin: 0 var(--gutter-neg); padding: .25rem var(--gutter); overflow-x: auto; scrollbar-width: none; }
    .tour-index::-webkit-scrollbar { display: none; }
    .tour-index button { width: auto; padding: .5rem 1rem; border: 1px solid rgb(255 255 255 / .2); border-radius: 999px; font-size: .9375rem; }
    .tour-index button::before { display: none; }
    .tour-index button.on { border-color: transparent; background: #fff; color: var(--navy-900); }
}
@media (max-width: 767px) {
    #space { padding-left: 0; padding-right: 0; }
    #space .sec-head { padding: 0 var(--gutter); }
    .tour-stage { aspect-ratio: 4 / 3; border-radius: 0; }
    .tour-index { margin: 0; }
    .tour-caption { left: 1.25rem; bottom: 1.25rem; gap: .75rem; }
    .tour-count b { font-size: 1.875rem; }
    .tour-name { font-size: 1.1875rem; }
    .tour-arrow { width: 2.5rem; height: 2.5rem; bottom: 1rem; }
    .tour-arrow.prev { right: 4.25rem; }
    .tour-arrow.next { right: 1.25rem; }
}

/* ─── 사진 띠 ────────────────────────────────────────────── */
.band { position: relative; overflow: hidden; height: clamp(20rem, 58vw, 42rem); background: var(--navy-950); }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.band::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none;
    background: linear-gradient(var(--navy-950) 0%, rgb(6 15 41 / 0) 22%, rgb(6 15 41 / 0) 70%, rgb(6 15 41 / .45) 100%); }
@supports (animation-timeline: view()) {   /* 스크롤에 따라 사진이 천천히 밀려 올라간다 */
    .band img { height: 124%; animation: bandShift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes bandShift { from { transform: translateY(-16%); } to { transform: translateY(0); } }
}

/* ─── 진료안내 ───────────────────────────────────────────── */
#info { background: var(--bg-soft); }
.fees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.fee-card { padding: 2.4rem 2.4rem 1.4rem; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.fee-card h3 { display: flex; align-items: center; gap: .75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--ink); color: var(--ink); font-size: 1.375rem; font-weight: 600; line-height: 1.3; letter-spacing: -.035em; }
.fee-card h3 svg { width: 1.625rem; height: 1.625rem; color: var(--blue-600); }
.fee-card dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem 1.5rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line-soft); }
.fee-card dl > div:last-child { border-bottom: 0; }
.fee-card dt { grid-row: span 2; align-self: center; color: var(--ink); font-weight: 500; }
.fee-card dd { grid-column: 2; color: var(--navy-700); font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fee-card dd span { margin-right: .5rem; color: var(--muted); font-size: .875rem; font-weight: 400; }
@media (max-width: 899px) {
    .fees { grid-template-columns: 1fr; }
    .fee-card { padding: 1.75rem 1.5rem .75rem; border-radius: var(--r-md); }
    .fee-card h3 { font-size: 1.25rem; }
}
@media (max-width: 419px) {
    .fee-card dd { white-space: normal; }
}

/* ─── 내원안내 ───────────────────────────────────────────── */
.visit { display: grid; grid-template-columns: minmax(0, 25rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch; }
.visit-list { border-top: 1px solid var(--ink); }
.visit-list > li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.visit-list svg { width: 1.625rem; height: 1.625rem; margin-top: .1rem; color: var(--blue-600); }
.visit-list h3 { color: var(--muted); font-size: .8125rem; font-weight: 600; line-height: 1.4; letter-spacing: .06em; }
.visit-list p { margin-top: .35rem; color: var(--ink); font-size: 1.0625rem; font-weight: 500; line-height: 1.6; }
.visit-list p small { display: block; color: var(--muted); font-size: .9375rem; font-weight: 400; }
.visit-list .tel { display: inline-block; margin-top: .2rem; color: var(--navy-700); font-size: 1.75rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.visit-list ul { margin-top: .35rem; color: var(--ink); font-weight: 500; line-height: 1.6; }
.visit-list ul li { position: relative; padding-left: .9rem; }
.visit-list ul li + li { margin-top: .35rem; }
.visit-list ul li::before { content: ''; position: absolute; left: 0; top: .68em; width: 4px; height: 4px; border-radius: 50%; background: var(--sky-500); }
.visit-list .btn { margin-top: .9rem; }
.visit-map { position: relative; overflow: hidden; min-height: 32rem; border-radius: var(--r-lg); background: var(--bg-tint); box-shadow: var(--shadow-md); }
#map { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
@media (hover: none) {   /* 손가락으로 쓸어내릴 때 지도가 스크롤을 붙잡지 않게 — 길 찾기는 '오시는 길' 버튼으로 */
    .visit-map::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
}
@media (max-width: 899px) {
    .visit { grid-template-columns: 1fr; }
    .visit-map { order: -1; min-height: 0; aspect-ratio: 4 / 3; border-radius: var(--r-md); }
}

/* ─── 푸터 ───────────────────────────────────────────────── */
.site-footer { padding: 3.5rem var(--gutter) 2.5rem; background: var(--navy-950); color: rgb(255 255 255 / .66); font-size: .9063rem; line-height: 1.6; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgb(255 255 255 / .12); }
.footer-logo { width: auto; height: 1.875rem; filter: brightness(0) invert(1); }
.footer-links { display: flex; gap: .5rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .45rem; height: 2.5rem; padding: 0 1rem; border: 1px solid rgb(255 255 255 / .2); border-radius: 999px; color: #fff; transition: background .3s, border-color .3s; }
.footer-links a:hover { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .5); }
.footer-links svg { width: 1rem; height: 1rem; }
.footer-info { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; margin-top: 1.75rem; }
.footer-info a { color: #fff; }
.copyright { margin-top: .9rem; color: rgb(255 255 255 / .4); font-size: .75rem; letter-spacing: .06em; }
@media (max-width: 599px) {
    .footer-top { flex-direction: column; align-items: flex-start; }
    .footer-info { display: block; }
}

/* ─── 팝업(학회활동·학술활동·논문) ───────────────────────── */
.popup {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200; display: grid; place-items: center; padding: 1.25rem;
    background: rgb(6 15 41 / .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; overscroll-behavior: contain; }
.popup.on { opacity: 1; visibility: visible; transition: opacity .4s, visibility 0s; }
.popup > section { display: flex; flex-direction: column; width: min(100%, 56rem); max-height: min(90vh, 50rem); overflow: hidden; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-lg); transform: translateY(1.5rem) scale(.98); transition: transform .55s var(--ease-out); }
.popup.on > section { transform: none; }
.popup header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.35rem 1.35rem 1.35rem 2rem; border-bottom: 1px solid var(--line); }
.popup h3 { color: var(--muted); font-weight: 500; }
.popup h3 strong { margin-right: .4rem; color: var(--ink); font: 600 1.5rem/1.2 var(--font-serif); letter-spacing: -.04em; }
.popup .close { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--bg-soft); color: var(--ink); transition: background .3s, transform .4s var(--ease); }
.popup .close:hover { background: var(--bg-tint); transform: rotate(90deg); }
.popup .close svg { width: 1.125rem; height: 1.125rem; }
.popup .wrap { display: grid; grid-template-columns: 14.5rem minmax(0, 1fr); gap: 2.25rem; padding: 2rem; overflow: auto; overscroll-behavior: contain; }
.popup figure { position: sticky; top: 0; align-self: start; overflow: hidden; border-radius: var(--r-sm); }
.popup figure img { width: 100%; }
.popup h4 { display: flex; align-items: center; gap: .7rem; color: var(--blue-600); font-size: .875rem; font-weight: 700; letter-spacing: .04em; }
.popup h4::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.popup ul + h4 { margin-top: 2.25rem; }
.popup article ul { display: grid; gap: .6rem; margin-top: 1rem; color: var(--ink); line-height: 1.55; }
.popup article li { position: relative; padding-left: .95rem; }
.popup article li::before { content: ''; position: absolute; left: 0; top: .66em; width: 4px; height: 4px; border-radius: 50%; background: var(--sky-500); }
.popup ul[lang=en] { color: var(--text); font-size: .9375rem; letter-spacing: 0; word-break: normal; }
@media (max-width: 699px) {
    .popup { padding: 0; place-items: end center; }
    .popup > section { max-height: 92vh; max-height: 92svh; border-radius: var(--r-lg) var(--r-lg) 0 0; transform: translateY(3rem); }
    .popup header { padding: 1.1rem 1.1rem 1.1rem 1.5rem; }
    .popup .wrap { grid-template-columns: 1fr; gap: 1.75rem; padding: 1.5rem; }
    .popup figure { position: static; max-height: 15rem; }
    .popup figure img { height: 15rem; object-fit: cover; object-position: center 72%; }
}

/* ─── 스크롤 등장 효과 ───────────────────────────────────── */
/* .js 는 index.html 머리의 한 줄 스크립트가 붙인다 — 스크립트가 꺼져 있으면 아무것도 숨기지 않는다 */
.js [data-reveal] { opacity: 0; transform: translateY(2rem); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ─── 동작 줄이기 ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .band img { animation: none; height: 100%; transform: none; }
}
