/* ============================================================
   광교윌내과 리뉴얼 가안 v2 (2026-07)
   적용 룰: UI UX Pro Max #58 병원/의원 (메디컬 블루, 신뢰와 권위 + 전환 유도,
   접근성·윤리 우선 + 미니멀리즘) / #57 시니어(큰 글씨·큰 터치 타깃) /
   #104 예약(클릭 최소·150ms·그림자 최소) / 원칙 1·5·6
   악센트 1색 = 메디컬 블루 #0077B6, 그린은 "포함/가능" 시맨틱 전용
   radius 체계: 버튼 = pill, 카드 = 14px, 입력 = 10px / 라이트 테마 고정
   ============================================================ */

:root {
  --ink: #12303f;
  --body: #3f5460;
  --muted: #6d7f8a;
  --accent: #0077b6;
  --accent-deep: #045e91;
  --accent-soft: #e8f4fa;
  --ok: #16a34a;            /* 시맨틱: 포함·가능 체크 전용 */
  --bg: #ffffff;
  --bg-alt: #f2f9fc;
  --line: #dbe7ed;
  --radius-card: 14px;
  --radius-input: 10px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;                 /* 시니어 수검자 고려: 본문 17px */
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 가안 표시 스트립 ---------- */
.draft-strip {
  background: var(--ink); color: #c3d2da;
  font-size: 13px; text-align: center; padding: 7px 16px;
}
.draft-strip b { color: #fff; font-weight: 600; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  /* GNB 6메뉴(2026-08-01 산부인과 추가) 한 줄 유지: 본문(1120px)보다 헤더만 넓게 */
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 36px; width: auto; }
.gnb { display: flex; flex-wrap: nowrap; gap: clamp(14px, 1.8vw, 26px); font-size: 15px; font-weight: 600; color: var(--body); }
.gnb a { padding: 6px 2px; white-space: nowrap; }
.gnb a:hover, .gnb a.active { color: var(--accent); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* 버튼: 최소 높이 48px(터치 타깃), 150ms 전환, 그림자 없음 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px;
  border-radius: 999px; font-weight: 700; font-size: 16.5px;
  padding: 12px 26px; border: 1.5px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-outline { border-color: #bfd4e0; color: var(--accent); background: #fff; }
.btn-outline:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-sm { min-height: 44px; padding: 9px 20px; font-size: 15.5px; }

/* ---------- 히어로 ---------- */
.hero { padding: 60px 0 56px; }
.hero .grid { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(31px, 4vw, 44px); font-weight: 800; }
.hero .sub { margin-top: 18px; font-size: 18.5px; color: var(--body); max-width: 32em; }
.hero .cta-row { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .photo { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line); }
.hero .photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }

/* ---------- 특징 배지 그리드 (삼성베스트 패턴) ---------- */
.badges { padding: 8px 0 64px; }
.badges .grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.badge-item {
  border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 18px 16px 16px; text-align: center; background: #fff;
}
.badge-item .ph { font-size: 27px; color: var(--accent); }
.badge-item b { display: block; margin-top: 8px; font-size: 15px; line-height: 1.4; }
.badge-item span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* ---------- 예약 밴드: 클릭 최소 3스텝 ---------- */
.booking { background: var(--accent); color: #fff; padding: 52px 0; }
.booking .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.booking h2 { font-size: clamp(23px, 3vw, 29px); font-weight: 800; }
.booking .tel {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 18px; font-size: clamp(30px, 3.6vw, 40px); font-weight: 800; color: #fff;
  letter-spacing: 0.01em;
}
.booking .tel .ph { font-size: 30px; }
.booking .tel-sub { margin-top: 8px; font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.booking ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; counter-reset: bk; }
.booking li {
  counter-increment: bk;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-card); padding: 18px 18px 16px;
}
.booking li::before {
  content: counter(bk);
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; color: var(--accent); font-weight: 800; font-size: 14px;
  margin-bottom: 10px;
}
.booking li b { display: block; font-size: 16.5px; }
.booking li span { display: block; margin-top: 4px; font-size: 13.5px; color: rgba(255, 255, 255, 0.85); line-height: 1.5; }

/* ---------- 공통 섹션 ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(25px, 3vw, 32px); font-weight: 800; }
.section-head p { margin-top: 12px; color: var(--body); font-size: 17.5px; }

/* ---------- 가격 카드 (삼성베스트 패턴) ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 28px 28px 24px; display: flex; flex-direction: column;
  transition: border-color 0.15s ease;
}
.price-card:hover { border-color: var(--accent); }
.price-card.tier-top { border: 2px solid var(--accent); }
.price-card .tier { font-size: 14px; font-weight: 700; color: var(--accent); }
.price-card h3 { font-size: 22px; font-weight: 800; margin-top: 4px; }
.price-card .price { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-card .price .num { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.price-card .price .unit { font-size: 19px; font-weight: 700; }
.price-card .price .price-by { font-size: 14px; font-weight: 600; color: var(--muted); } /* 성별 단가 병기 (2026-08-01 단가 확정) */
.chip-sample {
  font-size: 11.5px; font-weight: 700; color: #8a5800; background: #fdf3dc;
  border-radius: 999px; padding: 2px 10px; align-self: center;
}
.price-card .desc { margin-top: 10px; font-size: 14.5px; color: var(--body); }
.included { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; flex: 1; }
.included li { display: flex; gap: 9px; font-size: 15px; align-items: flex-start; }
.included .ph { color: var(--ok); font-size: 19px; flex-shrink: 0; margin-top: 3px; }
.included .plus { color: var(--accent); font-weight: 700; }
.included .plus .ph { color: var(--accent); }
.price-card .btn { margin-top: 22px; }
.price-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* ---------- 여성정밀 배너 ---------- */
.women-banner {
  margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius-card);
  background: #fff; overflow: hidden;
  display: grid; grid-template-columns: 5fr 7fr;
}
.women-banner img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.women-banner .body { padding: 32px 36px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.badge-new {
  align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 3px 13px;
}
.women-banner h3 { font-size: 23px; font-weight: 800; }
.women-banner p { font-size: 16px; color: var(--body); }
.link-arrow { font-size: 15.5px; font-weight: 700; color: var(--accent); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- 신뢰(내시경) ---------- */
.trust .grid { display: grid; grid-template-columns: 6fr 5fr; gap: 56px; align-items: center; }
.trust .photo { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line); }
.trust h2 { font-size: clamp(25px, 3vw, 32px); font-weight: 800; }
.trust .lead { margin-top: 14px; color: var(--body); font-size: 17px; }
.fact-list { margin-top: 26px; display: flex; flex-direction: column; gap: 15px; }
.fact-list li { display: flex; gap: 12px; font-size: 16.5px; }
.fact-list .ph { color: var(--accent); font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.fact-list b { font-weight: 700; }
.fact-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* ---------- 의료진 ---------- */
.doctors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.doctor-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  overflow: hidden; transition: border-color 0.15s ease;
}
.doctor-card:hover { border-color: var(--accent); }
.doctor-card img { aspect-ratio: 5 / 6; object-fit: cover; object-position: top; width: 100%; }
.doctor-card .body { padding: 18px 22px 22px; }
.doctor-card .dept { font-size: 13.5px; font-weight: 700; color: var(--accent); }
.doctor-card h3 { font-size: 19.5px; font-weight: 800; margin-top: 2px; }
.doctor-card p { font-size: 14px; color: var(--body); margin-top: 6px; }

/* 의료진 프로필 리빌 (룰 #58) — 지원 브라우저 + 모션 허용 시에만 */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .doctor-card, .profile-card, .badge-item {
      animation: cardUp linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 32%;
    }
    @keyframes cardUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  }
  .fade-in { animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ---------- 의료진 상세 ---------- */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.profile-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 28px; display: grid; grid-template-columns: 150px 1fr; gap: 24px;
}
.profile-card img { border-radius: var(--radius-input); aspect-ratio: 5 / 6; object-fit: cover; object-position: top; }
.profile-card .dept { font-size: 13.5px; font-weight: 700; color: var(--accent); }
.profile-card h3 { font-size: 21px; font-weight: 800; margin: 2px 0 10px; }
.profile-card li { font-size: 14.5px; color: var(--body); padding-left: 14px; position: relative; margin-bottom: 5px; }
.profile-card li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 5px; height: 5px; border-radius: 1px; background: #bfd4e0;
}

