/* ==========================================================================
   온마음 소아청소년과 — DREXLY 템플릿
   시안 7장(00-디자인보드 · 01~05 페이지 · 06-mobile)의 색·활자·구조를 옮긴
   단일 스타일시트. 규격서 = 「명령 프롬프트.txt」 01~14절.
   섹션 간격은 규격서 §03(Desktop 112~144px)을 따른다.
   ========================================================================== */

:root {
  /* 색 — 규격서 §03 */
  --bg: #faf8f3;          /* Ivory */
  --bg2: #f0f3ec;         /* Secondary background */
  --surface: #ffffff;
  --sage: #789487;
  --sage-deep: #5f7a6d;   /* 흰 글자를 얹을 때 쓰는 세이지 — 4.7:1 */
  --sage-soft: rgba(120, 148, 135, 0.13);
  --forest: #29483e;
  --forest-press: #1d3730;
  --apricot: #e9b8a0;
  --apricot-soft: #fbeee6;
  /* 시안의 애프리콧 원색은 글자 대비 1.5:1 로 WCAG AA 미달이라
     「글자용 애프리콧」을 따로 둔다(아이보리 위 4.6:1). */
  --accent-ink: #a3573a;
  --ink: #26312d;         /* Primary text */
  /* 시안 값(#67726c·#8b948e·#c94a43)은 아이보리 위에서 각각 4.7·2.9·4.35:1 이라
     보조·메타 글자가 WCAG AA(4.5:1)에 못 미쳤다. 위계는 지키고 명도만 낮춘다. */
  --ink2: #5d6862;        /* Secondary text — 5.5:1 */
  --muted: #646e67;       /* Caption·meta — 4.7:1 (연한 바탕 #f0f3ec 기준) */
  --err: #bf3f38;         /* 5.0:1 */
  --ok: #3f765c;
  --line: rgba(41, 72, 62, 0.14);
  --line-soft: rgba(41, 72, 62, 0.07);

  /* 글꼴 — 규격서 §03 */
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --serif: "Noto Serif KR", Georgia, "Times New Roman", serif;

  /* 조판 — 8px 기반 */
  --wrap: 1280px;
  --gutter: 40px;
  --section: 128px;
  --header-h: 84px;
  --r: 6px;
  --r-lg: 12px;
  --shadow: 0 1px 2px rgba(41, 72, 62, 0.05), 0 10px 30px rgba(41, 72, 62, 0.07);
  --ease: cubic-bezier(0.22, 0.7, 0.28, 1);
}

