/* ============================================================
   m_mobile.css — 모바일 전용판(m_*.html) 단독 스타일시트 (32차 신설)
   데스크톱 번들(vendor/styles.css/renewal.css)을 전혀 로드하지 않는 독립 번들.
   팔레트: 확정 브라운 무드 — 순흑/순백/주황 금지, 대표색 #f6efea/#fffefe/#5a4332.
   ============================================================ */
:root {
  --espresso: #1C1610;   /* 헤더/푸터/다크 표면 */
  --panel:    #5a4332;   /* 서브 다크 표면·본문 잉크 */
  --ink:      #5a4332;
  --ink-2:    #443B33;
  --ink-3:    #766A5F;
  --dim:      #A2958A;
  --line:     rgba(94,69,52,.12);
  --bg:       #FDFBF9;
  --bg-2:     #F6F1EB;
  --card:     #FFFEFC;
  --brown:    #5a4332;   /* 밝은 배경 포인트 */
  --brown-d:  #4a3628;   /* 버튼 hover/active */
  --cream:    #f6efea;   /* 다크 배경 포인트 */
  --white:    #fffefe;
  --tabbar-h: 62px;
  --header-h: 56px;
  --util-h:   32px;  /* 54차: 유틸리티 바 (최상단 전용) */
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', sans-serif; color: var(--ink); background: var(--bg);
  line-height: 1.3; word-break: keep-all; overflow-wrap: break-word;
  padding-top: calc(var(--header-h) + var(--util-h)); /* 54차: 최상단 유틸+헤더 스택과 일치 */
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; }
.serif { font-family: 'Playfair Display', serif; font-style: italic; }
.color-main { color: var(--brown); } /* 데스크톱에서 이식된 강조 스팬용 (밝은 배경) */

/* ── 유틸리티 바 (54차 — PC util-bar의 모바일판: 최상단에서만 표시, 전화는 tel: 링크) ──
   z-index 95: 헤더(100) 아래 — 접힐 때 헤더 뒤로 미끄러져 들어가게. m_mobile.js가 body.m-scrolled 토글. */
.mutil {
  position: fixed; top: 0; left: 0; right: 0; height: var(--util-h); z-index: 95;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #FFFEFC; transition: transform .3s ease;
  font-size: 11.5px; white-space: nowrap; color: var(--ink-3);
}
.mutil a { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-weight: 500; }
.mutil a i { color: var(--brown); font-size: 13px; }
.mutil-sep { width: 1px; height: 10px; background: rgba(94,69,52,.18); }
body.m-scrolled .mutil { transform: translateY(-100%); }

/* ── 상단 고정 헤더 (67차: PC .top-bar 화이트 전환과 동일 톤) ── */
.mh {
  position: fixed; top: var(--util-h); left: 0; right: 0; height: var(--header-h); z-index: 100;
  display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 16px;
  background: rgba(255,254,252,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(94,69,52,.08); box-shadow: 0 2px 16px rgba(44,37,32,.05);
  transition: top .3s ease; /* 54차: 유틸 바 접힘과 연동 */
}
body.m-scrolled .mh { top: 0; }
.mh-logo { display: flex; align-items: center; gap: 9px; }
.mh-logo img { height: 26px; }
.mh-name { display: flex; flex-direction: column; }
.mh-name-ko { color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.2; }
.mh-name-en { font-family: 'Playfair Display', serif; font-style: italic; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); line-height: 1.2; margin-top: 2px; }
.mh-actions { display: flex; align-items: center; }
.mh-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--ink); }

