@font-face {
  font-family: "Pretendard";
  src: url("../fonts/PretendardSubset.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #FFFFFF;
  --porcelain: #f5f5fa;
  --press: #ebebf4;
  --ink: #171a2e;
  --text: #30334a;
  --sub: #5c6079;
  --line: #e3e3ee;
  --teal: #3b3aa3;
  --teal-press: #2c2b86;
  --teal-tint: #e8e8fa;
  --champagne: #B8A67C;
  --danger: #B42318;
  --danger-tint: #FDF1F0;
  --warn-tint: #FFF6E5;
  --warn: #8A5300;

  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-color: #babdd0 transparent; accent-color: var(--teal); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; letter-spacing: -0.01em;
  color: var(--text); background: var(--bg); word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--teal); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
input, textarea { caret-color: var(--teal); }
::selection { background: #cbcbee; color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }
.tnum { font-variant-numeric: tabular-nums; }

/* 아이콘 (한 가지 선 굵기로 통일) */
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.ico-lg { width: 22px; height: 22px; }
.ico-wrap { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--teal-tint); color: var(--teal); flex: none; }
.ico-wrap .ico { width: 22px; height: 22px; }
.ico-wrap.small { width: 36px; height: 36px; border-radius: 12px; }
.ico-wrap.small .ico { width: 18px; height: 18px; }
.btn .ico { width: 18px; height: 18px; }

/* 데모 안내 띠 */
.demo-bar { background: var(--ink); color: #dcdcf0; font-size: .875rem; text-align: center; padding: 9px 16px; line-height: 1.5; }
.demo-bar strong { color: #fff; font-weight: 600; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--r-md);
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), transform .12s var(--ease), color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover:not([disabled]) { background: var(--teal-press); }
.btn-soft { background: var(--teal-tint); color: var(--teal-press); }
.btn-soft:hover:not([disabled]) { background: #d3d3f0; }
.btn-ghost { background: transparent; color: var(--sub); }
.btn-ghost:hover:not([disabled]) { background: var(--porcelain); color: var(--ink); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

/* 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); }
.logo b { font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.04em; }
.logo span { font-size: .8125rem; color: var(--sub); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--sub); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.nav a:hover { background: var(--porcelain); color: var(--ink); }
.nav a.btn-primary { color: #fff; }
.nav a.btn-primary:hover { background: var(--teal-press); color: #fff; }
.nav .btn { margin-left: 8px; min-height: 40px; padding: 0 16px; font-size: .9375rem; }

/* 히어로 */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.375rem, 1.4rem + 3.8vw, 4.25rem); line-height: 1.14; letter-spacing: -0.045em; font-weight: 800; }
.hero-lead { margin: 24px 0 0; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--sub); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.hero-facts { list-style: none; margin: 44px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hero-facts li { display: grid; gap: 4px; }
.hero-facts .ico-wrap { margin-bottom: 10px; }
.hero-facts b { color: var(--ink); font-size: 1rem; }
.hero-facts small { color: var(--sub); font-size: .875rem; line-height: 1.5; }
.hero-figure { margin: 0; position: relative; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 5; max-height: 640px; object-fit: cover; border-radius: 28px; background: var(--porcelain); }
.hero-note {
  position: absolute; left: -24px; bottom: 32px; max-width: 260px;
  background: #fff; border-radius: var(--r-md); padding: 16px 18px;
  box-shadow: 0 2px 4px rgba(23,26,46,.06), 0 18px 40px -16px rgba(23,26,46,.28);
  font-size: .9375rem; line-height: 1.5; color: var(--text);
  display: flex; gap: 12px; align-items: flex-start;
}
.hero-note > .ico { color: var(--teal); margin-top: 2px; }
.hero-note strong { display: block; color: var(--ink); margin-bottom: 2px; }

/* 섹션 */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-soft { background: var(--porcelain); }
.section-title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.625rem); line-height: 1.25; letter-spacing: -0.04em; }
.section-lead { margin: 14px 0 0; color: var(--sub); font-size: 1.125rem; max-width: 36em; }

/* 진료 항목 */
.proc-list { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 64px; }
.proc-list li { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); align-items: baseline; }
.proc-list li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.proc-list h3 { font-size: 1.125rem; letter-spacing: -0.03em; }
.proc-list p { margin: 0; color: var(--sub); font-size: .9375rem; }

/* 진료 항목 카드 */
.proc-grid { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.proc-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; background: var(--press); margin-bottom: 18px; }
.proc-grid h3 { font-size: 1.1875rem; letter-spacing: -0.03em; margin-bottom: 6px; }
.proc-grid p { margin: 0; color: var(--sub); font-size: .9375rem; }
.img-note { margin: 36px 0 0; font-size: .8125rem; color: var(--sub); }

