/* ==========================================================
   송도키즈 학습심리발달클리닉
   색: 로고의 고래 하늘색(#58B0D0)과 남색(#183F5E), 바탕은 흰색과 옅은 물빛
   글꼴: Pretendard 한 가지를 굵기로 나눠 씀
   주인공: 실제 공간 사진. 장식은 줄이고 사진과 연락 버튼이 먼저 보이게 함
   ========================================================== */

:root {
  --ink: #183F5E;
  --ink-deep: #0F2B42;
  --ink-2: #44607A;
  --ink-3: #5B7488;
  --whale: #58B0D0;
  --whale-deep: #3A93B8;
  --sea: #1A6E96;
  --mist: #F2F7FA;
  --mist-2: #E4F0F6;
  --line: #DAE7EE;
  --line-strong: #9DBFCD;
  --white: #FFFFFF;
  --error: #B42318;
  --kakao: #FEE500;
  --kakao-ink: #191600;
  --naver: #03C75A;

  --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-display: var(--font-body);

  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shadow-card: 0 1px 2px rgba(15, 43, 66, .05), 0 12px 32px -16px rgba(15, 43, 66, .18);
  --shadow-float: 0 2px 6px rgba(15, 43, 66, .08), 0 24px 48px -20px rgba(15, 43, 66, .32);
  --header-h: 76px;
  --gutter: 24px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink-deep);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.03em;
}
h3, h4 { font-weight: 700; letter-spacing: -0.02em; }

p { margin: 0; }
a { color: var(--sea); text-underline-offset: 3px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.container {
  width: min(1180px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-s);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }

.nowrap { white-space: nowrap; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 58px; padding: 14px 28px; font-size: 1.0938rem; }

.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-deep); }

.btn-outline { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); }

.btn-kakao { background: var(--kakao); color: var(--kakao-ink); }
.btn-kakao:hover { background: #F2DA00; }

.btn-naver { background: var(--naver); color: var(--white); }
.btn-naver:hover { background: #02B351; }
.naver-n { font-weight: 900; font-size: 1.05em; }

.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--mist); }

.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 0;
  background: none;
  border: 0;
  color: var(--sea);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
}
.text-btn:hover { text-decoration: underline; }

/* ---------- 머리말 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* 로고 이미지가 흰 바탕이라 머리말도 불투명한 흰색으로 둔다 */
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(15, 43, 66, .35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 60px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-sub { font-size: .75rem; font-weight: 600; color: var(--sea); letter-spacing: -0.01em; }
.brand-name { font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink-deep); }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav ul a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: .9688rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease;
}
.site-nav ul a:hover { background: var(--mist); }
.nav-phone {
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--ink-deep);
  font-size: 1.0625rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}
.nav-phone .icon { color: var(--whale-deep); }
.nav-cta { min-height: 44px; padding: 8px 20px; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: none;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle .icon { width: 26px; height: 26px; }

.site-nav ul a { white-space: nowrap; }

/* 다른 사이트로 나가는 메뉴: 강조색 + 새 창 아이콘 (소아과 사이트의 발달클리닉 링크와 같은 모양) */
.site-nav a.nav-out { display: inline-flex; align-items: center; gap: 4px; color: var(--sea); }
.nav-out svg { width: 15px; height: 15px; flex: none; }

/* 메뉴가 9개라 넓은 화면에서도 머리말 전화번호는 넣지 않음. 전화번호는 오른쪽 아래 빠른 문의 버튼에 보임 */

/* 태블릿 가로 폭: 메뉴가 두 줄로 꺾이지 않게 신청 버튼은 오른쪽 아래 빠른 문의 버튼에 맡김 */
@media (min-width: 961px) and (max-width: 1220px) {
  .nav-cta { display: none; }
  .site-nav ul a { padding: 8px 8px; font-size: .9375rem; }
}
.brand { flex: none; }
.brand-sub, .brand-name { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1000px) {
  .header-inner { gap: 12px; }
  .brand-sub { display: none; }
  .site-nav ul { gap: 0; }
  .site-nav ul a { padding: 8px 5px; font-size: .8438rem; }
}

/* ---------- 첫 화면: 실제 공간 사진과 연락 버튼 ---------- */
.hero {
  background: linear-gradient(180deg, var(--mist) 0%, var(--white) 82%);
  padding: 56px 0 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: center;
  gap: 56px;
}

.hero h1 {
  font-size: clamp(2.125rem, 1.2rem + 3.3vw, 3.75rem);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

/* h1 안에 들어간 클리닉 이름 줄 */
.hero-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--sea);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 31em;
  margin-top: 24px;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  line-height: 1.8;
}
.hero-lead-first { display: block; margin-bottom: 1.8em; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}
.hero-actions .btn-phone { font-variant-numeric: tabular-nums; }

.hero-assure {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 20px;
  color: var(--ink-3);
  font-size: .9688rem;
}
.hero-assure a { font-weight: 700; }

.hero-visual {
  position: relative;
  padding: 0 0 52px 44px;
}
.hero-photo {
  overflow: hidden;
  background: var(--mist-2);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo--main {
  aspect-ratio: 5 / 4;
  border-radius: 36px;
  box-shadow: var(--shadow-float);
}
.hero-photo--sub {
  position: absolute;
  left: 0; bottom: 0;
  width: 43%;
  aspect-ratio: 4 / 3;
  border: 6px solid var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-float);
}