/* --------------------------------------------------------------- 기본 */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: -0.005em;
  /* 한국어는 어절 단위로 끊는다 — 「3층」·「휴진」이 갈라지지 않게 */
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
/* display 를 지정한 클래스가 hidden 속성을 이기는 사고를 막는다 */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.42; letter-spacing: -0.022em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--forest);
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 사진 액자 — 반드시 블록이어야 aspect-ratio 가 먹는다 */
.frame { display: block; overflow: hidden; background: var(--bg2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

.ico {
  width: 22px; height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-sm { width: 17px; height: 17px; stroke-width: 1.5; }
.ico-lg { width: 32px; height: 32px; stroke-width: 1.2; }

/* ------------------------------------------------------- 활자 계층 §03 */
.display {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.34;
  letter-spacing: -0.035em;
}
.display .hl { color: var(--accent-ink); }
.page-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.32;
  letter-spacing: -0.035em;
}
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(25px, 2.7vw, 36px);
  line-height: 1.44;
  letter-spacing: -0.032em;
}
.lead { color: var(--ink2); font-size: 17px; line-height: 1.85; }
.caption { font-size: 13px; color: var(--muted); line-height: 1.7; }
.note { font-size: 13px; color: var(--muted); line-height: 1.75; }

.section { padding-block: calc(var(--section) / 2); }
.section-lead { padding-top: var(--section); }
.section-last { padding-bottom: var(--section); }
.section-tint { background: var(--bg2); }
.section-soft { background: linear-gradient(180deg, #fdfcf8 0%, var(--bg) 100%); }

.section-head { margin-bottom: 52px; max-width: 760px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head .section-title + p { margin-top: 16px; color: var(--ink2); font-size: 16px; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --------------------------------------------------------------- 버튼 */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.18s var(--ease);
}
.btn span[aria-hidden] { transition: transform 0.3s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

.btn-primary { --btn-bg: var(--forest); --btn-fg: #fff; --btn-bd: var(--forest); }
.btn-primary:hover { --btn-bg: var(--forest-press); --btn-bd: var(--forest-press); }

.btn-accent { --btn-bg: var(--apricot); --btn-fg: #3b2116; --btn-bd: var(--apricot); }
.btn-accent:hover { --btn-bg: #e0a686; --btn-bd: #e0a686; }

.btn-secondary { --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn-secondary:hover { --btn-bd: var(--sage); --btn-fg: var(--forest); }

.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink2); --btn-bd: var(--line); }
.btn-ghost:hover { --btn-bd: var(--sage); --btn-fg: var(--forest); }

.btn-on-dark { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.55); }
.btn-on-dark:hover { --btn-bg: #fff; --btn-fg: var(--forest); --btn-bd: #fff; }

.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 600;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-text:hover { gap: 11px; color: var(--accent-ink); }

/* --------------------------------------------------------------- 헤더 §04 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 248, 243, 0.82);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: saturate(1.15) blur(9px);
  backdrop-filter: saturate(1.15) blur(9px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 18px rgba(41, 72, 62, 0.05);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: var(--ink);
}
.brand .mark { width: 32px; height: 32px; flex: none; color: var(--sage); }
.brand b {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.brand b span { font-weight: 500; font-size: 0.86em; color: var(--ink2); }

.navlinks { display: flex; align-items: center; gap: 34px; }
.navlinks a {
  position: relative;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink2);
  padding: 8px 0;
  transition: color 0.3s var(--ease);
}
.navlinks a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.navlinks a:hover { color: var(--ink); }
.navlinks a:hover::after { transform: scaleX(1); }
.navlinks a[aria-current="page"] { color: var(--forest); font-weight: 600; }
.navlinks a[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink2);
  transition: color 0.3s var(--ease);
}
.nav-phone:hover { color: var(--forest); }
.nav-phone .ico { color: var(--sage); }

.menu-btn {
  display: none;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
}

/* 모바일 서랍 §04 */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(340px, 86vw);
  z-index: 90;
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: 22px 22px 40px;
  transform: translateX(101%);
  transition: transform 0.42s var(--ease);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.drawer-close {
  width: 46px; height: 46px;
  flex: none;
  display: grid; place-items: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
}
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.3s var(--ease);
}
.drawer nav a .ico { color: var(--sage); }
.drawer nav a:hover,
.drawer nav a[aria-current="page"] { color: var(--forest); }
/* 지금 보고 있는 면을 색만으로 알리지 않는다 — 점 표식을 함께 둔다 */
.drawer nav a[aria-current="page"]::after {
  content: "";
  margin-left: auto;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--apricot);
}
.drawer-contact { margin-top: 24px; display: grid; gap: 10px; }
.drawer-contact .btn { justify-content: flex-start; }
.drawer-hours {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--bg2);
  border-radius: var(--r);
  font-size: 13.5px;
  color: var(--ink2);
  line-height: 1.85;
}
.drawer-hours b { display: block; color: var(--ink); margin-bottom: 4px; font-size: 13px; }
.scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(38, 49, 45, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.42s var(--ease), visibility 0.42s;
}
.scrim.open { opacity: 1; visibility: visible; }

/* 하단 고정 내비 §04(모바일) */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav ul { display: flex; }
.bottom-nav li { flex: 1 1 0; min-width: 0; }
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 58px;
  padding: 6px 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink2);
}
.bottom-nav a .ico { width: 21px; height: 21px; }
.bottom-nav a[aria-current="page"] { color: var(--forest); }

/* --------------------------------------------------------------- 홈 히어로 §05 */
.hero {
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden; /* 잎사귀 워터마크가 왼쪽으로 흘러나간다 */
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: stretch;
  max-width: 1560px;
  margin: 0 auto;
}
.hero-copy {
  position: relative;
  padding: 96px var(--gutter) 100px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-leaf {
  position: absolute;
  left: -30px; bottom: 4%;
  width: 260px; height: 260px;
  color: var(--sage);
  opacity: 0.16;
  pointer-events: none;
}
.hero-copy > *:not(.hero-leaf) { position: relative; }
.hero-copy .display { margin-bottom: 22px; }
.hero-copy .lead { margin-bottom: 34px; max-width: 430px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; min-height: 480px; background: var(--bg2); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 오늘의 진료 상태 §05 */
.status-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 34px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 14px;
  color: var(--ink2);
  max-width: 470px;
}
.status-strip b { color: var(--ink); font-weight: 600; }
.status-dot {
  width: 9px; height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(63, 118, 92, 0.16);
}
.status-strip.is-closed .status-dot { background: var(--muted); box-shadow: 0 0 0 4px rgba(139, 148, 142, 0.16); }
.status-sep { color: var(--line); }

/* --------------------------------------------------- 빠른 진료 내비 §05 */
.quick-band { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.quick-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.quick-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 38px 16px 36px;
  text-align: center;
  border-left: 1px solid var(--line-soft);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.quick-nav li:first-child a { border-left: 0; }
.quick-nav a .ico-lg { width: 38px; height: 38px; color: var(--sage); transition: transform 0.4s var(--ease), color 0.3s var(--ease); }
.quick-nav a b { font-size: 15.5px; font-weight: 600; }
.quick-nav a span { font-size: 13px; color: var(--muted); }
.quick-nav a:hover { background: var(--bg2); color: var(--forest); }
.quick-nav a:hover .ico-lg { transform: translateY(-3px); color: var(--forest); }
.quick-nav a:active { background: var(--sage-soft); }

/* ------------------------------------------------------- 병원 철학 §05 */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 68px;
  align-items: center;
}
.split .frame { aspect-ratio: 490 / 394; border-radius: var(--r-lg); }
.philosophy-copy .section-title { margin-bottom: 24px; }
.philosophy-copy p { color: var(--ink2); font-size: 16px; line-height: 1.9; }
.philosophy-copy p + p { margin-top: 16px; }
.philosophy-points {
  display: grid;
  gap: 14px;
  margin: 30px 0 34px;
}
.philosophy-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink2);
}
.philosophy-points .ico-sm { color: var(--sage); margin-top: 5px; }
.philosophy-points b { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------- 공지사항 §05 */
.notice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 60px;
  align-items: start;
}
.notice-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--forest);
}
.notice-head h2 { font-family: var(--serif); font-size: 24px; }
.notice-list li { border-bottom: 1px solid var(--line-soft); }
.notice-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 4px;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.notice-list a:hover { color: var(--forest); padding-left: 8px; }
.notice-list .subject { font-size: 15.5px; font-weight: 500; }
.notice-list .subject::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--apricot);
  vertical-align: 3px;
}
.notice-list .date { flex: none; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.notice-still { border-radius: var(--r-lg); aspect-ratio: 430 / 225; }

/* ----------------------------------------------------- 진료 시간 §05 */
.hours-band { background: var(--bg2); }
.hours-strip {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr)) minmax(0, 1.15fr);
  align-items: center;
  gap: 34px;
  padding-block: 42px;
}
.hours-title { display: flex; align-items: center; gap: 14px; }
.hours-title .ico-lg { color: var(--sage); }
.hours-title h2 { font-family: var(--serif); font-size: 23px; white-space: nowrap; }
.hours-cell { border-left: 1px solid var(--line); padding-left: 28px; }
.hours-cell dt { font-size: 14px; font-weight: 600; color: var(--ink2); margin-bottom: 6px; }
.hours-cell dd { margin: 0; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hours-cell.is-today dt { color: var(--accent-ink); }
.hours-cell.is-today dd { color: var(--accent-ink); }
.hours-cell.is-today dt::after {
  content: "오늘";
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--apricot);
  color: #3b2116;
  font-size: 11px;
  font-weight: 700;
  vertical-align: 1px;
}
.hours-extra { border-left: 1px solid var(--line); padding-left: 28px; display: grid; gap: 6px; }
.hours-extra div { display: flex; gap: 12px; font-size: 14px; color: var(--ink2); }
.hours-extra b { color: var(--accent-ink); font-weight: 600; min-width: 62px; }

