/* ==========================================================================
   온전히 검진센터 — DREXLY 템플릿 (종합건강검진)
   정본: 31번 폴더 00-디자인보드.png(색·활자·컴포넌트·사이트맵)
        + 02-페이지시안.png(각 면 세부) + 01-home.png(홈) + 06-mobile.png(모바일)
   레이아웃 원형: Calm Split Hero · 인체 부위 Explorer · Subgrid 비교표
                 · Sticky 준비 타임라인 · 예약 Step Form
   ========================================================================== */

:root {
  /* 색 — 디자인보드 COLOR 5종 */
  --deep: #0f4d4a;          /* Deep Teal */
  --teal: #1a6b66;          /* Teal */
  --sand: #e8d9b5;          /* Sand */
  --wgray: #f5f6f7;         /* Warm Gray */
  --ink: #1f2933;           /* Charcoal */

  /* 파생 — 명도대비(AA)를 실제로 맞춘 값 */
  --deep-press: #0a3a38;
  --teal-ink: #14615c;      /* 흰 바탕 위 글자 5.2:1 */
  --teal-tint: #e9f1ef;
  --teal-line: #cfe0dd;
  --sand-deep: #dcc697;
  --sand-tint: #faf4e7;
  --surface: #ffffff;
  --ink2: #4a5761;          /* 본문 보조 7.3:1 */
  --muted: #67727c;         /* 캡션 5.4:1 */
  --line: #dfe4e7;
  --line-soft: #eceff1;

  /* 의미색 — 색만으로 상태를 전하지 않는다(§09). 항상 글자·아이콘을 함께 쓴다 */
  --ok: #146b5b;
  --ok-bg: #e9f2ef;
  --ok-line: #cbe0d9;
  --warn-ink: #8a6620;
  --warn-bg: #fdf4e3;
  --warn-line: #ecdcba;
  --err: #b3261e;
  --err-bg: #fcecea;
  --err-line: #f0cfcc;

  /* 글꼴 — 디자인보드 TYPOGRAPHY 는 Pretendard 한 벌만 지정한다 */
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;

  /* 조판 — 디자인보드 8px 그리드 / RADIUS 8·12·16 */
  --wrap: 1200px;
  --gutter: 40px;
  --section: 104px;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --sh-1: 0 1px 2px rgba(31, 41, 51, 0.05), 0 2px 8px rgba(31, 41, 51, 0.04);
  --sh-2: 0 2px 6px rgba(31, 41, 51, 0.05), 0 14px 30px rgba(31, 41, 51, 0.07);
  --sh-3: 0 8px 18px rgba(15, 77, 74, 0.1), 0 24px 48px rgba(15, 77, 74, 0.1);
  --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(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: -0.01em;
  /* 한국어는 어절 단위로 끊는다 — 「3층」·「금식」이 갈라지지 않게 */
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
/* display 를 다시 지정한 클래스가 [hidden] 을 이겨 버리는 일이 잦다 — 못 이기게 못 박는다 */
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.34; letter-spacing: -0.028em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 600; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--deep);
  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(--wgray); border-radius: var(--r-m); }
.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: 16px; height: 16px; stroke-width: 1.6; }
.ico-lg { width: 30px; height: 30px; stroke-width: 1.2; }