/* ---------- 이용 안내 3열 ---------- */
.info-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.info-col { padding: 0 36px; border-left: 1px solid var(--line); }
.info-col:first-child { border-left: 0; padding-left: 0; }
.info-col h3 { font-size: 18.5px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.info-col h3 .ph { color: var(--accent); font-size: 22px; }
.info-col dl { margin: 16px 0 0; }
.info-col dt { font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 13px; }
.info-col dd { margin: 2px 0 0; font-size: 16.5px; }
.info-col .note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- 상담 폼 ---------- */
.consult .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.consult form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16.5px; color: var(--ink);
  border: 1.5px solid #c3d4de; border-radius: var(--radius-input);
  padding: 13px 15px; background: #fff; min-height: 50px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.field .help { font-size: 13px; color: var(--muted); }
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--body); }
.agree input { margin-top: 4px; width: 19px; height: 19px; accent-color: var(--accent); }
.consult .btn { grid-column: 1 / -1; }
.consult .form-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.consult .form-note.error { color: var(--accent-deep); font-weight: 700; font-size: 14.5px; }
.consult-success { display: none; grid-column: 1 / -1; text-align: center; padding: 36px 12px; }
.consult-success p { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0; }
.consult form.is-success > *:not(.consult-success) { display: none; }
.consult form.is-success .consult-success { display: block; }