/* 방문 순서 */
.visit-steps { list-style: none; margin: 56px 0 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
.visit-steps li { counter-increment: step; position: relative; }
.visit-steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: var(--porcelain); color: var(--ink); font-weight: 700; font-size: .9375rem;
  position: relative; z-index: 1; margin-bottom: 22px; font-variant-numeric: tabular-nums;
}
.visit-steps li::after { content: ""; position: absolute; top: 17px; left: 44px; right: -20px; height: 1.5px; background: #cbcddc; }
.visit-steps li:last-child::after { display: none; }
.visit-steps .step-ico { display: block; width: 24px; height: 24px; color: var(--teal); margin-bottom: 10px; }
.visit-steps h3 { font-size: 1.125rem; margin-bottom: 6px; letter-spacing: -0.03em; }
.visit-steps p { color: var(--sub); font-size: .9375rem; margin: 0; }

/* 예약 마법사 */
.booking { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.booking > * { min-width: 0; }
.booking-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.booking-aside .section-lead { margin-bottom: 28px; }
.step-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.step-nav li { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--sub); font-weight: 500; }
.step-nav li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #c6c8d8; font-size: .8125rem; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.step-nav li[aria-current="step"] { color: var(--ink); font-weight: 700; }
.step-nav li[aria-current="step"] span { border-color: var(--teal); background: var(--teal); color: #fff; }
.step-nav li.done span { border-color: var(--teal); color: var(--teal); }
.privacy-note { margin-top: 28px; padding: 16px 18px; border-radius: var(--r-md); background: var(--warn-tint); color: var(--warn); font-size: .875rem; line-height: 1.55; }

.panel {
  background: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 1px 2px rgba(23,26,46,.04), 0 24px 48px -28px rgba(23,26,46,.25);
}
.panel h3 { font-size: 1.375rem; letter-spacing: -0.035em; margin-bottom: 6px; }
.panel .hint { color: var(--sub); font-size: .9375rem; margin-bottom: 24px; }
.step[hidden] { display: none; }

.field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 600; font-size: .9375rem; color: var(--ink); margin-bottom: 8px; padding: 0; }
.optional { font-weight: 400; color: var(--sub); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid transparent; border-radius: var(--r-md);
  background: var(--porcelain); color: var(--ink); font-size: 1.0625rem; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C6079' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; cursor: pointer; }
.input::placeholder, .textarea::placeholder { color: #8e91ad; }
.input:hover, .select:hover, .textarea:hover { background-color: var(--press); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--teal); background-color: #fff; box-shadow: 0 0 0 4px rgba(59,58,163,.14); }
[aria-invalid="true"] { border-color: var(--danger) !important; background-color: var(--danger-tint) !important; }
.field-error { display: flex; gap: 6px; align-items: center; color: var(--danger); font-size: .875rem; font-weight: 500; margin: 8px 0 0; }
.field-error[hidden] { display: none; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--porcelain); border: 1.5px solid transparent; font-weight: 500; font-size: .9375rem; color: var(--text);
  transition: all .18s var(--ease);
}
.chip:hover span { background: var(--press); }
.chip input:checked + span { background: var(--teal-tint); border-color: var(--teal); color: var(--teal-press); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }

.dates { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.date-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0; border-radius: var(--r-sm);
  border: 1.5px solid transparent; background: var(--porcelain); cursor: pointer; font-variant-numeric: tabular-nums;
}
.date-btn small { font-size: .75rem; color: var(--sub); }
.date-btn b { font-size: 1.0625rem; color: var(--ink); }
.date-btn:hover:not([disabled]) { background: var(--press); }
.date-btn[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); }
.date-btn[aria-pressed="true"] small, .date-btn[aria-pressed="true"] b { color: #fff; }
.date-btn[disabled] { opacity: .38; cursor: not-allowed; }
.date-btn.sat small { color: #2457A6; }
.date-btn[aria-pressed="true"].sat small { color: #fff; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; min-height: 52px; }
.slot-btn {
  min-height: 46px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink);
}
.slot-btn:hover:not([disabled]) { border-color: var(--teal); }
.slot-btn[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.slot-btn[disabled] { background: var(--porcelain); border-color: transparent; color: #a5a8c0; text-decoration: line-through; cursor: not-allowed; }
.slots-msg { grid-column: 1 / -1; color: var(--sub); font-size: .9375rem; padding: 12px 0; }

.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.step-actions .btn-primary { min-width: 160px; }

.summary { margin: 0 0 24px; border-top: 1px solid var(--line); }
.summary div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.summary dt { color: var(--sub); }
.summary dd { margin: 0; color: var(--ink); font-weight: 500; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .9375rem; line-height: 1.55; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; }
.consent-box { background: var(--porcelain); border-radius: var(--r-md); padding: 16px 18px; font-size: .875rem; color: var(--sub); margin-bottom: 14px; line-height: 1.6; }
.consent-box ul { margin: 6px 0 0; padding-left: 18px; }

.form-alert { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--r-md); background: var(--danger-tint); color: var(--danger); font-weight: 500; font-size: .9375rem; }
.form-alert[hidden] { display: none; }

.done-panel { text-align: center; padding: 24px 0 8px; }
.done-icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--teal-tint); display: grid; place-items: center; }
.done-panel h3 { font-size: 1.625rem; margin-bottom: 10px; }
.done-panel p { color: var(--sub); }

/* 오시는 길 */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.visit-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; background: var(--porcelain); }
.info-list { margin: 32px 0 0; }
.info-list div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.info-list div:last-child { border-bottom: 1px solid var(--line); }
.info-list dt { font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.info-list dt .ico { color: var(--teal); width: 18px; height: 18px; }
.info-list div { grid-template-columns: 112px 1fr !important; }
.info-list dd { margin: 0; }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 120px; color: var(--sub); font-size: .875rem; }
.site-footer p { margin: 0 0 4px; }

/* 접수번호 */
.code-box { display: inline-flex; align-items: center; gap: 14px; margin: 8px auto 6px; padding: 12px 12px 12px 20px; border-radius: var(--r-md); background: var(--porcelain); }
.code-box span { color: var(--sub); font-size: .875rem; }
.code-box strong { font-size: 1.5rem; letter-spacing: .12em; color: var(--ink); }
.code-box .btn { min-height: 40px; padding: 0 14px; font-size: .875rem; }
.code-note { font-size: .875rem; color: var(--sub); margin: 8px auto 24px; max-width: 30em; }

/* 예약 조회 */
.lookup { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.lookup > * { min-width: 0; }
.lookup-form { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 12px; align-items: end; }
.lookup-form .field { margin: 0; }
.lookup-form .btn { min-height: 52px; }
.code-input { text-transform: uppercase; letter-spacing: .12em; }
.lookup-panel .form-alert { margin: 16px 0 0; }
.booking-card { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.booking-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.booking-card-head h3 { font-size: 1.25rem; }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: .8125rem; font-weight: 600; }
.badge.s-요청 { background: var(--warn-tint); color: var(--warn); }
.badge.s-확정 { background: var(--teal-tint); color: var(--teal-press); }
.badge.s-완료 { background: var(--porcelain); color: var(--sub); }
.badge.s-취소, .badge.s-노쇼 { background: var(--danger-tint); color: var(--danger); }
.booking-card .summary { margin-bottom: 16px; }
.booking-note { font-size: .9375rem; color: var(--sub); background: var(--porcelain); border-radius: var(--r-sm); padding: 12px 14px; margin: 0 0 16px; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.change-box { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line); }
.change-box h4 { margin: 0 0 12px; font-size: 1rem; color: var(--ink); }
.confirm-cancel { margin-top: 16px; padding: 16px 18px; border-radius: var(--r-md); background: var(--danger-tint); color: var(--danger); }
.confirm-cancel p { margin: 0 0 12px; font-weight: 500; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not([disabled]) { background: #8F1C13; }
.ok-msg { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--teal-tint); color: var(--teal-press); font-weight: 500; }

/* 상담창 연락처 남기기 */
.contact-form { align-self: stretch; display: grid; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.contact-form p { margin: 0; font-size: .875rem; color: var(--text); }
.contact-form .row { display: flex; gap: 6px; }
.contact-form .input { min-height: 44px; font-size: .9375rem; padding: 8px 12px; border-radius: 10px; }
.contact-form .btn { min-height: 44px; padding: 0 14px; font-size: .875rem; border-radius: 10px; }
.contact-form small { color: var(--sub); font-size: .75rem; }
.contact-form .err { color: var(--danger); font-size: .8125rem; }

/* AI 상담 위젯 */
.chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 80; display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: #fff;
  font-weight: 600; cursor: pointer; box-shadow: 0 16px 32px -12px rgba(23,26,46,.5);
  transition: transform .15s var(--ease), background-color .2s;
}
.chat-fab:hover { background: #25283f; }
.chat-fab:active { transform: scale(.96); }
.chat-fab[aria-expanded="true"] { visibility: hidden; }
.chat-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; width: min(400px, calc(100% - 32px)); height: min(640px, calc(100dvh - 48px));
  display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(23,26,46,.08), 0 40px 80px -24px rgba(23,26,46,.45);
  transform-origin: bottom right;
}
.chat-panel[hidden] { display: none; }
.chat-panel.is-open { animation: chatIn .32s var(--ease); }
@keyframes chatIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.chat-title { display: flex; gap: 12px; align-items: center; }
.chat-head h2 { font-size: 1.0625rem; letter-spacing: -0.02em; }
.chat-head p { margin: 2px 0 0; font-size: .8125rem; color: var(--sub); }
.icon-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--porcelain); color: var(--sub); cursor: pointer; display: grid; place-items: center; flex: none; }
.icon-btn:hover { background: var(--press); color: var(--ink); }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: .9375rem; line-height: 1.55; white-space: pre-wrap; }
.msg.bot { align-self: flex-start; background: var(--porcelain); color: var(--ink); border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 6px; }
.msg.notice { align-self: stretch; max-width: none; background: var(--warn-tint); color: var(--warn); font-size: .875rem; border-radius: 12px; }
.msg.urgent { background: var(--danger-tint); color: var(--danger); font-weight: 500; }
.msg-actions { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 14px 16px; background: var(--porcelain); border-radius: 18px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9a9db8; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chat-suggest { display: flex; gap: 6px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; }
.chat-suggest button { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .875rem; cursor: pointer; color: var(--text); }
.chat-suggest button:hover { border-color: var(--teal); color: var(--teal); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form .input { min-height: 48px; border-radius: 999px; padding: 10px 18px; font-size: 1rem; }
.chat-form .btn { min-height: 48px; border-radius: 999px; padding: 0 18px; }
.chat-foot { padding: 0 16px 12px; font-size: .75rem; color: var(--sub); text-align: center; }

/* 반응형 */
@media (max-width: 900px) {
  .hero-grid, .booking, .visit-grid { grid-template-columns: 1fr; }
  .hero-figure img { aspect-ratio: 4 / 3; }
  .hero-note { left: 16px; bottom: 16px; }
  .booking-aside { position: static; }
  .lookup { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr; gap: 14px; }
  .hero-facts li { grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; }
  .hero-facts .ico-wrap { grid-row: span 2; margin: 0; }
  .step-nav { grid-template-columns: repeat(4, auto); justify-content: start; gap: 4px 16px; }
  .step-nav li b { display: none; }
  .privacy-note { margin-top: 16px; }
  .proc-grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .proc-list { grid-template-columns: 1fr; }
  .proc-list li:nth-last-child(2) { border-bottom: 0; }
  .visit-steps { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .visit-steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .logo span { display: none; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 40px); }
  .proc-list li { grid-template-columns: 1fr; gap: 4px; }
  .proc-grid img { border-radius: 14px; margin-bottom: 12px; }
  .proc-grid h3 { font-size: 1.0625rem; }
  .proc-grid p { font-size: .875rem; }
  .visit-steps { grid-template-columns: 1fr; gap: 0; }
  .visit-steps li { display: grid; grid-template-columns: 36px 1fr; column-gap: 16px; padding-bottom: 28px; }
  .visit-steps li::before { grid-row: span 2; margin: 0; }
  .visit-steps li::after, .visit-steps li:nth-child(2)::after { display: block; top: 36px; bottom: 0; left: 17px; right: auto; width: 1.5px; height: auto; }
  .visit-steps li:last-child::after { display: none; }
  .row-2 { grid-template-columns: 1fr; }
  .lookup-form { grid-template-columns: 1fr; }
  .code-box { flex-wrap: wrap; justify-content: center; }
  .dates { grid-template-columns: repeat(7, minmax(40px, 1fr)); overflow-x: auto; }
  .step-actions { flex-direction: column-reverse; }
  .step-actions .btn { width: 100%; }
  .chat-panel { right: 0; bottom: 0; width: 100%; height: 100dvh; border-radius: 0; }
  .chat-fab { right: 16px; bottom: 16px; }
  .hero-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 시술 상세 ---------- */
.pd { padding-top: 24px; padding-bottom: 140px; }
.pd-crumbs { display: flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--sub); margin-bottom: 20px; }
.pd-crumbs a { display: inline-flex; align-items: center; gap: 4px; color: var(--sub); text-decoration: none; min-height: 44px; }
.pd-crumbs a:hover { color: var(--ink); }
.pd-crumbs .ico { width: 18px; height: 18px; }
.pd-top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.pd-figure { margin: 0; position: sticky; top: calc(var(--header-h) + 20px); }
.pd-figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; background: var(--press); display: block; }
.pd-figure figcaption { margin-top: 10px; font-size: .8125rem; color: var(--sub); }
.pd-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); letter-spacing: -0.04em; line-height: 1.2; color: var(--ink); }
.pd-summary { margin: 12px 0 24px; font-size: 1.125rem; color: var(--text); }
.pd-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 32px; }
.pd-facts div { background: var(--porcelain); border-radius: 14px; padding: 12px 14px; }
.pd-facts dt { font-size: .8125rem; color: var(--sub); }
.pd-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); font-size: .9375rem; }
.pd-opts { border: 0; padding: 0; margin: 0; }
.pd-opts legend { font-weight: 700; color: var(--ink); margin-bottom: 12px; font-size: 1.0625rem; }
#pd-options { display: grid; gap: 8px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt-body { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; transition: border-color .15s, background .15s; }
.opt:hover .opt-body { background: var(--porcelain); }
.opt input:checked + .opt-body { border-color: var(--teal); background: var(--teal-tint); }
.opt input:focus-visible + .opt-body { outline: 3px solid var(--teal); outline-offset: 2px; }
.opt-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .875rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.opt input:checked + .opt-body .opt-num { background: var(--teal); border-color: var(--teal); color: #fff; }
.opt-text b { display: block; color: var(--ink); }
.opt-text small { color: var(--sub); font-size: .875rem; }
.opt-price { font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pd-includes { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pd-includes li { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 8px; background: var(--porcelain); font-size: .8125rem; color: var(--text); }
.pd-includes .ico { width: 14px; height: 14px; color: var(--teal); }
.pd-note { margin: 12px 0 0; font-size: .8125rem; color: var(--sub); }
.pd-clinic { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; }
.pd-clinic div { flex: 1; min-width: 0; }
.pd-clinic b { display: block; color: var(--ink); }
.pd-clinic small { color: var(--sub); font-size: .875rem; }
.pd-body { max-width: 760px; margin-top: 72px; }
.pd-sec { padding: 40px 0; border-top: 1px solid var(--line); }
.pd-sec h2 { display: flex; align-items: center; gap: 8px; font-size: 1.375rem; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 16px; }
.pd-sec p { margin: 0 0 10px; }
.pd-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pd-check li { position: relative; padding-left: 30px; }
.pd-check li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B3AA3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5 10 16.5 18 8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.pd-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.pd-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; padding: 12px 0; position: relative; }
.pd-steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--ink); font-weight: 700; font-size: .875rem; background: #fff; z-index: 1; }
.pd-steps li:not(:last-child)::after { content: ""; position: absolute; left: 15.5px; top: 44px; bottom: -12px; width: 1.5px; background: var(--line); }
.pd-steps b { color: var(--ink); }
.pd-steps span { color: var(--sub); font-size: .9375rem; }
.pd-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pd-timeline li { background: var(--porcelain); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.pd-timeline b { color: var(--teal); font-size: .9375rem; }
.pd-timeline span { font-size: .9375rem; color: var(--text); line-height: 1.5; }
.pd-risk { background: var(--warn-tint); border-top: 0; border-radius: 20px; padding: 28px; margin: 24px 0; }
.pd-risk h2 { color: var(--warn); }
.pd-risk .ico { width: 22px; height: 22px; }
.pd-faq details { border-bottom: 1px solid var(--line); }
.pd-faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--ink); list-style: none; }
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq summary::before { content: "Q. "; color: var(--teal); }
.pd-faq details p { padding: 0 0 16px; color: var(--text); }
.pd-others { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.chip-link:hover { background: var(--porcelain); }
.pd-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.pd-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.pd-cta small { display: block; color: var(--sub); font-size: .8125rem; }
.pd-cta b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pd-footer { padding-bottom: 110px; }
.proc-grid a.proc-link { display: block; color: inherit; text-decoration: none; border-radius: 18px; }
.proc-grid a.proc-link:hover h3 { color: var(--teal); }
.proc-grid a.proc-link:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.proc-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: .875rem; font-weight: 600; color: var(--teal); }
@media (max-width: 900px) {
  .pd-top { grid-template-columns: 1fr; gap: 28px; }
  .pd-figure { position: static; }
  .pd-facts { grid-template-columns: 1fr 1fr; }
  .pd-timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .opt-body { grid-template-columns: 28px 1fr; }
  .opt-price { grid-column: 2; }
  .pd-cta-inner .btn-lg { padding: 0 18px; min-height: 50px; }
  .pd-cta-inner > div { min-width: 0; }
}
.pd-cta b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .pd-cta b { font-size: .875rem; } .pd-cta-inner .btn-lg { font-size: .9375rem; flex: none; } }