/* ---------------------------------------------------------- 활자 계층 */
.display {
  font-size: clamp(32px, 4.1vw, 52px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.038em;
}
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-ink);
}
.section-title {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.38;
  letter-spacing: -0.035em;
}
.lead { color: var(--ink2); font-size: 17px; line-height: 1.8; }
.muted { color: var(--muted); }
.caption { font-size: 13px; color: var(--muted); line-height: 1.65; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.section { padding-block: calc(var(--section) / 2); }
.section-lead { padding-top: var(--section); }
.section-last { padding-bottom: var(--section); }
.section-soft { background: var(--wgray); }
.section-tint { background: var(--teal-tint); }

.section-head { margin-bottom: 40px; max-width: 760px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head p { margin-top: 14px; color: var(--ink2); font-size: 16px; }
.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.head-row .section-head { margin-bottom: 0; }

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

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

.btn-outline { --btn-bg: var(--surface); --btn-fg: var(--teal-ink); --btn-bd: var(--teal-line); }
.btn-outline:hover { --btn-bd: var(--teal); --btn-bg: var(--teal-tint); }

.btn-sand { --btn-bg: var(--sand); --btn-fg: #33291a; --btn-bd: var(--sand); }
.btn-sand:hover { --btn-bg: var(--sand-deep); --btn-bd: var(--sand-deep); }

.btn-ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.55); }
.btn-ghost-light:hover { --btn-bg: rgba(255, 255, 255, 0.12); --btn-bd: #fff; }

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

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-ink);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.btn-text:hover { border-bottom-color: var(--teal); gap: 10px; }

/* ------------------------------------------------------------- 헤더 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-stuck {
  -webkit-backdrop-filter: saturate(1.15) blur(10px);
  backdrop-filter: saturate(1.15) blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 18px rgba(31, 41, 51, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.brand { display: block; flex: none; }
.brand .brand-kr {
  display: block;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.15;
}
.brand small {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 3px;
}
.navlinks { display: flex; align-items: center; gap: 32px; }
.navlinks a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink2);
  padding: 8px 0;
  transition: color 0.25s var(--ease);
}
.navlinks a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.navlinks a:hover { color: var(--ink); }
.navlinks a:hover::after { transform: scaleX(1); }
.navlinks a[aria-current="page"] { color: var(--deep); 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: 14.5px;
  font-weight: 600;
  color: var(--ink2);
}
.nav-phone .ico { color: var(--teal); }
.nav-phone:hover { color: var(--deep); }

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

/* 모바일 서랍 */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(330px, 86vw);
  z-index: 90;
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: 20px 22px 36px;
  transform: translateX(100%);
  transition: transform 0.38s 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;
  margin-bottom: 14px;
}
.drawer-close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  cursor: pointer;
}
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  font-size: 17px;
  font-weight: 600;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer nav a[aria-current="page"] { color: var(--deep); }
.drawer nav a .ico { color: var(--muted); }
.drawer-contact { margin-top: 20px; display: grid; gap: 8px; }
.drawer-contact .btn { justify-content: flex-start; }
.drawer-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 34, 33, 0.44);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.38s var(--ease), visibility 0.38s;
}
.scrim.open { opacity: 1; visibility: visible; }

/* -------------------------------------------------- 홈 — Calm Split Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--deep);
  color: #fff;
}
.hero-panel { display: flex; align-items: center; }
.hero-inner {
  width: 100%;
  max-width: calc(var(--wrap) / 2);
  margin-left: auto;
  padding: 76px 48px 76px var(--gutter);
}
.hero h1 {
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.34;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.hero .hero-sub { color: rgba(255, 255, 255, 0.82); font-size: 16.5px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn-outline { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.5); }
.hero-actions .btn-outline:hover { --btn-bg: rgba(255, 255, 255, 0.12); --btn-bd: #fff; }
.hero-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-points li { font-size: 12.5px; color: rgba(255, 255, 255, 0.82); line-height: 1.5; }
.hero-points .ico { color: var(--sand); margin-bottom: 8px; }
.hero-media { position: relative; min-height: 420px; background: var(--wgray); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 통계 밴드 */
.statband { background: var(--deep-press); color: #fff; }
.statband ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 26px 0;
}
.statband li { display: flex; align-items: center; gap: 14px; }
.statband .ico { color: var(--sand); }
.statband b { display: block; font-size: 23px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
.statband span { font-size: 12.5px; color: rgba(255, 255, 255, 0.78); }

/* ------------------------------------------------- 인체 부위 Explorer */
.explorer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.ex-list { display: grid; gap: 10px; width: 100%; max-width: 300px; }
.ex-right { justify-self: end; }
.ex-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: var(--sh-1);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.ex-list a .ico { color: var(--teal); }
.ex-list a .arrow { margin-left: auto; color: var(--muted); }
.ex-list a:hover { border-color: var(--teal-line); transform: translateY(-1px); }
.ex-list a[aria-current="true"] {
  border-color: var(--deep);
  background: var(--teal-tint);
  color: var(--deep);
}
.ex-figure { display: grid; place-items: center; }
.ex-figure svg { width: 100%; max-width: 300px; height: auto; }
.body-svg .body-base { fill: #f2f5f6; stroke: #cfd8db; stroke-width: 1.2; }
.body-svg .region { cursor: pointer; }
.body-svg .region .hit { fill: transparent; stroke: none; }
.body-svg .region .shape {
  fill: rgba(26, 107, 102, 0.1);
  stroke: var(--teal);
  stroke-width: 1.3;
  transition: fill 0.25s var(--ease), stroke 0.25s var(--ease);
}
.body-svg .region:hover .shape { fill: rgba(26, 107, 102, 0.24); }
.body-svg .region:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
.body-svg .region[aria-current="true"] .shape { fill: var(--deep); stroke: var(--deep); }
.body-svg .region-label { font-size: 9px; fill: var(--ink2); font-weight: 600; letter-spacing: -0.03em; }
.ex-hint { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--muted); }

.ex-panels { margin-top: 34px; display: grid; gap: 16px; }
.ex-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  padding: 26px 28px;
  box-shadow: var(--sh-1);
  scroll-margin-top: 100px;
}
.ex-panel h3 { font-size: 19px; margin-bottom: 6px; }
.ex-panel .ex-sum { color: var(--ink2); font-size: 15px; margin-bottom: 16px; }
.ex-tests { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-tests li {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--wgray);
  color: var(--ink2);
}
.ex-panel .ex-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------- 카드·격자 */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--sh-1);
}
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