/* ---------- 서브페이지 헤더 ---------- */
.page-head { background: var(--bg-alt); padding: 56px 0; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(27px, 3.4vw, 38px); font-weight: 800; }
.page-head p { margin-top: 12px; color: var(--body); font-size: 17.5px; max-width: 40em; }
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumb a:hover { color: var(--accent); }

/* ---------- 프로그램 상세 ---------- */
.program-block { border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; overflow: hidden; margin-bottom: 28px; }
.program-block .head { padding: 24px 30px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.program-block .head h3 { font-size: 22px; font-weight: 800; }
.program-block .head .en { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.program-block .head .price-inline { margin-left: auto; display: flex; align-items: baseline; gap: 8px; }
.program-block .head .price-inline .num { font-size: 26px; font-weight: 800; color: var(--accent); }
.program-block .head .price-inline .unit { font-size: 15px; font-weight: 700; color: var(--accent); }
.mf-grid { display: grid; grid-template-columns: 1fr 1fr; }
.mf-col { padding: 26px 30px; }
.mf-col + .mf-col { border-left: 1px solid var(--line); }
.mf-col h4 { font-size: 16.5px; font-weight: 800; color: var(--accent); margin-bottom: 14px; }

/* 검사 항목: 이름 + "무엇을 보는지" (삼성베스트 패턴) */
.exam-items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.exam-item { border: 1px solid var(--line); border-radius: var(--radius-input); padding: 11px 14px; }
.exam-item b { display: block; font-size: 14.5px; }
.exam-item span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.exam-item.add { border-color: var(--accent); background: var(--accent-soft); }
.exam-item.add b { color: var(--accent-deep); }

.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  background: var(--accent-soft); border-radius: 8px;
  padding: 17px 21px; font-size: 15.5px; color: var(--body); margin: 20px 0;
}
.callout b { color: var(--ink); }

/* ---------- 공단검진 카드 + 5대암 표 ---------- */
.gov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gov-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px; }
.gov-card b { display: block; font-size: 16px; color: var(--accent); }
.gov-card p { margin-top: 8px; font-size: 14.5px; color: var(--body); }

.cancer-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.cancer-table th, .cancer-table td { padding: 13px 18px; text-align: left; font-size: 15px; vertical-align: top; }
.cancer-table thead th { background: var(--bg-alt); font-weight: 700; font-size: 14px; }
.cancer-table tbody tr + tr td, .cancer-table tbody tr:first-child td { border-top: 1px solid var(--line); }
.cancer-table td:first-child { font-weight: 700; white-space: nowrap; }