/* --------------------------------------------------- 신뢰 문장 §05 */
.trust {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 60px;
  align-items: center;
}
.trust-art {
  background: var(--apricot-soft);
  border-radius: var(--r-lg);
  padding: 32px;
  color: var(--sage);
}
.trust-art svg { width: 100%; height: auto; display: block; }
.trust-copy .section-title { margin-bottom: 20px; }
.trust-copy p { color: var(--ink2); font-size: 16px; line-height: 1.9; }
.trust-copy .btn { margin-top: 30px; }

/* --------------------------------------------------------- CTA 띠 */
.cta-band { background: var(--forest); color: #fff; }
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding-block: 52px;
}
.cta-band h2 { font-family: var(--serif); font-size: clamp(21px, 2.2vw, 28px); }
.cta-band p { margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, 0.8); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }

/* --------------------------------------------------------- 페이지 히어로 */
.page-hero {
  position: relative;
  background: linear-gradient(150deg, #f4f1e8 0%, var(--bg) 55%, var(--bg2) 100%);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.page-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--phw, 0.86fr));
  align-items: center;
  gap: 56px;
  padding-block: 68px;
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero .page-title { margin-bottom: 16px; }
.page-hero p { color: var(--ink2); font-size: 16.5px; line-height: 1.85; max-width: 460px; }
.phero-media {
  aspect-ratio: var(--phr, 16 / 10);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg2);
  box-shadow: var(--shadow);
}
.phero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}
.page-hero .crumb a:hover { color: var(--forest); }

/* ============================================== PAGE 02 — 진료안내 §06 */
.care-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.care-side { position: sticky; top: calc(var(--header-h) + 24px); }
.care-side .eyebrow { margin-bottom: 16px; }
.care-nav { display: grid; margin-bottom: 28px; border-top: 1px solid var(--line); }
.care-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 8px 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink2);
  border-bottom: 1px solid var(--line);
  transition: color 0.3s var(--ease), background 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.care-nav a .ico-sm { color: var(--sage); }
.care-nav a:hover { color: var(--ink); padding-left: 16px; }
.care-nav a.is-active { color: #fff; background: var(--forest); font-weight: 600; }
.care-nav a.is-active .ico-sm { color: var(--apricot); }
.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 20px 22px;
}
.side-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  margin-bottom: 14px;
}
.side-card h3 .ico-sm { color: var(--sage); }
.side-hours { display: grid; gap: 7px; font-size: 13.5px; color: var(--ink2); }
.side-hours div { display: flex; justify-content: space-between; gap: 10px; }
.side-hours .off { color: var(--accent-ink); }
.side-card .btn { margin-top: 18px; }

.care-item { scroll-margin-top: calc(var(--header-h) + 28px); }
.care-item + .care-item { margin-top: 88px; }
.care-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
/* 시안 02 의 교차 순서 — 1·3·5 번은 글이 왼쪽, 2·4 번은 사진이 왼쪽 */
.care-item:nth-child(odd) .care-figure { order: 2; }
.care-figure { aspect-ratio: 300 / 180; border-radius: var(--r-lg); }
.care-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.care-badge {
  width: 52px; height: 52px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--forest);
}
.care-head h2 { font-family: var(--serif); font-size: clamp(21px, 2.1vw, 27px); }
.care-head .care-num { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--muted); display: block; margin-bottom: 4px; }
.care-body > p { color: var(--ink2); font-size: 15.5px; line-height: 1.85; margin-bottom: 20px; }
.care-symptoms { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 13px;
  color: var(--ink2);
}
.care-meta {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.care-meta dt { color: var(--muted); }
.care-meta dd { margin: 0; color: var(--ink2); }
.care-meta dd b { color: var(--ink); font-weight: 600; }
.care-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* 예방접종 일정 타임라인 §06 */
.timeline-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px 36px 34px;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 30px;
}
.timeline li { position: relative; padding: 0 12px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 7px;
  height: 1px;
  background: var(--line);
}
.timeline li:first-child::before { left: 50%; }
.timeline li:last-child::before { right: 50%; }
.timeline .age {
  position: relative;
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--forest);
  padding-top: 24px;
}
.timeline .age::after {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--sage);
}
.timeline ul { margin-top: 12px; display: grid; gap: 5px; text-align: center; }
.timeline ul li { padding: 0; font-size: 13px; color: var(--ink2); }
.timeline ul li::before { display: none; }