/* 국가검진 vs 종합검진 */
.vs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.vs-card { padding: 30px 32px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); }
.vs-card.is-deep { background: var(--deep); border-color: var(--deep); color: #fff; }
.vs-card .vs-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--wgray);
  color: var(--ink2);
  margin-bottom: 14px;
}
.vs-card.is-deep .vs-tag { background: rgba(255, 255, 255, 0.16); color: #fff; }
.vs-card h3 { font-size: 20px; margin-bottom: 10px; }
.vs-card .vs-desc { font-size: 14.5px; color: var(--ink2); margin-bottom: 18px; }
.vs-card.is-deep .vs-desc { color: rgba(255, 255, 255, 0.82); }
.vs-list { display: grid; gap: 9px; font-size: 14px; }
.vs-list li { display: flex; gap: 9px; align-items: flex-start; }
.vs-list .ico { color: var(--teal); margin-top: 3px; }
.vs-card.is-deep .vs-list { color: rgba(255, 255, 255, 0.9); }
.vs-card.is-deep .vs-list .ico { color: var(--sand); }

/* 안내·경고 상자 — 색 + 아이콘 + 머리말을 함께 쓴다 */
.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--r-s);
  font-size: 14px;
  line-height: 1.7;
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn-ink);
}
.note .ico { flex: none; margin-top: 2px; }
.note b { display: block; margin-bottom: 2px; }
.note.is-ok { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok); }
.note.is-err { border-color: var(--err-line); background: var(--err-bg); color: var(--err); }
.note.is-plain { border-color: var(--line); background: var(--wgray); color: var(--ink2); }
.note-stack { display: grid; gap: 12px; }

/* 태그·상태 표식 */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal-ink);
  letter-spacing: -0.01em;
}
.chip.is-sand { background: var(--sand-tint); color: #7a5c1c; }
.chip.is-gray { background: var(--wgray); color: var(--ink2); }
.chip.is-err { background: var(--err-bg); color: var(--err); }

/* --------------------------------------------------------------- 표 */
.table-scroll {
  /* overflow 상자는 반드시 position:relative — 아니면 320px 에서 문서 전체가 밀린다 */
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 620px;
}
table.data caption {
  text-align: left;
  padding: 18px 22px 0;
  font-size: 13px;
  color: var(--muted);
}
table.data th, table.data td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
table.data thead th {
  background: var(--wgray);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink2);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
table.data tbody th { font-weight: 600; color: var(--ink); }
table.data tbody tr:last-child th,
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.pr { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
table.data td .sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.table-foot { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* ------------------------------------------------- 프로그램(카드) 목록 */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--wgray);
  border-radius: 999px;
  flex-wrap: wrap;
}
.tabs button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--deep); color: #fff; }

