/* ===== 통사네트워크 ===== */
:root {
  --navy: #0B2A5C;
  --navy-900: #071D42;
  --navy-700: #1C3D75;
  --navy-100: #E8EEF7;
  --navy-50: #F4F7FB;
  --accent: #0E9F97;
  --accent-600: #0B8780;
  --accent-50: #E6F6F5;
  --ink: #16202E;
  --ink-2: #4A5565;
  --ink-3: #7A8494;
  --line: #E1E6EE;
  --bg: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 42, 92, .06), 0 8px 24px rgba(11, 42, 92, .06);
  --header-h: 76px;
  --container: 1200px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; word-break: keep-all; overflow-wrap: break-word; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 999; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.bg-soft { background: var(--navy-50); }
.bg-navy { background: var(--navy); color: #fff; }

.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.bg-navy .eyebrow { color: #6FD6CE; }
.h-section { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); margin-top: 16px; }
.bg-navy .lead { color: #C5D2E6; }
.sec-head { margin-bottom: 48px; }
.sec-head.center { text-align: center; }
.sec-head.center .lead { max-width: 680px; margin-left: auto; margin-right: auto; }
.note { font-size: 14px; color: var(--ink-3); margin-top: 16px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 16px; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-600); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--navy-50); }
.btn-ghost-white { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-white:hover { background: rgba(255,255,255,.1); }
.btn-white { background: #fff; color: var(--navy); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== header ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; height: var(--header-h); gap: 32px; }
.logo img { height: 40px; width: auto; }
.gnb { flex: 1; }
.gnb > ul { display: flex; justify-content: center; gap: 4px; }
.gnb > ul > li { position: relative; }
.gnb > ul > li > a { display: block; padding: 0 16px; line-height: var(--header-h); font-weight: 600; font-size: 16px; color: var(--ink); }
.gnb > ul > li:hover > a, .gnb > ul > li.active > a { color: var(--accent); }
.gnb .sub { position: absolute; top: calc(var(--header-h) - 8px); left: 50%; transform: translateX(-50%) translateY(6px); min-width: 180px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .18s; }
.gnb li:hover .sub, .gnb li:focus-within .sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.gnb .sub a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.gnb .sub a:hover { background: var(--navy-50); color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { display: flex; flex-direction: column; line-height: 1.2; font-weight: 800; color: var(--navy); font-size: 17px; }
.header-phone .label { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.m-call, .m-menu { display: none; }
.mobile-nav { border-top: 1px solid var(--line); background: #fff; padding: 8px 24px 24px; max-height: calc(100vh - 64px); overflow: auto; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--line); }
.mobile-nav > ul > li > a, .mobile-nav summary { display: block; padding: 16px 0; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: "+"; float: right; color: var(--ink-3); font-weight: 400; }
.mobile-nav details[open] summary::after { content: "−"; }
.mobile-nav details a { display: block; padding: 10px 12px; color: var(--ink-2); }
.mobile-nav details[open] { padding-bottom: 12px; }
.mobile-nav .btn { margin-top: 20px; }

/* ===== footer ===== */
.site-footer { background: var(--navy-900); color: #AEBBD0; padding: 56px 0 120px; font-size: 14px; }
.footer-top { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo { height: 40px; width: auto; }
.footer-links { display: flex; gap: 20px; flex: 1; }
.footer-links a:hover { color: #fff; }
.footer-links strong { color: #fff; }
.sns { display: flex; gap: 10px; }
.sns a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.sns a:hover { background: rgba(255,255,255,.18); }
.sns svg { width: 18px; height: 18px; fill: #fff; }
.footer-info { padding-top: 28px; display: grid; gap: 6px; }
.footer-info strong { color: #fff; font-size: 15px; }
.footer-info span + span::before { content: ""; display: inline-block; width: 1px; height: 11px; background: rgba(255,255,255,.2); margin: 0 12px; vertical-align: middle; }
.footer-notice { margin-top: 20px; padding: 14px 16px; border-radius: 10px; background: rgba(255,255,255,.05); color: #C8D3E3; }
.copyright { margin-top: 20px; color: #6E7E99; font-size: 13px; }

/* floating */
.floating { position: fixed; right: 20px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.floating a, .floating button { width: 60px; height: 60px; border-radius: 50%; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: 0 6px 18px rgba(7,29,66,.22); font-size: 11px; font-weight: 700; transition: transform .2s; }
.floating a:hover, .floating button:hover { transform: translateY(-2px); }
.floating svg { width: 22px; height: 22px; }
.fl-call { background: var(--accent); color: #fff; }
.fl-call svg { fill: #fff; }
.fl-kakao { background: #FEE500; color: #3A1D1D; }
.fl-kakao svg { fill: #3A1D1D; }
.fl-top { background: #fff; color: var(--navy); opacity: 0; pointer-events: none; }
.fl-top svg { fill: var(--navy); }
.fl-top.show { opacity: 1; pointer-events: auto; }

/* ===== page hero (sub) ===== */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%); color: #fff; padding: 88px 0 80px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -60px; width: 520px; height: 520px; background: url(/assets/img/symbol-white.png) center / contain no-repeat; opacity: .06; }
.page-hero .crumb { font-size: 14px; color: #9FB2CF; margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; }
.page-hero p { margin-top: 16px; font-size: clamp(16px, 1.8vw, 20px); color: #C9D5E8; max-width: 720px; }
.page-hero .btn-row { margin-top: 32px; }
.theme-doctor .page-hero { background: linear-gradient(135deg, #0A1B38 0%, #13305F 100%); }
.subnav { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: var(--header-h); z-index: 50; }
.subnav ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 16px 14px; font-weight: 600; color: var(--ink-3); white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a.on, .subnav a:hover { color: var(--navy); border-color: var(--navy); }

/* ===== home ===== */
.hero { position: relative; min-height: min(760px, calc(100vh - var(--header-h))); display: flex; align-items: center; color: #fff; background: radial-gradient(1200px 600px at 85% 20%, #1D4D8F 0%, transparent 60%), linear-gradient(160deg, #0B2A5C 0%, #071D42 100%); overflow: hidden; }
.hero-art { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); width: min(620px, 55vw); opacity: .9; pointer-events: none; }
.hero .container { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(34px, 5.6vw, 68px); font-weight: 800; line-height: 1.22; letter-spacing: -0.035em; max-width: 760px; }
.hero h1 em { font-style: normal; color: #6FD6CE; }
.hero .sub { margin-top: 24px; font-size: clamp(18px, 2.2vw, 24px); color: #D3DEEF; font-weight: 500; }
.hero .btn-row { margin-top: 44px; }
.hero .btn { height: 62px; padding: 0 32px; font-size: 17px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: -56px; position: relative; z-index: 2; }
.stat { padding: 32px 28px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .num { font-size: clamp(32px, 4vw, 48px); font-weight: 800; color: var(--navy); letter-spacing: -0.03em; line-height: 1.1; }
.stat .num small { font-size: .5em; font-weight: 700; margin-left: 2px; }
.stat .lbl { margin-top: 8px; color: var(--ink-2); font-weight: 600; }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.p-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: border-color .2s, box-shadow .2s, transform .2s; }
a.p-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-3px); }
.p-card .ic { width: 64px; height: 64px; margin-bottom: 24px; }
.p-card .code { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.p-card .full { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-top: 2px; }
.p-card p { margin-top: 14px; color: var(--ink-2); font-size: 15px; flex: 1; }
.p-card .more { margin-top: 20px; font-size: 14px; font-weight: 700; color: var(--accent); }

.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 16px; }
.flow-step { background: #fff; border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--line); }
.bg-navy .flow-step { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.flow-step .no { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .08em; }
.bg-navy .flow-step .no { color: #6FD6CE; }
.flow-step h3 { font-size: 21px; margin-top: 10px; }
.flow-step p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.bg-navy .flow-step p { color: #B9C7DD; }
.flow-arrow { display: grid; place-items: center; color: var(--accent); }
.flow-arrow svg { width: 28px; height: 28px; fill: currentColor; }
.bg-navy .flow-arrow { color: #6FD6CE; }

.region-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--ink-2); font-size: 15px; }
.chip.on, .chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.hosp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hosp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.hosp-card .mark { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-50); padding: 5px 10px; border-radius: 999px; align-self: flex-start; }
.hosp-card .mark img { width: 14px; height: 14px; }
.hosp-card h3 { font-size: 20px; margin-top: 14px; }
.hosp-card dl { margin: 14px 0 0; display: grid; grid-template-columns: 56px 1fr; gap: 6px 8px; font-size: 15px; color: var(--ink-2); flex: 1; }
.hosp-card dt { color: var(--ink-3); }
.hosp-card dd { margin: 0; }
.hosp-card .actions { display: flex; gap: 8px; margin-top: 22px; }
.hosp-card .actions .btn { flex: 1; height: 46px; padding: 0 12px; font-size: 15px; }
.empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-3); background: #fff; }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-card { display: block; }
.video-card .thumb { aspect-ratio: 16 / 9; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--navy-100), #D5E0EF); display: grid; place-items: center; overflow: hidden; position: relative; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card .thumb .play { width: 56px; height: 56px; border-radius: 50%; background: rgba(11,42,92,.85); display: grid; place-items: center; position: absolute; }
.video-card .thumb .play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.video-card h3 { font-size: 17px; margin-top: 14px; font-weight: 700; }
.video-card p { font-size: 14px; color: var(--ink-3); margin-top: 4px; }

.doctor-band { background: linear-gradient(135deg, #0A1B38 0%, #13305F 100%); color: #fff; border-radius: 24px; padding: 64px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.doctor-band h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.doctor-band p { color: #C5D2E6; margin-top: 16px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick a { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-weight: 700; transition: background .2s; }
.quick a:hover { background: rgba(255,255,255,.14); }
.quick a::after { content: "→"; color: #6FD6CE; }

.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
.cta-band .phone-big { display: inline-block; margin-top: 28px; font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.bg-navy .cta-band .phone-big { color: #fff; }
.cta-band .hours { color: var(--ink-3); margin-top: 6px; }
.bg-navy .cta-band .hours { color: #9FB2CF; }
.cta-band .btn-row { justify-content: center; margin-top: 32px; }

/* ===== generic content ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; }
.split p { margin-top: 16px; color: var(--ink-2); font-size: 17px; }
.figure { background: var(--navy-50); border-radius: 24px; padding: 40px; display: grid; place-items: center; }
.figure svg { width: 100%; height: auto; }

.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.compare-box { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.compare-box h3 { font-size: 19px; margin-bottom: 20px; }
.compare-box.good { border: 2px solid var(--accent); }
.dept { display: flex; flex-wrap: wrap; gap: 8px; }
.dept span { padding: 8px 14px; border-radius: 8px; background: var(--navy-50); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.good .dept span { background: var(--accent-50); color: var(--accent-600); }

.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 40px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; background: none; padding: 14px 20px; font-weight: 700; font-size: 17px; color: var(--ink-3); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab.on { color: var(--navy); border-color: var(--navy); }
.tab-panel[hidden] { display: none; }

.principle-detail { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: center; }
.principle-detail .figure { aspect-ratio: 1; }
.principle-detail .code { font-size: 48px; font-weight: 800; color: var(--navy); line-height: 1; }
.principle-detail .full { color: var(--accent); font-weight: 700; margin-top: 10px; }
.principle-detail h3 { font-size: 24px; margin-top: 24px; }
.principle-detail p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: t; }
.tl-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; position: relative; }
.tl-item::before { counter-increment: t; content: "STEP 0" counter(t); font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .08em; }
.tl-item h3 { font-size: 21px; margin-top: 10px; }
.tl-item .period { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 6px; background: var(--navy-50); color: var(--navy); font-weight: 700; font-size: 14px; }
.tl-item p { margin-top: 12px; color: var(--ink-2); font-size: 15px; }

.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.icon-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-align: center; }
.icon-item svg { width: 48px; height: 48px; margin: 0 auto 16px; }
.icon-item h3 { font-size: 18px; }
.icon-item p { font-size: 14px; color: var(--ink-3); margin-top: 6px; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-50); display: grid; place-items: center; margin-bottom: 20px; }
.card .ic svg { width: 28px; height: 28px; stroke: var(--accent-600); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card .num { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .06em; }
.card h3 { font-size: 19px; margin-top: 6px; }
.card p { color: var(--ink-2); font-size: 15px; margin-top: 10px; }
.card.check { position: relative; padding-left: 64px; }
.card.check::before { content: ""; position: absolute; left: 24px; top: 32px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L21 7.5l-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat; }
.card.check p { margin-top: 0; color: var(--ink); font-weight: 600; font-size: 16px; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.steps li { text-align: center; position: relative; padding: 0 8px; }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 20px; position: relative; z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: calc(50% + 28px); width: calc(100% - 56px); height: 2px; background: var(--line); }
.steps strong { display: block; font-size: 17px; }
.steps span { display: block; font-size: 14px; color: var(--ink-3); margin-top: 4px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li { padding: 10px 16px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 15px; color: var(--ink-2); }

.faq { border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--accent); font-weight: 800; margin-right: 14px; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 0 24px 30px; color: var(--ink-2); }

.profile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.profile { text-align: center; }
.profile .photo { aspect-ratio: 3 / 4; border-radius: var(--radius); background: var(--navy-100); display: grid; place-items: center; color: var(--ink-3); font-size: 14px; }
.profile h3 { font-size: 18px; margin-top: 16px; }
.profile .role { color: var(--accent); font-weight: 700; font-size: 14px; }
.profile p { color: var(--ink-3); font-size: 14px; margin-top: 8px; }

.history { border-left: 2px solid var(--line); padding-left: 32px; display: grid; gap: 28px; }
.history li { position: relative; }
.history li::before { content: ""; position: absolute; left: -40px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.history .y { font-weight: 800; color: var(--navy); font-size: 18px; }
.history p { color: var(--ink-2); margin-top: 4px; }

.info-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--navy); }
.info-table th, .info-table td { padding: 18px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info-table th { width: 160px; background: var(--navy-50); font-weight: 700; color: var(--navy); }

.map-box { aspect-ratio: 16 / 7; border-radius: var(--radius); overflow: hidden; background: var(--navy-50); }
.map-box iframe { width: 100%; height: 100%; border: 0; }

.mark-box { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: center; background: #fff; border-radius: 24px; padding: 48px; border: 1px solid var(--line); }
.mark-box .badge { aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--navy); display: grid; place-items: center; text-align: center; padding: 28px; }
.mark-box .badge img { width: 72px; margin: 0 auto 8px; }
.mark-box .badge strong { display: block; color: var(--navy); font-size: 16px; }
.mark-box .badge span { display: block; font-size: 11px; letter-spacing: .14em; color: var(--ink-3); font-weight: 700; }

/* ===== forms ===== */
.form-wrap { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 24px; padding: 48px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field > label, .field > .label { font-weight: 700; font-size: 15px; }
.req { color: #D64545; margin-left: 2px; }
.opt { color: var(--ink-3); font-weight: 500; font-size: 13px; margin-left: 4px; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select, .field textarea { width: 100%; height: 52px; padding: 0 16px; border: 1px solid #CDD5E1; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.field textarea { height: 140px; padding: 14px 16px; resize: vertical; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%237A8494' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") right 12px center / 22px no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,159,151,.15); }
.field .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { position: relative; }
.opts input { position: absolute; opacity: 0; }
.opts span { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border: 1px solid #CDD5E1; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.opts input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.opts input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.agree { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px; display: grid; gap: 14px; }
.agree-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.agree-row label { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.agree-row input { width: 20px; height: 20px; accent-color: var(--accent); }
.agree-row button { border: 0; background: none; color: var(--ink-3); text-decoration: underline; font-size: 14px; }
.agree-text { background: var(--navy-50); border-radius: 10px; padding: 16px 18px; font-size: 14px; color: var(--ink-2); }
.agree-text[hidden] { display: none; }
.form-submit { margin-top: 32px; }
.form-msg { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.form-msg.ok { background: var(--accent-50); color: var(--accent-600); }
.form-msg.err { background: #FDECEC; color: #B83232; }
.hp { position: absolute; left: -9999px; }

/* ===== media ===== */
.post-list { border-top: 2px solid var(--navy); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: flex; gap: 20px; padding: 22px 8px; align-items: center; }
.post-list .cat { flex: none; font-size: 13px; font-weight: 700; color: var(--accent); width: 80px; }
.post-list .t { flex: 1; font-weight: 600; }
.post-list .d { color: var(--ink-3); font-size: 14px; }
.col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.col-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.col-card .cover { aspect-ratio: 16/9; background: var(--navy-50); display: grid; place-items: center; }
.col-card .cover svg { width: 72px; height: 72px; }
.col-card .body { padding: 24px; }
.col-card .cat { font-size: 13px; font-weight: 700; color: var(--accent); }
.col-card h3 { font-size: 18px; margin-top: 8px; }
.col-card p { color: var(--ink-3); font-size: 14px; margin-top: 8px; }

.prose { max-width: 820px; margin: 0 auto; color: var(--ink-2); }
.prose h2 { font-size: 22px; color: var(--ink); margin: 40px 0 12px; }
.prose p, .prose ul { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 20px; }
.prose .draft { background: #FFF6E5; border: 1px solid #F5D89A; color: #7A5A12; border-radius: 10px; padding: 14px 16px; }

/* ===== reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ===== responsive ===== */
@media (max-width: 1100px) {
  .gnb > ul > li > a { padding: 0 10px; font-size: 15px; }
  .header-phone { display: none; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .cards-5 { grid-template-columns: repeat(3, 1fr); }
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .gnb, .header-actions { display: none; }
  .header-inner { gap: 8px; }
  .logo { flex: 1; }
  .logo img { height: 34px; }
  .m-call, .m-menu { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; }
  .m-call svg { width: 22px; height: 22px; fill: var(--accent); }
  .m-menu { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
  .m-menu span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }
  .m-menu[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .m-menu[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .m-menu[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 72px 0; }
  .split, .principle-detail, .doctor-band, .mark-box { grid-template-columns: 1fr; gap: 32px; }
  .doctor-band { padding: 40px 28px; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  .compare { grid-template-columns: 1fr; }
  .compare .flow-arrow { transform: rotate(90deg); }
  .hosp-grid, .video-grid, .cards-3, .col-grid, .timeline { grid-template-columns: 1fr 1fr; }
  .icon-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 20px; text-align: left; }
  .steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: left; align-items: center; }
  .steps li::before { margin: 0; grid-row: span 2; }
  .steps li:not(:last-child)::after { left: 27px; top: 56px; width: 2px; height: 20px; }
  .hero-art { opacity: .18; width: 90vw; right: -30vw; }
  .principle-detail .figure { max-width: 320px; }
  .mark-box .badge { max-width: 220px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .sec-head { margin-bottom: 32px; }
  .hero .btn-row { flex-direction: column; }
  .hero .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; margin-top: -40px; }
  .stat { padding: 20px; display: flex; align-items: baseline; justify-content: space-between; text-align: left; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat .lbl { margin: 0; order: -1; }
  .stat .num { font-size: 30px; }
  .principles, .hosp-grid, .video-grid, .cards-3, .cards-5, .col-grid, .timeline, .form-grid, .quick { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-wrap { padding: 28px 20px; border-radius: 16px; }
  .page-hero { padding: 56px 0 52px; }
  .page-hero .btn-row .btn { flex: 1; }
  .floating { right: 12px; bottom: 12px; }
  .floating a, .floating button { width: 52px; height: 52px; }
  .footer-links { flex-basis: 100%; order: 3; }
  .footer-info span { display: block; }
  .footer-info span + span::before { display: none; }
  .info-table th { width: 100px; }
  .mark-box { padding: 28px 20px; }
  .post-list a { flex-wrap: wrap; gap: 4px 12px; }
  .post-list .t { flex-basis: 100%; order: 3; }
  .principle-detail .code { font-size: 38px; }
  .btn-row .btn { flex: 1 1 auto; }
}

/* 병원 검색 필터 */
.filter-grid { grid-template-columns: 1fr 1fr 2fr; margin-bottom: 32px; }
@media (max-width: 640px) { .filter-grid { grid-template-columns: 1fr 1fr; } .filter-grid .field:last-child { grid-column: 1 / -1; } }

/* 세로 단계 */
.steps.steps-v { grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
.steps.steps-v li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: left; align-items: center; }
.steps.steps-v li::before { margin: 0; grid-row: span 2; }
.steps.steps-v li:not(:last-child)::after { left: 27px; top: 56px; width: 2px; height: 20px; }
.cards-3.cards-2 { grid-template-columns: 1fr 1fr; }
.steps.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps.steps-4 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cards-3.cards-2 { grid-template-columns: 1fr; } }
.col-card[hidden]{display:none}
@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero .container { padding-top: 72px; padding-bottom: 96px; }
}
@media (max-width: 640px) {
  .principle-detail .figure { max-width: 200px; padding: 20px; }
  .floating a, .floating button { width: 48px; height: 48px; font-size: 10px; }
  .floating svg { width: 20px; height: 20px; }
}

/* ===== 통사병원 찾기 (지도 + 목록) ===== */
.finder-head { padding: 56px 0 28px; }
.finder-head h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; color: var(--navy); }
.finder-head p { margin-top: 10px; color: var(--ink-2); }
.finder { padding-bottom: 72px; }
.finder-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.finder-map { position: sticky; top: calc(var(--header-h) + 16px); height: calc(100vh - var(--header-h) - 32px); min-height: 480px; max-height: 760px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.finder-map > div { width: 100%; height: 100%; }
.finder-panel { display: flex; flex-direction: column; height: calc(100vh - var(--header-h) - 32px); min-height: 480px; max-height: 760px; }
.finder-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.finder-filter select, .finder-filter input { height: 48px; padding: 0 14px; border: 1px solid #CDD5E1; border-radius: 8px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); min-width: 0; }
.finder-filter select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%237A8494' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") right 10px center / 20px no-repeat; padding-right: 34px; }
.finder-filter select:disabled { background-color: var(--navy-50); color: var(--ink-3); }
.finder-filter input:focus, .finder-filter select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,159,151,.15); }
.finder-filter .btn { height: 48px; border-radius: 8px; padding: 0 22px; }
.finder-count { margin: 20px 0 12px; font-weight: 700; color: var(--navy); font-size: 18px; }
.finder-list { flex: 1; overflow-y: auto; border-top: 2px solid var(--navy); overscroll-behavior: contain; }
.f-group { position: sticky; top: 0; z-index: 1; background: var(--navy-50); color: var(--navy); font-weight: 800; font-size: 14px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.f-item { display: flex; align-items: flex-start; gap: 12px; padding: 16px 14px; border-bottom: 1px solid var(--line); transition: background .15s; }
.f-item:hover { background: #FAFBFD; }
.f-item.on { background: var(--accent-50); box-shadow: inset 3px 0 0 var(--accent); }
.f-main { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.f-main strong { font-size: 17px; color: var(--navy); }
.f-doc { font-size: 14px; color: var(--ink-2); }
.f-addr { font-size: 14px; color: var(--ink-3); padding-left: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230B2A5C' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") left 2px / 14px no-repeat; }
.f-link { flex: none; align-self: center; font-size: 13px; font-weight: 700; color: #03A94D; border: 1px solid #03A94D; border-radius: 6px; padding: 6px 10px; white-space: nowrap; }
.f-link:hover { background: #03A94D; color: #fff; }
.f-empty { padding: 48px 16px; text-align: center; color: var(--ink-3); }
.f-pin span { display: block; width: 28px; height: 28px; margin-top: 2px; background: var(--navy); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.f-pin span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #6FD6CE; border-radius: 50%; }
.f-pop { display: flex; flex-direction: column; gap: 4px; font-family: var(--font); min-width: 200px; }
.f-pop strong { font-size: 15px; color: var(--navy); }
.f-pop span { font-size: 13px; color: var(--ink-2); }
.f-pop a { margin-top: 6px; font-weight: 700; color: #03A94D; }
.finder .marker-cluster-small, .finder .marker-cluster-medium, .finder .marker-cluster-large { background: rgba(14,159,151,.25); }
.finder .marker-cluster-small div, .finder .marker-cluster-medium div, .finder .marker-cluster-large div { background: var(--navy); color: #fff; font-weight: 700; font-family: var(--font); }
.finder .note { margin-top: 20px; }
@media (max-width: 900px) {
  .finder-head { padding: 36px 0 20px; }
  .finder-grid { grid-template-columns: 1fr; gap: 16px; }
  .finder-map { position: relative; top: 0; height: 340px; min-height: 0; }
  .finder-panel { height: auto; min-height: 0; max-height: none; }
  .finder-list { overflow: visible; }
  .f-group { top: var(--header-h); }
}
@media (max-width: 640px) {
  .finder-filter { grid-template-columns: 1fr 1fr; }
  .finder-filter input { grid-column: 1 / -1; }
  .finder-filter .btn { grid-column: 1 / -1; }
}
.f-btns { flex: none; display: flex; gap: 6px; align-self: center; }
.f-btn { display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #03A94D; border: 1px solid #03A94D; border-radius: 6px; padding: 6px 10px; white-space: nowrap; background: #fff; }
.f-btn:hover { background: #F0FBF4; }
.f-btn-main { background: #03C75A; border-color: #03C75A; color: #fff; }
.f-btn-main:hover { background: #02B350; color: #fff; }
.f-pop-btns { display: flex; gap: 6px; margin-top: 8px; }
.f-pop .f-btn { margin: 0; }
.f-pop .f-btn-main { color: #fff; }

/* 아카데미 과정 카드 */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.course { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; border-radius: var(--radius); padding: 40px 28px; text-align: center; position: relative; overflow: hidden; }
.course::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; background: url(/assets/img/symbol-white.png) center / contain no-repeat; opacity: .05; }
.course .ic { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.course .ic svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.course h3 { font-size: 21px; }
.course h3 span { font-weight: 600; color: #6FD6CE; }
.course p { margin-top: 12px; color: #C5D2E6; font-size: 15px; }
@media (max-width: 1100px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .course-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .f-item { flex-wrap: wrap; }
  .f-btns { width: 100%; }
  .f-btns .f-btn { flex: 1; padding: 10px; font-size: 14px; }
}