/* 방문 준비물 §06 */
.prep-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}
.prep-item {
  text-align: center;
  padding: 26px 18px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.prep-item .ico-lg { color: var(--sage); margin: 0 auto 14px; }
.prep-item b { display: block; font-size: 15px; margin-bottom: 8px; }
.prep-item span { font-size: 13px; color: var(--ink2); line-height: 1.7; }

/* FAQ 아코디언 §06 */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  gap: 56px;
  align-items: start;
}
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 16px 4px;
  background: none;
  border: 0;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.acc-trigger:hover { color: var(--forest); }
.acc-trigger .ico { color: var(--muted); transition: transform 0.4s var(--ease), color 0.3s var(--ease); }
.acc-trigger[aria-expanded="true"] { color: var(--forest); font-weight: 600; }
.acc-trigger[aria-expanded="true"] .ico { transform: rotate(180deg); color: var(--forest); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s var(--ease);
}
.acc-panel > div { overflow: hidden; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel p {
  padding: 0 4px 22px;
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.9;
}

/* ============================================== PAGE 03 — 의료진 §07 */
.doctor-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 60px;
  align-items: center;
}
.doctor-lead .frame { aspect-ratio: 400 / 366; border-radius: var(--r-lg); }
.doc-name { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.doc-name h2 { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); }
.doc-name .role { font-size: 16px; font-weight: 600; color: var(--ink2); }
.doc-spec { font-size: 15px; color: var(--accent-ink); font-weight: 600; margin-bottom: 26px; }
.doc-block + .doc-block { margin-top: 28px; }
.doc-block h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.doc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.doc-fields li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink2); }
.doc-fields .ico-sm { color: var(--sage); margin-top: 4px; }
.doc-career { display: grid; gap: 9px; }
.doc-career li { position: relative; padding-left: 16px; font-size: 14.5px; color: var(--ink2); }
.doc-career li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sage);
}
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.doctor-row {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 56px;
  align-items: center;
}
.doctor-row.flip .doctor-photo { order: 2; }
.doctor-row .frame { aspect-ratio: 320 / 244; border-radius: var(--r-lg); }
.doctor-row + .doctor-row { margin-top: 76px; }

/* 주간 진료 일정 §07 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.schedule {
  width: 100%;
  min-width: 720px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.schedule th, .schedule td {
  padding: 15px 14px;
  text-align: center;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.schedule thead th {
  background: var(--forest);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-left-color: rgba(255, 255, 255, 0.16);
}
.schedule tbody th { background: var(--bg2); font-weight: 600; white-space: nowrap; border-left: 0; }
.schedule thead th:first-child { border-left: 0; }
.schedule tbody tr:last-child th, .schedule tbody tr:last-child td { border-bottom: 0; }
.schedule .off { color: var(--accent-ink); font-weight: 600; }
.schedule td small { display: block; font-size: 12px; color: var(--muted); }
.schedule-note { margin-top: 14px; }

.doc-tabs { display: none; }
.tab-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-row::-webkit-scrollbar { display: none; }
.tab-row button {
  flex: 1 0 auto;
  min-height: 48px;
  padding: 0 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink2);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tab-row button[aria-selected="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.tab-panel { display: none; }
.tab-panel.is-shown { display: block; }
.day-list { border-top: 1px solid var(--line); }
.day-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}
.day-list .day { font-weight: 600; }
.day-list .slot-txt { color: var(--ink2); font-size: 14px; text-align: right; }
.day-list .off { color: var(--accent-ink); font-weight: 600; }

/* 인용 §07 */
.quote-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 56px 52px;
  background: var(--apricot-soft);
  border-radius: var(--r-lg);
}
.quote-panel blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 27px);
  font-weight: 600;
  line-height: 1.68;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.quote-panel .qm { font-size: 1.1em; color: var(--accent-ink); }
.quote-side { border-left: 1px solid rgba(41, 72, 62, 0.14); padding-left: 44px; }
.quote-side p { font-size: 15px; color: var(--ink2); line-height: 1.95; }
.doc-notice {
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}

