:root {
  --primary: #328af6;
  --primary-tint: #edf5ff;
  --consult: #469f68;
  --accent-purple: #5d3dd5;
  --accent-yellow: #ffd750;
  --accent-pink: #c7317b;
  --ink: #1a2128;
  --body: #4c5967;
  --muted: #677583;
  --faint: #cfd3d8;
  --hairline: #e2e5e9;
  --canvas: #ffffff;
  --surface: #f1f5f9;
  --surface-alt: #f9f9f9;
  --dark: #2c2c38;
  --on-primary: #ffffff;
  --r-btn: 0;
  --r-card: 0;
  --r-tint: 0;
  --r-chip: 0;
  --r-pill: 0;
  --shadow-card: none;
  --shadow-soft: none;
  --font: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-num: Manrope, Pretendard, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 700; }
p { margin: 0; }

.num, time, .tel, table, .hours td, .hours th {
  font-family: var(--font-num), var(--font);
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.site-header .bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  flex: none;
}

.logo img {
  height: 36px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a,
.site-nav .drop-btn {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav .drop-btn:hover { background: var(--surface); }

.site-nav a.is-on,
.site-nav .drop-btn.is-on { color: var(--primary); font-weight: 700; }

.nav-drop { position: relative; }

.nav-drop .drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 168px;
  padding: 8px;
  background: var(--canvas);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  z-index: 20;
}

.nav-drop:hover .drop-menu,
.nav-drop:focus-within .drop-menu { display: block; }

.drop-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-chip);
  white-space: nowrap;
}

.header-cta { margin-left: 8px; flex: none; }

.btn-menu {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  position: relative;
}

.btn-menu span,
.btn-menu span::before,
.btn-menu span::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 0;
  position: absolute;
  left: 12px;
}

.btn-menu span { top: 19px; }
.btn-menu span::before { content: ""; top: -6px; }
.btn-menu span::after { content: ""; top: 6px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  border: 0;
  cursor: pointer;
  transition: background 120ms var(--ease), color 120ms var(--ease);
  white-space: nowrap;
}