.prog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.prog {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  box-shadow: var(--sh-1);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.prog:hover { box-shadow: var(--sh-2); transform: translateY(-2px); border-color: var(--teal-line); }
.prog-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.prog-ring {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--deep);
}
.prog h3 { font-size: 18px; margin-bottom: 8px; }
.prog .prog-desc { font-size: 14px; color: var(--ink2); margin-bottom: 16px; }
.prog-meta {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.prog-meta li { display: flex; gap: 8px; align-items: center; }
.prog-meta .ico { color: var(--teal); }
.prog-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.prog-price { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.prog-price small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.prog-price .unit { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.prog[hidden] { display: none; }
.filter-empty {
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--r-m);
  color: var(--muted);
  font-size: 14.5px;
}

/* 의료진 */
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.doc {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
}
.doc h3 { font-size: 17px; margin-bottom: 4px; }
.doc .doc-role { font-size: 13px; color: var(--teal-ink); font-weight: 600; margin-bottom: 14px; }
.doc .doc-bio { font-size: 13.5px; color: var(--ink2); margin-bottom: 14px; }
.doc-days { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-days li {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--r-s);
  background: var(--wgray);
  color: var(--ink2);
}
.doc-days li.off { color: var(--muted); background: transparent; border: 1px dashed var(--line); }

.equip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.equip-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.equip-media .frame { aspect-ratio: 4 / 3; }
/* 홈 — 넓은 사진 한 장 + 아래 두 장 */
.media-mosaic .frame:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.equip-list { display: grid; gap: 12px; }
.equip-list li {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--surface);
  font-size: 14px;
}
.equip-list .ico { color: var(--teal); flex: none; margin-top: 2px; }
.equip-list b { display: block; margin-bottom: 2px; }
.equip-list span { color: var(--ink2); font-size: 13.5px; }

/* ------------------------------------------------------ 비교(설문·표) */
.quiz {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--sh-2);
  padding: 30px 32px;
}
.quiz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.quiz-fs { border: 0; margin: 0; padding: 0; }
.quiz-fs legend { font-size: 13px; font-weight: 700; color: var(--ink2); padding: 0; margin-bottom: 10px; }
.quiz-fs.full { grid-column: 1 / -1; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  left: 0; top: 0;
  margin: 0;
  cursor: pointer;
}
.opt label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.opt input:checked + label { border-color: var(--deep); background: var(--teal-tint); color: var(--deep); font-weight: 600; }
.opt input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 2px; }
/* 여러 개를 고르는 칸이라 네모 표식을 쓴다(라디오와 구분) */
.opt .dot {
  width: 17px; height: 17px;
  flex: none;
  border-radius: 5px;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
}
.opt .dot::after { content: ""; width: 9px; height: 9px; border-radius: 2px; background: transparent; }
.opt input:checked + label .dot { border-color: var(--deep); }
.opt input:checked + label .dot::after { background: var(--deep); }
.quiz-fs.invalid .opts .opt label { border-color: var(--err); }
.quiz-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.quiz-status {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--r-s);
  border: 1px solid var(--line);
  background: var(--wgray);
  font-size: 14.5px;
  color: var(--ink2);
  line-height: 1.7;
}
.quiz-status .ico { flex: none; margin-top: 2px; color: var(--muted); }
.quiz-status.is-ok { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok); }
.quiz-status.is-ok .ico { color: var(--ok); }
.quiz-status.is-empty { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); }
.quiz-status.is-empty .ico { color: var(--warn-ink); }
.quiz-status b { display: block; }

/* 패키지 카드 — subgrid 로 줄을 맞춘다 */
.pkg-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.pkg {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  gap: 0;
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  box-shadow: var(--sh-1);
}
@supports not (grid-template-rows: subgrid) {
  .pkg { display: flex; flex-direction: column; grid-row: auto; }
  .pkg .pkg-cta { margin-top: auto; }
}
.pkg-row { grid-template-rows: auto auto auto auto auto; }
.pkg-name { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 8px; }
.pkg-for { font-size: 13.5px; color: var(--ink2); padding-bottom: 14px; }
.pkg-price { font-size: 24px; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; padding-bottom: 4px; }
.pkg-price small { font-size: 13px; font-weight: 600; color: var(--muted); }
.pkg-time { font-size: 13px; color: var(--muted); padding-bottom: 16px; }
.pkg-cta { align-self: end; }
.pkg.is-pick { border-color: var(--deep); box-shadow: var(--sh-3); }
.pkg.is-pick .pkg-name::after {
  content: "추천";
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--deep);
  color: #fff;
  letter-spacing: 0;
}