/* ============================================== PAGE 04 — 예약 §08 */
.book-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 48px;
  align-items: start;
}
.steps-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 34px;
  overflow-x: auto;
  scrollbar-width: none;
}
.steps-bar::-webkit-scrollbar { display: none; }
.steps-bar li {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 0 auto;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.steps-bar li .n {
  width: 28px; height: 28px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg2);
  color: var(--ink2);
  font-size: 13px;
  font-weight: 700;
}
.steps-bar li[aria-current="step"] { color: var(--forest); font-weight: 700; }
.steps-bar li[aria-current="step"] .n { background: var(--forest); color: #fff; }
.steps-bar li.is-done .n { background: var(--sage-deep); color: #fff; }
.steps-bar li.is-done { color: var(--ink2); }
.steps-bar .sep { flex: 0 0 auto; color: var(--line); }

.book-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 30px 32px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.book-step + .book-step { margin-top: 20px; }
/* legend 은 기본값이면 테두리 위에 얹힌다 — float 로 본문 흐름에 되돌린다 */
.book-step::after { content: ""; display: block; clear: both; }
.book-step > legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.book-step > legend .n {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
}
.step-hint { font-size: 14px; color: var(--ink2); margin-bottom: 20px; }

/* 선택 칩(진료 분야) */
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink2);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.choice:hover { border-color: var(--sage); color: var(--ink); }
/* 선택 표시는 고른 칩에만 나타난다 — 안 고른 칩에 체크가 보이면 오해를 준다 */
.choice .ico-sm { width: 0; opacity: 0; color: var(--apricot); transition: width 0.2s var(--ease), opacity 0.2s var(--ease); }
.choice-row input:checked + .choice {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
  font-weight: 600;
}
.choice-row input:checked + .choice .ico-sm { width: 17px; opacity: 1; }
.choice-row input:focus-visible + .choice { outline: 2px solid var(--forest); outline-offset: 3px; }

/* 의료진 카드 선택 */
.doc-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.doc-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.doc-card {
  display: flex;
  gap: 14px;
  height: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.doc-card:hover { border-color: var(--sage); }
.doc-pick input:checked + .doc-card { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.doc-pick input:focus-visible + .doc-card { outline: 2px solid var(--forest); outline-offset: 3px; }
.doc-card .frame { width: 62px; height: 62px; flex: none; border-radius: 50%; }
.doc-card .frame img { object-position: center 20%; }
.doc-card b { display: block; font-size: 15px; margin-bottom: 3px; }
.doc-card span { font-size: 12.5px; color: var(--ink2); line-height: 1.6; display: block; }
.doc-card .pick-mark { margin-left: auto; color: var(--line); flex: none; }
.doc-pick input:checked + .doc-card .pick-mark { color: var(--forest); }

/* 달력 */
.cal-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 24px;
  align-items: start;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.cal-head b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-nav {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  color: var(--ink2);
}
.cal-nav:hover:not([disabled]) { border-color: var(--sage); color: var(--forest); }
.cal-nav[disabled] { opacity: 0.35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding-bottom: 6px;
}
.cal-dow.sun { color: var(--err); }
.cal-dow.sat { color: #3f6b8f; }
.cal-cell { position: relative; }
.cal-cell input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cal-day {
  display: grid;
  place-items: center;
  height: 42px;
  border-radius: var(--r);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.cal-day:hover { background: var(--sage-soft); }
.cal-cell input:checked + .cal-day { background: var(--forest); color: #fff; font-weight: 700; }
.cal-cell input:focus-visible + .cal-day { outline: 2px solid var(--forest); outline-offset: 2px; }
.cal-cell.is-off .cal-day { color: var(--muted); text-decoration: line-through; cursor: not-allowed; background: none; }
.cal-cell.is-empty { visibility: hidden; }
.cal-cell.is-sun .cal-day { color: var(--err); }
.cal-cell.is-sat .cal-day { color: #3f6b8f; }
.cal-cell.is-off.is-sun .cal-day, .cal-cell.is-off.is-sat .cal-day { color: var(--muted); }

.cal-side {
  background: var(--bg2);
  border-radius: var(--r);
  padding: 20px;
}
.cal-side .k { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.cal-side .v { font-size: 19px; font-weight: 700; font-family: var(--serif); letter-spacing: -0.03em; }
.legend { display: grid; gap: 9px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.legend li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink2); }
.legend i {
  width: 11px; height: 11px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--sage);
  background: var(--surface);
}
.legend i.full { background: var(--apricot); border-color: var(--apricot); }
.legend i.closed { background: #d7dbd8; border-color: #c3c9c5; }
.legend i.picked { background: var(--forest); border-color: var(--forest); }

/* 시간 선택 */
.slot-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.slot-grid input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.slot:hover { border-color: var(--sage); }
.slot small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.slot-grid input:checked + .slot { background: var(--forest); border-color: var(--forest); color: #fff; }
.slot-grid input:checked + .slot small { color: rgba(255, 255, 255, 0.72); }
.slot-grid input:focus-visible + .slot { outline: 2px solid var(--forest); outline-offset: 3px; }
.slot-grid input:disabled + .slot { cursor: not-allowed; color: var(--muted); background: var(--bg2); border-style: dashed; }
.slot.is-full { border-color: rgba(233, 184, 160, 0.7); background: #fdf3ed; color: var(--accent-ink); }
.slot-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--r);
  background: var(--apricot-soft);
  font-size: 13.5px;
  color: #7b432a;
}
.slot-note .ico-sm { color: var(--accent-ink); flex: none; }
.slot-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; }
.slot-legend li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink2); }
.slot-legend i {
  width: 11px; height: 11px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--sage);
  background: var(--surface);
}
.slot-legend i.full { background: var(--apricot); border-color: var(--apricot); }
.slot-legend i.closed { background: #d7dbd8; border-color: #c3c9c5; }
.slot-legend i.picked { background: var(--forest); border-color: var(--forest); }
.slot-skeleton { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.slot-skeleton span {
  display: block;
  height: 48px;
  border-radius: var(--r);
  background: linear-gradient(90deg, var(--bg2) 25%, #e6eae2 37%, var(--bg2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* 환자 정보 폼 §10 */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-sub {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 4px 0 14px;
  grid-column: 1 / -1;
}
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field > label,
.field > .flabel { font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.field .req { color: var(--err); }
.field .opt { color: var(--muted); font-weight: 500; }
.control {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.control::placeholder { color: #7d867f; }
.control:hover { border-color: rgba(41, 72, 62, 0.24); }
.control:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(120, 148, 135, 0.2);
}
.control:disabled { background: var(--bg2); color: var(--muted); cursor: not-allowed; }
textarea.control { min-height: 108px; resize: vertical; line-height: 1.75; }
select.control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b948e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.field.filled .control { background: #fcfdfb; }
.field.invalid .control { border-color: var(--err); box-shadow: 0 0 0 3px rgba(201, 74, 67, 0.13); }
.field-err {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--err);
}
.field.invalid .field-err { display: flex; }
.field-err .ico-sm { width: 14px; height: 14px; }

.seg { display: flex; gap: 8px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink2);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.seg label:hover { border-color: var(--sage); }
.seg input:checked + label { background: var(--forest); border-color: var(--forest); color: #fff; font-weight: 600; }
.seg input:focus-visible + label { outline: 2px solid var(--forest); outline-offset: 3px; }

.consent {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--bg2);
  border-radius: var(--r);
}
.consent.invalid { background: #fdf1f0; box-shadow: inset 0 0 0 1px var(--err); }
.check { display: flex; align-items: flex-start; gap: 11px; }
.check + .check { margin-top: 10px; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check label {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink2);
  cursor: pointer;
}
.check .box {
  width: 21px; height: 21px;
  flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: transparent;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease);
}
.check input:checked + label .box { background: var(--forest); border-color: var(--forest); color: #fff; }
.check input:focus-visible + label .box { outline: 2px solid var(--forest); outline-offset: 2px; }
.check .btn-text { margin-left: auto; font-size: 13px; flex: none; }

.form-foot { display: flex; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.form-foot .btn-primary { min-width: 200px; }
.form-foot .note { flex: 1; min-width: 200px; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 예약 요약 패널 §08 */
.book-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.sum-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sum-card > h2 {
  display: flex;
  align-items: center;
  background: var(--forest);
  color: #fff;
  font-family: var(--serif);
  font-size: 17px;
}
.sum-h { display: flex; align-items: center; gap: 9px; padding: 16px 20px; }
.sum-toggle { display: none; }
.sum-list { padding: 6px 20px 4px; }
.sum-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
}
.sum-list > div:last-child { border-bottom: 0; }
.sum-list dt { color: var(--muted); font-size: 13.5px; flex: none; }
.sum-list dd { margin: 0; font-weight: 600; text-align: right; }
.sum-list dd.empty { color: var(--muted); font-weight: 400; }
.sum-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
}
.info-card h2 { font-size: 15px; margin-bottom: 12px; }
.info-card .tel {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--forest);
  margin-bottom: 12px;
}
.info-card .side-hours { font-size: 13px; }
.info-card ul.rules { display: grid; gap: 10px; }
.info-card ul.rules li { display: flex; gap: 9px; font-size: 13.5px; color: var(--ink2); line-height: 1.65; }
.info-card ul.rules .ico-sm { color: var(--sage); margin-top: 3px; flex: none; }

/* 완료 패널 §08 */
.done-panel {
  margin-top: 22px;
  border: 1px solid var(--sage);
  border-radius: var(--r);
  background: linear-gradient(180deg, #f3f7f1, var(--surface));
  padding: 34px 30px;
}
.done-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.done-head .ico-lg { color: var(--ok); }
.done-head h2 { font-family: var(--serif); font-size: 24px; }
.done-panel > p { color: var(--ink2); font-size: 15px; margin-bottom: 22px; }
.done-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 22px;
}
.done-grid > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
}
.done-grid dt { color: var(--muted); font-size: 13.5px; }
.done-grid dd { margin: 0; font-weight: 600; }
/* .done-panel > p 가 예약번호 배지까지 잡아 어두운 바탕에 회색 글자가 됐다(대비 1.7:1).
   클래스로 한정해 되찾는다. */
.done-panel .done-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--forest);
  color: #fff;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* 예약 안내 아이콘 줄 */
.rule-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.rule-item { text-align: center; padding: 24px 16px; }
.rule-item .ring {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--forest);
}
.rule-item p { font-size: 13.5px; color: var(--ink2); line-height: 1.7; }
.rule-item b { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 5px; }

/* 예약 조회 */
.lookup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.lookup-form { display: grid; gap: 14px; }
.lookup-result {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 22px 24px;
}
.lookup-result h3 { font-size: 16px; margin-bottom: 12px; }
.lookup-result .sum-list { padding: 0; }
.lookup-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ============================================== PAGE 05 — 병원안내 §09 */
.clinic-hero { position: relative; }
.clinic-hero .frame { aspect-ratio: 1000 / 400; border-radius: 0; }
.clinic-hero .frame img { object-position: center 42%; }
.clinic-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg, var(--bg) 0%, rgba(250, 248, 243, 0.94) 26%, rgba(250, 248, 243, 0.55) 44%, rgba(250, 248, 243, 0) 68%);
  display: flex;
  align-items: center;
}
.clinic-hero .wrap { width: 100%; }
.clinic-hero .page-title { margin-bottom: 14px; }
.clinic-hero p { color: var(--ink2); font-size: 16.5px; max-width: 340px; }

.visit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.visit-block h2 { font-family: var(--serif); font-size: 24px; margin-bottom: 22px; }
.addr-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.addr-row .ico { color: var(--sage); margin-top: 3px; }
.addr-row .k { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.addr-row .v { font-size: 15.5px; line-height: 1.7; }
.addr-row .v a:hover { color: var(--forest); }
.visit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hours-table { width: 100%; }
.hours-table th, .hours-table td {
  padding: 14px 4px;
  font-size: 15px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}
.hours-table th { font-weight: 500; color: var(--ink2); }
.hours-table td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--accent-ink); }
.hours-table tr.is-off td { color: var(--accent-ink); }

.map-frame {
  aspect-ratio: 1656 / 580;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg2);
  position: relative;
}
.map-frame img { width: 100%; height: 100%; object-fit: cover; }
.map-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.map-actions .note { margin-left: auto; }

.transit {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: start;
}
.transit h2 { font-family: var(--serif); font-size: 22px; margin-bottom: 20px; }
.transit-row { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.transit-row .ring {
  width: 44px; height: 44px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--forest);
}
.transit-row b { display: block; font-size: 14.5px; margin-bottom: 5px; }
.transit-row p { font-size: 14px; color: var(--ink2); line-height: 1.75; }
.park-note {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--apricot-soft);
  border-radius: var(--r);
  font-size: 13.5px;
  color: #7b432a;
  line-height: 1.7;
}