.hero-hours {
  position: absolute;
  right: 20px; top: 20px;
  display: grid;
  gap: 2px;
  padding: 14px 18px 14px 16px;
  background: rgba(255, 255, 255, .96);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  font-size: .875rem;
  line-height: 1.55;
}
.hero-hours dt {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  color: var(--sea);
  font-size: .8125rem;
  font-weight: 700;
}
.hero-hours dt .icon { width: 15px; height: 15px; }
.hero-hours dd { color: var(--ink-deep); font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-hours dd span { display: inline-block; min-width: 3.4em; color: var(--ink-3); font-weight: 600; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 64px;
  border-top: 1px solid var(--line);
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px;
  color: var(--ink);
  font-size: .9688rem;
  font-weight: 600;
  line-height: 1.45;
}
.hero-facts li + li { border-left: 1px solid var(--line); }
.hero-facts li:first-child { padding-left: 0; }
.hero-facts .icon {
  width: 26px; height: 26px;
  padding: 6px;
  border-radius: 50%;
  background: var(--mist-2);
  color: var(--sea);
  stroke-width: 3;
}

/* 첫 화면에서 한 번만: 사진이 차례로 자리 잡음 */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo--main { animation: photo-in .9s cubic-bezier(.2, .75, .25, 1) backwards; }
  .hero-photo--sub { animation: photo-in .9s cubic-bezier(.2, .75, .25, 1) .18s backwards; }
  .hero-hours { animation: photo-in .7s cubic-bezier(.2, .75, .25, 1) .4s backwards; }
}
@keyframes photo-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 공통 구역 ---------- */
.section { padding: 112px 0; }

.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head h2,
.about-intro h2,
.support h2 {
  font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.75rem);
  line-height: 1.25;
  letter-spacing: -0.04em;
}
.section-head p { margin-top: 16px; color: var(--ink-2); }

/* ---------- 고민별 안내 ---------- */
.concerns { background: var(--mist); }

.concerns-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.concern-groups { display: grid; gap: 18px; }

.concern-group {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  scroll-margin-top: calc(var(--header-h) + 28px);
}
.cg-label { margin: 0; }
.cg-bubble {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--whale);
  color: var(--ink-deep);
  font-size: 1.0313rem;
  font-weight: 800;
  line-height: 1;
  transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.concern-group:target .cg-bubble,
.concern-group.has-picked .cg-bubble {
  background: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
  color: var(--white);
}
.cg-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }

.concern-group--checkup {
  grid-template-columns: 1fr;
  margin-top: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.concern-group--checkup .cg-chips { padding-top: 0; }

.concern-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 9px 18px 9px 13px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.concern-chip:hover { border-color: var(--whale); }
.concern-chip .tick {
  width: 22px; height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  transition: background-color .15s ease, border-color .15s ease;
}
.concern-chip .tick .icon { width: 12px; height: 12px; stroke-width: 3.5; color: var(--white); opacity: 0; }
.concern-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.concern-chip[aria-pressed="true"] .tick { background: var(--whale); border-color: var(--whale); }
.concern-chip[aria-pressed="true"] .tick .icon { opacity: 1; }

.concern-jump { display: none; }

.concern-result {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  min-height: 300px;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.concern-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  min-height: 240px;
  text-align: center;
  color: var(--ink-3);
}
.concern-empty svg { width: 120px; opacity: .6; }

.result-title { font-size: 1.25rem; font-weight: 800; }
.result-block { margin-top: 20px; }
.result-block h4 { font-size: .9375rem; color: var(--sea); margin-bottom: 8px; }
.result-block ul { display: grid; gap: 6px; }
.result-block li { position: relative; padding-left: 18px; color: var(--ink); }
.result-block li::before {
  content: "";
  position: absolute;
  left: 2px; top: .7em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--whale);
}
.result-note {
  margin-top: 20px;
  padding: 12px 14px;
  background: var(--mist);
  border-radius: var(--radius-s);
  color: var(--ink-2);
  font-size: .9375rem;
}
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* ---------- 클리닉 소개 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.about-photos {
  position: relative;
  padding: 0 48px 56px 0;
}
.about-photo { overflow: hidden; background: var(--mist-2); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo--main { aspect-ratio: 4 / 5; border-radius: var(--radius-l); }
.about-photo--sub {
  position: absolute;
  right: 0; bottom: 0;
  width: 52%;
  aspect-ratio: 4 / 3;
  border: 6px solid var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-float);
}

.about-intro > p { margin-top: 22px; color: var(--ink-2); max-width: 33em; }
.about-intro .about-promise {
  margin-top: 26px;
  padding-left: 18px;
  border-left: 3px solid var(--whale);
  color: var(--ink-deep);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.about-points { margin-top: 36px; }
.about-points li {
  padding: 20px 0 20px 30px;
  border-top: 1px solid var(--line);
  position: relative;
}
.about-points li:last-child { border-bottom: 1px solid var(--line); }
.about-points li::before {
  content: "";
  position: absolute;
  left: 2px; top: 30px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--whale);
  box-shadow: 0 0 0 5px var(--mist-2);
}
.about-points h3 { font-size: 1.125rem; }
.about-points p { margin-top: 4px; color: var(--ink-2); font-size: 1rem; }