table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
table.cmp caption { text-align: left; padding: 18px 22px 4px; font-size: 13px; color: var(--muted); }
table.cmp th, table.cmp td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); text-align: center; }
table.cmp thead th { background: var(--teal); color: #fff; font-size: 13.5px; font-weight: 700; border-bottom: 0; }
table.cmp thead th:first-child { background: var(--wgray); color: var(--ink2); text-align: left; }
table.cmp thead th.is-pick { background: var(--deep); }
table.cmp thead th .pick-mark { display: block; font-size: 11px; font-weight: 700; color: var(--sand); margin-top: 2px; }
table.cmp tbody th {
  text-align: left;
  font-weight: 600;
  background: var(--surface);
  min-width: 190px;
}
table.cmp tbody th .sub { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 2px; }
table.cmp tbody tr:nth-child(even) th,
table.cmp tbody tr:nth-child(even) td { background: #fbfcfc; }
table.cmp td.is-pick, table.cmp tbody tr:nth-child(even) td.is-pick { background: var(--teal-tint); }
table.cmp td .yes { color: var(--ok); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
table.cmp td .opt-add { color: var(--warn-ink); font-weight: 600; font-size: 12.5px; }
table.cmp td .no { color: var(--muted); font-size: 12.5px; }
table.cmp td.val { font-weight: 600; font-variant-numeric: tabular-nums; }
table.cmp tfoot td, table.cmp tfoot th { background: var(--wgray); font-weight: 700; }
.cmp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.switch { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--ink2); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  width: 44px; height: 26px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  transition: background 0.25s var(--ease);
  flex: none;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--sh-1);
  transition: transform 0.25s var(--ease);
}
.switch input:checked + label .track { background: var(--deep); }
.switch input:checked + label .track::after { transform: translateX(18px); }
.switch input:focus-visible + label .track { outline: 2px solid var(--teal); outline-offset: 2px; }
.switch label { display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; }

/* 용어 설명 — Anchor Positioning(지원 시) */
/* 누르는 면은 44px 을 채우고, 보이는 표식만 22px 로 둔다 */
.term {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 0;
  background: none;
  color: var(--teal-ink);
  cursor: pointer;
  vertical-align: middle;
  padding: 0;
}
.term-mark {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
}
.term:hover .term-mark { border-color: var(--teal); background: var(--teal-tint); }
.term-pop {
  margin: 0;
  padding: 14px 16px;
  max-width: min(320px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--surface);
  box-shadow: var(--sh-2);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink2);
  text-align: left;
  inset: auto;
  position: fixed;
  top: 50%; left: 50%;
  translate: -50% -50%;
}
.term-pop b { display: block; color: var(--ink); margin-bottom: 4px; }
/* anchor-name·position-anchor 는 각 짝마다 HTML 인라인 스타일로 붙인다(이름 충돌 방지) */
@supports (anchor-name: --a) {
  .term-pop {
    position: absolute;
    top: anchor(bottom);
    left: anchor(center);
    translate: -50% 8px;
    position-try-fallbacks: flip-block, flip-inline;
    margin: 0;
  }
}

/* 추천 대상 카드 */
.reco-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.reco {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--wgray);
}
.reco .ico-lg { color: var(--deep); margin-bottom: 14px; }
.reco h3 { font-size: 17px; margin-bottom: 8px; }
.reco .reco-desc { font-size: 14px; color: var(--ink2); margin-bottom: 14px; }

