/* 하늬결치과의원 (가상) — 밝은 민트·소나무 잉크, Gowun Dodum + Pretendard */
:root {
  --paper: #f5f9f8;
  --white: #ffffff;
  --ink: #12312d;
  --ink-2: #4a625d;
  --teal: #1d6e62;
  --mint: #7ccab6;
  --mist: #e2eeeb;
  --lilac: #d6d0f5;
  --line: rgba(18, 49, 45, 0.13);
  --radius-l: 36px;
  --radius-m: 20px;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --wrap: calc(var(--max) + var(--pad) * 2);
  --display: "Gowun Dodum", "Pretendard Variable", sans-serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.7 var(--sans); letter-spacing: -0.01em; word-break: keep-all; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.btn--fill { background: var(--teal); color: #fff; }
.btn--fill:hover { background: var(--ink); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; }
.link { font-weight: 600; color: var(--teal); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* 머리: 떠 있는 알약 모양 */
.hd { position: sticky; top: 14px; z-index: 50; padding: 0 var(--pad); margin-top: 14px; }
.hd__pill { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 10px 10px 10px 22px; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 12px 40px -24px rgba(18, 49, 45, 0.45); position: relative; }
.hd__logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal); }
.hd__logo span { font: 400 22px/1 var(--display); color: var(--ink); display: flex; align-items: baseline; gap: 4px; }
.hd__logo small { font: 500 13px/1 var(--sans); color: var(--ink-2); }
.logo-mark { width: 38px; height: 38px; flex: none; }
.hd__nav { display: flex; gap: 4px; margin-left: auto; }
.hd__nav a { padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15.5px; transition: background .2s; }
.hd__nav a:hover { background: var(--mist); }
.hd__nav .hd__nav-tel { display: none; }
.hd__cta { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; background: var(--ink); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15.5px; }
.hd__cta:hover { background: var(--teal); }
.hd__toggle { display: none; }

/* 첫 화면 */
.hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--pad) clamp(64px, 8vw, 120px); display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: #b9c6c3; position: relative; }
.status.is-open .status__dot { background: #2fae7f; }
.status.is-open .status__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #2fae7f; animation: ping 1.8s ease-out infinite; }
.status.is-break .status__dot { background: #e0a23a; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.hero__title { margin: 28px 0 24px; font: 400 clamp(46px, 6.4vw, 92px)/1.1 var(--display); letter-spacing: -0.035em; }
.hero__lead { max-width: 30em; font-size: clamp(16.5px, 1.4vw, 19px); color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__visual { margin: 0; position: relative; }
.arch { border-radius: 999px 999px var(--radius-l) var(--radius-l); overflow: hidden; aspect-ratio: 4 / 5; background: var(--mist); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero__card { position: absolute; left: -48px; bottom: 40px; background: var(--white); border-radius: var(--radius-m); padding: 20px 24px; box-shadow: 0 24px 50px -28px rgba(18, 49, 45, 0.5); min-width: 230px; }
.hero__card b { font: 400 18px/1.3 var(--display); }
.hero__card ol { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: s; font-size: 14.5px; color: var(--ink-2); }
.hero__card li { counter-increment: s; display: flex; gap: 10px; padding: 3px 0; }
.hero__card li::before { content: counter(s); width: 20px; height: 20px; border-radius: 50%; background: var(--mist); color: var(--teal); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; flex: none; }

/* 공통 섹션 머리 */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { font: 400 clamp(34px, 4.2vw, 56px)/1.15 var(--display); letter-spacing: -0.03em; }
.sec-head p { color: var(--ink-2); max-width: 34em; }

/* 진료 과목 탭 (대표 효과) */
.care { background: var(--white); border-radius: var(--radius-l) var(--radius-l) 0 0; padding: clamp(64px, 8vw, 112px) var(--pad); }
.care > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.tabs__list { position: relative; display: flex; gap: 6px; padding: 6px; background: var(--paper); border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: 40px; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab { position: relative; z-index: 1; border: 0; background: none; padding: 14px 24px; border-radius: 999px; font: 600 16px/1 var(--sans); color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: color .3s; }
.tabs__tab[aria-selected="true"] { color: #fff; }
.tabs__ink { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: var(--teal); transition: transform .5s cubic-bezier(.3, .8, .2, 1), width .5s cubic-bezier(.3, .8, .2, 1); }
.tabs__panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.tabs__panel[hidden] { display: none; }
.tabs__fig { margin: 0; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 5 / 4; background: var(--mist); }
.tabs__fig img { width: 100%; height: 100%; object-fit: cover; }
.tabs__body h3 { font: 400 clamp(26px, 2.6vw, 36px)/1.3 var(--display); letter-spacing: -0.02em; margin-bottom: 16px; }
.tabs__body > p { color: var(--ink-2); }
.tabs__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.tabs__cols h4 { font: 700 14px/1.4 var(--sans); color: var(--teal); margin-bottom: 10px; }
.tabs__cols ul { margin: 0; padding: 0; list-style: none; font-size: 15.5px; }
.tabs__cols ul li { padding: 4px 0 4px 18px; position: relative; }
.tabs__cols ul li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.flow { margin: 0; padding: 0; list-style: none; counter-reset: f; font-size: 15.5px; }
.flow li { counter-increment: f; display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.flow li::before { content: counter(f); width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--teal); color: var(--teal); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.tabs__panel.is-entering .tabs__fig { animation: irisOpen .9s cubic-bezier(.3, .8, .2, 1) both; }
.tabs__panel.is-entering .tabs__fig img { animation: settle 1.2s cubic-bezier(.3, .8, .2, 1) both; }
.tabs__panel.is-entering .tabs__body > * { animation: rise .7s cubic-bezier(.3, .8, .2, 1) both; }
.tabs__panel.is-entering .tabs__body > *:nth-child(2) { animation-delay: .06s; }
.tabs__panel.is-entering .tabs__body > *:nth-child(3) { animation-delay: .12s; }
.tabs__panel.is-entering .tabs__body > *:nth-child(4) { animation-delay: .18s; }
@keyframes irisOpen { from { clip-path: circle(0% at 50% 55%); } to { clip-path: circle(75% at 50% 50%); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* 약속 */
.promise { background: var(--ink); color: #e6f1ee; padding: clamp(72px, 9vw, 128px) var(--pad); }
.promise > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.promise__lead { font: 400 clamp(32px, 4.4vw, 60px)/1.25 var(--display); letter-spacing: -0.03em; color: #fff; margin-bottom: clamp(48px, 6vw, 80px); }
.promise__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.promise__list li { border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 28px; }
.promise__list svg { width: 40px; height: 40px; fill: none; stroke: var(--mint); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.promise__list h3 { font: 400 22px/1.35 var(--display); color: #fff; margin-bottom: 10px; }
.promise__list p { color: #a9c2bc; font-size: 15.5px; }

/* 의료진 */
.team { max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 9vw, 128px) var(--pad); }
.team__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.doc { background: var(--white); border-radius: var(--radius-l); padding: 28px 28px 32px; border: 1px solid var(--line); }
.doc__face { width: 100%; aspect-ratio: 1 / 0.82; border-radius: 28px; display: grid; place-items: center; margin-bottom: 24px; position: relative; overflow: hidden; }
.doc__face span { font: 400 clamp(64px, 7vw, 104px)/1 var(--display); color: var(--ink); position: relative; }
.doc__face::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.55); }
.doc__face--0 { background: var(--mist); }
.doc__face--1 { background: var(--lilac); }
.doc__face--2 { background: #f3e9c9; }
.doc__role { font-size: 14px; font-weight: 600; color: var(--teal); }
.doc h3 { font: 400 28px/1.3 var(--display); margin: 2px 0 8px; }
.doc__note { color: var(--ink-2); font-size: 15.5px; }
.doc__days { margin-top: 16px; display: inline-block; padding: 6px 12px; background: var(--paper); border-radius: 999px; font-size: 13.5px; font-weight: 600; }

/* 공간 띠 */
.space { padding: 0 0 clamp(72px, 9vw, 128px); }
.space .sec-head { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding: 0 var(--pad); }
.strip { --sp: max(var(--pad), calc((100vw - var(--max)) / 2)); display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--sp) 12px; scroll-padding-inline: var(--sp); scrollbar-width: thin; scrollbar-color: var(--mint) transparent; }
.strip figure { margin: 0; flex: 0 0 clamp(260px, 34vw, 460px); scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); }
.strip figcaption { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.strip figcaption b { display: block; font: 400 20px/1.4 var(--display); color: var(--ink); }

/* 숫자 */
.nums { padding: 0 var(--pad); }
.nums dl { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--mist); border-radius: var(--radius-l); overflow: hidden; }
.nums dl > div { padding: 36px 32px; border-left: 1px solid rgba(255, 255, 255, 0.7); }
.nums dl > div:first-child { border-left: 0; }
.nums dt { font-size: 14.5px; color: var(--ink-2); font-weight: 600; }
.nums dd { margin: 8px 0 0; font: 400 clamp(44px, 5vw, 68px)/1 var(--display); color: var(--teal); display: flex; align-items: baseline; gap: 6px; }
.nums dd small { font: 600 16px/1 var(--sans); color: var(--ink); }

/* 진료 시간·예약 */
.book { max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 9vw, 128px) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.book h2 { font: 400 clamp(34px, 4.2vw, 56px)/1.15 var(--display); letter-spacing: -0.03em; margin-bottom: 32px; }
.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.hours th, .hours td { text-align: left; padding: 15px 12px; border-bottom: 1px solid var(--line); }
.hours thead th { font-size: 13.5px; color: var(--ink-2); font-weight: 600; padding-top: 0; }
.hours tbody th { font-weight: 600; }
.hours td:last-child { color: var(--ink-2); font-size: 14.5px; }
.hours tr.is-today { background: var(--white); }
.hours tr.is-today th { color: var(--teal); }
.hours tr.is-today th::after { content: "오늘"; margin-left: 8px; font-size: 12px; padding: 3px 8px; background: var(--teal); color: #fff; border-radius: 999px; vertical-align: 2px; }
.book__note { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.book__form { background: var(--white); border-radius: var(--radius-l); padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); display: grid; gap: 18px; }
.book__form h3 { font: 400 28px/1.3 var(--display); }
.book__hint { color: var(--ink-2); font-size: 15px; margin-top: -10px; }
.book__form label { display: grid; gap: 8px; font-size: 14.5px; font-weight: 600; }
.book__form input:not([type]), .book__form input[inputmode], .book__form select { font: 400 16px/1.4 var(--sans); padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); width: 100%; }
.book__form input:focus, .book__form select:focus { outline: none; border-color: var(--teal); background: #fff; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 14.5px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.chips label { display: block; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 500; cursor: pointer; }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.book__form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14.5px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; accent-color: var(--teal); margin: 2px 0 0; flex: none; }
.book__msg { font-size: 14.5px; color: var(--teal); font-weight: 600; min-height: 1.4em; }

/* 오시는 길 */
.visit { max-width: var(--wrap); margin: 0 auto clamp(72px, 9vw, 120px); padding: 0 var(--pad); display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.visit h2 { font: 400 clamp(34px, 4.2vw, 56px)/1.15 var(--display); letter-spacing: -0.03em; }
.visit__addr { font-size: 20px; font-weight: 600; margin: 16px 0 24px; }
.visit ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; color: var(--ink-2); }
.visit li b { display: inline-block; min-width: 64px; color: var(--ink); }
.map { width: 100%; height: auto; border-radius: var(--radius-l); }

/* 바닥 */
.ft { background: var(--white); border-top: 1px solid var(--line); padding: 56px var(--pad) 40px; font-size: 14.5px; color: var(--ink-2); }
.ft__in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 2fr auto; gap: 32px; }
.ft__brand p { margin-top: 12px; }
.ft__info { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.ft__info dt { font-weight: 600; color: var(--ink); font-size: 13px; }
.ft__info dd { margin: 2px 0 0; }
.ft__info a { text-decoration: none; }
.ft__nav { display: grid; gap: 8px; align-content: start; }
.ft__nav a { text-decoration: none; font-weight: 600; color: var(--ink); }
.ft__note, .ft__copy { max-width: var(--max); margin: 32px auto 0; font-size: 13px; }
.ft__copy { margin-top: 8px; }
.mbar { display: none; }

/* 서브 페이지 */
.phero { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 112px) var(--pad) clamp(40px, 5vw, 64px); }
.phero h1 { font: 400 clamp(48px, 7vw, 96px)/1.05 var(--display); letter-spacing: -0.04em; }
.phero p { margin-top: 20px; max-width: 34em; font-size: clamp(16.5px, 1.4vw, 19px); color: var(--ink-2); }
.greet { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--pad); display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 96px); background: var(--white); border-radius: var(--radius-l); }
.greet__face { aspect-ratio: 1; }
.greet__sign { margin-top: 16px; color: var(--ink-2); }
.greet__sign b { font: 400 22px/1 var(--display); color: var(--ink); margin-left: 6px; }
.greet__body h2 { font: 400 clamp(28px, 3vw, 40px)/1.35 var(--display); letter-spacing: -0.02em; margin-bottom: 28px; }
.greet__body p { color: var(--ink-2); margin-bottom: 16px; max-width: 38em; }
.hist { max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--pad) 0; }
.hist__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.hist__list li { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.hist__list time { font: 400 40px/1 var(--display); color: var(--teal); display: block; margin-bottom: 12px; }
.gallery { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad) clamp(72px, 9vw, 120px); }
.gallery__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 16px; }
.gallery__grid figure { margin: 0; position: relative; border-radius: var(--radius-m); overflow: hidden; }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery__grid figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(255, 255, 255, 0.9); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.g-a { grid-row: span 2; }
.g-b { grid-row: span 2; }
.cta-band { margin: 0 var(--pad) clamp(72px, 9vw, 120px); padding: clamp(48px, 6vw, 80px) clamp(24px, 5vw, 72px); background: var(--mist); border-radius: var(--radius-l); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; max-width: var(--max); }
@media (min-width: 1384px) { .cta-band { margin-left: auto; margin-right: auto; } }
.cta-band h2 { font: 400 clamp(26px, 3vw, 40px)/1.3 var(--display); letter-spacing: -0.02em; }

.plist { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.plist ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plist a { display: grid; grid-template-rows: auto 1fr auto; height: 100%; gap: 10px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); text-decoration: none; transition: border-color .25s, background .25s; }
.plist a:hover { border-color: var(--teal); background: #fbfefd; }
.plist__n { font: 400 26px/1.3 var(--display); }
.plist__d { color: var(--ink-2); font-size: 15.5px; }
.plist__go { width: 40px; height: 40px; border-radius: 50%; background: var(--mist); justify-self: end; position: relative; }
.plist__go::after { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-top: 2px solid var(--teal); border-right: 2px solid var(--teal); transform: translateX(-2px) rotate(45deg); }
.detail { max-width: var(--wrap); margin: clamp(72px, 9vw, 120px) auto; padding: 0 var(--pad); }
.detail__fig { margin: 0 0 clamp(32px, 4vw, 56px); border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 21 / 8; }
.detail__fig img { width: 100%; height: 100%; object-fit: cover; }
.detail__head { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 80px); margin-bottom: clamp(40px, 5vw, 64px); }
.detail__head h2 { font: 400 clamp(36px, 4.6vw, 60px)/1.1 var(--display); letter-spacing: -0.03em; }
.detail__head p { color: var(--ink-2); font-size: 18px; }
.detail__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.detail__grid h3 { font: 400 26px/1.3 var(--display); margin-bottom: 20px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(st, decimal-leading-zero); grid-row: span 2; font: 400 30px/1 var(--display); color: var(--mint); }
.steps b { font-size: 17.5px; }
.steps span { color: var(--ink-2); font-size: 15.5px; }
.detail__aside { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 32px; position: sticky; top: 110px; }
.detail__aside ul { margin: 0 0 28px; padding: 0 0 0 18px; color: var(--ink-2); font-size: 15.5px; display: grid; gap: 8px; }
.faq { margin-top: clamp(48px, 6vw, 80px); }
.faq h3 { font: 400 26px/1.3 var(--display); margin-bottom: 16px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 22px 48px 22px 0; font-weight: 600; font-size: 17.5px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: translateY(-75%) rotate(45deg); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 46em; }
.detail__note { margin-top: 32px; font-size: 14px; color: var(--ink-2); padding: 16px 20px; background: var(--mist); border-radius: 14px; }

/* 태블릿 */
@media (max-width: 1080px) {
  .hd__nav a { padding: 10px 12px; }
  .hero__card { left: -16px; }
  .nums dl { grid-template-columns: repeat(2, 1fr); }
  .nums dl > div:nth-child(3) { border-left: 0; }
  .nums dl > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.7); }
}

/* 휴대폰 */
@media (max-width: 860px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .hd { top: 10px; padding: 0 12px; }
  .hd__pill { padding: 8px 8px 8px 16px; gap: 8px; border-radius: 28px; flex-wrap: wrap; }
  .hd__cta { display: none; }
  .hd__toggle { display: grid; place-content: center; gap: 6px; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; }
  .hd__toggle .bar { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s; }
  .hd__toggle[aria-expanded="true"] .bar:first-child { transform: translateY(4px) rotate(45deg); }
  .hd__toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .hd__nav { display: none; order: 3; width: 100%; flex-direction: column; gap: 0; margin: 8px 0 4px; padding-top: 8px; border-top: 1px solid var(--line); }
  .hd__nav.is-open { display: flex; }
  .hd__nav a { padding: 14px 8px; font-size: 17px; border-radius: 12px; }
  .hd__nav .hd__nav-tel { display: block; color: var(--teal); font-weight: 700; }
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero__title { font-size: clamp(42px, 12vw, 60px); margin: 20px 0 18px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__visual { margin: 8px 0 0; }
  .arch { aspect-ratio: 4 / 4.4; }
  .hero__card { position: relative; left: auto; bottom: auto; margin: -64px 16px 0; }
  .care { border-radius: 28px 28px 0 0; }
  .tabs__list { width: auto; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); border-radius: 0; padding: 6px var(--pad); background: transparent; }
  .tabs__tab { background: var(--paper); padding: 13px 18px; font-size: 15px; }
  .tabs__ink { display: none; }
  .tabs__tab[aria-selected="true"] { background: var(--teal); }
  .tabs__panel { grid-template-columns: 1fr; }
  .tabs__cols { grid-template-columns: 1fr; }
  .promise__list { grid-template-columns: 1fr; }
  .team__list { grid-template-columns: 1fr; }
  .doc { display: grid; grid-template-columns: 96px 1fr; column-gap: 20px; padding: 20px; align-items: center; }
  .doc__face { grid-row: span 4; margin: 0; aspect-ratio: 1; border-radius: 22px; }
  .doc__face span { font-size: 48px; }
  .doc h3 { font-size: 24px; margin: 0; }
  .doc__days { margin-top: 8px; justify-self: start; }
  .strip figure { flex-basis: 78vw; }
  .nums dl > div { padding: 24px 20px; }
  .book { grid-template-columns: 1fr; }
  .hours th, .hours td { padding: 13px 6px; font-size: 15px; }
  .visit { grid-template-columns: 1fr; }
  .ft__in { grid-template-columns: 1fr; }
  .ft__info { grid-template-columns: 1fr; }
  .mbar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; padding: 8px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 999px; box-shadow: 0 16px 40px -16px rgba(18, 49, 45, 0.5); border: 1px solid var(--line); }
  .mbar a { display: grid; place-items: center; min-height: 48px; border-radius: 999px; text-decoration: none; font-weight: 700; }
  .mbar__tel { background: var(--mist); color: var(--ink); }
  .mbar__go { background: var(--teal); color: #fff; }
  .greet { grid-template-columns: 1fr; border-radius: 0; }
  .greet__side { display: flex; align-items: center; gap: 16px; }
  .greet__face { width: 96px; border-radius: 22px; margin: 0; }
  .greet__face span { font-size: 48px; }
  .greet__sign { margin: 0; }
  .hist__list { grid-template-columns: 1fr; }
  .hist__list li { display: grid; grid-template-columns: 88px 1fr; align-items: baseline; padding: 20px 0; }
  .hist__list time { font-size: 30px; margin: 0; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 160px 160px; }
  .g-a { grid-column: span 2; grid-row: auto; }
  .g-b { grid-row: span 2; }
  .cta-band { margin-left: 16px; margin-right: 16px; }
  .plist ul { grid-template-columns: 1fr; }
  .detail__fig { aspect-ratio: 4 / 3; }
  .detail__head, .detail__grid { grid-template-columns: 1fr; }
  .detail__aside { position: static; }
  .steps li { grid-template-columns: 44px 1fr; }
  .steps li::before { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tabs__panel.is-entering .tabs__fig, .tabs__panel.is-entering .tabs__fig img, .tabs__panel.is-entering .tabs__body > * { animation: none; }
  .status.is-open .status__dot::after { animation: none; }
  .tabs__ink { transition: none; }
}
