:root{
  --blue:#1670E0;
  --blue-deep:#0B3C8C;
  --cyan:#3FC9DC;
  --ink:#18232E;
  --muted:#596878;
  --line:#DCE5F0;
  --soft:#EEF4FC;
  --bg:#FFFFFF;
  --todo:#FFF3C4;
  --todo-ink:#7A5A00;
  --radius:14px;
  --wrap:1120px;
  --header-h:72px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Noto Sans KR",-apple-system,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;font-size:16px;line-height:1.7;word-break:keep-all;overflow-wrap:break-word}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3{line-height:1.35;text-wrap:balance;margin:0}
p{margin:0}
.wrap{max-width:var(--wrap);margin:0 auto;padding-inline:20px}
.todo{background:var(--todo);color:var(--todo-ink);border-radius:4px;padding:0 6px;font-size:.92em;white-space:nowrap}

/* header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;align-items:center;gap:24px;height:var(--header-h)}
.logo{display:flex;align-items:center;gap:6px;text-decoration:none;font-weight:800;font-size:1.35rem;letter-spacing:-.02em;color:var(--ink);flex-shrink:0}
.logo svg{width:34px;height:34px}
.nav{display:flex;gap:4px;margin-left:auto}
.nav a{text-decoration:none;font-weight:500;padding:8px 14px;border-radius:999px;color:var(--ink)}
.nav a:hover,.nav a:focus-visible{background:var(--soft);color:var(--blue)}
.nav a[aria-current="page"]{color:var(--blue);font-weight:700}
.header-call{display:flex;align-items:center;gap:6px;text-decoration:none;background:var(--blue);color:#fff;font-weight:700;padding:9px 16px;border-radius:999px;font-variant-numeric:tabular-nums;flex-shrink:0}
.header-call:hover{background:var(--blue-deep)}
.menu-btn{display:none;margin-left:auto;background:none;border:0;padding:8px;cursor:pointer;color:var(--ink)}
.menu-btn svg{width:28px;height:28px}
a:focus-visible,button:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}

@media (max-width:860px){
  .menu-btn{display:block}
  .header-call{display:none}
  .nav{position:absolute;top:var(--header-h);left:0;right:0;flex-direction:column;background:#fff;border-bottom:1px solid var(--line);padding:8px 20px 16px;gap:0}
  .nav[hidden]{display:none!important}
  .nav a{padding:14px 4px;border-radius:0;border-bottom:1px solid var(--line)}
  .nav a:last-child{border-bottom:0}
}
@media (min-width:861px){.nav[hidden]{display:flex!important}}

/* page hero (sub pages) */
.page-hero{background:linear-gradient(135deg,var(--blue-deep),var(--blue));color:#fff;padding-block:56px 48px}
.page-hero .eyebrow{color:#BFE6FF}
.page-hero h1{font-size:clamp(1.8rem,4vw,2.4rem);font-weight:800;margin-top:6px}
.page-hero p{margin-top:10px;color:#DCEBFF;max-width:40em}
.subnav{border-bottom:1px solid var(--line);background:#fff;overflow-x:auto}
.subnav .wrap{display:flex;gap:4px;white-space:nowrap}
.subnav a{display:inline-block;padding:14px 14px;text-decoration:none;color:var(--muted);font-weight:500;border-bottom:2px solid transparent}
.subnav a:hover{color:var(--blue);border-bottom-color:var(--blue)}

/* sections */
.section{padding-block:72px}
.section.alt{background:var(--soft)}
.eyebrow{font-size:.8rem;font-weight:700;letter-spacing:.12em;color:var(--blue);text-transform:uppercase}
.section-head{margin-bottom:36px}
.section-head h2{font-size:clamp(1.5rem,3vw,2rem);font-weight:800;margin-top:6px}
.section-head p{color:var(--muted);margin-top:10px;max-width:42em}
.anchor{scroll-margin-top:calc(var(--header-h) + 16px)}

/* home hero */
.hero{position:relative;overflow:hidden;background:linear-gradient(160deg,#F4F9FF 0%,#E3EFFD 55%,#D2E6FB 100%)}
.hero .wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center;padding-block:72px 80px}
.hero .eyebrow{font-size:.9rem;letter-spacing:.06em;text-transform:none}
.hero h1{font-size:clamp(2rem,5vw,3.2rem);font-weight:800;letter-spacing:-.03em;margin-top:10px;color:var(--blue-deep)}
.hero h1 em{font-style:normal;color:var(--blue)}
.hero .lead{font-size:1.1rem;color:var(--muted);margin-top:16px;max-width:30em}
.badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
.badge{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:6px 14px;font-size:.9rem;font-weight:600;color:var(--blue-deep)}
.badge svg{width:16px;height:16px;color:var(--blue)}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;font-weight:700;padding:13px 22px;border-radius:999px;border:2px solid var(--blue);font-size:1rem}
.btn.primary{background:var(--blue);color:#fff}
.btn.primary:hover{background:var(--blue-deep);border-color:var(--blue-deep)}
.btn.ghost{background:#fff;color:var(--blue)}
.btn.ghost:hover{background:var(--soft)}
.hero-art{position:relative;justify-self:center;width:min(100%,420px);aspect-ratio:1}
.hero-art svg{width:100%;height:100%}
@media (max-width:860px){
  .hero .wrap{grid-template-columns:1fr;padding-block:48px 56px}
  .hero-art{width:min(70%,280px);order:-1}
}

/* quick info */
.quick{margin-top:-40px;position:relative;z-index:2}
.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.quick-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:0 10px 30px rgba(11,60,140,.08);display:flex;flex-direction:column;gap:8px}
.quick-card h3{font-size:1.05rem;font-weight:700;display:flex;align-items:center;gap:8px}
.quick-card h3 svg{width:22px;height:22px;color:var(--blue)}
.quick-card .big{font-size:1.5rem;font-weight:800;color:var(--blue-deep);font-variant-numeric:tabular-nums;text-decoration:none}
.quick-card .more{margin-top:auto;color:var(--blue);font-weight:600;text-decoration:none;font-size:.95rem}
@media (max-width:860px){.quick-grid{grid-template-columns:1fr}.quick{margin-top:-28px}}

/* hours table */
.hours{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.hours th,.hours td{padding:8px 0;border-bottom:1px solid var(--line);text-align:left;font-size:.95rem}
.hours th{font-weight:600;width:5.5em;color:var(--muted)}
.hours tr:last-child th,.hours tr:last-child td{border-bottom:0}
.hours .closed{color:#C0392B;font-weight:600}

/* services */
.svc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.svc{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;text-decoration:none;transition:border-color .15s,transform .15s}
.svc:hover{border-color:var(--blue);transform:translateY(-2px)}
@media (prefers-reduced-motion:reduce){.svc{transition:none}.svc:hover{transform:none}}
.svc .ico{width:48px;height:48px;border-radius:12px;background:var(--soft);display:grid;place-items:center;color:var(--blue)}
.svc .ico svg{width:26px;height:26px}
.svc h3{font-size:1.1rem;font-weight:700}
.svc p{color:var(--muted);font-size:.95rem}
@media (max-width:860px){.svc-grid{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.svc-grid{grid-template-columns:1fr}}

/* split */
.split{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
@media (max-width:860px){.split{grid-template-columns:1fr;gap:28px}}
.checklist{list-style:none;padding:0;margin:20px 0 0;display:grid;gap:10px}
.checklist li{display:flex;gap:10px;align-items:flex-start}
.checklist li::before{content:"";flex-shrink:0;width:20px;height:20px;margin-top:4px;border-radius:50%;background:var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat}
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px}
.panel h3{font-size:1.15rem;font-weight:700;margin-bottom:12px}

/* about */
.greeting{max-width:46em}
.greeting p+p{margin-top:14px}
.greeting .sign{margin-top:24px;font-weight:700}
.banner-figure{margin:0 auto;max-width:640px}
.banner-figure img{border-radius:var(--radius);box-shadow:0 16px 40px rgba(11,60,140,.15);width:100%}
.doctors{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.doctor{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;display:flex;flex-direction:column;gap:14px}
.doctor .role{color:var(--blue);font-weight:700;font-size:.9rem}
.doctor h3{font-size:1.35rem;font-weight:800}
.doctor ul{margin:0;padding-left:1.1em;color:var(--muted)}
.doctor li{margin-bottom:4px}
@media (max-width:760px){.doctors{grid-template-columns:1fr}}
.tour{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.tour .ph{aspect-ratio:4/3;border-radius:12px;background:repeating-linear-gradient(45deg,#E6EEF8 0 12px,#EEF4FC 12px 24px);display:grid;place-items:center;color:var(--muted);font-size:.9rem;text-align:center;padding:8px}
@media (max-width:760px){.tour{grid-template-columns:1fr 1fr}}

/* detail blocks */
.detail{display:grid;grid-template-columns:260px 1fr;gap:32px;padding-block:40px;border-top:1px solid var(--line)}
.detail:first-child{border-top:0;padding-top:0}
.detail h2{font-size:1.4rem;font-weight:800}
.detail .tag{color:var(--blue);font-weight:700;font-size:.85rem;margin-bottom:6px;display:block}
.detail p{color:var(--ink)}
.detail p+p,.detail p+ul,.detail ul+p{margin-top:12px}
.detail ul{margin:12px 0 0;padding-left:1.2em;color:var(--muted)}
@media (max-width:760px){.detail{grid-template-columns:1fr;gap:12px}}

.notice{background:var(--soft);border-radius:var(--radius);padding:20px 24px;color:var(--muted);font-size:.95rem}
.notice strong{color:var(--ink)}

.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius)}
.table{border-collapse:collapse;width:100%;min-width:480px;font-variant-numeric:tabular-nums}
.table th,.table td{padding:12px 16px;border-bottom:1px solid var(--line);text-align:left}
.table thead th{background:var(--soft);font-size:.9rem;color:var(--muted);font-weight:600}
.table tr:last-child td{border-bottom:0}

.map-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}

/* footer */
.site-footer{background:#0E1E33;color:#AFC0D4;padding-block:48px 120px;font-size:.92rem}
.site-footer .wrap{display:grid;gap:16px}
.site-footer .logo{color:#fff}
.site-footer dl{display:grid;grid-template-columns:auto 1fr;gap:4px 16px;margin:0}
.site-footer dt{color:#7F93AB}
.site-footer dd{margin:0}
.site-footer .legal{border-top:1px solid #23395A;padding-top:16px;color:#7F93AB;font-size:.85rem}
@media (min-width:861px){.site-footer{padding-bottom:48px}}

/* mobile quick bar */
.mbar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:none;grid-template-columns:repeat(3,1fr);background:#fff;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0px);box-shadow:0 -6px 20px rgba(0,0,0,.06)}
.mbar a{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 4px;text-decoration:none;font-size:.8rem;font-weight:600;color:var(--ink)}
.mbar a svg{width:22px;height:22px;color:var(--blue)}
.mbar a.call{background:var(--blue);color:#fff}
.mbar a.call svg{color:#fff}
@media (max-width:860px){.mbar{display:grid}}
.btn svg,.header-call svg{width:18px;height:18px;flex-shrink:0}

/* notices */
.notice-list{list-style:none;margin:0;padding:0;border-top:2px solid var(--ink)}
.notice-list li{border-bottom:1px solid var(--line)}
.notice-list a{display:grid;grid-template-columns:1fr auto;gap:4px 16px;padding:20px 4px;text-decoration:none}
.notice-list a:hover .n-title{color:var(--blue)}
.notice-list .n-title{font-weight:700;font-size:1.08rem}
.notice-list .n-sum{grid-column:1;color:var(--muted);font-size:.95rem}
.notice-list time{grid-column:2;grid-row:1;color:var(--muted);font-size:.9rem;font-variant-numeric:tabular-nums}
.notice-list.compact a{padding:14px 4px}
.notice-list.compact .n-title{font-weight:500;font-size:1rem}
.post{max-width:720px}
.post p{margin-top:14px}
.post p:first-child{margin-top:0}
.post h2{font-size:1.2rem;font-weight:800;margin-top:36px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.post ul{margin:12px 0 0;padding-left:1.2em;color:var(--muted)}
.post li{margin-bottom:4px}
.post a:not(.btn){color:var(--blue)}
.post-figure{margin:28px 0 0}
.post-figure img{border-radius:var(--radius);border:1px solid var(--line);max-width:520px;width:100%}
.post-back{margin-top:40px!important}
.page-hero time{font-variant-numeric:tabular-nums}

/* ── v3 additions ── */
.hours td strong{font-weight:700;color:var(--ink)}
.hours td.closed strong{color:#C0392B}
.hours .h-note{display:block;color:var(--muted);font-size:.85rem}
.hero-photo{margin:0;justify-self:center;width:min(100%,440px);position:relative}
.hero-photo img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:28px;box-shadow:0 24px 50px rgba(11,60,140,.18);border:6px solid #fff}
@media (max-width:860px){.hero-photo{order:-1;width:min(100%,360px)}}
.section-head.row{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.link-more{color:var(--blue);font-weight:600;text-decoration:none}
.framed{margin:0;justify-self:center;width:min(100%,460px)}
.framed img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--radius);box-shadow:0 16px 40px rgba(11,60,140,.12)}

.doc-teasers{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.doc-teaser{display:flex;align-items:center;gap:20px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px;text-decoration:none;transition:border-color .15s}
.doc-teaser:hover{border-color:var(--blue)}
.doc-teaser img{width:120px;height:120px;object-fit:cover;border-radius:12px;background:#F3F5F8;flex-shrink:0}
.doc-teaser span{display:flex;flex-direction:column;gap:2px}
.doc-teaser .role{color:var(--blue);font-weight:700;font-size:.85rem}
.doc-teaser strong{font-size:1.25rem;font-weight:800}
.doc-teaser .spec{color:var(--muted);font-size:.95rem}
@media (max-width:760px){.doc-teasers{grid-template-columns:1fr}.doc-teaser img{width:96px;height:96px}}

.doctors{grid-template-columns:1fr}
.doctor{flex-direction:row;gap:32px;align-items:flex-start}
.doctor .doc-photo{width:220px;height:220px;object-fit:cover;border-radius:12px;background:#F3F5F8;flex-shrink:0}
.doctor .doc-body{display:flex;flex-direction:column;gap:6px;min-width:0}
.doctor h3 small{font-size:1rem;font-weight:600;color:var(--muted)}
.doctor .spec{color:var(--muted);font-weight:500}
.doctor h4{margin:18px 0 6px;font-size:.95rem;font-weight:700;color:var(--ink)}
@media (min-width:980px){.doctor ul{columns:2;column-gap:32px}.doctor li{break-inside:avoid}}
@media (max-width:760px){.doctor{flex-direction:column;gap:16px}.doctor .doc-photo{width:160px;height:160px}}

.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.gallery figure{margin:0}
.gallery img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;background:var(--soft)}
.gallery figcaption{margin-top:8px;font-weight:600;font-size:.95rem}
@media (max-width:860px){.gallery{grid-template-columns:repeat(2,1fr)}}

.detail .ico{width:44px;height:44px;border-radius:12px;background:var(--soft);display:grid;place-items:center;color:var(--blue);margin-bottom:10px}
.detail .ico svg{width:24px;height:24px}

.info-list{list-style:none;padding:0;margin:0;display:grid;gap:14px}
.info-list li{display:flex;gap:12px;align-items:flex-start}
.info-list svg{width:22px;height:22px;color:var(--blue);flex-shrink:0;margin-top:3px}
.info-list strong{display:block;font-size:.85rem;color:var(--muted);font-weight:600}

.fees{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
.fee-title{font-size:1.1rem;font-weight:700;margin-bottom:10px}
.fees .table{min-width:0}
.fees .table td,.fees .table th{padding:10px 14px;font-size:.93rem}
.table .num{text-align:right;white-space:nowrap}
@media (max-width:860px){.fees{grid-template-columns:1fr}}

.notice-list a{grid-template-columns:auto 1fr;align-items:center}
.notice-list .n-thumb{width:72px;height:72px;object-fit:cover;object-position:top;border-radius:8px;border:1px solid var(--line);grid-row:1}
.n-thumb-logo{display:grid;place-items:center;background:var(--soft)}
.n-thumb-logo svg{width:36px;height:36px}
.notice-list .n-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.notice-list .n-text time{grid-column:auto;grid-row:auto;margin-top:4px}
.notice-list.compact a{grid-template-columns:1fr auto}
.notice-list.compact time{grid-column:2;grid-row:1}
@media (min-width:861px){.svc-grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1100px){.svc-grid{grid-template-columns:repeat(5,1fr)}.svc{padding:22px 20px}}
.logo img{height:46px;width:auto;display:block}
.site-footer .logo img{height:36px}
@media (max-width:520px){.logo img{height:34px}}
.video{position:relative;aspect-ratio:16/9;max-width:880px;border-radius:var(--radius);overflow:hidden;background:#0E1E33;box-shadow:0 16px 40px rgba(11,60,140,.12)}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.video-src{margin-top:10px;color:var(--muted);font-size:.9rem}
.video-src a{color:var(--blue)}
.framed img{aspect-ratio:3/2}
.sub-blocks{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}
.sub-block{background:var(--soft);border-radius:var(--radius);padding:20px 22px}
.sub-block .tag{color:var(--blue);font-weight:700;font-size:.85rem}
.sub-block h3{font-size:1.1rem;font-weight:800;margin:4px 0 10px}
.sub-block p{font-size:.95rem}
.sub-block p+p{margin-top:8px}
@media (max-width:760px){.sub-blocks{grid-template-columns:1fr}}
/* gallery v2: 4:3 photos, reception spans two columns */
.gallery{gap:20px}
.gallery figure{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 6px 18px rgba(11,60,140,.06);display:flex;flex-direction:column}
.gallery img{aspect-ratio:4/3;border-radius:0;flex:1;min-height:0}
.gallery figure:first-child{grid-column:span 2}
.gallery figure:first-child img{aspect-ratio:auto;height:100%}
.gallery figcaption{margin:0;padding:12px 16px;font-size:.95rem;font-weight:600;border-top:1px solid var(--line)}
.gallery img{flex:none}
.gallery figure:first-child img{flex:1;height:0;min-height:0}
@media (max-width:860px){.gallery figure:first-child img{flex:none;height:auto;aspect-ratio:16/10}}
@media (min-width:861px){
  .gallery figure:first-child{display:grid;grid-template-rows:1fr auto}
  .gallery figure:first-child img{height:100%;contain:size;flex:none}
}

/* 언어 전환 (한국어 / EN) */
.site-header .nav{order:1}
.lang{order:2;display:flex;align-items:center;flex-shrink:0;border:1px solid var(--line);border-radius:999px;overflow:hidden;font-size:13px;font-weight:600}
.lang a{padding:6px 11px;text-decoration:none;color:var(--muted);line-height:1.2}
.lang a[aria-current="page"]{background:var(--soft);color:var(--blue)}
.lang a:hover{color:var(--blue)}
.header-call{order:3}
@media (max-width:860px){.lang{margin-left:auto}.menu-btn{order:4;margin-left:2px}}
.doc-body li a{color:var(--blue);word-break:break-word}
.doc-body .muted,.post-body .muted,li .muted{color:var(--muted)}
@media (min-width:980px){.doctor ul:has(a){columns:1}}
@media (min-width:980px){.doctor h4:nth-of-type(n+3)+ul{columns:1}}
.faq-list{display:flex;flex-direction:column;gap:10px;max-width:880px}
.faq-item{background:#fff;border:1px solid var(--line);border-radius:12px;padding:0 18px}
.faq-item summary{cursor:pointer;list-style:none;padding:16px 28px 16px 0;font-weight:700;position:relative;line-height:1.5}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";position:absolute;right:0;top:14px;font-size:1.3rem;color:var(--blue);font-weight:600}
.faq-item[open] summary::after{content:"−"}
.faq-item p{margin:0 0 16px;color:var(--muted);line-height:1.7}
.popup{position:fixed;inset:0;z-index:100;background:rgba(10,25,45,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.popup[hidden]{display:none}
.popup-box{background:#fff;border-radius:14px;overflow:hidden;width:min(440px,100%);max-height:calc(100vh - 32px);display:flex;flex-direction:column;box-shadow:0 20px 50px rgba(0,0,0,.3)}
.popup-box img{display:block;width:100%;height:auto;min-height:0;object-fit:contain}
.popup-actions{display:flex;border-top:1px solid var(--line);font-size:13.5px;white-space:nowrap}
.popup-actions>*{flex:1;padding:13px 8px;background:#fff;border:0;color:var(--muted);font:inherit;cursor:pointer;text-align:center;text-decoration:none}
.popup-actions>*+*{border-left:1px solid var(--line)}
.popup-actions .popup-more{color:var(--blue);font-weight:700}
.site-footer dd a{color:#DCE6F2;text-decoration:underline;text-underline-offset:3px}