/* ----------------------------------------------------- 예약 Step Form */
.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 40px;
}
.stepper li { position: relative; text-align: center; padding-top: 44px; }
.stepper li::before {
  content: "";
  position: absolute;
  top: 17px; left: 0; right: 0;
  height: 2px;
  background: var(--line);
}
.stepper li:first-child::before { left: 50%; }
.stepper li:last-child::before { right: 50%; }
.stepper .dot {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 11px;
  font-weight: 700;
}
.stepper .st-name { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.stepper li.is-done .dot { border-color: var(--teal); background: var(--teal); color: #fff; }
.stepper li.is-done::before { background: var(--teal); }
.stepper li.is-now .dot { border-color: var(--deep); background: var(--deep); color: #fff; }
.stepper li.is-now .st-name { color: var(--deep); }
.stepper li .st-state { display: block; font-size: 11.5px; color: var(--muted); }
.stepper li.is-now .st-state { color: var(--teal-ink); font-weight: 600; }

.book-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 32px; align-items: start; }
.book-card { padding: 30px 32px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--sh-1); }
.book-card > h2 { font-size: 20px; margin-bottom: 6px; }
.book-card .card-sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label, .field .lab { font-size: 13px; font-weight: 600; color: var(--ink2); }
.field .req { color: var(--err); margin-left: 2px; }
.field .opt-tag { color: var(--muted); font-weight: 500; margin-left: 4px; }
.control {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.control::placeholder { color: #98a1a8; }
.control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 107, 102, 0.14);
}
textarea.control { min-height: 110px; resize: vertical; line-height: 1.7; }
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='%2367727c' stroke-width='1.7' 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 14px center;
  padding-right: 42px;
}
.field.invalid .control { border-color: var(--err); box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.1); }
.field .err {
  display: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--err);
}
.field.invalid .err { display: flex; align-items: center; gap: 5px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.agree-list { display: grid; gap: 4px; margin: 6px 0 18px; }
.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  padding: 8px 0;
}
/* input 은 label 밖에 둔다 — label 이 감싸면 클릭이 이중 토글돼 상쇄된다 */
.agree input { position: absolute; opacity: 0; width: 0; height: 0; }
.agree label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--ink2);
  cursor: pointer;
  line-height: 1.6;
}
.agree .box {
  width: 20px; height: 20px;
  flex: none;
  margin-top: 2px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.agree input:checked + label .box { background: var(--deep); border-color: var(--deep); color: #fff; }
.agree input:focus-visible + label .box { outline: 2px solid var(--teal); outline-offset: 2px; }
.agree.invalid .box { border-color: var(--err); }
.agree .tag { font-weight: 700; color: var(--ink); }
.agree .tag.optional { color: var(--muted); font-weight: 600; }
.agree-detail {
  margin-left: 30px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
  padding-bottom: 6px;
}

.err-summary {
  display: none;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  margin-bottom: 20px;
  border: 1px solid var(--err-line);
  border-radius: var(--r-s);
  background: var(--err-bg);
  color: var(--err);
  font-size: 14px;
}
.err-summary.show { display: flex; }
.err-summary .ico { flex: none; margin-top: 2px; }
.err-summary b { display: block; margin-bottom: 6px; }
.err-summary ul { display: grid; gap: 4px; }
.err-summary a { text-decoration: underline; font-weight: 600; }

.done-box {
  display: none;
  padding: 26px 28px;
  border: 1px solid var(--ok-line);
  border-radius: var(--r-m);
  background: var(--ok-bg);
  color: var(--ok);
  margin-bottom: 22px;
}
.done-box.show { display: block; }
.done-box h3 { font-size: 18px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.done-box p { font-size: 14px; line-height: 1.75; }
.done-box dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin-top: 14px; font-size: 13.5px; }
.done-box dt { font-weight: 700; }
.done-box dd { margin: 0; }

/* 달력 */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal-head h3 { font-size: 16px; }
.cal-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.cal-legend .i-open { background: var(--teal); }
.cal-legend .i-few { background: var(--sand-deep); }
.cal-legend .i-full { background: var(--line); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal .dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 0; }
.cal .dow.sun { color: var(--err); }
.cal button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 4px 0;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.cal button .st { font-size: 10px; font-weight: 600; color: var(--teal-ink); letter-spacing: -0.02em; }
.cal button.few .st { color: #8a6620; }
.cal button:hover:not([disabled]) { border-color: var(--teal); background: var(--teal-tint); }
.cal button[disabled] { color: var(--muted); background: var(--wgray); cursor: not-allowed; }
.cal button[disabled] .st { color: var(--muted); }
.cal button[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.cal button[aria-pressed="true"] .st { color: var(--sand); }
.cal .pad { min-height: 46px; }

.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.slot-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

.confirm-list { display: grid; gap: 12px; }
.confirm-list li {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--wgray);
  font-size: 13.5px;
  color: var(--ink2);
  line-height: 1.7;
}
.confirm-list .ico { color: var(--teal); flex: none; margin-top: 2px; }
.confirm-list b { display: block; color: var(--ink); margin-bottom: 3px; font-size: 14.5px; }

/* -------------------------------------------- 준비 가이드(타임라인) */
.prep-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 48px; align-items: start; }
.prep-rail { position: sticky; top: 96px; }
.prep-rail h2 { font-size: 15px; margin-bottom: 14px; color: var(--ink2); }
.rail-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--teal-ink);
  background: var(--teal-tint);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.prep-rail.is-stuck .rail-state { opacity: 1; }
.rail-list { display: grid; gap: 2px; }
.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--r-s);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink2);
  border: 1px solid transparent;
}
.rail-list a:hover { background: var(--wgray); }
.rail-list a .n {
  width: 22px; height: 22px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--wgray);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink2);
}
.rail-list a.is-active { background: var(--teal-tint); color: var(--deep); border-color: var(--teal-line); }
.rail-list a.is-active .n { background: var(--deep); color: #fff; }
.rail-progress { margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.rail-progress b { color: var(--deep); }

.timeline { position: relative; padding-left: 42px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 13px; top: 10px; bottom: 10px;
  width: 2px;
  background: var(--line);
}
.tl-line {
  position: absolute;
  left: 13px; top: 10px; bottom: 10px;
  width: 2px;
  background: var(--deep);
  transform-origin: top center;
}
.tl-step { position: relative; padding-bottom: 40px; scroll-margin-top: 100px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step .tl-dot {
  position: absolute;
  left: -42px; top: 2px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 5px #fff;
}
.tl-when { font-size: 12px; font-weight: 700; color: var(--teal-ink); letter-spacing: 0.02em; }
.tl-step h3 { font-size: 20px; margin: 4px 0 6px; }
.tl-step .tl-sum { font-size: 14.5px; color: var(--ink2); margin-bottom: 16px; }
.check-list { display: grid; gap: 8px; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--surface);
  padding: 0 14px;
}
.check-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-item label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 52px;
  padding: 13px 0;
  font-size: 14.5px;
  cursor: pointer;
  width: 100%;
  line-height: 1.6;
}
.check-item .box {
  width: 20px; height: 20px;
  flex: none;
  margin-top: 2px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.check-item input:checked + label .box { background: var(--ok); border-color: var(--ok); color: #fff; }
.check-item input:checked + label .txt { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.check-item input:focus-visible + label .box { outline: 2px solid var(--teal); outline-offset: 2px; }
.check-item .sub { display: block; font-size: 12.5px; color: var(--muted); text-decoration: none; margin-top: 2px; }

/* 결과지 예시 */
.sample-wrap { position: relative; }
.sample-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--warn-ink);
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 12px;
}
table.sample td.rv { color: var(--muted); font-weight: 600; letter-spacing: 0.08em; }

/* 아코디언 */
.accordion { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); overflow: hidden; }
.acc-item + .acc-item { border-top: 1px solid var(--line-soft); }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 18px 20px;
  min-height: 60px;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
}
.acc-trigger .q {
  width: 26px; height: 26px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--deep);
  font-size: 12px;
  font-weight: 700;
}
.acc-trigger .ico { margin-left: auto; color: var(--muted); transition: transform 0.3s var(--ease); }
.acc-item.open .acc-trigger .ico { transform: rotate(180deg); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-body { padding: 0 20px 20px 58px; font-size: 14.5px; color: var(--ink2); line-height: 1.8; }

/* 페이지 머리 */
.page-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line-soft); }
.page-head .crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.page-head .crumb a:hover { color: var(--teal-ink); }
.page-head h1 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.04em; margin-bottom: 12px; }
.page-head .lead { max-width: 640px; }
.page-head .head-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