.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: #1f78e6; }
.btn-consult { background: var(--consult); color: var(--on-primary); }
.btn-consult:hover { background: #3a8b58; }
.btn-neutral { background: var(--surface); color: var(--ink); }
.btn-neutral:hover { background: #e4eaf1; }
.btn-outline {
  background: var(--canvas);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.btn-outline:hover { background: var(--surface-alt); }

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 4px 8px;
  border-radius: var(--r-chip);
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.chip-mute {
  background: var(--surface);
  color: var(--muted);
}

/* Sections */
.sec { padding: 64px 0; }
.sec-surface { background: var(--surface); }
.sec-alt { background: var(--surface-alt); }

.sec-head { margin-bottom: 32px; max-width: 720px; }
.sec-head h2 {
  font-size: 40px;
  line-height: 1.4;
  letter-spacing: -0.4px;
}
.sec-head p { margin-top: 12px; color: var(--body); }

.page-head { padding: 48px 0 32px; }
.page-head .crumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.page-head .crumb a:hover { color: var(--ink); }
.page-head h1 {
  font-size: 40px;
  line-height: 1.35;
  letter-spacing: -0.4px;
}
.page-head p { margin-top: 12px; max-width: 640px; }
.page-head .meta { font-size: 12px; color: var(--muted); }

/* Hero */
.hero { padding: 48px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-size: 48px;
  line-height: 1.3;
  letter-spacing: -0.6px;
}
.hero-copy .lead {
  margin-top: 16px;
  font-size: 16px;
  color: var(--body);
  max-width: 460px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
}
.hero-meta strong { color: var(--ink); font-weight: 700; display: block; font-size: 14px; font-family: var(--font-num), var(--font); }
.hero-photo {
  border-radius: var(--r-tint);
  overflow: hidden;
  background: var(--surface);
  min-height: 360px;
}
.hero-photo img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* Widgets */
.widget-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}
.tint {
  background: var(--surface);
  border-radius: var(--r-tint);
  padding: 24px;
}
.tint-white {
  background: var(--canvas);
  border-radius: var(--r-tint);
  padding: 24px;
}
.tint h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tint h3 a {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.tint h3 a:hover { color: var(--primary); }

.board { list-style: none; margin: 0; padding: 0; }
.board li + li { border-top: 1px solid var(--hairline); }
.board a {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  font-size: 16px;
  color: var(--ink);
}
.board a:hover { color: var(--primary); }
.board time {
  flex: none;
  width: 88px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 3px;
}

.tel-xl {
  font-family: var(--font-num), var(--font);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.56px;
  color: var(--ink);
  line-height: 1.4;
}
.tel-xl a:hover { color: var(--primary); }

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.hours th {
  text-align: left;
  font-weight: 400;
  color: var(--muted);
  width: 42%;
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--hairline);
}
.hours td {
  padding: 8px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  font-weight: 700;
}

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.card {
  background: var(--canvas);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card .body { padding: 24px; }
.card h3 {
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: -0.56px;
}
.card p { margin-top: 8px; color: var(--body); }
.card .more {
  display: inline-block;
  margin-top: 16px;
  font-size: 16px;
  color: var(--muted);
}
.card .more:hover { color: var(--primary); }
.card img.cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.icon-tint {
  width: 48px;
  height: 48px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.icon-purple { background: var(--accent-purple); }
.icon-yellow { background: var(--accent-yellow); color: var(--ink); }
.icon-pink { background: var(--accent-pink); }
.icon-green { background: var(--consult); }
.icon-blue { background: var(--primary-tint); color: var(--primary); }
.icon-ink { background: var(--surface); color: var(--ink); }

/* Doctors */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.doc-card {
  background: var(--canvas);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.doc-card .role {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-tint);
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--r-chip);
  margin-bottom: 12px;
}
.doc-card h3 { font-size: 28px; letter-spacing: -0.56px; line-height: 1.4; }
.doc-card .sub { margin-top: 4px; color: var(--muted); font-size: 14px; }

/* Tables */
.spec, .price {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.spec th, .price th {
  text-align: left;
  font-weight: 400;
  color: var(--muted);
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  width: 32%;
}
.spec td, .price td {
  padding: 12px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.price thead th {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  padding: 8px 12px 8px 0;
}
.price td { font-family: var(--font-num), var(--font); }
.note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.prose p + p { margin-top: 12px; }
.prose ul { margin: 12px 0 0; padding-left: 20px; color: var(--body); }
.prose li + li { margin-top: 6px; }

/* History table */
.hist { width: 100%; border-collapse: collapse; }
.hist th {
  text-align: left;
  width: 96px;
  font-family: var(--font-num), var(--font);
  font-weight: 700;
  color: var(--ink);
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.hist td {
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}

/* News */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { border-bottom: 1px solid var(--hairline); }
.news-list a {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  color: var(--ink);
}
.news-list a:hover { color: var(--primary); }
.news-list time { flex: none; color: var(--muted); font-size: 14px; font-family: var(--font-num), var(--font); }
.news-article { max-width: 720px; }
.news-article .meta { font-size: 12px; color: var(--muted); margin-bottom: 24px; }
.rel { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.rel a { display: block; padding: 12px 0; color: var(--ink); border-bottom: 1px solid var(--hairline); }
.rel a:hover { color: var(--primary); }
.rel time { color: var(--muted); font-size: 12px; margin-right: 12px; font-family: var(--font-num), var(--font); }

/* Form */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-btn);
  background: var(--canvas);
  color: var(--ink);
}
.field textarea { height: 120px; padding: 12px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}
.form-ok {
  display: none;
  padding: 16px;
  border-radius: var(--r-card);
  background: var(--primary-tint);
  color: var(--ink);
  margin-bottom: 16px;
  font-size: 16px;
}
.form-ok.is-on { display: block; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.form-grid .full { grid-column: 1 / -1; }

/* CTA band */
.cta-band {
  background: var(--primary-tint);
  border-radius: var(--r-tint);
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { font-size: 36px; line-height: 1.44; }
.cta-band p { margin-top: 8px; }
.cta-actions { display: flex; gap: 8px; flex: none; }

/* Photo block */
.photo-round {
  border-radius: var(--r-tint);
  overflow: hidden;
  background: var(--surface);
}
.photo-round img { width: 100%; height: 320px; object-fit: cover; }

/* Footer */
.site-footer {
  background: var(--dark);
  color: #c8ccd4;
  padding: 64px 0 32px;
  margin-top: 0;
}
.site-footer a { color: #c8ccd4; }
.site-footer a:hover { color: #fff; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.foot-brand img { height: 32px; width: auto; filter: brightness(10); mix-blend-mode: screen; }
.foot-brand .name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.foot-brand p + p { margin-top: 8px; }
.site-footer h4 {
  color: #fff;
  font-size: 12px;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer li a { font-size: 14px; }
.foot-bot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: #8b909c;
}
.foot-bot p + p { margin-top: 8px; }

/* Utility */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.lnb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 32px;
}
.lnb a {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
}
.lnb a:hover, .lnb a.is-on { background: var(--primary-tint); color: var(--primary); }

.map-box {
  height: 240px;
  border-radius: var(--r-tint);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 24px;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .widget-grid,
  .grid-3,
  .grid-2,
  .doc-grid,
  .foot-grid,
  .form-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 36px; }
  .sec-head h2, .page-head h1, .cta-band h2 { font-size: 32px; }
  .card h3, .doc-card h3, .tel-xl { font-size: 24px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .header-cta { display: none; }
  .btn-menu { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 64px;
    background: var(--canvas);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 24px;
    border-bottom: 1px solid var(--hairline);
    margin-left: 0;
    box-shadow: var(--shadow-soft);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a, .site-nav .drop-btn { padding: 12px 8px; font-size: 16px; }
  .nav-drop .drop-menu {
    position: static;
    display: block;
    box-shadow: none;
    padding: 0 0 0 12px;
  }
  .hero-photo, .hero-photo img { min-height: 220px; height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