/* ---------- 안내 표·스텝 ---------- */
.step-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px; counter-increment: step; }
.step h4 { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.step h4::before {
  content: counter(step);
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.step p { margin-top: 9px; font-size: 14.5px; color: var(--body); }

.notice-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.notice-table th, .notice-table td { padding: 15px 22px; text-align: left; font-size: 16px; border-top: 1px solid var(--line); vertical-align: top; }
.notice-table tr:first-child th, .notice-table tr:first-child td { border-top: 0; }
.notice-table th { width: 190px; background: var(--bg-alt); font-weight: 700; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--ink); color: #a7b7c1; margin-top: 40px; }
.site-footer .inner { max-width: var(--maxw); margin: 0 auto; padding: 44px 24px 88px; }
.site-footer .links { display: flex; gap: 22px; font-size: 14.5px; font-weight: 600; color: #dbe4ea; flex-wrap: wrap; }
.site-footer .links a:hover { color: #fff; }
.site-footer .legal { margin-top: 20px; font-size: 13.5px; line-height: 1.8; }
.site-footer .legal b { color: #dbe4ea; font-weight: 600; }

/* ---------- 모바일 하단 바 ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none; grid-template-columns: 1fr 1fr; /* 2026-08-01 카카오톡 버튼 제외로 2열 */
  background: #fff; border-top: 1px solid var(--line);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-height: 52px; justify-content: center;
  font-size: 12.5px; font-weight: 700; color: var(--body);
  border-radius: var(--radius-input); padding: 7px 4px;
}
.action-bar .ph { font-size: 22px; color: var(--accent); }
.action-bar a.bar-primary { background: var(--accent); color: #fff; }
.action-bar a.bar-primary .ph { color: #fff; }

/* ---------- 성과 스트립 (2026-07-24 원장 피드백 7: 성과를 맨 첫 화면에) ---------- */
.stats { padding: 0 0 16px; }
.stats .grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 24px 16px 20px; background: var(--bg-alt);
}
.stat { text-align: center; }
.stat b { font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: var(--accent-deep); letter-spacing: -0.02em; }
.stat b span { font-size: 16px; margin-left: 2px; }
.stat .lbl { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.stats-note { margin-top: 8px; font-size: 12.5px; color: var(--muted); }

/* ---------- 플로팅 빠른 메뉴 (2026-07-24 원장 피드백 1: 우측하단 이동용 버튼) ---------- */
.fab {
  position: fixed; right: 18px; bottom: 24px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(4, 94, 145, 0.35);
  transition: background 0.15s ease;
}
.fab:hover { background: var(--accent-deep); }
.fab .ph { font-size: 26px; }
.fab-menu {
  position: fixed; right: 18px; bottom: 90px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 8px; min-width: 188px;
  display: none; flex-direction: column;
  box-shadow: 0 10px 30px rgba(18, 48, 63, 0.14);
}
.fab-menu.open { display: flex; }
.fab-menu a { padding: 11px 16px; border-radius: 8px; font-size: 15.5px; font-weight: 600; color: var(--body); }
.fab-menu a:hover { background: var(--accent-soft); color: var(--accent); }

/* ---------- 비급여 안내 표 ---------- */
.nonpaid-table td .chip-sample { align-self: auto; white-space: nowrap; }

/* ---------- 반응형 ---------- */
@media (max-width: 1060px) {
  .badges .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .hero .grid, .trust .grid, .consult .wrap, .booking .wrap { grid-template-columns: 1fr; gap: 32px; }
  .price-grid { grid-template-columns: 1fr; }
  .women-banner { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  .info-cols { grid-template-columns: 1fr; gap: 28px; }
  .info-col { border-left: 0; padding: 0; }
  .step-flow, .gov-grid { grid-template-columns: 1fr 1fr; }
  .mf-grid { grid-template-columns: 1fr; }
  .mf-col + .mf-col { border-left: 0; border-top: 1px solid var(--line); }
  .booking ol { grid-template-columns: 1fr; }
}
/* 헤더 단계적 축소: 6메뉴 한 줄이 깨지기 전에 요소를 줄인다 */
@media (max-width: 1220px) {
  .header-cta .btn-outline { display: none; }
}
@media (max-width: 1080px) {
  .gnb { display: none; }
  .action-bar { display: grid; }
  body { padding-bottom: 78px; }
  .fab { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .fab-menu { bottom: calc(154px + env(safe-area-inset-bottom)); }
}
@media (max-width: 860px) {
  .section { padding: 56px 0; }
  .badges .grid { grid-template-columns: 1fr 1fr; }
  .exam-items { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .stats .grid { grid-template-columns: 1fr 1fr; gap: 18px 8px; }
}
@media (max-width: 560px) {
  .doctors-grid { grid-template-columns: 1fr 1fr; }
  .consult form { grid-template-columns: 1fr; }
  .profile-card { grid-template-columns: 110px 1fr; gap: 16px; }
  .step-flow, .gov-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   팝업 공고 (2026-07-31 송원장 요청: 의료진 휴가·공고문)
   데스크톱 = 중앙 카드, 모바일 = 하단 시트
   ============================================================ */
.notice-pop { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.notice-pop[hidden] { display: none; }
.notice-pop .dim { position: absolute; inset: 0; background: rgba(18, 48, 63, .45); }
.notice-card { position: relative; background: var(--bg); border-radius: var(--radius-card); max-width: 420px; width: 100%; padding: 26px 26px 12px; box-shadow: 0 24px 64px rgba(18, 48, 63, .28); }
.notice-card .tag { display: inline-block; background: var(--accent-soft); color: var(--accent-deep); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.notice-card h3 { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.notice-card .body { max-height: 56vh; overflow-y: auto; } /* 원장님별 휴진 공지 여러 건이 담겨도 화면을 넘지 않게 */
.notice-card .body p { font-size: 15.5px; color: var(--body); line-height: 1.65; margin-bottom: 6px; }
.notice-card .body .gap { height: 12px; }
.notice-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; border-top: 1px solid var(--line); }
.notice-actions button { background: none; border: 0; font: inherit; font-size: 14.5px; color: var(--muted); cursor: pointer; padding: 14px 8px; min-height: 48px; }
.notice-actions button.strong { color: var(--accent-deep); font-weight: 700; }
@media (max-width: 560px) {
  .notice-pop { align-items: flex-end; padding: 0; }
  .notice-card { max-width: none; border-radius: var(--radius-card) var(--radius-card) 0 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}