/* CTA 밴드 */
.cta-band { background: var(--deep); color: #fff; }
.cta-band .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 52px 0;
}
.cta-band h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.8); font-size: 15px; }
.cta-band .acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* 안전 고지 */
.safety {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--err);
  border-radius: var(--r-s);
  background: var(--surface);
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.75;
}
.safety .ico { color: var(--err); flex: none; margin-top: 2px; }
.safety b { display: block; color: var(--ink); margin-bottom: 4px; }

/* ------------------------------------------------------------- 푸터 */
.site-footer { background: var(--deep); color: rgba(255, 255, 255, 0.78); font-size: 13.5px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: 56px 0 40px;
}
.footer-brand .brand-kr { color: #fff; font-size: 19px; font-weight: 700; display: block; letter-spacing: -0.04em; }
.footer-brand small { display: block; font-size: 9.5px; letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.55); margin-top: 4px; }
.footer-brand p { margin-top: 14px; line-height: 1.8; }
.footer-org { margin-top: 18px; display: grid; gap: 4px; font-size: 12.5px; color: rgba(255, 255, 255, 0.62); }
.footer-col h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.footer-col ul { display: grid; gap: 9px; }
.footer-col a:hover { color: #fff; }
.footer-hours { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; }
.footer-hours dt { color: rgba(255, 255, 255, 0.6); }
.footer-hours dd { margin: 0; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
}
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }
.social { display: flex; gap: 8px; }
.social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--r-s);
  color: rgba(255, 255, 255, 0.8);
}
.social a:hover { border-color: #fff; color: #fff; }

/* 맨 위로 · 토스트 */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 70;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--sh-2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.to-top.show { opacity: 1; visibility: visible; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 120;
  transform: translate(-50%, 16px);
  min-width: 260px;
  max-width: calc(100vw - 32px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-s);
  font-size: 14px;
  box-shadow: 0 12px 32px rgba(31, 41, 51, 0.28);
  opacity: 0;
  visibility: hidden;
  /* 알림일 뿐이므로 아래 제출 버튼의 클릭을 삼키지 않는다 */
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .ico { color: var(--sand); }

.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); } }

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