/* ── 풀스크린 드로어 ── */
.mdrawer {
  position: fixed; inset: 0; z-index: 200; background: #FFFEFC;
  display: flex; flex-direction: column; padding: 12px 24px calc(24px + env(safe-area-inset-bottom));
  transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
  overflow-y: auto;
}
.mdrawer.open { transform: none; visibility: visible; }
.mdrawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mdrawer-top img { height: 26px; }
.mdrawer-close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--ink); margin-right: -10px; }
.mdrawer-nav { display: flex; flex-direction: column; }
.mdrawer-item { border-bottom: 1px solid var(--line); }
.mdrawer-link, .mdrawer-acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 2px; color: var(--ink); font-size: 17px; font-weight: 700; text-align: left;
}
.mdrawer-acc-head i { font-size: 20px; color: var(--dim); transition: transform .25s ease; }
.mdrawer-item.open .mdrawer-acc-head i { transform: rotate(180deg); }
.mdrawer-sub { display: none; padding: 0 2px 14px 14px; }
.mdrawer-item.open .mdrawer-sub { display: flex; flex-direction: column; gap: 2px; }
.mdrawer-sub a { padding: 8px 0; color: var(--ink-2); font-size: 15px; }
.mdrawer-contact { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.mdrawer-contact a { display: flex; align-items: center; gap: 9px; color: var(--ink-2); font-size: 15px; }
.mdrawer-contact a i { color: var(--brown); font-size: 17px; }

/* ── 하단 고정 탭바 ── */
.mtab {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(44,37,32,.06);
}
.mtab a, .mtab button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 700; color: var(--ink-3);
}
.mtab i { font-size: 20px; color: var(--brown); }

/* ── 히어로 (index) — 33차: PC 메인배너처럼 5장 크로스페이드 + 켄 번즈 ── */
/* 51차: 배경을 다크로 — 크로스페이드 중간(두 장 모두 반투명)에 밝은 body 배경이 비쳐 번쩍이던 것 방지 */
.mhero { position: relative; height: 64vh; min-height: 400px; overflow: hidden; background: var(--espresso); }
.mhero-slides { position: absolute; inset: 0; }
/* 51차: 비활성 기본 transform = 켄 번즈 끝값(1.13) — 시작값/미지정으로 두면 나가는 슬라이드가
   .on을 잃는 순간 확대 상태에서 원본 크기로 축소 스냅(눈에 보이는 채로). PC 히어로(renewal.css
   kvZoom 주석)에서 해결한 것과 동일 원리 — 들어오는 슬라이드의 1.13→1.03 리셋은 opacity 0 시점이라 안 보임. */