.staff {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 88px;
}
.staff-title { grid-column: 1 / -1; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.staff-card {
  padding: 30px 32px;
  background: var(--mist);
  border-radius: var(--radius-l);
}
.staff-card h4 { font-size: 1.125rem; margin-bottom: 14px; }
.staff-list { display: grid; gap: 10px; }
.staff-list div { display: grid; grid-template-columns: 3.5em minmax(0, 1fr); gap: 12px; }
.staff-list dt { color: var(--sea); font-weight: 700; font-size: .9375rem; }
.staff-list dd { color: var(--ink-2); font-size: .9375rem; line-height: 1.7; }
.staff-card--aba { background: var(--ink); }
.staff-card--aba h4 { color: var(--white); }
.staff-card--aba p { color: #CFE3EE; }
.staff-card--aba .staff-list dt { color: #8FD0E6; }
.staff-card--aba .staff-list dd { color: #CFE3EE; }
.staff-role { display: block; margin-top: 2px; font-size: .875rem; font-weight: 600; color: var(--ink-3); }
.staff-card--aba .staff-role { color: #8FD0E6; }

/* ---------- 클리닉 둘러보기: 남색 바탕 위 사진 ---------- */
.tour { background: var(--ink-deep); color: #C9DDE9; }
.tour .section-head h2 { color: var(--white); }
.tour .section-head p { color: #C9DDE9; }

.tour-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 12px;
}
.tour-cell { position: relative; }
.tour-cell--big { grid-column: span 2; grid-row: span 2; }
.tour-cell--tall { grid-row: span 2; }
.tour-item {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-m);
  background: #1D425F;
  cursor: zoom-in;
}
.tour-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.tour-item:hover img { transform: scale(1.04); }
.tour-item:focus-visible { outline-color: var(--white); border-radius: var(--radius-m); }
.tour-item::after {
  content: "";
  position: absolute;
  inset: 45% 0 0 0;
  background: linear-gradient(180deg, rgba(15, 43, 66, 0), rgba(15, 43, 66, .72));
  pointer-events: none;
}
.tour-label {
  position: absolute;
  left: 16px; right: 16px; bottom: 13px;
  z-index: 1;
  color: var(--white);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

.tour-video {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  max-width: 880px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.tour-video video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m);
  background: var(--ink);
  object-fit: cover;
}
.tour-video h3 { color: var(--white); font-size: 1.25rem; }
.tour-video p { margin-top: 8px; font-size: .9375rem; }

/* 사진 크게 보기 */
.lightbox {
  width: min(1100px, calc(100% - 24px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(9, 26, 40, .9); }
.lightbox img {
  width: 100%;
  max-height: calc(100dvh - 150px);
  object-fit: contain;
  border-radius: var(--radius-m);
}
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}
.lightbox-caption { font-size: 1.0313rem; font-weight: 700; }
.lightbox-count { margin-left: 10px; color: #A9C4D4; font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.lightbox-nav { display: flex; gap: 8px; }
.lightbox-btn {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, .14);
  border: 0;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: background-color .15s ease;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .26); }
.lightbox-btn .icon { width: 22px; height: 22px; }
.lightbox-btn--prev .icon { transform: rotate(90deg); }
.lightbox-btn--next .icon { transform: rotate(-90deg); }

/* ---------- 검사 안내 ---------- */
.test-groups { border-top: 2px solid var(--ink-deep); }

.test-group {
  display: flow-root;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.test-group::after { content: ""; display: block; clear: both; }
.test-group > summary {
  float: left;
  width: 300px;
  list-style: none;
  cursor: default;
}
.test-group > summary::-webkit-details-marker { display: none; }
.test-group h3 { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.03em; }
.tg-desc { display: block; margin-top: 8px; color: var(--ink-2); font-size: .9688rem; }
.tg-count { display: none; }
.test-body { margin-left: 340px; }

.test-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--mist-2);
}
.test-list li:first-child { border-top: 0; padding-top: 0; }
.test-name { font-size: 1.0625rem; color: var(--ink); }
.test-name strong { margin-right: 6px; color: var(--sea); font-weight: 800; }
.test-age {
  align-self: start;
  padding: 3px 11px;
  background: var(--mist);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.test-list p { grid-column: 1 / -1; color: var(--ink-2); font-size: .9688rem; }
.test-note { margin-top: 14px; color: var(--ink-3); font-size: .9063rem; }

/* ---------- 치료·프로그램 ---------- */
.programs { background: var(--mist); }

.programs-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.programs-side { position: sticky; top: calc(var(--header-h) + 24px); }
.programs-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--mist-2);
}
.programs-photo img { width: 100%; height: 100%; object-fit: cover; }

.session-facts {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 12px;
  padding: 18px 6px;
  background: var(--white);
  border-radius: var(--radius-m);
}
.session-facts div { padding: 0 14px; text-align: center; }
.session-facts div + div { border-left: 1px solid var(--line); }
.session-facts dt { color: var(--ink-3); font-size: .8125rem; font-weight: 600; }
.session-facts dd { color: var(--ink-deep); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.program {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 26px;
  background: var(--white);
  border-radius: var(--radius-l);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.program h3 { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.03em; }
.program-sub { margin-left: 6px; font-size: .9375rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.program > p { margin-top: 10px; color: var(--ink-2); font-size: 1rem; }

.program-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 20px; }
.program-tags li {
  padding: 4px 12px;
  background: var(--mist);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: .8438rem;
  font-weight: 600;
}

.program--group {
  grid-column: 1 / -1;
  display: grid;
  padding: 32px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  background: var(--ink);
}
.program--group h3 { color: var(--white); }
.program-title-quote { display: inline-block; }
.program-group-copy p { margin-top: 12px; color: #CFE3EE; font-size: 1rem; }
.program-group-copy .program-note { font-size: .9063rem; color: #A9C8DA; }
.program-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.program-facts div { padding: 14px 16px; background: rgba(255, 255, 255, .09); border-radius: var(--radius-s); }
.program-facts dt { font-size: .8125rem; font-weight: 700; color: #9FC9DE; }
.program-facts dd { margin-top: 2px; color: var(--white); font-size: .9688rem; font-weight: 600; line-height: 1.55; }

/* ---------- 이용 절차 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 24px; right: 24px; top: 23px;
  height: 2px;
  background: var(--mist-2);
}
.step { position: relative; }
.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--whale);
  color: var(--ink-deep);
  font-size: 1.125rem;
  font-weight: 800;
}
.step:first-child .step-num { background: var(--ink); box-shadow: none; color: var(--white); }
.step h3 { margin-top: 18px; font-size: 1.125rem; }
.step p { margin-top: 6px; color: var(--ink-2); font-size: .9688rem; }

/* ---------- 영유아검진 정밀검사 ---------- */
.support { padding-top: 0; }
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 64px;
  background: var(--ink);
  border-radius: 36px;
  color: var(--white);
}
.support h2 { color: var(--white); }
.support-copy p { margin-top: 18px; color: #CFE3EE; max-width: 36em; }
.support-copy strong { color: var(--white); }
.support-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.support-list {
  padding: 28px;
  background: rgba(255, 255, 255, .07);
  border-radius: var(--radius-l);
}
.support-list h3 { color: var(--white); font-size: 1.0625rem; margin-bottom: 16px; }
.support-list ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.support-list li {
  padding: 12px 14px;
  background: rgba(255, 255, 255, .09);
  border-radius: var(--radius-s);
  font-weight: 600;
}

/* ---------- 상담 신청 ---------- */
.contact { background: var(--mist); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}

.channels { display: grid; gap: 10px; position: sticky; top: calc(var(--header-h) + 20px); }

.channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: 1.5px solid transparent;
  border-radius: var(--radius-m);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.channel:hover { border-color: var(--whale); box-shadow: var(--shadow-card); }
.channel-icon {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  flex: none;
  border-radius: 50%;
  background: var(--mist-2);
  color: var(--ink);
}
.channel-icon .icon { width: 24px; height: 24px; }
.channel-text { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.channel-name { font-size: .875rem; font-weight: 600; color: var(--ink-3); }
.channel-value { font-size: 1.125rem; font-weight: 700; color: var(--ink-deep); font-variant-numeric: tabular-nums; }
.channel-hint { margin-top: 2px; font-size: .8438rem; color: var(--ink-3); }
.channel.is-unset { opacity: .7; }

.channel--phone { padding: 24px 22px; background: var(--ink); }
.channel--phone:hover { border-color: var(--whale); }
.channel--phone .channel-icon { background: var(--white); color: var(--ink); }
.channel--phone .channel-name { color: #A9C8DA; }
.channel--phone .channel-value { color: var(--white); font-size: 1.625rem; font-weight: 800; letter-spacing: -0.01em; }
.channel--phone .channel-hint { color: #A9C8DA; }
.channel--kakao .channel-icon { background: var(--kakao); color: var(--kakao-ink); }

.channels-note {
  margin-top: 6px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-s);
  color: var(--ink-2);
  font-size: .9063rem;
}

.consult-form {
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
}
.form-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.form-intro { margin-top: 6px; color: var(--ink-2); font-size: .9688rem; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }

.field label,
.field legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: .9688rem;
  font-weight: 700;
}
.req { color: var(--error); }
.legend-hint { margin-left: 6px; font-size: .8438rem; font-weight: 500; color: var(--ink-3); }

.field input[type="text"],
.field input[type="tel"],
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-s);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23183F5E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(88, 176, 208, .35);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin-top: 6px; color: var(--error); font-size: .875rem; font-weight: 600; }
.field-error:empty { display: none; }
.field-count { margin-top: 4px; text-align: right; color: var(--ink-3); font-size: .8125rem; }

.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chips label { position: relative; margin: 0; font-weight: 600; font-size: .9375rem; cursor: pointer; }
.check-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.check-chips label:hover span { border-color: var(--whale-deep); }
.check-chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.check-chips input:focus-visible + span { outline: 3px solid var(--whale); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consents {
  margin-top: 26px;
  padding: 18px 18px 14px;
  background: var(--mist);
  border-radius: var(--radius-m);
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: .9688rem;
  cursor: pointer;
}
.consent input {
  width: 20px; height: 20px;
  margin: 3px 0 0;
  flex: none;
  accent-color: var(--ink);
}
.consent strong { color: var(--sea); }
.consent-detail { margin-top: 6px; font-size: .875rem; color: var(--ink-2); }
.consent-detail summary { cursor: pointer; font-weight: 600; color: var(--sea); padding: 4px 0; }
.consent-detail dl { display: grid; gap: 6px; margin: 8px 0; }
.consent-detail dl div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 8px; }
.consent-detail dt { font-weight: 700; color: var(--ink); }

.send { margin-top: 28px; }
.send-label { font-weight: 700; margin-bottom: 10px; }
.send-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.send-buttons .btn { min-height: 56px; padding: 10px 12px; border-radius: var(--radius-s); }
.send-hint { margin-top: 12px; color: var(--ink-3); font-size: .9063rem; }

/* ---------- 비용 안내 ---------- */
/* 2026-11-22: 한 줄에 항목 하나(항목 | 비용). 묶음별 표를 두 칸으로 나란히, 머리줄 아래 진한 선·줄마다 옅은 선, 아래에 안내 상자 */
.fees-section { background: var(--white); }
.fee-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 64px;
  align-items: start;
}
/* 칸이 좁아 항목 이름이 두 줄로 넘어가기 전에 한 칸으로 바꾼다 */
@media (max-width: 1139px) { .fee-grid { grid-template-columns: 1fr; } }
.fee h3 { margin-bottom: 8px; color: var(--ink-deep); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; }
.fee-tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.fee-tbl th,
.fee-tbl td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.fee-tbl thead th {
  border-bottom: 1px solid var(--ink-deep);
  color: var(--ink-3);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
}
.fee-tbl tbody th { color: var(--ink-deep); font-weight: 500; }
.fee-time { margin-left: 6px; color: var(--ink-3); font-size: .875rem; font-weight: 400; white-space: nowrap; }
.fee-tbl .r {
  width: 1%;
  color: var(--ink-deep);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fee-tbl thead .r { color: var(--ink-3); font-weight: 600; }
.fee-note { margin-top: 10px; color: var(--ink-3); font-size: .875rem; }
.fee-notes {
  margin-top: 40px;
  padding: 18px 24px;
  background: var(--mist);
  border-radius: 12px;
  color: var(--ink-2);
  font-size: .9375rem;
}
.fee-notes p + p { margin-top: 6px; }
.fee-notes a { color: var(--sea); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sub-block .fee-notes { margin-top: 28px; }

/* ---------- 자주 묻는 질문 ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: start;
}
.faq-list { border-top: 2px solid var(--ink-deep); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  display: block;
  padding: 22px 48px 22px 0;
  font-size: 1.0938rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 28px; height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 10px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 10px no-repeat,
    var(--mist-2);
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 48px 24px 0; color: var(--ink-2); }

/* ---------- 오시는 길 ---------- */
.location { background: var(--mist); }

.route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 64px;
}
.route li {
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-l);
}
.route img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.route-text {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 18px 20px 22px;
}
.route-num {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: .9375rem;
  font-weight: 800;
}
.route-text p { color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.55; padding-top: 3px; }

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.info-list { display: grid; gap: 22px; }
.info-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
.info-list > li > .icon { width: 24px; height: 24px; margin-top: 3px; color: var(--whale-deep); }
.info-list strong { display: block; font-size: .9375rem; color: var(--sea); }
.info-list p { color: var(--ink); }

.location-side { display: grid; gap: 16px; }

/* 지도 앱으로 여는 카드 */
.map-card {
  padding: 28px;
  background: var(--ink);
  border-radius: var(--radius-l);
  color: var(--white);
}
.map-card-head { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center; }
.map-card-pin {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--whale);
  color: var(--white);
}
.map-card-pin .icon { width: 24px; height: 24px; }
.map-card-name { font-size: 1.125rem; font-weight: 800; line-height: 1.45; letter-spacing: -0.02em; }
.map-card-addr { margin-top: 2px; color: #BCD5E2; font-size: .9375rem; }
.map-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.map-btn { width: 100%; min-height: 52px; border-radius: var(--radius-s); }
.map-btn--kakao { background: var(--kakao); color: var(--kakao-ink); }
.map-btn--kakao:hover { background: #F2DA00; }
.map-btn--naver { background: var(--naver); color: var(--white); }
.map-btn--naver:hover { background: #02B351; }
.map-btn--copy { grid-column: 1 / -1; background: rgba(255, 255, 255, .1); color: var(--white); border-color: rgba(255, 255, 255, .3); }
.map-btn--copy:hover { background: rgba(255, 255, 255, .18); }
.map-card-note { margin-top: 14px; color: #BCD5E2; font-size: .875rem; line-height: 1.6; }

.clinic-card {
  padding: 28px 30px;
  background: var(--white);
  border-radius: var(--radius-l);
}
.clinic-card h3 { font-size: 1.25rem; font-weight: 800; }
.clinic-card h3 a { color: inherit; text-decoration-color: var(--whale); text-decoration-thickness: 2px; }
.clinic-card h3 a:hover { color: var(--sea); }
.clinic-card-sub { margin-top: 4px; color: var(--ink-3); font-size: .9063rem; }
.clinic-card dl { display: grid; margin-top: 16px; }
.clinic-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.clinic-card dt { color: var(--ink-2); font-weight: 600; }
.clinic-card dd { font-weight: 700; text-align: right; }
.clinic-card-note { margin-top: 10px; color: var(--ink-3); font-size: .8438rem; }

/* ---------- 소식 ---------- */
.news { padding: 64px 0; }
.news-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.news h2 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); }
.news p { margin-top: 6px; color: var(--ink-2); }
.news-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 바닥글 ---------- */
.site-footer { padding: 56px 0 64px; background: var(--ink-deep); color: #BCD5E2; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px; }
.footer-brand { align-self: start; }
.footer-logo { width: 200px; height: auto; padding: 14px 16px; border-radius: 22px; background: var(--white); }
.footer-info p + p { margin-top: 4px; }
.site-footer a { color: var(--white); }
.footer-info .footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.footer-info .copyright { margin-top: 16px; color: #8FB0C2; font-size: .8438rem; }

/* ---------- 빠른 문의: 넓은 화면은 오른쪽 아래, 좁은 화면은 하단 막대 ---------- */
.quick-dock {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 55;
  display: grid;
  justify-items: end;
  gap: 10px;
}
.dock-btn {
  display: inline-flex;
  align-items: center;
  height: 56px;
  min-width: 56px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-float);
  color: var(--ink-deep);
  font-size: .9688rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}
.dock-btn .icon { width: 24px; height: 24px; }
.dock-btn span {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width .25s ease, opacity .2s ease, margin .25s ease;
}
.dock-btn:hover span,
.dock-btn:focus-visible span { max-width: 12em; margin-left: 10px; opacity: 1; }
.dock-btn:focus-visible { border-radius: 999px; }
.dock-kakao { background: var(--kakao); color: var(--kakao-ink); }
.dock-form { background: var(--ink); color: var(--white); }

@media (min-width: 1480px) {
  .dock-btn span { max-width: 12em; margin-left: 10px; opacity: 1; }
}

.action-bar { display: none; }

/* ---------- 보내기 전 확인 창 ---------- */
.send-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 28px;
  border: 0;
  border-radius: var(--radius-l);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(24, 63, 94, .45);
}
.send-dialog::backdrop { background: rgba(15, 43, 66, .5); }
.send-dialog h2 { font-size: 1.375rem; padding-right: 40px; }
.dialog-close-form { position: absolute; right: 14px; top: 14px; }
.icon-btn {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: var(--mist);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.icon-btn .icon { width: 20px; height: 20px; }
.dialog-guide { margin-top: 10px; color: var(--ink-2); font-size: .9688rem; }
.send-dialog textarea {
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-size: .9375rem;
  line-height: 1.6;
  resize: none;
}
.dialog-actions { display: grid; gap: 8px; margin-top: 14px; }
.dialog-actions .btn { width: 100%; border-radius: var(--radius-s); }
.dialog-status { margin-top: 10px; font-size: .9063rem; font-weight: 600; color: var(--sea); }
.dialog-status:empty { display: none; }
.dialog-status.is-error { color: var(--error); }

/* ---------- 알림 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  background: var(--ink-deep);
  color: var(--white);
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* 로컬에서만 보이는 설정 안내 */
.config-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #FDECEA;
  color: var(--error);
  font-size: .75rem;
  font-weight: 700;
  vertical-align: middle;
}

/* ==========================================================
   반응형
   ========================================================== */
@media (max-width: 1080px) {
  .site-nav { gap: 14px; }
  .site-nav ul a { padding: 8px 9px; }
  .hero-grid { gap: 36px; }
  .hero-visual { padding-left: 28px; }
  .about-grid { gap: 44px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .steps::before { display: none; }
  .programs-layout { grid-template-columns: 1fr; }
  .programs-side { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
  .programs-photo { aspect-ratio: 16 / 10; }
  .programs-photo img { object-position: 50% 62%; }
  .session-facts { margin-top: 0; grid-template-columns: 1fr; align-content: center; padding: 8px 20px; }
  .session-facts div { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0; text-align: left; }
  .session-facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .tour-gallery { grid-auto-rows: 180px; }
  .test-group > summary { width: 240px; }
  .test-body { margin-left: 272px; }
  .support-grid { padding: 48px 40px; gap: 36px; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; --gutter: 20px; }

  /* 머리말: 접는 메뉴 */
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(24, 63, 94, .35);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity .18s ease, transform .18s ease;
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .site-nav a.nav-out { display: flex; }
  .site-nav ul a:hover { background: none; color: var(--sea); }
  .nav-phone {
    display: flex;
    justify-content: center;
    min-height: 54px;
    margin-top: 16px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
  }
  .nav-cta { margin-top: 8px; min-height: 54px; }

  .brand-mark { width: 52px; }
  .brand-name { font-size: 1.0625rem; }

  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { padding: 0 0 44px 0; }
  .hero-photo--main { border-radius: var(--radius-l); }
  .hero-photo--sub { left: 14px; width: 40%; border-width: 5px; border-radius: 18px; }
  .hero-hours { right: 12px; top: 12px; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; }
  .hero-facts li { padding: 16px 14px 16px 0; }
  .hero-facts li + li { border-left: 0; }
  .hero-facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .section { padding: 80px 0; }
  .section-head { margin-bottom: 36px; }
  .support { padding-top: 0; }

  .concerns-grid,
  .about-grid,
  .support-grid,
  .contact-grid,
  .faq-grid,
  .location-grid,
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photos { max-width: 520px; }
  .staff { grid-template-columns: 1fr; margin-top: 64px; }
  .concern-result { position: static; min-height: 0; }
  .concern-empty { min-height: 160px; }
  .concern-jump:not([hidden]) { display: inline-flex; margin-top: 20px; }
  .channels { position: static; }

  .tour-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; gap: 8px; }

  /* 검사 묶음: 눌러서 펼침 */
  .test-group { padding: 0; }
  .test-group > summary {
    float: none;
    width: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 16px;
    align-items: center;
    padding: 22px 0;
    cursor: pointer;
  }
  .test-group h3 { font-size: 1.25rem; }
  .tg-desc { grid-column: 1; margin-top: 0; font-size: .9375rem; }
  .tg-count {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sea);
    font-size: .875rem;
    font-weight: 700;
    white-space: nowrap;
  }
  .tg-count .icon { width: 20px; height: 20px; transition: transform .2s ease; }
  .test-group[open] .tg-count .icon { transform: rotate(180deg); }
  .test-body { margin-left: 0; padding-bottom: 26px; }

  .program--group { grid-template-columns: 1fr; gap: 24px; }
  .support-grid { padding: 40px 28px; border-radius: var(--radius-l); }

  /* 하단 연락 막대가 오른쪽 아래 버튼을 대신함 */
  .quick-dock { display: none; }
  .action-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.5fr;
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .action-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 56px;
    border-radius: 14px;
    background: var(--mist);
    color: var(--ink-deep);
    font-size: .8125rem;
    font-weight: 700;
    text-decoration: none;
  }
  .action-bar .icon { width: 22px; height: 22px; }
  .action-bar .action-kakao { background: var(--kakao); color: var(--kakao-ink); }
  .action-bar .action-primary { background: var(--ink); color: var(--white); }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }

  /* 무료 호스팅(Netlify)이 오른쪽 아래에 붙이는 배지는 숨길 수 없으므로,
     배지가 있을 때는 연락 막대 아래에 배지 자리를 비워 둔다. (script.js가 has-host-badge를 붙임) */
  .has-host-badge .action-bar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .has-host-badge { padding-bottom: calc(130px + env(safe-area-inset-bottom)); }
  .has-host-badge .toast { bottom: calc(146px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }

  .brand-sub { font-size: .6875rem; }

  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-hours { padding: 10px 14px 10px 12px; font-size: .8125rem; }
  .hero-facts li { font-size: .9063rem; }

  .concern-group { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
  .cg-bubble { width: 48px; height: 48px; font-size: .9375rem; }
  .cg-chips { padding-top: 0; }
  .concern-chip { min-height: 46px; padding: 8px 14px 8px 11px; font-size: .9688rem; }
  .concern-result { padding: 24px 20px; }

  .about-photos { padding: 0 28px 44px 0; }

  .tour-video { gap: 14px; }

  .programs-side { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .program { padding: 24px 22px; }
  .program--group { padding: 26px 22px; }

  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 16px;
    padding-bottom: 26px;
  }
  .step::before {
    content: "";
    position: absolute;
    left: 23px; top: 48px; bottom: 0;
    width: 2px;
    background: var(--mist-2);
  }
  .step:last-child::before { display: none; }
  .step:last-child { padding-bottom: 0; }
  .step-num { grid-row: span 2; }
  .step h3 { margin-top: 10px; }

  .support-grid { padding: 32px 22px; }
  .support-list { padding: 20px; }
  .support-actions .btn { width: 100%; }

  .channel--phone .channel-value { font-size: 1.5rem; }
  .consult-form { padding: 26px 18px; border-radius: var(--radius-m); }
  .fee-tbl { font-size: .875rem; }
  .fee-tbl th,
  .fee-tbl td { padding: 10px 0; }
  .fee-tbl .r { padding-left: 8px; }
  .fee-time { margin-left: 4px; font-size: .8125rem; }
  .fee-notes { padding: 16px 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .send-buttons { grid-template-columns: 1fr; }

  .faq-list summary { font-size: 1.0313rem; }
  .faq-body { padding-right: 0; }

  .route { grid-template-columns: 1fr; margin-bottom: 44px; }
  .route li { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; border-radius: var(--radius-m); }
  .route img { height: 100%; }
  .route-text { padding: 14px 16px; }

  .map-card { padding: 22px 18px; border-radius: var(--radius-m); }
  .map-card-name { font-size: 1.0313rem; }

  .news-actions { width: 100%; }
  .news-actions .btn { flex: 1 1 100%; }

  .test-list li { grid-template-columns: 1fr; }
  .test-age { justify-self: start; }

  .lightbox-bar { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================
   안내 페이지 (치료·검사별 페이지)
   seo.py가 만드는 language-therapy.html 등에서 쓴다.
   ========================================================== */

/* 첫 화면에서 안내 페이지로 가는 링크 */
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: var(--sea);
  font-size: .9688rem;
  font-weight: 700;
  text-decoration: none;
}
.more-link::after { content: "→"; transition: transform .15s ease; }
.more-link:hover { text-decoration: underline; }
.more-link:hover::after { transform: translateX(3px); }
.section-more { margin-top: 28px; }
.section-head .more-link { margin-top: 14px; }
.program > .more-link { margin-top: 14px; align-self: flex-start; }
.program--group .more-link,
.support .more-link { color: #8FD0E6; }
.program--group .more-link { margin-top: 10px; }
.support .more-link { margin-top: 20px; }
.concern-pick .section-more { margin-top: 20px; }

/* 바닥글의 안내 페이지 목록 */
.footer-pages {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.footer-pages h3 { color: var(--white); font-size: .9375rem; }
.footer-pages ul { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; }
.site-footer .footer-pages a { display: inline-block; padding: 3px 0; color: #BCD5E2; text-decoration: none; }
.site-footer .footer-pages a:hover { color: var(--white); text-decoration: underline; }

/* 머리 부분 */
.sub-wrap { width: min(880px, 100% - var(--gutter) * 2); margin-inline: auto; }
.sub-hero { padding: 28px 0 60px; background: var(--mist); }
.crumbs { color: var(--ink-3); font-size: .875rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.sub-hero h1 {
  margin-top: 36px;
  font-size: clamp(2rem, 1.35rem + 2.8vw, 3.25rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.sub-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--sea);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}
.sub-lead { max-width: 42em; margin-top: 22px; color: var(--ink); font-size: 1.125rem; }
.sub-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.sub-updated { margin-top: 22px; color: var(--ink-3); font-size: .875rem; }

/* 본문 */
.sub-main { padding: 72px 0 104px; }
.sub-block + .sub-block { margin-top: 72px; }
.sub-block h2 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  letter-spacing: -0.035em;
}
.sub-block h2 + * { margin-top: 20px; }
.sub-block > p { max-width: 44em; color: var(--ink-2); }
.sub-block > p + * { margin-top: 20px; }
.sub-block h3 { margin-top: 44px; font-size: 1.25rem; }
.sub-block h3 a { color: inherit; text-decoration: none; }
.sub-block h3 a:hover { color: var(--sea); text-decoration: underline; }
.sub-block h3 .count { margin-left: 6px; color: var(--ink-3); font-size: .875rem; font-weight: 600; letter-spacing: 0; }
.sub-block h3 + p { margin-top: 6px; color: var(--ink-2); }
.sub-block h3 + .data-table,
.sub-block h3 + p + .data-table { margin-top: 16px; }
.sub-block .sub-note { margin-top: 18px; color: var(--ink-3); font-size: .9375rem; }

.facts { border-top: 2px solid var(--ink-deep); margin: 0; }
.facts > div {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--sea); font-size: .9688rem; font-weight: 700; }
.facts dd { margin: 0; color: var(--ink); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--ink-deep);
  font-size: .9688rem;
}
.data-table th,
.data-table td {
  padding: 15px 16px 15px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.data-table th:last-child,
.data-table td:last-child { padding-right: 0; }
.data-table thead th { color: var(--sea); font-size: .875rem; font-weight: 700; white-space: nowrap; }
.data-table tbody th { width: 30%; color: var(--ink-deep); font-weight: 600; }
.data-table tbody th strong { color: var(--sea); font-weight: 800; }
.data-table td { color: var(--ink-2); }

.check-list { display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 26px; color: var(--ink); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: .68em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--whale);
}
.check-list strong { display: block; color: var(--ink-deep); }
.check-list span { display: block; color: var(--ink-2); font-size: .9688rem; }

.num-steps { display: grid; gap: 16px; counter-reset: sub-step; }
.num-steps li { position: relative; padding-left: 46px; counter-increment: sub-step; }
.num-steps li::before {
  content: counter(sub-step);
  position: absolute;
  left: 0; top: 0;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--mist-2);
  color: var(--ink-deep);
  font-size: .9375rem;
  font-weight: 800;
}
.num-steps strong { display: block; color: var(--ink-deep); }
.num-steps span { display: block; color: var(--ink-2); font-size: .9688rem; }

.sub-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sub-photos figure { margin: 0; }
.sub-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); }
.sub-photos figcaption { margin-top: 8px; color: var(--ink-2); font-size: .9063rem; }

.sub-staff { display: grid; gap: 14px; }
.sub-block .staff-card h3 { margin: 0 0 14px; font-size: 1.125rem; }

.sub-page .faq-list summary { font-size: 1.0625rem; }

.sub-cta {
  margin-top: 80px;
  padding: 40px;
  background: var(--ink);
  border-radius: var(--radius-l);
  color: #CFE3EE;
}
.sub-cta h2 { color: var(--white); font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); }
.sub-cta p { max-width: 40em; margin-top: 12px; }
.sub-cta .sub-actions { margin-top: 24px; }

.related { margin-top: 72px; }
.related h2 { font-size: 1.25rem; }
.related ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 18px; }
.related a {
  display: block;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  color: var(--ink-deep);
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  transition: border-color .15s ease;
}
.related a:hover { border-color: var(--ink); }
.related a span { display: block; margin-top: 4px; color: var(--ink-3); font-size: .8438rem; font-weight: 500; }

@media (max-width: 960px) {
  .footer-pages { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  .sub-hero { padding: 20px 0 44px; }
  .sub-hero h1 { margin-top: 26px; }
  .sub-lead { font-size: 1.0625rem; }
  .sub-actions .btn { flex: 1 1 100%; }
  .sub-main { padding: 52px 0 72px; }
  .sub-block + .sub-block { margin-top: 56px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .sub-photos { grid-template-columns: 1fr; }
  .sub-cta { margin-top: 60px; padding: 28px 22px; }
  .related ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* 표: 좁은 화면에서는 줄마다 세로로 쌓고 칸 이름을 앞에 붙인다 */
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table tr { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .data-table th,
  .data-table td { display: block; width: auto; padding: 0; border: 0; }
  .data-table tbody th { width: auto; font-size: 1.0313rem; }
  .data-table td { margin-top: 6px; }
  .data-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--sea);
    font-size: .8125rem;
    font-weight: 700;
  }
}

/* 안내 페이지 아래 상담 안내 글 안의 링크 (2026-11-19) */
.sub-cta p a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* 비용 안내 페이지(fees.html): 묶음 표 사이 간격 */
.sub-block .fee + .fee { margin-top: 40px; }
