@charset "utf-8";
/* ═══════════════════════════════════════════════════════════
   서브 페이지 공통 컴포넌트
   ═══════════════════════════════════════════════════════════ */

/* ───────── 답 먼저 블록 (AEO) ─────────
   헤딩 바로 다음에 결론 한 문장. 답변 엔진이 이 문단만 떼어가도 뜻이 통해야 한다. */
.answer {
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 600;
  line-height: 1.72;
  color: var(--gray-900);
  padding: 26px 30px;
  background: var(--brand-pale);
  border-radius: 12px;
  margin-bottom: 32px;
  text-wrap: pretty;
}

/* ───────── 본문 ───────── */
.prose { max-width: 78ch; }
.prose p { font-size: 16px; color: var(--gray-600); }
.prose p + p { margin-top: 18px; }
.prose h2,
.prose h3 {   /* h2 = 개인정보처리방침 절 제목 (realGEO #10 — h1 다음 h3 건너뜀을 고침). 모양은 h3 와 같다 */
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--gray-900);
  margin: 48px 0 16px;
}
.prose h4 { font-size: 18px; color: var(--gray-900); margin: 32px 0 12px; }
.prose strong { color: var(--gray-900); font-weight: 700; }
.prose ul.dots { margin-top: 16px; }
.prose ul.dots li {
  position: relative; padding-left: 18px;
  font-size: 16px; color: var(--gray-600);
}
.prose ul.dots li + li { margin-top: 10px; }
.prose ul.dots li::before {
  content: ''; position: absolute; left: 2px; top: 12px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
}

/* ───────── 콘텐츠 블록 ───────── */
.block { padding: 96px 0; }
.block + .block { border-top: 1px solid var(--gray-100); }
.block--pale { background: var(--gray-50); border-top: 0 !important; }

.block-head { margin-bottom: 40px; }
.block-head .eyebrow { margin-bottom: 14px; }
.block-head h2 { font-size: clamp(26px, 3vw, 36px); color: var(--gray-900); }

/* 2단 (텍스트 + 이미지) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split-visual { order: -1; }
.split-visual .ph { aspect-ratio: 4 / 3; border-radius: 16px; }

/* ───────── 카드 그리드 ───────── */
.cards { display: grid; gap: 24px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 34px 30px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
}
.card h3 { font-size: 19px; color: var(--gray-900); margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--gray-500); }
.card-tag {
  display: inline-block; margin-bottom: 14px;
  padding: 5px 12px; border-radius: 6px;
  background: var(--brand-pale); color: var(--brand);
  font-size: 12.5px; font-weight: 700;
}

/* ───────── 단계 (프로세스) ───────── */
.steps { counter-reset: step; display: grid; gap: 0; border-top: 2px solid var(--gray-900); }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: 92px 1fr; gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--gray-200);
}
.step::before {
  content: 'STEP ' counter(step, decimal-leading-zero);
  font-size: 12.5px; font-weight: 800; letter-spacing: .06em;
  color: var(--brand);
  padding-top: 4px;
}
.step h3 { font-size: 19px; color: var(--gray-900); margin-bottom: 8px; }
.step p { font-size: 15.5px; color: var(--gray-500); }

/* ───────── 비교표 ───────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { min-width: 560px; border-top: 2px solid var(--gray-900); }
.data-table th, .data-table td {
  padding: 18px 20px; text-align: left;
  font-size: 15.5px; border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
.data-table thead th { background: var(--gray-50); color: var(--gray-900); font-weight: 700; white-space: nowrap; }
.data-table tbody th { color: var(--gray-900); font-weight: 700; white-space: nowrap; }
.data-table td { color: var(--gray-500); }

/* ───────── 진료비 표 ───────── */
.price-table { min-width: 620px; }
.price-table td.num { text-align: right; white-space: nowrap; color: var(--gray-700); font-weight: 600; }

/* ───────── 의료진 ───────── */
.doctor { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start; }
.doctor .ph { aspect-ratio: 3 / 4; border-radius: 16px; }
.doctor-name { font-size: clamp(24px, 2.6vw, 30px); color: var(--gray-900); margin-bottom: 6px; }
.doctor-role { font-size: 15px; color: var(--brand); font-weight: 700; margin-bottom: 24px; }
.doctor-career { border-top: 1px solid var(--gray-200); padding-top: 22px; }
.doctor-career li { position: relative; padding-left: 16px; font-size: 15.5px; color: var(--gray-500); }
.doctor-career li + li { margin-top: 9px; }
.doctor-career li::before { content: ''; position: absolute; left: 0; top: 12px; width: 4px; height: 4px; border-radius: 50%; background: var(--gray-300); }

/* ───────── 갤러리 ───────── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery .ph { aspect-ratio: 4 / 3; border-radius: 12px; }

/* ───────── 서브 반응형 ───────── */
@media (max-width: 1024px) {
  .block { padding: 68px 0; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split-visual { order: 0; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .doctor { grid-template-columns: 300px 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .block { padding: 52px 0; }
  .block-head { margin-bottom: 28px; }
  .answer { font-size: 16.5px; padding: 20px 22px; margin-bottom: 24px; }
  .cards--2, .cards--3, .cards--4 { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 26px 22px; }
  .step { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .doctor { grid-template-columns: 1fr; gap: 28px; }
  /* 한 칸으로 접히면 사진이 그리드 칸 왼쪽에 붙는다.
     max-width 만 걸고 두면 태블릿에서 오른쪽에 400px 넘는 빈 자리가 생긴다.
     ⚠️ justify-self:center 는 쓰지 말 것 — .ph 안의 <picture> 가 absolute 라
        콘텐츠 폭이 0 이 되어 사진이 통째로 사라진다. width + margin 으로 가운데 둔다. */
  .doctor .ph { width: 100%; max-width: 280px; margin-inline: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .prose p, .prose ul.dots li { font-size: 15.5px; }
}