/* 시그니처 연출 — 검사 경로선이 화면에 들어오는 만큼만 자란다.
   기본값은 「다 자란 선」이라 미지원·모션끔에서도 정보가 그대로 보인다. */
@keyframes line-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .tl-line {
      animation: line-grow linear both;
      animation-timeline: view();
      animation-range: entry 30% cover 55%;
    }
  }
}

/* 준비사항 고정 상태 — scroll-state 지원 브라우저는 CSS 만으로 표시하고,
   미지원 브라우저는 script.js 가 같은 .is-stuck 을 붙인다. */
@supports (container-type: scroll-state) {
  .prep-rail-wrap { container-type: scroll-state; }
  @container scroll-state(stuck: top) {
    .prep-rail .rail-state { opacity: 1; }
  }
}

/* =========================================================== 반응형 */
@media (max-width: 1180px) {
  :root { --wrap: 1024px; --section: 96px; }
  .navlinks { gap: 22px; }
  .prep-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
  .book-layout { gap: 24px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 28px; --section: 84px; }
  .nav { height: 70px; }
  .navlinks, .nav-phone { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { max-width: none; margin: 0; padding: 52px var(--gutter) 48px; }
  .hero-media { min-height: 280px; }
  .statband ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .explorer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
  .ex-figure { grid-column: 1 / -1; order: -1; }
  .ex-figure svg { max-width: 240px; }
  .prog-grid, .doc-grid, .reco-grid, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-layout, .equip-grid { grid-template-columns: minmax(0, 1fr); }
  .prep-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .prep-rail { position: static; }
  .rail-list { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
  .rail-list a { justify-content: center; text-align: center; font-size: 13px; padding: 8px 6px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .pkg-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .pkg { padding: 20px 18px; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; --section: 68px; }
  body { font-size: 15.5px; }
  /* 터치 영역 최소 44px */
  .btn-sm { min-height: 44px; padding: 0 18px; }
  .social a { width: 44px; height: 44px; }
  .hero h1 { font-size: clamp(26px, 7vw, 34px); }
  .hero-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; margin-top: 32px; }
  .hero-actions .btn { flex: 1 1 100%; }
  /* 모바일 첫 화면은 「무엇을 고르는지」가 먼저다 — 사진은 그 다음 */
  .hero-media { min-height: 200px; }
  .vs-grid, .grid-2, .grid-4, .quiz-grid, .field-row, .slots, .equip-media { grid-template-columns: minmax(0, 1fr); }
  .prog-grid, .doc-grid, .reco-grid, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .pkg-row { grid-template-columns: minmax(0, 1fr); }
  .pkg { grid-row: auto; display: flex; flex-direction: column; }
  .pkg-cta { align-self: stretch; }
  .ex-list { max-width: none; }
  .ex-right { justify-self: stretch; }
  .stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .stepper li:nth-child(2)::before { right: 50%; }
  .stepper li:nth-child(3)::before { left: 50%; }
  .quiz, .book-card { padding: 24px 20px; }
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .ex-figure { order: -1; }
  .ex-panel { padding: 20px 18px; }
  .timeline { padding-left: 34px; }
  .timeline::before, .tl-line { left: 10px; }
  .tl-step .tl-dot { left: -34px; width: 22px; height: 22px; }
  .acc-body { padding-left: 20px; }
  .cta-band .inner { padding: 40px 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 40px 0 28px; }
  .page-head { padding: 36px 0 30px; }
  .to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 560px) {
  /* 좁은 화면의 머리줄은 시안대로 로고와 메뉴 버튼만 — 예약 버튼은 서랍 안에 있다 */
  .nav-actions .btn { display: none; }
  .brand .brand-kr { font-size: 19px; }
}

@media (max-width: 420px) {
  .tabs { width: 100%; justify-content: flex-start; }
  .tabs button { padding: 0 13px; font-size: 13px; }
  .cal { gap: 3px; }
  .cal button { min-height: 44px; font-size: 13px; }
  .statband ul { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .rail-list { grid-auto-flow: row; }
}

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

@media print {
  .site-header, .drawer, .scrim, .to-top, .toast, .cta-band, .term-pop { display: none !important; }
  body { font-size: 12px; }
  .table-scroll { overflow: visible; }
}