.fac-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.fac-item .frame { aspect-ratio: 480 / 264; border-radius: var(--r-lg); }
.fac-item figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
  font-size: 15.5px;
  font-weight: 600;
}
.fac-item figcaption span { font-size: 13px; font-weight: 400; color: var(--muted); }

.iso-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.iso-copy { padding: 46px 44px; }
.iso-copy .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r);
  background: var(--sage-soft);
  color: var(--forest);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 16px;
}
.iso-copy h2 { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 16px; }
.iso-copy p { color: var(--ink2); font-size: 15.5px; line-height: 1.9; }
.iso-copy ul { display: grid; gap: 10px; margin-top: 22px; }
.iso-copy ul li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink2); }
.iso-copy ul .ico-sm { color: var(--sage); margin-top: 4px; flex: none; }
.iso-panel .frame { height: 100%; min-height: 300px; }

.phone-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding: 34px 40px;
  background: var(--apricot-soft);
  border-radius: var(--r-lg);
}
.phone-band .left { display: flex; align-items: center; gap: 20px; }
.phone-band .ring {
  width: 62px; height: 62px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-ink);
}
.phone-band .k { font-size: 13.5px; color: #7b432a; margin-bottom: 4px; }
.phone-band .tel {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.phone-band .right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* --------------------------------------------------------------- 푸터 */
.site-footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.15fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand .brand { color: #fff; margin-bottom: 18px; }
.footer-brand .brand .mark { color: var(--apricot); }
.footer-brand .brand b span { color: rgba(255, 255, 255, 0.72); }
.footer-brand p { font-size: 14px; line-height: 1.85; }
.footer-col h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-info { display: grid; gap: 10px; font-size: 14px; }
.footer-info div { display: grid; grid-template-columns: 78px 1fr; gap: 10px; }
.footer-info b { color: #fff; font-weight: 500; }
.footer-tel {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 22px 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}
.footer-bottom nav { display: flex; gap: 18px; }
.footer-bottom a:hover { color: #fff; }
.footer-disclaimer {
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
  padding-bottom: 22px;
}

.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 55;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s,
    color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--forest); border-color: var(--sage); }

/* --------------------------------------------------------------- 토스트 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 120;
  transform: translate(-50%, 18px);
  min-width: 280px;
  max-width: calc(100vw - 36px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r);
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 12px 34px rgba(38, 49, 45, 0.26);
  opacity: 0;
  visibility: hidden;
  /* 알림일 뿐이므로 아래 버튼을 가로막지 않는다 — 제출 버튼 위에 뜨는 위치다 */
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .ico { color: var(--apricot); flex: none; }

/* --------------------------------------------------------------- 등장 */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* =============================================================== 반응형 §11 */
@media (max-width: 1180px) {
  :root { --wrap: 1024px; --section: 112px; }
  .navlinks { gap: 24px; }
  .care-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
  .book-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; }
  .split, .notice-layout, .trust, .doctor-lead, .doctor-row, .transit { gap: 40px; }
  .hours-strip { gap: 22px; }
  .hours-cell, .hours-extra { padding-left: 20px; }
  .iso-copy { padding: 36px 32px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 28px; --section: 100px; --header-h: 72px; }
  .navlinks, .nav-phone { display: none; }
  .menu-btn { display: inline-flex; }
  .bottom-nav { display: block; }
  body { padding-bottom: 58px; }
  .to-top { bottom: 74px; }
  .toast { bottom: 76px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding: 56px var(--gutter) 48px; }
  .hero-media { min-height: 0; aspect-ratio: 16 / 9; }
  .hero-media img { position: static; }
  .quick-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-nav li:nth-child(3) a { border-left: 0; }
  .quick-nav li:nth-child(n + 3) a { border-top: 1px solid var(--line-soft); }
  /* minmax(0,1fr) 이어야 안쪽 가로 스크롤 상자가 칸을 밀어내지 않는다 */
  .split, .notice-layout, .trust, .doctor-lead, .doctor-row, .faq-layout,
  .lookup, .visit-layout, .transit, .quote-panel, .iso-panel, .cal-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .doctor-row.flip .doctor-photo, .care-item:nth-child(odd) .care-figure { order: 0; }
  .hours-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .hours-title { grid-column: 1 / -1; }
  .hours-cell:nth-child(2), .hours-extra { border-left: 0; padding-left: 0; }
  .hours-cell { border-left: 0; padding-left: 0; }
  .quote-side { border-left: 0; border-top: 1px solid rgba(41, 72, 62, 0.14); padding-left: 0; padding-top: 28px; }
  .iso-panel .frame { min-height: 240px; aspect-ratio: 540 / 300; }
  .prep-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rule-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fac-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .doc-pick { grid-template-columns: minmax(0, 1fr); }
  .book-layout { grid-template-columns: minmax(0, 1fr); }
  /* 요약은 폼 위로, 안내 카드는 폼 아래로 — 본문이 세 장 뒤로 밀리지 않게 §11 */
  .book-side { display: contents; }
  .book-side .sum-card {
    order: -1;
    position: sticky;
    top: var(--header-h);
    z-index: 40;
  }
  .book-side .info-card { order: 1; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }

  /* 진료안내 좌측 내비 → 상단 가로 탭 §11 */
  .care-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .care-side { position: static; }
  .care-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 0;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .care-nav::-webkit-scrollbar { display: none; }
  .care-nav a {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 8px 16px;
  }
  .care-nav a:hover { padding-left: 16px; }
  .side-card { display: none; }
  .care-split { grid-template-columns: 1fr; gap: 22px; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .timeline li:nth-child(3)::before { right: 50%; }
  .timeline li:nth-child(4)::before { left: 50%; }

  /* 의료진 일정: 표 → 탭 + 아코디언 §11 */
  .doc-schedule-table { display: none; }
  .doc-tabs { display: block; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --section: 80px; --header-h: 64px; }
  body { font-size: 15.5px; }
  .brand b { font-size: 18px; }
  .brand .mark { width: 28px; height: 28px; }

  .hero-copy { padding: 40px var(--gutter) 40px; }
  .hero-copy .lead { margin-bottom: 26px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .hero-leaf { width: 170px; height: 170px; left: -40px; }
  .hero-media { aspect-ratio: 4 / 3; }
  .status-strip { max-width: none; font-size: 13.5px; }

  .section-head { margin-bottom: 34px; }
  .page-hero .wrap { grid-template-columns: 1fr; gap: 26px; padding-block: 40px; }
  .page-hero p { max-width: none; }
  .phero-media { aspect-ratio: 16 / 9; }

  .quick-nav a { padding: 24px 10px; gap: 8px; }
  .quick-nav a b { font-size: 14px; }
  .split, .notice-layout, .trust { gap: 28px; }
  .notice-still { display: none; }
  .hours-strip { grid-template-columns: 1fr; gap: 16px; padding-block: 30px; }
  .hours-cell dd { font-size: 15px; }
  .trust-art { padding: 22px; }

  .cta-band .wrap { flex-direction: column; align-items: flex-start; gap: 22px; padding-block: 40px; }
  .cta-actions { width: 100%; display: grid; grid-template-columns: 1fr; }

  .care-item + .care-item { margin-top: 52px; }
  .care-badge { width: 44px; height: 44px; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline li::before { display: none; }
  .timeline .age { padding-top: 0; text-align: left; }
  .timeline .age::after { display: none; }
  .timeline li {
    padding: 14px 16px;
    background: var(--bg2);
    border-radius: var(--r);
  }
  .timeline ul { text-align: left; }
  .timeline-panel { padding: 26px 20px 24px; }
  .prep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .prep-item { padding: 20px 12px; }
  .faq-layout { gap: 28px; }

  .doctor-row + .doctor-row { margin-top: 44px; }
  .doc-fields { grid-template-columns: 1fr; }
  .quote-panel { padding: 32px 24px; }

  .steps-bar { padding: 12px 14px; margin-bottom: 22px; }
  .steps-bar li { font-size: 13px; }
  .book-step { padding: 22px 18px 24px; }
  .book-step > legend { font-size: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .slot-grid, .slot-skeleton { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cal-day { height: 40px; font-size: 13.5px; }
  .cal-grid { gap: 2px; }
  .rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rule-item { padding: 18px 8px; }
  .done-grid { grid-template-columns: 1fr; gap: 0; padding: 16px 18px; }
  .done-panel { padding: 26px 20px; }
  .form-foot .btn-primary { width: 100%; min-width: 0; }

  /* 요약 = 접이식 패널(하단 고정 내비와 겹치지 않게 상단에 붙인다) */
  .sum-h { display: none; }
  .sum-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 56px;
    padding: 0 20px;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
  }
  .sum-toggle .ico { margin-left: auto; transition: transform 0.35s var(--ease); }
  .sum-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
  .sum-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
  .sum-body > div { overflow: hidden; }
  .sum-card.open .sum-body { grid-template-rows: 1fr; }

  .clinic-hero .frame { aspect-ratio: 4 / 3; }
  .clinic-hero .overlay {
    background: linear-gradient(180deg, rgba(250, 248, 243, 0.92) 0%, rgba(250, 248, 243, 0.72) 40%, rgba(250, 248, 243, 0.1) 100%);
    align-items: flex-start;
    padding-top: 30px;
  }
  .clinic-hero p { max-width: none; font-size: 15px; }
  .visit-actions .btn { width: 100%; }
  .map-actions .btn { flex: 1 1 auto; }
  .map-actions .note { margin-left: 0; flex-basis: 100%; }
  .fac-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .fac-grid::-webkit-scrollbar { display: none; }
  .fac-item { flex: 0 0 78%; scroll-snap-align: start; }
  .iso-copy { padding: 26px 22px 30px; }
  .phone-band { padding: 24px 22px; flex-direction: column; align-items: stretch; }
  .phone-band .right { display: grid; }

  .site-footer { padding-top: 52px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .to-top { right: 14px; bottom: 70px; width: 46px; height: 46px; }
}

/* 좁은 화면 헤더 — 로고·CTA·햄버거 셋이 한 줄에 들어가야 한다 */
@media (max-width: 560px) {
  .nav { gap: 12px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { min-height: 44px; padding: 0 14px; font-size: 13.5px; gap: 0; }
  .nav-actions .btn .ico { display: none; }
  .menu-btn { width: 44px; height: 44px; }
}

@media (max-width: 400px) {
  .brand b { font-size: 15px; line-height: 1.18; }
  .brand b span { display: block; font-size: 12px; }
  .hero-actions { grid-template-columns: 1fr; }
  .slot-grid, .slot-skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prep-grid { grid-template-columns: 1fr; }
  .bottom-nav a { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .drawer, .scrim, .to-top, .toast, .bottom-nav, .cta-band .btn { display: none !important; }
  body { background: #fff; padding-bottom: 0; }
}
