:root {
  --blue: #1a4f9c;
  --blue-dark: #12387a;
  --blue-light: #eaf1fb;
  --accent: #2f9e6e;
  --ink: #1b2330;
  --gray: #5b6573;
  --line: #e6e9ef;
  --bg-alt: #f6f8fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(26, 79, 156, 0.08);
  --max: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue-light); }
.btn-block { width: 100%; margin-top: 22px; }
.btn-call {
  background: var(--blue-light);
  color: var(--blue);
  padding: 10px 18px;
  font-size: 14px;
}
.btn-call:hover { background: #dde8f8; transform: none; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.logo-img {
  width: 42px; height: 42px;
  object-fit: contain; border-radius: 8px;
}
.logo-text { font-weight: 500; color: var(--ink); }
.logo-text strong { color: var(--blue); font-weight: 900; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  font-weight: 500; color: var(--gray); font-size: 16px;
  position: relative; padding: 4px 0;
}
.nav a:hover { color: var(--blue); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--blue); transition: width .2s;
}
.nav a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--ink); }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, #dbe7fb 0%, transparent 60%),
    linear-gradient(180deg, #f3f7fd 0%, #ffffff 100%);
  padding: 80px 0 90px;
}
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }
.hero-eyebrow {
  display: inline-block;
  color: var(--blue); font-weight: 700; font-size: 15px;
  background: var(--blue-light); padding: 7px 16px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { font-size: 46px; line-height: 1.3; font-weight: 900; letter-spacing: -1px; }
.hero-sub { margin-top: 22px; font-size: 18px; color: var(--gray); max-width: 520px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 14px; margin-top: 34px; }
.badge-card {
  flex: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
}
.badge-ico {
  flex: 0 0 44px; width: 44px; height: 44px;
  display: grid; place-items: center; font-size: 22px;
  background: var(--blue-light); border-radius: 12px;
}
.badge-ico-img { background: #fff; padding: 5px; }
.badge-ico-img img { width: 100%; height: 100%; object-fit: contain; }
.badge-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.badge-num { font-size: 19px; font-weight: 900; color: var(--blue); }
.badge-label { color: var(--gray); font-weight: 500; font-size: 13px; }

/* ===== Hero carousel ===== */
.hero-carousel {
  position: relative; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: #dbe4f2;
}
.carousel-track { display: flex; height: 100%; transition: transform .7s cubic-bezier(.4,0,.2,1); }
.carousel-track img { min-width: 100%; width: 100%; height: 100%; object-fit: cover; }
.carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 24px 18px; color: #fff; font-weight: 700; font-size: 17px;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}
.carousel-dots {
  position: absolute; bottom: 16px; right: 18px; display: flex; gap: 8px; z-index: 2;
}
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.55); padding: 0; transition: width .2s, background .2s;
}
.carousel-dots button.active { background: #fff; width: 22px; border-radius: 5px; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 2px; font-size: 13px; margin-bottom: 10px; }
.section-head h2 { font-size: 34px; font-weight: 900; letter-spacing: -.5px; }
.lead { margin-top: 18px; color: var(--gray); font-size: 17px; }
.sub-head { text-align: center; font-size: 22px; font-weight: 700; margin: 54px 0 30px; }

/* ===== About features ===== */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 920px; margin: 0 auto; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; text-align: center; transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-ico { font-size: 38px; margin-bottom: 16px; }
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { color: var(--gray); font-size: 15px; }

/* ===== Services ===== */
.eswt-box {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff; border-radius: 20px; padding: 44px;
  box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: center;
}
.eswt-evidence {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 16px; padding: 26px 28px;
}
.evi-badge {
  display: inline-block; background: #fff; color: var(--blue);
  font-weight: 800; font-size: 14px; padding: 7px 16px; border-radius: 999px;
  margin-bottom: 16px;
}
.eswt-evidence > p { color: #eaf1fb; font-size: 15px; margin-bottom: 18px; }
.eswt-evidence strong { color: #fff; }
.evi-cite {
  border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 16px;
  color: #cfdcf3; font-size: 14px;
}
.evi-cite strong { color: #fff; font-size: 18px; letter-spacing: .5px; }
.evi-cite span { display: block; margin-top: 4px; line-height: 1.5; }
.eswt-info .tag {
  display: inline-block; background: rgba(255,255,255,.18);
  padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: 13px;
  letter-spacing: 1px; margin-bottom: 16px;
}
.eswt-info h3 { font-size: 28px; margin-bottom: 16px; }
.eswt-info p { color: #dce7f8; font-size: 16px; max-width: 820px; }

/* ===== ESWT differentiation ===== */
.eswt-diff { display: grid; gap: 26px; }
.diff-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.diff-point {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; text-align: center; border-top: 4px solid var(--accent);
  transition: transform .2s, box-shadow .2s;
}
.diff-point:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.diff-ico { font-size: 34px; display: block; margin-bottom: 12px; }
.diff-point h4 { font-size: 18px; margin-bottom: 8px; color: var(--blue); }
.diff-point p { color: var(--gray); font-size: 15px; }
.diff-point strong { color: var(--ink); }

.diff-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.diff-table th, .diff-table td {
  padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.diff-table thead th { background: #eef2f8; color: var(--ink); font-size: 15px; }
.diff-table tbody th { background: #fafbfd; color: var(--gray); font-weight: 700; text-align: left; }
.diff-table td { color: var(--gray); }
.diff-table .hl { background: var(--blue); color: #fff; font-weight: 700; }
.diff-table thead .hl { background: var(--blue); color: #fff; }
.diff-table tbody tr:last-child th,
.diff-table tbody tr:last-child td { border-bottom: 0; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .2s, box-shadow .2s; border-top: 4px solid var(--blue);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-ico { font-size: 34px; margin-bottom: 14px; }
.service-card h4 { font-size: 19px; margin-bottom: 10px; }
.service-card p { color: var(--gray); font-size: 15px; }
.service-card .en { font-size: 13px; color: #9aa3b1; font-style: italic; }

/* ===== Clinic cards ===== */
.clinic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.clinic-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px; transition: transform .2s, box-shadow .2s;
}
.clinic-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.clinic-card h4 {
  font-size: 21px; color: var(--blue); text-align: center;
  padding-bottom: 16px; margin-bottom: 18px; border-bottom: 2px solid var(--blue-light);
}
.clinic-card ul { list-style: none; display: grid; gap: 11px; }
.clinic-card li {
  position: relative; padding-left: 22px; color: var(--ink); font-weight: 500;
}
.clinic-card li::before {
  content: "+"; position: absolute; left: 4px; top: 0;
  color: var(--accent); font-weight: 900;
}
/* ===== Injection cards ===== */
.inject-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.inject-card {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: var(--radius); padding: 32px 34px;
  box-shadow: var(--shadow); transition: transform .2s;
}
.inject-card:hover { transform: translateY(-5px); }
.inject-card .tag {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 5px 14px; border-radius: 999px; font-weight: 700; font-size: 12px;
  letter-spacing: 1px; margin-bottom: 14px;
}
.inject-card h4 { font-size: 22px; margin-bottom: 12px; color: var(--ink); }
.inject-card h4 small { font-size: 15px; color: var(--gray); font-weight: 500; }
.inject-card > p { color: var(--gray); font-size: 15px; margin-bottom: 18px; }
.inject-card ul { list-style: none; display: grid; gap: 9px; }
.inject-card li { position: relative; padding-left: 20px; font-weight: 500; }
.inject-card li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 900;
}

.equip-note {
  margin-top: 34px; text-align: center; color: var(--gray);
  background: #fff; border: 1px dashed var(--line); border-radius: 999px;
  padding: 14px 24px; display: inline-block; width: 100%;
}
.equip-note strong { color: var(--blue); }

/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery-item {
  position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.gallery-item:hover { transform: translateY(-5px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 20px 16px; color: #fff; font-weight: 700; font-size: 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65));
}

/* ===== Doctor ===== */
.doctor { display: grid; grid-template-columns: 360px 1fr; gap: 50px; align-items: start; }
.doctor-photo { position: sticky; top: 100px; }
.doctor-photo img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  object-position: 8% center; border-radius: 18px;
  box-shadow: var(--shadow); background: #2a3550;
}
.doctor-info .doctor-role { color: var(--blue); font-weight: 700; font-size: 15px; }
.doctor-info h3 { font-size: 36px; font-weight: 900; margin: 4px 0 26px; }
.doctor-info h3 span { font-size: 22px; font-weight: 700; color: var(--gray); }
.doctor-info h4 {
  font-size: 18px; color: var(--blue); margin: 28px 0 14px;
  padding-bottom: 8px; border-bottom: 2px solid var(--blue-light);
}
.cv { list-style: none; display: grid; gap: 9px; }
.cv li { position: relative; padding-left: 20px; color: var(--ink); }
.cv li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ===== 비급여 안내 배너 ===== */
.nonben-banner {
  width: 100%; margin-top: 30px; cursor: pointer;
  display: flex; align-items: center; gap: 20px; text-align: left;
  background: linear-gradient(135deg, var(--accent) 0%, #1f8a5d 100%);
  color: #fff; border: 0; border-radius: 16px; padding: 24px 30px;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.nonben-banner:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(47,158,110,.35); }
.nonben-ico { font-size: 34px; flex: 0 0 auto; }
.nonben-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.nonben-text strong { font-size: 20px; }
.nonben-text span { color: #e6f5ee; font-size: 14px; margin-top: 4px; }
.nonben-cta {
  flex: 0 0 auto; white-space: nowrap; font-weight: 800; font-size: 15px;
  background: rgba(255,255,255,.2); padding: 11px 20px; border-radius: 999px;
}

/* ===== 비급여 모달 ===== */
.price-modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.price-modal.open { display: block; }
.price-modal-backdrop { position: absolute; inset: 0; background: rgba(15,25,45,.55); backdrop-filter: blur(2px); }
.price-modal-card {
  position: relative; max-width: 680px; margin: 5vh auto; max-height: 90vh;
  background: #fff; border-radius: 18px; display: flex; flex-direction: column;
  box-shadow: 0 24px 70px rgba(0,0,0,.35); overflow: hidden;
  animation: priceIn .25s ease;
}
@keyframes priceIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.price-modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 28px; border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.price-modal-head h3 { font-size: 21px; color: var(--blue); font-weight: 900; }
.price-close {
  background: var(--bg-alt); border: 0; width: 38px; height: 38px; border-radius: 10px;
  font-size: 16px; cursor: pointer; color: var(--gray);
}
.price-close:hover { background: #e6ebf3; }
.price-modal-body { padding: 24px 28px; overflow-y: auto; }
.price-cat { margin-bottom: 26px; }
.price-cat h4 {
  font-size: 16px; color: var(--blue); margin-bottom: 8px;
  padding-left: 12px; border-left: 4px solid var(--accent);
}
.price-cat table { width: 100%; border-collapse: collapse; }
.price-cat td { padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
.price-cat td:first-child { color: var(--gray); }
.price-cat td:last-child { text-align: right; font-weight: 700; color: var(--ink); white-space: nowrap; padding-left: 16px; }
.price-note {
  font-size: 13px; color: var(--gray); background: var(--bg-alt);
  padding: 14px 16px; border-radius: 10px; line-height: 1.6;
}

/* ===== Publications ===== */
.publications { margin-top: 50px; }
.pub-title {
  font-size: 22px; color: var(--blue); font-weight: 900;
  padding-bottom: 12px; border-bottom: 2px solid var(--blue-light);
}
.pub-sub { color: var(--gray); font-size: 15px; margin: 12px 0 8px; }
.pub-list { list-style: none; counter-reset: pub; }
.pub-list li {
  position: relative; padding: 20px 0 20px 46px;
  border-bottom: 1px solid var(--line);
}
.pub-list li::before {
  counter-increment: pub; content: counter(pub);
  position: absolute; left: 0; top: 20px;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--blue-light); color: var(--blue);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.pub-name { font-weight: 700; color: var(--ink); line-height: 1.55; }
.pub-name small { color: var(--gray); font-weight: 500; font-size: 13px; }
.pub-meta { color: var(--gray); font-size: 14px; margin-top: 6px; }
.pub-meta strong { color: var(--blue); }
.pub-meta em { font-style: italic; }
.pub-link {
  display: inline-block; margin-top: 9px; font-size: 13px;
  font-weight: 700; color: var(--accent);
}
.pub-link:hover { text-decoration: underline; }

/* ===== Location ===== */
.location-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: stretch; }
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; border: 1px solid var(--line); background: #eef2f8; }
#naverMap { width: 100%; height: 100%; min-height: 420px; }
.map-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center;
  padding: 30px;
  background:
    repeating-linear-gradient(45deg, #f3f6fb 0 14px, #eef2f8 14px 28px);
}
.map-fallback p { font-size: 20px; font-weight: 900; color: var(--blue); }
.map-fallback span { color: var(--gray); max-width: 320px; }
.map-fallback .btn { margin-top: 8px; }
.info-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.info-list { list-style: none; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 14px; }
.info-ico { font-size: 22px; }
.info-list strong { display: block; color: var(--blue); margin-bottom: 3px; }
.info-list p { color: var(--gray); }
.info-list a { color: var(--blue); font-weight: 700; }

.hours { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.hours > strong { display: block; color: var(--blue); margin-bottom: 14px; }
.hours table { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours th { color: var(--gray); font-weight: 500; }
.hours td { text-align: right; font-weight: 700; }
.hours tr.hl th, .hours tr.hl td { color: var(--blue); }

/* ===== Footer ===== */
.site-footer { background: #182336; color: #c3ccda; padding: 50px 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 34px; }
.footer-name { font-size: 20px; font-weight: 900; color: #fff; }
.footer-meta { font-size: 14px; color: #8693a8; margin-top: 6px; }
.footer-contact p { font-size: 15px; }
.copyright {
  border-top: 1px solid #2a3650; text-align: center; padding: 20px 0;
  font-size: 13px; color: #6c7993;
}

/* ===== Float call ===== */
.float-call {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: none; place-items: center; font-size: 24px;
  box-shadow: 0 8px 24px rgba(47, 158, 110, .45);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 8px 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 24px; }
  .nav-toggle { display: block; }
  .btn-call { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .doctor { grid-template-columns: 1fr; }
  .doctor-photo { position: static; max-width: 320px; }
  .location-grid { grid-template-columns: 1fr; }
  .eswt-box { grid-template-columns: 1fr; gap: 26px; }
  .float-call { display: grid; }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .feature-grid, .service-grid, .clinic-grid, .inject-grid, .diff-points { grid-template-columns: 1fr; }
  .diff-table th, .diff-table td { padding: 12px 10px; font-size: 13px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .eswt-box { padding: 28px; }
  .section-head h2 { font-size: 27px; }
  .hero-badges { flex-direction: column; }
  .eswt-box { grid-template-columns: 1fr; gap: 24px; }
  .nonben-banner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .nonben-cta { align-self: stretch; text-align: center; }
}