.mhero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease; will-change: opacity, transform;
  transform: scale(1.13);
}
.mhero-slides img.on { opacity: 1; animation: mheroZoom 8s ease-out forwards; }
@keyframes mheroZoom {
  from { transform: scale(1.03); }
  to   { transform: scale(1.13); }
}
@media (prefers-reduced-motion: reduce) {
  .mhero-slides img.on { animation: none; }
}
.mhero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,14,8,.72) 0%, rgba(20,14,8,.25) 45%, rgba(20,14,8,.18) 100%);
}
.mhero-copy { position: absolute; left: 24px; right: 24px; bottom: 44px; z-index: 1; color: #fff; }
.mhero-eyebrow { font-family: 'Playfair Display', serif; font-style: italic; letter-spacing: .12em; font-size: 12px; color: rgba(253,251,249,.85); margin-bottom: 10px; }
.mhero-title { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700; font-size: 40px; line-height: 1.15; text-shadow: 0 4px 20px rgba(0,0,0,.35); }
.mhero-sub { margin-top: 10px; font-size: 16px; font-weight: 500; }

/* ── 서브 히어로 (내부 페이지 공통) ── */
.mphero { position: relative; padding: 44px 24px 40px; background: #5a4332; }
.mphero-eng { font-family: 'Playfair Display', serif; font-style: italic; letter-spacing: .16em; font-size: 11px; color: var(--cream); text-transform: uppercase; margin-bottom: 8px; }
.mphero-title { color: #FDFBF9; font-size: 25px; font-weight: 900; line-height: 1.35; }
.mphero-sub { margin-top: 8px; color: rgba(253,251,249,.65); font-size: 13.5px; line-height: 1.3; }

/* ── 섹션 공통 ── */
.msec { padding: 52px 20px; }
.msec--tint { background: var(--bg-2); }
.msec-eyebrow { font-family: 'Playfair Display', serif; font-style: italic; letter-spacing: .12em; font-size: 12px; color: var(--brown); margin-bottom: 8px; }
/* 44차: m_clinic의 한글 eyebrow(척추/관절)는 제거됨 — Playfair 이탤릭은 영문 전용이라
   한글이 명조 폴백+가짜 기울임으로 흐릿하게 렌더됐고, 분류 정보 자체도 불필요하다는 피드백.
   한글을 이 자리에 다시 넣을 일이 있으면 세리프 이탤릭이 아닌 고딕으로 별도 스타일을 줄 것. */
.msec-title { font-size: 23px; font-weight: 900; color: var(--ink); line-height: 1.4; margin-bottom: 8px; }
.msec-sub { font-size: 14px; color: var(--ink-3); line-height: 1.3; margin-bottom: 24px; }
.msec > :last-child { margin-bottom: 0; }

/* ── 홈 바로가기 그리드 ── */
.mquick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
/* 34차: 라벨 줄 수(1줄/2줄)가 섞여도 아이콘 높이가 전부 같도록 상단 기준 정렬 */
.mquick a {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px;
  min-height: 92px; padding: 16px 6px 13px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-2); line-height: 1.45;
  box-shadow: 0 6px 18px rgba(44,37,32,.04);
}
.mquick a i { font-size: 23px; color: var(--brown); height: 26px; display: flex; align-items: center; flex: none; }

/* ── 부위 바로가기 칩 바 (42차 — m_clinic, 고정 헤더 밑 스티키) ──
   .mchips(치료 태그, flex-wrap:wrap)와 별개 컴포넌트 — 이름 겹치면 wrap이 섞여 두 줄로 꺾임.
   불투명 배경 필수: 본문이 밑으로 지나갈 때 비치지 않게. z-index 90 — 헤더(100) 아래, 본문 위. */
.mchipnav {
  position: sticky; top: var(--header-h); z-index: 90;
  display: flex; gap: 8px; padding: 10px 20px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.mchipnav::-webkit-scrollbar { display: none; }
.mchipnav a {
  flex: none; display: flex; align-items: center; min-height: 40px; padding: 0 16px;
  border-radius: 100px; background: var(--card); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.mchipnav a.active { background: var(--brown); border-color: var(--brown); color: var(--white); }

/* ── 카드/특별함 ── */
.mcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(44,37,32,.05); overflow: hidden; }
/* 33차: 링크형 카드 터치 눌림 피드백 (절제된 스케일) */
a.mcard { transition: transform .15s ease, box-shadow .15s ease; }
a.mcard:active { transform: scale(.985); box-shadow: 0 4px 14px rgba(44,37,32,.08); }
.mspecial { display: flex; flex-direction: column; gap: 14px; }
.mspecial-card { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 26px rgba(44,37,32,.12); }
.mspecial-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mspecial-card figcaption {
  position: relative; z-index: 1; min-height: 250px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px 20px 18px;
  background: linear-gradient(180deg, rgba(36,27,17,.05) 30%, rgba(36,27,17,.88) 100%);
}
.mspecial-num { font-family: 'Playfair Display', serif; font-style: italic; letter-spacing: .08em; font-size: 12px; color: var(--cream); margin-bottom: 7px; }
.mspecial-title { font-size: 18px; font-weight: 900; color: #FDFBF9; line-height: 1.4; margin-bottom: 6px; }
.mspecial-desc { font-size: 12.5px; color: rgba(253,251,249,.78); line-height: 1.3; }

/* ── 의료진 ── */
.mdoc { display: flex; flex-direction: column; gap: 18px; }
.mdoc-card { overflow: hidden; }
/* 대표님 요청 — 얼굴 크기(폭 44%)는 유지하고 높이만 줄임(가슴선 크롭, object-fit cover).
   상단 여백은 img margin이 아니라 부모 padding으로 줘야 베이지로 칠해짐(마진은 collapse되어
   밴드 자체가 카드 흰색 위에서 밀려 내려가 흰 띠가 생겼었음). 하단 페이드는 대표님 요청으로 없음
   — 이미지가 밴드 바닥까지 꽉 차게 붙어 잘린 경계가 바닥 모서리와 일치. */
.mdoc-photo { background: #E9DECF; height: 205px; padding-top: 16px; }
.mdoc-photo img { width: 44%; height: 100%; margin: 0 auto; display: block; object-fit: cover; object-position: top; }
.mdoc-body { padding: 20px 20px 22px; }
.mdoc-badge { display: inline-block; padding: 5px 12px; border-radius: 100px; background: var(--panel); color: #FDFBF9; font-size: 11.5px; font-weight: 700; }
.mdoc-name { font-size: 22px; font-weight: 900; margin: 12px 0 2px; }
.mdoc-name span { font-size: 13px; font-weight: 700; color: var(--brown); margin-left: 6px; }
.mdoc-highlights { margin-top: 10px; }
.mdoc-highlights li { position: relative; padding-left: 13px; font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
.mdoc-highlights li::before { content: ''; position: absolute; left: 0; top: .72em; width: 4px; height: 4px; border-radius: 50%; background: #bd9865; }

/* ── 아코디언 공통 ── */
.macc { border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.macc + .macc { margin-top: 12px; }
.macc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 54px; padding: 14px 16px; text-align: left;
  font-size: 15.5px; font-weight: 700; color: var(--ink);
}
.macc-head i { flex: none; font-size: 20px; color: var(--brown); transition: transform .25s ease; }
.macc.open > .macc-head i { transform: rotate(180deg); }
.macc-body { display: none; padding: 0 16px 18px; }
.macc.open > .macc-body { display: block; }
.macc-body > :last-child { margin-bottom: 0; }

/* 아코디언 내부 콘텐츠 톤 */
.m-subtitle { font-size: 14px; font-weight: 900; color: var(--brown); margin: 18px 0 8px; }
.m-desc { font-size: 14px; color: var(--ink-2); line-height: 1.3; margin-bottom: 4px; }
.m-list li { position: relative; padding-left: 13px; font-size: 13.5px; color: var(--ink-2); line-height: 1.85; }
.m-list li::before { content: ''; position: absolute; left: 0; top: .74em; width: 4px; height: 4px; border-radius: 50%; background: #bd9865; }
.m-img { border-radius: 12px; overflow: hidden; margin: 14px 0 4px; }
.m-img img { width: 100%; height: 180px; object-fit: cover; }

/* ── 칩(치료 태그) ── */
.mchips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.mchips span {
  background: rgba(90,67,50,.07); color: var(--brown); border: 1px solid rgba(90,67,50,.22);
  padding: 4px 12px; font-size: 12px; font-weight: 500; border-radius: 100px;
}

/* ── 치료 장점 리스트 ── */
.mbenefit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.mbenefit-item { background: var(--bg-2); border-radius: 12px; padding: 14px; }
.mbenefit-item .num { font-size: 13px; font-weight: 700; color: var(--brown); margin-bottom: 4px; }
.mbenefit-item .ttl { font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.55; }

/* ── 버튼 ── */
.mbtn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border-radius: 12px;
  font-size: 15px; font-weight: 700; text-align: center;
}
.mbtn--solid { background: var(--brown); color: var(--white); }
.mbtn--solid:active { background: var(--brown-d); }
.mbtn--ghost { border: 1px solid rgba(94,69,52,.3); color: var(--ink-2); background: var(--card); }
.mbtn-row { display: flex; gap: 10px; }
.mbtn-row .mbtn { flex: 1; }

/* ── 진료시간 (67차: PC .se8_hours 화이트 카드 전환과 동일 톤) ── */
.mhours { background: var(--card); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(44,37,32,.05); border-radius: 16px; padding: 24px 20px; color: var(--ink); }
.mhours-title { font-size: 17px; font-weight: 900; margin-bottom: 14px; }
.mhours-title .serif { color: var(--brown); font-weight: 600; font-size: 12px; letter-spacing: .12em; display: block; margin-bottom: 6px; }
.mhours-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.mhours-row:last-of-type { border-bottom: none; }
.mhours-day { font-weight: 700; font-size: 14px; flex: none; }
.mhours-time { font-size: 14px; color: var(--ink-2); text-align: right; }
.mhours-time b { color: var(--brown); }
.mhours-note { font-size: 12px; color: var(--ink-3); }
.mhours-row--off .mhours-day, .mhours-row--off .mhours-time { color: var(--dim); }
.mhours-badge { display: inline-block; margin-top: 14px; padding: 7px 14px; border-radius: 100px; background: rgba(90,67,50,.08); color: var(--brown); font-size: 12.5px; font-weight: 700; }

/* ── 지도 ── */
.mmap { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); height: 300px; background: var(--bg-2); }
.mmap iframe { width: 100%; height: 100%; border: 0; display: block; }
.maddr { margin: 14px 0; font-size: 14px; color: var(--ink-2); display: flex; gap: 7px; align-items: flex-start; }
.maddr i { color: var(--brown); font-size: 16px; margin-top: 2px; }

/* ── 표 (비급여/제증명/병원정보) ── */
.mtable-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.mtable { width: 100%; border-collapse: collapse; }
.mtable thead th { background: #3A2E22; color: #FDFBF9; font-size: 12.5px; font-weight: 700; padding: 10px 8px; text-align: center; }
.mtable thead th:first-child { text-align: left; padding-left: 14px; }
.mtable tbody td { padding: 10px 8px; font-size: 12.5px; color: var(--ink-2); text-align: center; border-top: 1px solid rgba(94,69,52,.08); line-height: 1.3; }
.mtable tbody td:first-child { text-align: left; padding-left: 14px; font-weight: 700; color: var(--ink); }
.mtable tbody th { background: var(--bg-2); color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 10px 12px; text-align: left; border-top: 1px solid rgba(94,69,52,.08); width: 92px; }
.mtable .price { font-weight: 700; white-space: nowrap; }
.mgroup-title { font-size: 17px; font-weight: 900; color: var(--ink); margin: 30px 0 10px; }
.mgroup-title:first-of-type { margin-top: 0; }

/* ── 유의사항 박스 ── */
.mnotice { margin-top: 16px; padding: 16px 18px; border-radius: 12px; background: var(--bg-2); border: 1px solid rgba(94,69,52,.08); }
.mnotice p { position: relative; padding-left: 14px; margin: 0 0 6px; font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.mnotice p:last-child { margin-bottom: 0; }
.mnotice p::before { content: ''; position: absolute; left: 0; top: .68em; width: 4px; height: 4px; border-radius: 50%; background: var(--brown); }

/* ── 갤러리/구역(둘러보기) ── */
.mgal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mgal figure { margin: 0; border-radius: 12px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.mgal img { width: 100%; height: 130px; object-fit: cover; }
.mgal figcaption { padding: 9px 10px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.mzones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mzone { border: 1px solid var(--line); border-radius: 12px; padding: 16px 12px; text-align: center; background: var(--card); }
.mzone i { font-size: 22px; color: var(--brown); display: block; margin-bottom: 8px; }
.mzone-name { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.mzone-desc { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }
.mnote { margin-top: 14px; font-size: 12.5px; color: var(--dim); }

/* ── 장비 ── */
.mequip { display: flex; flex-direction: column; gap: 14px; }
.mequip-card img { width: 100%; height: 170px; object-fit: cover; }
.mequip-body { padding: 18px 18px 20px; }
.mequip-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--brown); margin-bottom: 5px; }
.mequip-name { font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.mequip-desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.3; }

/* ── 숫자 카드 ── */
.mstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mstat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 12px; text-align: center; }
.mstat-num { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 34px; line-height: 1; color: var(--brown); }
.mstat-num small { font-size: 15px; font-weight: 700; color: var(--ink); font-family: 'Noto Sans KR', sans-serif; }
.mstat-label { margin-top: 8px; font-size: 13px; font-weight: 700; }
.mstat-desc { margin-top: 2px; font-size: 11px; color: var(--ink-3); line-height: 1.3; }

/* ── 진료철학 라이트 밴드 (67차: PC #section2/.se2_principle 라이트 전환과 동일 톤) ── */
.mband { position: relative; padding: 60px 24px; text-align: center; background: var(--bg-2); overflow: hidden; }
.mband > img { display: none; } /* 라이트 배경 위에선 어두운 사진 레이어가 어색해 숨김(PC와 동일하게 사진 없이) */
.mband-inner { position: relative; z-index: 1; }
.mband-quote { display: block; font-size: 34px; color: var(--brown); font-family: 'Playfair Display', serif; line-height: 1; margin-bottom: 4px; }
.mband-title { font-size: 20px; font-weight: 900; color: var(--ink); line-height: 1.55; margin-bottom: 14px; }
.mband-desc { font-size: 13.5px; line-height: 1.3; color: var(--ink-2); }
/* 43차: 신뢰 배너 (m_clinic) — PC clinic dc-cta--photo의 모바일 전용판.
   버튼 없음(전화는 하단 고정 탭바 담당) — 문구 + 한 줄 진료시간 캡션만. */
.mband-hours { margin-top: 18px; font-size: 12px; color: var(--ink-3); }
/* 67차: .mband--cta(m_clinic 신뢰 배너, 실제 사진 배경 있음)는 PC .dc-cta--photo와 같은 이유로
   다크 유지 — 위 라이트 전환은 진료철학용 기본 .mband에만 적용하고, 이 모디파이어는 원래 값으로 복원. */
.mband--cta { background: var(--espresso); }
/* 대표님 요청 — 문구가 사진 '아래'가 아니라 사진 '안에' 적히도록: 사진을 배너 전체를 덮는
   배경 레이어로 깔고(absolute+cover) 문구(.mband-inner, z-index:1)가 그 위에 얹힘. */
.mband--cta > img { display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.mband--cta .mband-title { color: #fff; }
.mband--cta .mband-desc { color: rgba(253,251,249,.82); }
.mband--cta .mband-hours { color: rgba(253,251,249,.55); }

/* ── 시술사례 준비중 ── */
.mempty { text-align: center; padding: 56px 20px; }
.mempty i { font-size: 40px; color: var(--brown); display: block; margin-bottom: 14px; }
.mempty-title { font-size: 19px; font-weight: 900; margin-bottom: 8px; }
.mempty-desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.3; }

/* ── 주간 진료표 (48차: 의료진 약력 아코디언 → 전체보기 모달로 이동, 스코프도 모달로) ── */
.pr-modal__body .dc-week { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 10px; overflow: hidden; margin-top: 4px; }
.pr-modal__body .dc-week thead th { background: #3A2E22; color: #FDFBF9; font-size: 12.5px; font-weight: 700; padding: 9px; }
.pr-modal__body .dc-week tbody th { background: var(--bg-2); color: #5E4534; font-size: 12.5px; font-weight: 700; padding: 9px; width: 40%; border-top: 1px solid rgba(94,69,52,.08); }
.pr-modal__body .dc-week tbody td { background: var(--card); color: var(--ink-2); font-size: 12.5px; text-align: center; padding: 9px; border-top: 1px solid rgba(94,69,52,.08); }
.pr-modal__body .dc-week td.dc-off { color: var(--dim); }
/* 48차: 약력 전체보기 버튼(카드 아래) + 모달 내 섹션 제목(바디 flex gap 22px가 섹션 간격 담당) */
.mdoc-more { margin-top: 14px; width: 100%; }
.pr-modal__body .m-subtitle { margin-top: 0; }

/* ── 푸터 (67차: PC .footer-band 화이트 전환과 동일 톤) ── */
.mfoot { background: var(--card); border-top: 1px solid var(--line); padding: 40px 24px 30px; color: var(--ink-2); }
.mfoot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } /* 55차: 로고 옆 병원명 노출 */
.mfoot-logo { height: 28px; }
.mfoot-name { color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.mfoot-tagline { font-size: 12.5px; color: var(--ink-3); margin-bottom: 18px; }
.mfoot-phone { display: block; color: var(--brown); font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.mfoot p { font-size: 12.5px; line-height: 1.3; }
.mfoot-policy { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 20px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.mfoot-policy a { color: var(--ink-2); font-size: 12.5px; font-weight: 700; }
.mfoot-copy p { font-size: 11.5px; color: var(--dim); line-height: 1.3; }
.mfoot-copy b { color: var(--ink-2); }

/* ── 개인정보/권리의무 모달 (데스크톱 pr-modal 마크업 이식 — 모바일 시트 스타일) ── */
.pr-modal { position: fixed; inset: 0; z-index: 9999; display: none; }
.pr-modal.open { display: block; }
.pr-modal__backdrop { position: absolute; inset: 0; background: rgba(28,22,16,.6); }
.pr-modal__box {
  position: absolute; left: 0; right: 0; bottom: 0; top: 8vh;
  background: var(--bg); border-radius: 18px 18px 0 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.pr-modal__header {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--card);
}
.pr-modal__title { font-size: 16.5px; font-weight: 900; color: var(--ink); }
.pr-modal__close { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--ink-3); margin-right: -8px; }
.pr-modal__body { overflow-y: auto; padding: 20px 18px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 22px; -webkit-overflow-scrolling: touch; }
.pr-section__title { font-size: 15px; font-weight: 900; color: var(--brown); padding-bottom: 8px; border-bottom: 2px solid rgba(90,67,50,.2); }
.pr-item { padding: 10px 0; border-bottom: 1px solid rgba(94,69,52,.08); }
.pr-item:last-child { border-bottom: none; padding-bottom: 0; }
.pr-item__label { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.pr-item__desc { font-size: 12.5px; line-height: 1.3; color: var(--ink-2); }
.pr-item__desc a { color: var(--brown); text-decoration: underline; }
.pr-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 10px 0 4px; border-radius: 10px; overflow: hidden; }
.pr-table thead th { background: #3A2E22; color: #FDFBF9; font-size: 12px; font-weight: 700; padding: 8px; text-align: center; }
.pr-table tbody th { background: var(--bg-2); color: #5E4534; font-size: 12px; font-weight: 700; padding: 8px 10px; text-align: left; border-top: 1px solid rgba(94,69,52,.08); }
.pr-table tbody td { background: var(--card); color: var(--ink-2); font-size: 12px; text-align: center; padding: 8px; border-top: 1px solid rgba(94,69,52,.08); width: 90px; }

/* 앵커 착지 시 고정 헤더 보정 */
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
/* 42차: 클리닉 부위/치료법 섹션(52차 추가)은 스티키 칩 바(61px) 높이만큼 추가 보정 */
#neck, #back, #shoulder, #knee, #elbow, #foot,
#nav_target1, #nav_target2, #nav_target3, #nav_target4, #nav_target5 { scroll-margin-top: calc(var(--header-h) + 72px); }

/* ── 스크롤 등장 효과 (33차 — m_mobile.js가 .msec/.mphero 직계 자식에 자동 부여) ── */
.mrev { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.mrev.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .mrev { opacity: 1; transform: none; transition: none; }
}
