/* 온숲365의원 — 병원 홈페이지 샘플 (HERKS) */

/* ───────── 테마 ───────── */
:root,
[data-theme='forest'] {
  --bg: #f6f8f5; --surface: #ffffff; --surface2: #eef3ee; --tint: #eaf2ec;
  --ink: #16241d; --ink2: #34483e; --muted: #6c7d74; --line: #dbe5dd;
  --primary: #1f5e4a; --primary2: #2f7d63; --primary-ink: #ffffff; --accent: #3fb68b; --accent-soft: #d8f1e6;
  --deep: #123a2e; --deep2: #0c2a21; --deep-ink: #e9f5ef; --deep-line: rgba(255, 255, 255, .12);
  --danger: #d6453d; --danger-soft: #fde9e7; --warn: #d98a1f; --warn-soft: #fdf1df;
  --body1: #dbe9e0; --body2: #c4dacd; --body-line: #a9c5b4;
  --map-bg: #eef3ee; --map-block: #dfe8e1; --map-park: #cfe6d5; --map-road: #ffffff;
  --shadow: 0 18px 50px -24px rgba(18, 58, 46, .35);
  --radius: 22px;
}
[data-theme='ocean'] {
  --bg: #f5f8fc; --surface: #fff; --surface2: #edf3fb; --tint: #e8f0fa;
  --ink: #132136; --ink2: #33455f; --muted: #6b7b91; --line: #d9e3f0;
  --primary: #1d4f91; --primary2: #2f6cc0; --accent: #2fb3d6; --accent-soft: #d6f0f8;
  --deep: #102a4c; --deep2: #0a1d36; --deep-ink: #e8f1fc;
  --body1: #dbe6f4; --body2: #c3d4ea; --body-line: #a6bddb;
  --map-bg: #edf3fb; --map-block: #dee7f3; --map-park: #d3e9e4;
  --shadow: 0 18px 50px -24px rgba(16, 42, 76, .35);
}
[data-theme='peach'] {
  --bg: #fcf8f4; --surface: #fff; --surface2: #f8efe6; --tint: #f8ede3;
  --ink: #2c1f17; --ink2: #4e3c31; --muted: #8a7768; --line: #eedfd2;
  --primary: #b4532f; --primary2: #d06a43; --accent: #e8a15b; --accent-soft: #fbe8d4;
  --deep: #4a2617; --deep2: #351a0f; --deep-ink: #fdf1e8;
  --body1: #f6e2d4; --body2: #ecd0bc; --body-line: #ddb79c;
  --map-bg: #f8efe6; --map-block: #efe2d5; --map-park: #dde9d3;
  --shadow: 0 18px 50px -24px rgba(74, 38, 23, .3);
}
[data-theme='lavender'] {
  --bg: #f8f7fc; --surface: #fff; --surface2: #f0eef9; --tint: #eeebf8;
  --ink: #1f1a33; --ink2: #3f3858; --muted: #7a7493; --line: #e3dff2;
  --primary: #5a46a8; --primary2: #7360c4; --accent: #a58ce6; --accent-soft: #ece6fb;
  --deep: #2b2155; --deep2: #1d163d; --deep-ink: #efebfd;
  --body1: #e6e1f6; --body2: #d4ccef; --body-line: #b8acdf;
  --map-bg: #f0eef9; --map-block: #e4e0f3; --map-park: #dcebdc;
  --shadow: 0 18px 50px -24px rgba(43, 33, 85, .3);
}
[data-theme='night'] {
  --bg: #0e1513; --surface: #16201d; --surface2: #1b2824; --tint: #121c19;
  --ink: #e8f1ec; --ink2: #c3d3cb; --muted: #8aa096; --line: #273632;
  --primary: #4cc79a; --primary2: #6bd9b0; --primary-ink: #08231a; --accent: #4cc79a; --accent-soft: #173a2e;
  --deep: #0a110f; --deep2: #070c0b; --deep-ink: #e8f1ec;
  --danger: #ff7b72; --danger-soft: #3a1c1a; --warn: #f2b25c; --warn-soft: #3a2b16;
  --body1: #2a3a35; --body2: #22302c; --body-line: #3d544c;
  --map-bg: #16201d; --map-block: #1f2c28; --map-park: #1d3a2e; --map-road: #2c3d38;
  --shadow: 0 18px 50px -24px rgba(0, 0, 0, .7);
}
[data-theme='contrast'] {
  --bg: #ffffff; --surface: #ffffff; --surface2: #f2f2f2; --tint: #f4f4f4;
  --ink: #000; --ink2: #111; --muted: #333; --line: #000;
  --primary: #0039a6; --primary2: #0039a6; --primary-ink: #fff; --accent: #0039a6; --accent-soft: #e3ebff;
  --deep: #000; --deep2: #000; --deep-ink: #fff; --deep-line: rgba(255, 255, 255, .5);
  --danger: #b00000; --danger-soft: #ffe5e5; --warn: #8a4b00; --warn-soft: #fff1dc;
  --body1: #e6e6e6; --body2: #cfcfcf; --body-line: #000;
  --map-bg: #fff; --map-block: #e6e6e6; --map-park: #d6ecd6; --map-road: #fff;
  --shadow: none;
}
[data-theme='contrast'] .card, [data-theme='contrast'] .float, [data-theme='contrast'] .quick a { border: 2px solid #000 !important; }

/* 글자 크기 (어르신 · 저시력) */
html { font-size: 16px; }
html[data-font='l'] { font-size: 18px; }
html[data-font='xl'] { font-size: 20px; }

/* ───────── 기본 ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 1rem; line-height: 1.65; letter-spacing: -0.01em; word-break: keep-all; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--primary); color: var(--primary-ink); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* 아이콘 (마스크) */
.ico { display: inline-block; width: 1.25em; height: 1.25em; background: currentColor; flex: none;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico.big { width: 56px; height: 56px; }
.ico-cal { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18M9 15l2 2 4-4'/%3E%3C/svg%3E"); }
.ico-clock { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.ico-body { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='4.5' r='2.5'/%3E%3Cpath d='M5 9l7 1 7-1M12 10v5M12 15l-3 7M12 15l3 7'/%3E%3C/svg%3E"); }
.ico-check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2'/%3E%3Crect x='9' y='2' width='6' height='4' rx='1'/%3E%3Cpath d='M9 13l2 2 4-4'/%3E%3C/svg%3E"); }
.ico-won { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l3 12 5-10 5 10 3-12M3 11h18M3 14h18'/%3E%3C/svg%3E"); }
.ico-pin { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 1 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.ico-tel { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
.ico-stomach { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 2v4c0 2 1 3 3 3h1a5 5 0 0 1 5 5v1a7 7 0 0 1-7 7 6 6 0 0 1-6-6v-1c0-2 1-3 3-3'/%3E%3C/svg%3E"); }
.ico-child { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='11' r='8'/%3E%3Cpath d='M9 10h.01M15 10h.01M9.5 14a3.5 3.5 0 0 0 5 0M12 3c-1 1-1 2 0 3'/%3E%3C/svg%3E"); }
.ico-bone { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M17 10l-7 7a2.5 2.5 0 1 1-3.5 3.5A2.5 2.5 0 1 1 3 17a2.5 2.5 0 0 1 4-3l7-7a2.5 2.5 0 1 1 3-4 2.5 2.5 0 1 1 3.5 3.5A2.5 2.5 0 0 1 17 10z'/%3E%3C/svg%3E"); }
.ico-family { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='6' r='2.5'/%3E%3Ccircle cx='16' cy='6' r='2.5'/%3E%3Ccircle cx='12' cy='13' r='2'/%3E%3Cpath d='M4 21v-6a4 4 0 0 1 4-4M20 21v-6a4 4 0 0 0-4-4M9 21v-2a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E"); }
.ico-checkup { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l2-5 4 10 2-5h6'/%3E%3C/svg%3E"); }
.ico-alert { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 3 2 21h20L12 3zM12 10v5M12 18h.01'/%3E%3C/svg%3E"); }

/* 로고: 잎사귀 + 십자 */
.logo-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--primary); position: relative; flex: none; display: inline-block; }
.logo-mark::after { content: ''; position: absolute; inset: 7px; background: var(--primary-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6 6 4 11 6 16c1 2.5 3 4.5 6 6 3-1.5 5-3.5 6-6 2-5 0-10-6-14z' opacity='.35'/%3E%3Cpath d='M10.5 7h3v4h4v3h-4v4h-3v-4h-4v-3h4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6 6 4 11 6 16c1 2.5 3 4.5 6 6 3-1.5 5-3.5 6-6 2-5 0-10-6-14z' opacity='.35'/%3E%3Cpath d='M10.5 7h3v4h4v3h-4v4h-3v-4h-4v-3h4z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 14px; border: 1.5px solid transparent; font-weight: 700; transition: transform .15s, background .2s, box-shadow .2s, opacity .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 10px 24px -12px var(--primary); }
.btn--primary:hover { background: var(--primary2); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 1.05rem; border-radius: 16px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ───────── 인트로 ───────── */
.intro { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: grid; place-items: center; pointer-events: none;
  animation: introOut .6s 1.7s forwards; }
.intro__ecg { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 120px; transform: translateY(-50%); }
.intro__ecg path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.2s ease-out forwards; vector-effect: non-scaling-stroke; }
.intro__logo { position: relative; display: grid; justify-items: center; gap: 6px; background: var(--bg); padding: 18px 28px; border-radius: 24px; opacity: 0; transform: translateY(8px); animation: rise .5s .9s forwards; }
.intro__logo .logo-mark { width: 56px; height: 56px; border-radius: 18px; }
.intro__logo .logo-mark::after { inset: 10px; }
.intro__logo b { font-size: 1.5rem; }
.intro__logo small { color: var(--muted); letter-spacing: .2em; font-size: .7rem; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* ───────── 유틸 바 · 헤더 ───────── */
.util { background: var(--deep); color: var(--deep-ink); font-size: .875rem; }
.util__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; }
.status { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 0; color: inherit; text-align: left; }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; position: relative; }
.is-open .status__dot { background: #3ddc97; box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: ping 1.8s infinite; }
.is-lunch .status__dot { background: #f5b94a; }
.is-closed .status__dot { background: #f0776f; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
.status__sub { opacity: .75; }
.util__right { display: flex; align-items: center; gap: 14px; }
.util__tel b { font-weight: 700; }
.fontsize { display: flex; border: 1px solid var(--deep-line); border-radius: 10px; overflow: hidden; }
.fontsize button { background: none; border: 0; color: inherit; padding: 2px 9px; line-height: 1.6; opacity: .7; }
.fontsize button:nth-child(1) { font-size: .8rem; }
.fontsize button:nth-child(2) { font-size: .95rem; }
.fontsize button:nth-child(3) { font-size: 1.1rem; font-weight: 700; }
.fontsize button[aria-pressed='true'] { background: rgba(255, 255, 255, .16); opacity: 1; }
.util__theme { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--deep-line); color: inherit; border-radius: 10px; padding: 2px 10px; }
.swatch { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--accent) 50%, var(--primary) 50%); }

.head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.head.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(0, 0, 0, .4); }
.head__in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__txt { display: grid; line-height: 1.15; }
.brand__txt b { font-size: 1.15rem; letter-spacing: -0.03em; }
.brand__txt small { font-size: .62rem; letter-spacing: .18em; color: var(--muted); }
.gnb { display: flex; gap: 4px; margin-left: auto; }
.gnb a { padding: 8px 12px; border-radius: 10px; font-weight: 600; color: var(--ink2); transition: background .15s, color .15s; }
.gnb a:hover, .gnb a.is-on { background: var(--accent-soft); color: var(--primary); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 0 11px; flex-direction: column; justify-content: center; gap: 4px; }
.burger span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ───────── 히어로 ───────── */
.hero { position: relative; padding: 56px 0 0; overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 900px; height: 900px; right: -320px; top: -360px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent); pointer-events: none; }
.hero__in { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 600; color: var(--primary); background: var(--surface); border: 1px solid var(--line); padding: 7px 14px; border-radius: 99px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero__title { margin-top: 22px; font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.2; letter-spacing: -0.045em; font-weight: 800; }
.hero__title em { font-style: normal; color: var(--primary); position: relative; white-space: nowrap; }
.hero__title em::after { content: ''; position: absolute; left: -2px; right: -2px; bottom: .08em; height: .28em; background: var(--accent); opacity: .3; border-radius: 4px; z-index: -1; }
.hero__lead { margin-top: 20px; font-size: 1.08rem; color: var(--ink2); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__facts { list-style: none; padding: 0; margin: 34px 0 0; display: flex; gap: 28px; }
.hero__facts li { display: flex; align-items: center; gap: 12px; }
.hero__facts b { font-size: 2.1rem; font-weight: 800; color: var(--primary); letter-spacing: -0.04em; line-height: 1; }
.hero__facts small { font-size: 1rem; }
.hero__facts span { font-size: .82rem; color: var(--muted); line-height: 1.35; }
.hero__art { position: relative; padding: 24px 0 40px 40px; }
.hero__photo { margin: 0; border-radius: 200px 200px 32px 32px; overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.float { position: absolute; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 16px 18px; }
.float--now { left: 0; top: 64px; width: 250px; animation: bob 6s ease-in-out infinite; }
.float--docs { right: -12px; bottom: 0; width: 290px; animation: bob 7s ease-in-out -2s infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none !important; } }
.float__head { display: flex; align-items: center; gap: 8px; }
.float__head b { font-size: 1.02rem; }
.float__sub { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.float__title { font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.ecg { width: 100%; height: 34px; margin-top: 8px; }
.ecg path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 300; animation: ecg 2.6s linear infinite; vector-effect: non-scaling-stroke; }
.is-closed-card .ecg path { stroke: var(--muted); animation: none; stroke-dasharray: none; }
@keyframes ecg { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
.dayline { height: 6px; background: var(--surface2); border-radius: 6px; overflow: hidden; margin-top: 8px; }
.dayline i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: 6px; transition: width .8s; }
.oncall { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.oncall li { display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.oncall img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.oncall .who { display: grid; line-height: 1.25; min-width: 0; flex: 1; }
.oncall .who b { font-size: .88rem; }
.oncall .who span { color: var(--muted); font-size: .75rem; }
.oncall .tag { margin-left: auto; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--primary); white-space: nowrap; }
.oncall .tag--off { background: var(--surface2); color: var(--muted); }
.oncall .is-off { opacity: .55; }

.quick { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 40px; margin-bottom: -40px; z-index: 2; }
.quick a { display: grid; justify-items: start; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.quick a:hover { transform: translateY(-4px); border-color: var(--accent); }
.quick .ico { width: 30px; height: 30px; color: var(--primary); margin-bottom: 8px; }
.quick b { font-size: 1rem; }
.quick span { font-size: .78rem; color: var(--muted); }

/* ───────── 섹션 공통 ───────── */
.sec { padding: 104px 0; }
.sec--tint { background: var(--tint); }
.sec--deep { background: linear-gradient(180deg, var(--deep), var(--deep2)); color: var(--deep-ink); }
#hours { padding-top: 120px; }
.sec__head { max-width: 720px; margin-bottom: 40px; }
.sec__head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -0.04em; line-height: 1.25; }
.sec__head p:not(.kicker) { color: var(--muted); margin-top: 10px; font-size: 1.04rem; }
.sec__head--sm { margin-bottom: 20px; }
.sec__head--sm h2 { font-size: 1.6rem; }
.sec__head--light p:not(.kicker) { color: color-mix(in srgb, var(--deep-ink) 70%, transparent); }
.sec__head.row { display: flex; align-items: end; justify-content: space-between; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px !important; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 1px 0 rgba(0, 0, 0, .02); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.grid2 > *, .finder > *, .booker > *, .hero__in > *, .dept > * { min-width: 0; }
.grid2--top { align-items: start; margin-top: 24px; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 99px; font-weight: 600; font-size: .9rem; color: var(--ink2); transition: all .15s; }
.chip:hover { border-color: var(--primary); }
.chip[aria-pressed='true'] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.chip--er[aria-pressed='true'] { background: var(--danger); border-color: var(--danger); color: #fff; }

/* 진료 시간 */
.htable { width: 100%; border-collapse: collapse; font-size: .95rem; }
.htable { font-variant-numeric: tabular-nums; }
.htable th, .htable td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.htable th { width: 74px; font-weight: 700; }
.htable td.night { color: var(--primary); font-weight: 600; }
.htable td.off { color: var(--danger); }
.htable tr.is-today { background: var(--accent-soft); }
.htable tr.is-today th { color: var(--primary); }
.htable tr.is-today th::after { content: '오늘'; font-size: .65rem; margin-left: 6px; padding: 2px 6px; border-radius: 99px; background: var(--primary); color: var(--primary-ink); vertical-align: 2px; }
.hnotes { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; font-size: .9rem; color: var(--ink2); }
.hnotes b { display: inline-block; min-width: 76px; color: var(--ink); }
.hcall { margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: var(--surface2); font-weight: 600; }
.hcall a { color: var(--primary); font-size: 1.25rem; font-weight: 800; margin-left: 6px; }
.nlist { list-style: none; margin: 0; padding: 0; }
.nlist li { border-bottom: 1px solid var(--line); }
.nlist button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; background: none; border: 0; padding: 16px 0; text-align: left; }
.nlist .ntag { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 8px; background: var(--accent-soft); color: var(--primary); }
.nlist .ntitle { font-weight: 600; }
.nlist time { font-size: .8rem; color: var(--muted); }
.nlist .nbody { padding: 0 0 16px; color: var(--ink2); font-size: .92rem; display: none; }
.nlist li.is-open .nbody { display: block; animation: rise .3s both; }
.nlist li.is-open .ntitle { color: var(--primary); }

/* 증상 안내 */
.finder { display: grid; grid-template-columns: 420px 1fr; gap: 28px; align-items: start; }
.finder__map { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface2); border-radius: 14px; padding: 4px; }
.seg button { border: 0; background: none; padding: 9px 6px; border-radius: 11px; font-weight: 700; color: var(--muted); font-size: .9rem; }
.seg button[aria-selected='true'] { background: var(--surface); color: var(--primary); box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .3); }
.body { position: relative; width: 240px; margin: 18px auto 4px; aspect-ratio: 1 / 2; transition: transform .4s; }
.body.is-child { transform: scale(.84); }
.body__svg { width: 100%; height: 100%; }
.body__lines { stroke: var(--body-line); }
.hotspots { position: absolute; inset: 0; }
.spot { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--primary) 22%, transparent); display: grid; place-items: center; padding: 0; }
.spot::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--surface); }
.spot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary); animation: spot 2s infinite; opacity: 0; }
.spot[aria-pressed='true'] { background: var(--accent); }
.spot[aria-pressed='true']::before { background: var(--primary-ink); box-shadow: 0 0 0 3px var(--primary); }
.spot span { position: absolute; left: 50%; top: -28px; transform: translateX(-50%); background: var(--ink); color: var(--bg); font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.spot:hover span, .spot:focus-visible span, .spot[aria-pressed='true'] span { opacity: 1; }
@keyframes spot { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.finder__hint { text-align: center; color: var(--muted); font-size: .82rem; margin: 6px 0 12px !important; }
.chips--parts { justify-content: center; }
.chips--parts .chip { padding: 6px 12px; font-size: .82rem; }
.finder__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; min-height: 100%; }
.finder__empty { height: 100%; min-height: 360px; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; color: var(--muted); }
.finder__empty .ico { color: var(--accent); }
.finder__empty b { color: var(--ink); font-size: 1.1rem; }
.fp__title { font-size: 1.3rem; font-weight: 800; }
.fp__title small { font-size: .85rem; color: var(--muted); font-weight: 500; margin-left: 6px; }
.fp__chips { margin: 16px 0 24px; }
.result { border-radius: 18px; padding: 22px; background: var(--surface2); display: grid; gap: 14px; animation: rise .35s both; }
.result__dept { display: flex; align-items: center; gap: 14px; }
.result__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; flex: none; }
.result__icon .ico { width: 26px; height: 26px; }
.result__dept p { font-size: .82rem; color: var(--muted); }
.result__dept h3 { font-size: 1.35rem; }
.result__why { font-size: .92rem; color: var(--ink2); }
.result__docs { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-doc { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px 4px 4px; font-size: .82rem; }
.mini-doc img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.mini-doc em { font-style: normal; font-size: .72rem; color: var(--primary); font-weight: 700; }
.mini-doc.is-off em { color: var(--muted); }
.result--alt { background: transparent; border: 1px dashed var(--line); padding: 14px 18px; }
.er { border-radius: 18px; padding: 20px 22px; background: var(--danger-soft); color: var(--danger); display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; animation: rise .3s both; margin-bottom: 14px; }
.er .ico { width: 34px; height: 34px; grid-row: span 2; }
.er b { font-size: 1.1rem; }
.er p { color: var(--ink2); font-size: .9rem; }
.er a { color: var(--danger); font-weight: 800; text-decoration: underline; }
.disclaimer { margin-top: 18px !important; font-size: .82rem; color: var(--muted); }

/* 진료과목 */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--surface); padding: 12px 18px; border-radius: 16px; font-weight: 700; color: var(--ink2); transition: all .15s; }
.tab .ico { color: var(--primary); }
.tab[aria-selected='true'] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.tab[aria-selected='true'] .ico { color: var(--primary-ink); }
.dept { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: minmax(440px, auto); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 420px; }
.dept__img { position: relative; overflow: hidden; max-height: 520px; }
.dept__img img { width: 100%; height: 100%; object-fit: cover; animation: zoom .8s both; }
@keyframes zoom { from { transform: scale(1.06); opacity: .4; } }
.dept__body { padding: 40px; display: flex; flex-direction: column; gap: 16px; animation: rise .4s both; }
.dept__en { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.dept__body h3 { font-size: 1.9rem; letter-spacing: -0.04em; }
.dept__lead { font-size: 1.05rem; color: var(--ink2); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.ticks li { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.ticks li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233fb68b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.dept__docs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.dept__foot { display: flex; gap: 10px; flex-wrap: wrap; }

/* 의료진 */
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.doc:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.doc__photo { position: relative; aspect-ratio: 4 / 4.2; overflow: hidden; background: var(--surface2); }
.doc__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .6s; }
.doc:hover .doc__photo img { transform: scale(1.04); }
.doc__badge { position: absolute; left: 12px; top: 12px; background: var(--surface); color: var(--primary); font-weight: 700; font-size: .75rem; padding: 5px 10px; border-radius: 99px; }
.doc__today { position: absolute; right: 12px; bottom: 12px; font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: var(--primary); color: var(--primary-ink); }
.doc__today.is-off { background: rgba(0, 0, 0, .55); color: #fff; }
.doc__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.doc__name { display: flex; align-items: baseline; gap: 8px; }
.doc__name b { font-size: 1.35rem; letter-spacing: -0.03em; }
.doc__name span { color: var(--muted); font-size: .9rem; }
.doc__quote { font-size: .88rem; color: var(--ink2); }
.doc__spec { display: flex; flex-wrap: wrap; gap: 6px; }
.doc__spec span { font-size: .75rem; background: var(--surface2); padding: 4px 9px; border-radius: 8px; color: var(--ink2); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: .7rem; color: var(--muted); }
.week div { display: grid; gap: 3px; }
.week i { height: 6px; border-radius: 3px; background: var(--surface2); }
.week i.on { background: var(--accent); }
.week i.n { background: var(--primary); }
.week .today { color: var(--primary); font-weight: 800; }
.doc details { border-top: 1px solid var(--line); padding-top: 10px; font-size: .85rem; }
.doc summary { cursor: pointer; font-weight: 700; color: var(--ink2); list-style: none; display: flex; justify-content: space-between; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: '+'; color: var(--primary); }
.doc details[open] summary::after { content: '−'; }
.doc details ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink2); }
.doc .btn { margin-top: auto; }
.sched { margin-top: 28px; }
.sched__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sched__head h3 { font-size: 1.25rem; }
.legend { display: flex; gap: 6px; }
.pill { display: inline-block; font-style: normal; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.pill--a { background: var(--accent-soft); color: var(--primary); }
.pill--p { background: color-mix(in srgb, var(--accent) 30%, var(--surface)); color: var(--primary); }
.pill--n { background: var(--primary); color: var(--primary-ink); }
.pill--off { background: var(--surface2); color: var(--muted); }
.stable { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.stable th, .stable td { padding: 12px 8px; text-align: center; border-bottom: 1px solid var(--line); }
.stable thead th { font-size: .85rem; color: var(--muted); }
.stable thead th.today { color: var(--primary); }
.stable td.today { background: var(--accent-soft); }
.stable tbody th { text-align: left; white-space: nowrap; }
.stable tbody th small { display: block; color: var(--muted); font-weight: 500; font-size: .75rem; }
.stable td .pill { display: block; margin: 2px auto; width: fit-content; }

/* 건강검진 */
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.pkg { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 14px; transition: transform .2s, border-color .2s; }
.pkg:hover { transform: translateY(-4px); border-color: var(--accent); }
.pkg.is-best { border-color: var(--primary); box-shadow: var(--shadow); }
.pkg__flag { position: absolute; top: -13px; left: 28px; background: var(--primary); color: var(--primary-ink); font-size: .75rem; font-weight: 800; padding: 5px 12px; border-radius: 99px; }
.pkg__for { color: var(--muted); font-size: .88rem; }
.pkg h3 { font-size: 1.4rem; }
.pkg__price { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.04em; color: var(--primary); }
.pkg__price small { font-size: 1rem; color: var(--ink2); font-weight: 600; margin-left: 2px; }
.pkg__time { font-size: .82rem; color: var(--muted); }
.pkg .ticks { grid-template-columns: 1fr; }
.pkg .btn { margin-top: auto; }
.compare summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; font-size: 1.1rem; }
.compare summary::-webkit-details-marker { display: none; }
.chev { width: 28px; height: 28px; border-radius: 50%; background: var(--surface2); position: relative; transition: transform .2s; }
.chev::after { content: ''; position: absolute; left: 10px; top: 8px; width: 7px; height: 7px; border-right: 2px solid var(--ink2); border-bottom: 2px solid var(--ink2); transform: rotate(45deg); }
.compare[open] .chev { transform: rotate(180deg); }
.ctable { width: 100%; min-width: 440px; border-collapse: collapse; margin-top: 18px; font-size: .9rem; }
.ctable th, .ctable td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.ctable td:first-child, .ctable th:first-child { text-align: left; }
.ctable .y { color: var(--accent); font-weight: 800; }
.ctable .n { color: var(--line); }
.prep h3 { font-size: 1.15rem; margin-bottom: 4px; }
.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .93rem; }
.checklist input { appearance: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); flex: none; margin-top: 1px; display: grid; place-items: center; transition: all .15s; background: var(--surface); }
.checklist input:checked { background: var(--accent); border-color: var(--accent); }
.checklist input:checked::after { content: ''; width: 6px; height: 11px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(45deg) translate(-1px, -1px); }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.prep__bar { height: 8px; background: var(--surface2); border-radius: 8px; margin-top: 18px; overflow: hidden; }
.prep__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }

/* 예약 */
.sec--deep .kicker { color: var(--accent); }
.booker { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.booker__main { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 10px 30px; }
.step { border: 0; margin: 0; padding: 26px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.step:last-child { border-bottom: 0; }
.step legend { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 800; padding: 0; margin-bottom: 16px; float: left; width: 100%; }
.step legend + * { clear: both; }
.step legend i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--surface2); color: var(--muted); display: grid; place-items: center; font-size: .82rem; transition: all .2s; }
.step.is-done legend i { background: var(--accent); color: #fff; }
.step.is-disabled { opacity: .45; pointer-events: none; }
.opts { display: grid; gap: 10px; }
.opts--dept { grid-template-columns: repeat(5, 1fr); }
.opts--doc { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.opts--visit { grid-template-columns: 1fr 1fr; }
.opt { position: relative; display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; background: var(--surface); text-align: left; transition: all .15s; min-height: 64px; }
.opt:hover { border-color: var(--primary2); }
.opt[aria-pressed='true'] { border-color: var(--primary); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.opt:disabled { opacity: .45; cursor: not-allowed; }
.opt b { display: block; font-size: .98rem; }
.opt small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.opts--dept .opt { flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding: 16px 8px; }
.opts--dept .ico { width: 28px; height: 28px; color: var(--primary); }
.opt img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.opt .any { width: 44px; height: 44px; border-radius: 50%; background: var(--surface2); display: grid; place-items: center; font-weight: 800; color: var(--primary); flex: none; }
.opt .price { margin-left: auto; font-weight: 800; color: var(--primary); white-space: nowrap; }
.dates { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; }
.date { flex: none; width: 64px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); padding: 10px 0 8px; display: grid; justify-items: center; gap: 2px; scroll-snap-align: start; transition: all .15s; }
.date small { font-size: .72rem; color: var(--muted); }
.date b { font-size: 1.2rem; }
.date i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.date.sun small, .date.hol small { color: var(--danger); }
.date.sat small { color: var(--primary2); }
.date:disabled { opacity: .35; cursor: not-allowed; }
.date:disabled i { background: transparent; }
.date[aria-pressed='true'] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.date[aria-pressed='true'] small { color: inherit; opacity: .85; }
.date[aria-pressed='true'] i { background: var(--primary-ink); }
.month { flex: none; writing-mode: vertical-rl; font-size: .75rem; font-weight: 800; color: var(--muted); align-self: center; padding: 0 2px; }
.times { display: grid; gap: 16px; }
.tgroup h4 { margin: 0 0 8px; font-size: .85rem; color: var(--muted); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.time { border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); padding: 9px 0; font-weight: 700; display: grid; justify-items: center; line-height: 1.2; transition: all .15s; }
.time small { font-size: .68rem; color: var(--muted); font-weight: 600; }
.time:hover:not(:disabled) { border-color: var(--primary); }
.time:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.time[aria-pressed='true'] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.time[aria-pressed='true'] small { color: inherit; }
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field span { font-size: .85rem; font-weight: 700; color: var(--ink2); }
.field em { color: var(--danger); font-style: normal; }
.field small { color: var(--muted); font-weight: 500; }
.field input, .field textarea, .lookup input, .search input { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus, .lookup input:focus, .search input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.is-bad input { border-color: var(--danger); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.agree { display: grid; gap: 10px; margin-top: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); flex: none; margin-top: 1px; }
.check a { color: var(--primary); text-decoration: underline; }
.booker__side { position: sticky; top: 96px; }
.receipt { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden; }
.receipt::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 8px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, var(--accent), var(--primary)); }
.receipt__title { font-weight: 800; font-size: 1.1rem; margin-bottom: 12px !important; }
.receipt dl { margin: 0; display: grid; gap: 0; }
.receipt dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.receipt dt { color: var(--muted); flex: none; }
.receipt dd { margin: 0; font-weight: 700; text-align: right; }
.receipt dd.wait { color: var(--line); font-weight: 500; }
.receipt__note { font-size: .85rem; color: var(--primary); background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; margin: 16px 0 !important; }
.receipt__note.is-warn { color: var(--warn); background: var(--warn-soft); }
.receipt__small { margin-top: 10px !important; font-size: .78rem; color: var(--muted); text-align: center; }
.lookup { margin-top: 24px; display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center; color: var(--ink); }
.lookup h3 { font-size: 1.15rem; }
.lookup__form { display: flex; gap: 8px; }
.lookup__form input { width: 170px; }
.lookup__result { grid-column: 1 / -1; }
.lookup__result:empty { display: none; }
.lres { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 16px 18px; border-radius: 16px; background: var(--surface2); }
.lres b { font-size: 1.05rem; }
.lres .st { font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--primary); }
.lres .st--cancelled, .lres .st--noshow { background: var(--danger-soft); color: var(--danger); }
.lres .btn { margin-left: auto; min-height: 38px; }

/* 비급여 */
.fees__tools { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.search input { width: 280px; padding-left: 38px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23889' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 12px center / 18px no-repeat; }
.ftable { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
.ftable th, .ftable td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.ftable thead th { font-size: .82rem; color: var(--muted); }
.ftable td:last-child, .ftable th:last-child { text-align: right; }
.ftable .fcat { font-size: .75rem; font-weight: 700; color: var(--primary); background: var(--accent-soft); padding: 3px 8px; border-radius: 8px; white-space: nowrap; }
.ftable .fprice { font-weight: 800; white-space: nowrap; }
.ftable mark { background: color-mix(in srgb, var(--accent) 35%, transparent); color: inherit; border-radius: 3px; }
.ftable .empty td { text-align: center; color: var(--muted); padding: 30px; }

/* 건강정보 · FAQ */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.col img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.col div { padding: 20px 22px 24px; display: grid; gap: 8px; }
.col span { font-size: .75rem; font-weight: 700; color: var(--accent); }
.col h3 { font-size: 1.12rem; letter-spacing: -0.03em; }
.col p { font-size: .9rem; color: var(--ink2); }
.faq { margin-top: 48px; max-width: 860px; }
.faq h3 { font-size: 1.4rem; margin-bottom: 14px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; }
.faq summary { padding: 18px 22px; font-weight: 700; cursor: pointer; list-style: none; display: flex; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q'; color: var(--accent); font-weight: 900; }
.faq summary::after { content: '+'; margin-left: auto; color: var(--primary); font-size: 1.3rem; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px 48px; color: var(--ink2); }

/* 오시는 길 */
.grid2--visit { grid-template-columns: 1.15fr 1fr; align-items: center; }
.map { padding: 0; overflow: hidden; }
.map__svg { width: 100%; height: auto; display: block; }
.map__label { font-size: 13px; font-weight: 700; fill: var(--ink2); }
.map__road { font-size: 12px; font-weight: 600; fill: var(--muted); }
.map__sub { font-size: 14px; font-weight: 800; fill: #fff; }
.map__tag { font-size: 14px; font-weight: 800; fill: var(--primary-ink); }
.map__route { stroke: var(--accent); stroke-width: 5; stroke-dasharray: 10 8; stroke-linecap: round; animation: route 1.2s linear infinite; }
@keyframes route { to { stroke-dashoffset: -36; } }
.vlist { margin: 0; display: grid; gap: 0; }
.vlist div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.vlist dt { font-weight: 700; color: var(--primary); }
.vlist dd { margin: 0; color: var(--ink2); }
.visit__btns { display: flex; gap: 10px; margin-top: 22px; }

/* 푸터 */
.foot { background: var(--deep2); color: color-mix(in srgb, var(--deep-ink) 75%, transparent); padding: 56px 0 120px; font-size: .88rem; }
.foot__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--deep-line); }
.brand--foot .brand__txt b { color: var(--deep-ink); }
.brand--foot .brand__txt small { color: inherit; }
.foot__nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot__nav b { color: var(--deep-ink); }
.foot__info { margin-top: 20px !important; line-height: 1.9; }
.demo { margin-top: 20px; padding: 16px 18px; border-radius: 14px; border: 1px dashed var(--deep-line); line-height: 1.8; }
.demo b { color: var(--deep-ink); margin-right: 6px; }
.demo a { color: var(--deep-ink); text-decoration: underline; }
.demo__more { display: block; }
.foot__copy { margin-top: 18px !important; opacity: .6; }

/* 모바일 하단 바 */
.dock { display: none; }

/* 시트 · 티켓 · 토스트 */
dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: calc(100% - 32px); }
dialog::backdrop { background: rgba(10, 20, 16, .5); backdrop-filter: blur(4px); }
dialog[open] { animation: pop .3s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.sheet__in { background: var(--surface); border-radius: 24px; padding: 26px; width: 420px; max-width: 100%; display: grid; gap: 16px; }
.sheet h3 { font-size: 1.2rem; }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme { border: 2px solid var(--line); border-radius: 16px; background: var(--surface); padding: 12px 8px; display: grid; justify-items: center; gap: 8px; font-weight: 700; font-size: .85rem; }
.theme[aria-pressed='true'] { border-color: var(--primary); }
.theme i { width: 46px; height: 30px; border-radius: 10px; display: block; }
.ticket__in { width: 440px; max-width: 100%; background: var(--surface); border-radius: 26px; overflow: hidden; }
.ticket__top { background: linear-gradient(135deg, var(--primary), var(--primary2)); color: var(--primary-ink); padding: 26px 28px 30px; position: relative; }
.ticket__top .logo-mark { background: var(--primary-ink); }
.ticket__top .logo-mark::after { background: var(--primary); }
.ticket__kicker { margin-top: 14px !important; opacity: .8; font-size: .85rem; }
.ticket__top h3 { font-size: 1.5rem; letter-spacing: -0.03em; }
.ticket__code { margin: -18px 22px 0; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 16px 20px; position: relative; display: grid; gap: 4px; text-align: center; }
.ticket__code span { font-size: .78rem; color: var(--muted); }
.ticket__code b { font-size: 2rem; letter-spacing: .2em; color: var(--primary); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ticket__bar { width: 100%; height: 34px; }
.ticket__bar rect { fill: var(--ink); }
.ticket__list { margin: 18px 28px 0; display: grid; }
.ticket__list div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.ticket__list dt { color: var(--muted); }
.ticket__list dd { margin: 0; font-weight: 700; text-align: right; }
.ticket__tips { margin: 16px 28px 0; padding: 14px 16px 14px 32px; background: var(--surface2); border-radius: 14px; font-size: .85rem; color: var(--ink2); display: grid; gap: 4px; }
.ticket__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 20px 28px 26px; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 14px; font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: all .25s; z-index: 95; max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 스크롤 등장 */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1); }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ───────── 반응형 ───────── */
@media (max-width: 1180px) {
  .gnb a { padding: 8px 8px; font-size: .92rem; }
  .docs { grid-template-columns: repeat(2, 1fr); }
  .finder { grid-template-columns: 380px 1fr; }
}
@media (max-width: 1024px) {
  .burger { display: flex; }
  .head__cta { margin-left: auto; }
  .gnb { position: fixed; left: 0; right: 0; top: 114px; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s; margin: 0; }
  .gnb.is-open { transform: none; opacity: 1; visibility: visible; }
  .gnb a { padding: 14px 6px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.02rem; }
  .head.is-stuck .gnb { top: 72px; }
  .hero__in { grid-template-columns: 1fr; gap: 36px; }
  .hero__art { max-width: 560px; margin: 0 auto; width: 100%; }
  .quick { grid-template-columns: repeat(3, 1fr); }
  .finder { grid-template-columns: 1fr; }
  .dept { grid-template-columns: 1fr; }
  .dept { grid-template-rows: auto; }
  .dept__img { aspect-ratio: 16 / 9; max-height: none; }
  .booker { grid-template-columns: minmax(0, 1fr); }
  .booker__side { position: static; }
  .opts--dept { grid-template-columns: repeat(3, 1fr); }
  .pkgs { grid-template-columns: 1fr; max-width: 560px; }
  .grid2, .grid2--visit { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .wrap { width: calc(100% - 32px); }
  .util__tel, .util__theme { display: none; }
  .status__sub { display: none; }
  .head__in { min-height: 64px; gap: 12px; }
  .head__cta { min-height: 40px; padding: 0 14px; font-size: .9rem; }
  .brand__txt small { display: none; }
  .logo-mark { width: 34px; height: 34px; }
  .gnb { top: 106px; }
  .head.is-stuck .gnb { top: 64px; }
  .hero { padding-top: 32px; }
  .hero__title { font-size: 2.15rem; }
  .hero__lead br { display: none; }
  .hero__btns .btn { flex: 1 1 100%; }
  .hero__facts { gap: 14px; justify-content: space-between; }
  .hero__facts li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero__facts b { font-size: 1.7rem; }
  .hero__art { padding: 12px 0 120px; }
  .float--now { left: -4px; top: 18px; width: 200px; padding: 12px 14px; }
  .float--docs { right: -4px; left: 30px; width: auto; bottom: 0; }
  .quick { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: -30px; }
  .quick a { padding: 14px 10px; justify-items: center; text-align: center; border-radius: 16px; }
  .quick span { display: none; }
  .quick b { font-size: .85rem; }
  .quick .ico { margin-bottom: 4px; width: 26px; height: 26px; }
  .sec { padding: 72px 0; }
  #hours { padding-top: 88px; }
  .card { padding: 22px; border-radius: 18px; }
  .finder__map, .finder__panel { padding: 18px; }
  .body { width: 200px; }
  .dept__body { padding: 24px; }
  .ticks { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .doc__body { padding: 14px; gap: 8px; }
  .doc__name b { font-size: 1.1rem; }
  .doc__name { flex-wrap: wrap; gap: 2px 6px; }
  .doc__quote, .doc__spec { display: none; }
  .doc__badge { font-size: .68rem; left: 8px; top: 8px; }
  .doc .btn { min-height: 40px; font-size: .88rem; padding: 0 10px; }
  .booker__main { padding: 4px 18px; border-radius: 18px; }
  .opts--dept { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .opts--dept .opt { padding: 12px 4px; min-height: 0; }
  .opts--dept .opt b { font-size: .85rem; }
  .opts--dept .opt small { display: none; }
  .opts--visit { grid-template-columns: 1fr 1fr; }
  .fields { grid-template-columns: 1fr; }
  .lookup { grid-template-columns: 1fr; }
  .lookup__form { flex-wrap: wrap; }
  .lookup__form input { flex: 1 1 140px; width: auto; }
  .search input { width: 100%; }
  .search { flex: 1 1 100%; }
  .cols { grid-template-columns: 1fr; }
  .vlist div { grid-template-columns: 72px 1fr; }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr);
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .dock a { display: grid; justify-items: center; gap: 2px; padding: 9px 0 8px; font-size: .72rem; font-weight: 700; color: var(--ink2); }
  .dock .ico { width: 22px; height: 22px; }
  .dock__cta { background: var(--primary); color: var(--primary-ink) !important; }
  .toast { bottom: 86px; }
  .foot { padding-bottom: 100px; }
}
