/* 스파하라 공통 스타일: taste-skill 키트(system.css, layout.css) 다음에 불러온다.
   색은 화이트 하나 (베이지·네이비 시안은 2026-11-23 삭제). html[data-theme="white"]는 고정 값. */

/* ---------- 색: 화이트 (dalia.kr 참고: 흰 바탕 + 잉크 블루 #2a4161 (2026-11-24 코발트 #2a3d89에서 변경) 하나 + 얇은 고딕 큰 제목) ---------- */
/* 글꼴: Pretendard Variable 은 site/fonts/pretendard.woff2 (사이트에 쓰인 글자만 담음, tools/font_subset.py 가 만듦)를
   각 페이지 head 에서 먼저 받고(preload) font-display: block 으로 연결한다. 기본 글꼴로 먼저 그렸다 바꾸는 순간이 없어
   글자가 커졌다 줄어드는 깜빡임이 생기지 않는다. Pretendard 에 없는 한자(手技, 美容)는 시스템 글꼴로 나온다. */

:root {
  --p-bg: #ffffff; --p-surface: #f4f6f9; --p-ink: #111418; --p-muted: #5c6370;
  --p-accent: #2a4161; --p-accent-ink: #ffffff; --p-action: #2a4161; --p-action-ink: #ffffff;
  --p-inv-bg: #1c2b48; --p-inv-surface: #26365a; --p-inv-ink: #ffffff; --p-inv-muted: #b4bccb;
  --p-inv-accent: #ffffff; --p-inv-accent-ink: #1c2b48; --p-inv-action: #ffffff; --p-inv-action-ink: #1c2b48;
  --font-display: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-text: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --display-weight: 200;
  --display-tracking: -0.03em;
  --card-bg: #ffffff;
  --closing-bg: #f7e8e0; --closing-ink: #a0461f;
  --open-bg: #e4f0e8; --open-ink: #356b4b;
}

/* 한글: 단어 중간에서 줄을 바꾸지 않는다 */
body, h1, h2, h3, p, li, a, dd, dt, td, th, label { word-break: keep-all; overflow-wrap: anywhere; }
.menu-card .panel { --p-h: 200px; }

/* 메인 첫 화면의 네 사업 입구 (기획서: 모바일 첫 화면에 넷 다 보이게) */
.entries { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.hero__text > .entries { width: 100%; }
.entries a { display: grid; gap: 2px; min-height: 64px; padding: var(--s-3) var(--s-4); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); background: var(--card-bg); color: var(--ink); text-decoration: none;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease); }
.entries a strong { font-weight: 600; font-size: 17px; }
.entries a span { color: var(--muted); font-size: 14px; }
@media (hover: hover) and (pointer: fine) { .entries a:hover { transform: translateY(-2px); border-color: var(--action); } }
.entries a:active { transform: translateY(0); }

/* 상태 배지 */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.badge--closing { background: var(--closing-bg); color: var(--closing-ink); }
.badge--open { background: var(--open-bg); color: var(--open-ink); }

.tile__go { color: var(--action); font-weight: 500; }
.story-strip { margin-top: var(--s-8); }
.close__word { line-height: 1.12; padding-bottom: .04em; }
.faq > .faq__item { padding: var(--s-4) 0; }
.faq .faq__item > h3 { font-size: 18px; }
.section-foot { margin-top: var(--s-6); }

/* 이용 절차 3단계 */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; display: grid; gap: var(--s-2); padding: var(--s-6); background: var(--p-surface); border-radius: var(--r-md); }
.steps > li::before { content: "0" counter(step); font: var(--display-weight) 32px/1 var(--font-display); color: var(--action); }
.steps > li h3 { font: 600 19px/1.4 var(--font-text); }

/* 월별 강의 일정 */
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.cal caption { text-align: left; font: var(--display-weight) 22px/1.3 var(--font-display); padding-bottom: var(--s-3); }
.cal th, .cal td { text-align: left; padding: var(--s-4) var(--s-3) var(--s-4) 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cal th { font-size: 13px; font-weight: 500; color: var(--muted); }
.cal + .cal { margin-top: var(--s-7); }

/* 커리큘럼 목록 */
.curri { padding-left: 1.2em; display: grid; gap: var(--s-2); color: var(--ink); }

/* 고객센터: 사업별 탭 + 검색 */
.faq-tools { display: grid; gap: var(--s-4); margin-bottom: var(--s-6); }
.faq-tools input[type="search"] { width: 100%; min-height: 48px; padding: 12px 14px; font: 16px var(--font-text); color: var(--ink);
  background: var(--card-bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.filters button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--ink); font: 500 15px var(--font-text); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--action); color: var(--action-ink); border-color: var(--action); }
.faq__cat { font-size: 13px; color: var(--muted); }
.faq-empty { color: var(--muted); }

/* 문의 양식 */
.form select, .form textarea { width: 100%; min-height: 48px; padding: 12px 14px; font: 16px var(--font-text); color: var(--ink);
  background: var(--card-bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.form textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: var(--s-2); align-items: center; min-height: 44px; }
.check input { width: 20px; height: 20px; }

/* 공지사항 */
.notice-date { color: var(--muted); font-variant-numeric: tabular-nums; }

/* 색 시안 전환 (초안 확인용) */

@media (max-width: 639px) {
  .hero--place { --photo: 240px; }
  .story-strip { margin-top: var(--s-6); }
  .story-strip > .pl-photo { grid-column: auto / span 6; }
  .entries a { min-height: 60px; padding: var(--s-2) var(--s-3); }
  .entries a strong { font-size: 16px; }
  .entries a span { font-size: 13px; }
  .steps > li { padding: var(--s-5); }
  .cal th:nth-child(3), .cal td:nth-child(3) { display: none; }
}

/* 이용 절차: 사진 옆에 세로로 */
.steps { display: grid; gap: var(--s-3); }
.steps > li { padding: var(--s-5); grid-template-columns: auto 1fr; column-gap: var(--s-5); align-items: start; }
.steps > li::before { grid-row: span 2; font-size: 28px; }
.steps > li p { grid-column: 2; }

@media (min-width: 640px) and (max-width: 1023px) {
  .story-strip > .pl-photo { grid-column: auto / span 6; }
}
@media (max-width: 639px) {
  [data-faq] .faq__cat { display: none; }
  [data-faq] .faq > .faq__item { padding: var(--s-3) 0; }
}
/* 태블릿(640–1023): 섹션이 한 화면을 넘지 않게 */
@media (min-width: 640px) and (max-width: 1023px) {
  #related .tile .tile__media { aspect-ratio: 4 / 5; }
  .grid:has(> .tile.span-4) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid > .tile.span-4 { grid-column: auto; --tile-ratio: 4 / 3; }
  :is(#faq, #ask) .pl-photo--end { display: none; }
}


:root[data-theme="white"] :is(h1, h2, .close__word, .sig__title) { font-weight: 200; }
:root[data-theme="white"] .steps > li::before { font-weight: 300; }
@media (max-width: 639px) { :root[data-theme="white"] :is(h1, h2, .sig__title) { font-weight: 300; } }

/* 섹션 제목 위 작은 영문 라벨 (모든 시안) */
.eyebrow { font: 700 15px/1.3 var(--font-text); letter-spacing: 0; color: var(--ink); margin-bottom: var(--s-3); }
:root[data-theme="white"] .eyebrow { color: var(--action); }

/* 번호 붙은 대표 프로그램 블록 (스파) */
.sig { display: grid; gap: var(--s-4); align-content: start; color: inherit; text-decoration: none; }
.sig__media { overflow: clip; aspect-ratio: 4 / 5; border-radius: var(--r-lg); background: var(--p-surface); }
.sig__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
@media (hover: hover) and (pointer: fine) { a.sig:hover .sig__media img { transform: scale(1.03); } }
.sig__title { font: var(--display-weight) 30px/1.25 var(--font-display); letter-spacing: var(--display-tracking); }
.sig__title span { color: var(--action); margin-right: .25em; }
.sig p { color: var(--muted); }
@media (min-width: 640px) and (max-width: 1023px) { .sig__media { aspect-ratio: 9 / 16; } }
@media (max-width: 639px) { .sig__media { aspect-ratio: 16 / 9; } .sig__title { font-size: 24px; } }
:root[data-theme="white"] .section-head h2, :root[data-theme="white"] .closing__cta h2 { font-size: clamp(28px, 2.2vw + 12px, 44px); line-height: 1.3; }
@media (min-width: 640px) and (max-width: 1023px) {
  .grid:has(> .sig) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid > .sig { grid-column: auto; }
  .sig__title { font-size: 22px; }
}

/* 화이트 시안: 베이지 자리표시 사진을 회색으로 (실제 사진에는 적용 안 됨: 파일명이 ph- 로 시작하는 것만) */
:root[data-theme="white"] img[src*="img/ph-"] { filter: grayscale(1) brightness(1.04); }

/* 업체 로고(SVG, 글자색 따라감) */
.nav__logo svg.logo { height: 30px; width: auto; display: block; }
.footer .nav__logo svg.logo, .closing__links .nav__logo svg.logo { height: 36px; }
@media (max-width: 639px) { .nav__logo svg.logo { height: 24px; } }

/* 푸터 사업자 정보 (업체 제공, 2026-11-23) */
.footer__biz { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: var(--s-7) 0 var(--s-4); font-size: 13px; line-height: 1.6; color: var(--muted); }
.footer__biz > div { display: flex; gap: 6px; }
.footer__biz dt { font-weight: 600; color: var(--ink); }
.footer__biz dd { margin: 0; }
.footer__biz a { color: inherit; }
@media (max-width: 639px) { .footer__biz { flex-direction: column; gap: 4px; } .footer__biz > div { flex-wrap: wrap; } }

/* 푸터: 화면 한 장 높이를 강제로 채우지 않고 내용만큼만, 영역 사이 간격도 줄임 (2026-11-23) */
footer.closing { height: auto; min-height: 0; padding-top: 88px; padding-bottom: calc(40px + var(--bar, 0px)); }
footer.closing > .wrap { height: auto; grid-template-rows: auto auto; row-gap: 56px; }
.closing__links { gap: 28px; }
.footer__biz { margin: 0; }
.closing__links > .footer__legal { padding-top: 16px; }
@media (max-width: 1023px) { footer.closing { min-height: 0; } footer.closing > .wrap { row-gap: 40px; } }
@media (max-width: 639px) { footer.closing { padding-top: 64px; } .closing__links { gap: 24px; } }
footer.closing > .wrap { grid-template-rows: auto; }
footer.closing { padding-top: 64px; }

/* 브랜드: Our Story 본문 (업체 원고, 2026-11-23) */
.story__body { margin-top: var(--s-6); display: grid; gap: var(--s-3); color: var(--muted); font-size: 17px; line-height: 1.8; max-width: 34em; }

/* 사진만 있는 첫 화면 (브랜드) */
main > section.hero--photo-only { position: relative; padding: 0; height: calc(500px + var(--nav, 72px)); min-height: 0; overflow: hidden; background: #3a3f47; }   /* 헤더 아래로 보이는 사진 높이 500px */
.hero--photo-only .hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
@media (max-width: 639px) { main > section.hero--photo-only { height: 56svh; min-height: 300px; } }
/* Our Space: PC는 사진 왼쪽, 모바일은 Our Story처럼 글 먼저 */
@media (max-width: 1023px) { :is(#space, #visit) .wrap.grid > figure { order: 2; } }

/* 브랜드 Our Story / Our Space: 사진과 글 사이를 넓게 (PC) */
@media (min-width: 1024px) {
  :is(#story, #therapists) .wrap.grid > div.span-6 { padding-right: 64px; }
  #visit .wrap.grid > div.span-6 { padding-left: 64px; }
  #space .wrap.grid > div.span-6 { padding-left: 56px; }
}
/* 문장 중간에서 줄이 꺾이지 않게 (PC) */
@media (min-width: 1440px) { .nobr { white-space: nowrap; } }
/* 오시는 길 약도: 잘리지 않게 전체 보이기 */
.visit-map img { object-fit: cover; background: #eef0f3; }

/* 브랜드 첫 화면: 사진 왼쪽에 얹는 글 (dalia 'Wake up Beauty' 느낌: 얇은 큰 영문 + 작은 흰 본문) */
.hero--photo-only.has-over::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(20 16 12 / .45) 0, rgb(20 16 12 / 0) 160px),
    linear-gradient(90deg, rgb(20 16 12 / .55) 0%, rgb(20 16 12 / .32) 38%, rgb(20 16 12 / 0) 65%); }
.hero-over { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav, 72px); color: #fff; gap: 0; }
.hero-over__en { font: 200 clamp(36px, 2.4vw + 14px, 56px)/1.15 "Pretendard Variable", Pretendard, sans-serif; letter-spacing: -0.02em; max-width: 16em; }
.hero-over__ko { margin-top: 22px; font-size: 16px; line-height: 1.85; font-weight: 400; color: rgb(255 255 255 / .92); }
@media (max-width: 639px) {
  .hero--photo-only.has-over::after { background: linear-gradient(180deg, rgb(20 16 12 / .15) 0%, rgb(20 16 12 / .55) 100%); }
  .hero-over { justify-content: flex-end; padding-bottom: 28px; }
  .hero-over__en { font-size: 32px; }
  .hero-over__ko { font-size: 14px; margin-top: 14px; }
}
main > section.hero--photo-only > .hero-over { gap: 0; }

/* 헤더: 첫 화면 사진 위에서는 투명 + 흰 글씨, 스크롤하면 흰 바탕 (홈은 home.js, 브랜드는 nav-clear.js 가 html.home-top 을 붙였다 뗀다) */
header.nav { transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease; }
html.home-top header.nav:not(.is-open) { background: transparent; border-bottom-color: transparent; color: #fff; --ink: #fff; }
html.home-top header.nav:not(.is-open) .nav__logo,
html.home-top header.nav:not(.is-open) .nav__link { color: #fff; }
html.home-top header.nav:not(.is-open) .mark { background: #fff; }
html.home-top header.nav:not(.is-open) .nav__toggle { color: #fff; border-color: rgb(255 255 255 / .6); background: transparent; }
html.home-top header.nav:not(.is-open) .nav__actions .btn--primary { background: transparent; color: #fff; border: 1px solid rgb(255 255 255 / .8); box-shadow: none; }
html.home-top header.nav:not(.is-open) .nav__actions .btn--primary:hover { background: rgb(255 255 255 / .12); }
header.nav .nav__actions .btn--primary { border: 1px solid transparent; transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease; }
/* 브랜드 첫 화면 영문 아랫줄 (dalia 'DALIA AESTHETIC' 줄처럼 굵은 대문자) */
.hero-over__sub { margin-top: 10px; font: 800 clamp(17px, .5vw + 12px, 22px)/1.3 "Pretendard Variable", Pretendard, sans-serif; letter-spacing: 0; text-transform: uppercase; color: #fff; }
@media (max-width: 639px) { .hero-over__sub { font-size: 14px; margin-top: 6px; } }

/* 섹션 제목 색 (2026-11-24): 작은 영문 머리말 = 딥 네이비, 그 아래 큰 제목 = 잉크 블루 */
:root { --deep-navy: #162a45; --ink-blue: #2a4161; }
:root[data-theme] main :is(.section-head h2, .dl-title, h2) { color: var(--ink-blue); }
:root[data-theme] main :is(.eyebrow, .dl-eyebrow, h2.dl-eyebrow) { color: var(--deep-navy); }
:root[data-theme] main :is(.dl-sol__card, .dl-card, .hero-over, .dl-hero__brand) :is(.dl-eyebrow, h2, h3, .dl-title) { color: revert-layer; }

/* 푸터 메뉴·채널: 가로 한 줄씩 (2026-11-24) — 왼쪽에 머리말, 오른쪽에 링크가 가로로 */
.footer .footer__col--row { display: flex; align-items: baseline; gap: 32px; }
.footer .footer__col--row h3 { margin: 0; flex: 0 0 48px; }
.footer .footer__col--row ul { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer .footer__rows { display: grid; gap: 20px; align-content: start; padding-top: 6px; }
@media (max-width: 1023px) { .footer .grid > .footer__rows { grid-column: 1 / -1; } }
@media (max-width: 639px) { .footer .footer__col--row { gap: 16px; } .footer .footer__col--row ul { gap: 0 20px; } .footer .footer__rows { gap: 8px; } }
@media (min-width: 1024px) {
  .footer .footer__rows { justify-items: end; }
  .footer .footer__col--row, .footer .footer__col--row ul { justify-content: flex-end; }
}

/* ---------- 브랜드 페이지 움직임 (brand-motion.js 가 html.bmv 를 붙였을 때만, 홈화면과 같은 곡선·시간) ---------- */
html.bmv .hero--photo-only .hero__bg { transform: translate3d(0, var(--py, 0px), 0) scale(var(--bkb, 1)); animation: b-kenburns 14s cubic-bezier(.2,.75,.5,1) both; will-change: transform; }
@property --bkb { syntax: "<number>"; inherits: false; initial-value: 1; }
@keyframes b-kenburns { from { --bkb: 1.08; } to { --bkb: 1; } }
html.bmv .hero--photo-only .hero-over > * { animation: b-up 900ms cubic-bezier(.2,.75,.5,1) both; }
@keyframes b-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

html.bmv [data-blines] .ln { display: block; overflow: hidden; padding-bottom: .06em; }
html.bmv [data-blines] .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1000ms cubic-bezier(.2,.75,.5,1); }
html.bmv [data-blines].is-in .ln > span, html.bmv-safe [data-blines] .ln > span { transform: none; }

html.bmv [data-breveal] { opacity: 0; transform: translateY(32px); transition: opacity 900ms cubic-bezier(.2,.75,.5,1), transform 900ms cubic-bezier(.2,.75,.5,1); }
html.bmv [data-breveal].is-in, html.bmv-safe [data-breveal] { opacity: 1; transform: none; }

html.bmv [data-bphoto] { opacity: 0; transform: translateY(40px); transition: opacity 1100ms cubic-bezier(.2,.75,.5,1) 150ms, transform 1100ms cubic-bezier(.2,.75,.5,1) 150ms; overflow: hidden; }
html.bmv [data-bphoto] img { transform: scale(1.08); transition: transform 1600ms cubic-bezier(.2,.75,.5,1) 150ms; }
html.bmv [data-bphoto].is-in, html.bmv-safe [data-bphoto] { opacity: 1; transform: none; }
html.bmv [data-bphoto].is-in img, html.bmv-safe [data-bphoto] img { transform: none; }


/* ---------- 푸터: 모든 페이지 딥 네이비 + 흰 글씨 (홈화면에서 쓰던 것을 공통으로) ---------- */
:root[data-theme="white"] footer.closing {
  background: #162a45; /* Deep Navy */
  --ink: #ffffff; --muted: rgb(255 255 255 / .72); --line: rgb(255 255 255 / .18); --action: #ffffff;
  color: #fff; border-top: 0;
}
:root[data-theme="white"] footer.closing a { color: #fff; }
:root[data-theme="white"] footer.closing a:hover { color: #fff; opacity: .7; }
:root[data-theme="white"] footer.closing .close__word { display: none; }
.hero-over__btn { margin-top: 28px; }

/* 스파 페이지 대표 관리: 홈화면 프로그램 카드 5개 (사진 비율은 기존 대표 관리와 같은 4:5) */
.sig-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 20px; }
.sig-row .sig__title { font-size: clamp(20px, 0.9vw + 8px, 24px); line-height: 1.35; margin-top: -6px; }
.sig-row .sig p:last-child { font-size: 15px; line-height: 1.6; }
.sig__tag { font-size: 13px; font-weight: 700; color: var(--deep-navy, #162a45); margin-top: 4px; }
.sig-row .sig__media img[src*="body1-16"] { object-position: 0% 50%; filter: saturate(1.7); }
.sig-row .sig__media img[src*="head-3"] { object-position: 100% 50%; }
.sig-row .sig__media img[src*="body2-28"] { filter: brightness(1.5); }
@media (min-width: 640px) and (max-width: 1023px) { .sig-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sig-row .sig__media { aspect-ratio: 4 / 5; } }
@media (max-width: 639px) { .sig-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; } }

/* ---------- 스파 메뉴 (spa.html #programs, tools/spa_menu.py) ---------- */
main > section.menu { height: auto; min-height: 0; }
main > section.menu > .wrap { height: auto; }
.menu-nav { position: sticky; top: var(--nav, 72px); z-index: 5; background: rgb(255 255 255 / .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-block: 1px solid var(--line); margin: 8px 0 56px; }
.menu-nav__row { display: flex; gap: 4px 28px; overflow-x: auto; scrollbar-width: none; }
.menu-nav__row::-webkit-scrollbar { display: none; }
.menu-nav a { flex: none; padding: 16px 0; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; transition: color 200ms, border-color 200ms; }
.menu-nav a:hover, .menu-nav a.is-cur { color: var(--ink-blue, #2a4161); border-bottom-color: currentColor; }
.menu-cat { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 88px; padding: 56px 0 64px; border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav, 72px) + 64px); }
.menu-cat:first-of-type { border-top: 0; padding-top: 0; }
.menu-cat__aside { align-self: start; position: sticky; top: calc(var(--nav, 72px) + 96px); }
.menu-cat__title { font: 200 clamp(28px, 1.6vw + 12px, 38px)/1.25 var(--font-display); letter-spacing: -0.03em; color: var(--ink-blue, #2a4161); margin-top: 6px; }
.menu-cat__intro { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.menu-cat__photo { margin-top: 28px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--p-surface); }
.menu-cat__photo img { width: 100%; height: 100%; object-fit: cover; }
.menu-group + .menu-group { margin-top: 48px; }
.menu-group__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ink-blue, #2a4161); }
.menu-group__title { font-size: 19px; font-weight: 700; color: var(--ink-blue, #2a4161); }
.menu-list { list-style: none; padding: 0; margin: 0; }
.mi { padding: 26px 0; border-bottom: 1px solid var(--line); }
.mi__best { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 3px 8px; margin-bottom: 10px; background: var(--ink-blue, #2a4161); color: #fff; }
.mi__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px 24px; }
.mi__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 19px; font-weight: 700; color: var(--ink); }
.mi__en { font-weight: 700; }
.mi__en + .mi__ko { font-size: 15px; font-weight: 400; color: var(--muted); }
.mi__time { font-size: 14px; font-weight: 500; color: var(--muted); }
.mi__price { flex: none; text-align: right; display: grid; gap: 2px; }
.mi__price strong { font-size: 19px; font-weight: 700; color: var(--ink-blue, #2a4161); font-variant-numeric: tabular-nums; }
.mi__price span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.menu-group__head .mi__price strong { font-size: 19px; }
.mi__keys { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--deep-navy, #162a45); }
.mi__desc { margin-top: 6px; font-size: 15px; line-height: 1.7; color: var(--ink); }
.mi__flow { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.mi__flow li + li::before { content: "→"; margin: 0 8px; color: var(--line-strong, #b5bcc8); }
.add-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink-blue, #2a4161); }
.add-list li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.add-list small { color: var(--muted); font-size: 14px; margin-left: 6px; }
.add__price { font-weight: 700; color: var(--ink-blue, #2a4161); font-variant-numeric: tabular-nums; flex: none; }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 56px; }
@media (max-width: 1023px) {
  .menu-cat { grid-template-columns: 1fr; gap: 24px; }
  .menu-cat__aside { position: static; }
  .menu-cat__photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 639px) {
  .menu-nav { margin-bottom: 32px; }
  .menu-nav__row { gap: 4px 22px; }
  .mi__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .mi__price { text-align: left; grid-auto-flow: column; align-items: baseline; gap: 10px; }
  .mi__name { font-size: 17px; }
  .menu-group__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .menu-group__head .mi__price { text-align: left; }
}
.menu-group--add .menu-group__head { border-bottom: 0; padding-bottom: 6px; }
.menu-group--add .menu-group__title small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.menu-group--add .add-list { border-top: 1px solid var(--ink-blue, #2a4161); }
.menu-group--add .add-list li { font-size: 15px; padding: 14px 0; }

/* 스파 멤버십·프로모션 */
main > section.member, main > section.promo { height: auto; min-height: 0; }
main > :is(section.member, section.promo) > .wrap { height: auto; }
.member__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px 64px; align-items: start; }
.member__table-wrap { overflow-x: auto; }
.member__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.member__table th, .member__table td { padding: 18px 12px; text-align: center; border-bottom: 1px solid var(--line); font-size: 16px; }
.member__table thead th { font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--ink-blue, #2a4161); }
.member__table tbody th { font-weight: 700; color: var(--ink-blue, #2a4161); letter-spacing: .02em; text-align: left; }
.member__table thead th:first-child { text-align: left; }
.member__perks { padding: 28px; background: var(--p-surface); }
.member__perks-title { font-size: 17px; font-weight: 700; color: var(--ink-blue, #2a4161); margin-bottom: 14px; }
.member__perks ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 15px; line-height: 1.6; color: var(--ink); }
.promo__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; }
.promo__title { font-size: 17px; font-weight: 700; color: var(--ink-blue, #2a4161); margin-bottom: 10px; }
@media (max-width: 1023px) { .member__grid, .promo__grid { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .member__table th, .member__table td { padding: 14px 6px; font-size: 14px; } }

/* ---------- 스파 프로그램 목록: 분류 탭 + 분류 배너 + 프로그램 카드 (tools/spa_pages.py, dalia.kr 구성 참고) ---------- */
main > section.spa-list.spa-list, main > section.pd-sec.pd-sec { height: auto; min-height: 0; }
main > :is(section.spa-list, section.pd-sec) > .wrap { height: auto; }
.spa-tabs { position: sticky; top: var(--nav, 72px); z-index: 5; background: #fff; margin: 8px 0 32px; }
.spa-tabs__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); }
.spa-tab { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 0 8px; font-size: 15px; font-weight: 600; color: var(--ink);
  text-decoration: none; text-align: center; border-left: 1px solid var(--line); border-top: 3px solid transparent; transition: color 200ms, border-color 200ms, background 200ms; }
.spa-tab:first-child { border-left: 0; }
.spa-tab:hover { color: var(--ink-blue, #2a4161); background: var(--p-surface); }
.spa-tab.is-cur { color: var(--ink-blue, #2a4161); border-top-color: var(--ink-blue, #2a4161); }
.spa-tab--link { color: var(--muted); }
.spa-panel + .spa-panel { margin-top: 72px; }
html.spa-tabs-on .spa-panel { display: none; margin-top: 0; }
html.spa-tabs-on .spa-panel.is-cur { display: block; }
.spa-panel__anchor { display: block; position: relative; top: calc(-1 * (var(--nav, 72px) + 96px)); }
.cat-banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: stretch; background: var(--p-surface); border-radius: 18px; overflow: hidden; min-height: 300px; }
.cat-banner__text { padding: 56px 64px; display: flex; flex-direction: column; justify-content: center; }
.cat-banner__en { font-size: 15px; font-weight: 700; color: var(--deep-navy, #162a45); }
.cat-banner__title { font: 200 clamp(32px, 2vw + 14px, 46px)/1.2 var(--font-display); letter-spacing: -0.03em; color: var(--ink-blue, #2a4161); margin-top: 8px; }
.cat-banner__intro { margin-top: 14px; font-size: 16px; line-height: 1.7; color: var(--ink); max-width: 36em; }
.cat-banner__photo { position: relative; }
.cat-banner__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-list { display: grid; gap: 16px; margin-top: 24px; }
.pc { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 40px; padding: 32px 48px; border: 1px solid var(--line);
  border-radius: 6px; background: #fff; color: inherit; text-decoration: none; transition: border-color 200ms, box-shadow 200ms, translate 200ms; }
@media (hover: hover) and (pointer: fine) { .pc:hover { border-color: var(--ink-blue, #2a4161); box-shadow: 0 12px 32px rgb(22 42 69 / .08); translate: 0 -2px; } }
.pc__group { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.pc__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.pc__sub { font-size: 14px; font-weight: 500; color: var(--muted); }
.pc__best, .pd-badge--best { display: inline-block; font-size: 12px; font-weight: 600; padding: 5px 10px; background: var(--ink-blue, #2a4161); color: #fff; }
.pc__sum { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.pc__time { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 14px; border-radius: 999px; background: var(--ink-blue, #2a4161); color: #fff; font-size: 14px; font-weight: 600; }
.pc__time svg, .pd-badge svg { width: 15px; height: 15px; }
.pc__side { display: grid; justify-items: end; gap: 10px; }
.pc__price { font-size: 20px; font-weight: 700; color: var(--ink-blue, #2a4161); font-variant-numeric: tabular-nums; }
.pc__more { font-size: 14px; color: var(--ink); }
.pc__more::after { content: " →"; }
.pc-add { margin-top: 40px; }
.pc-add__title { font-size: 18px; font-weight: 700; color: var(--ink-blue, #2a4161); margin-bottom: 8px; }
.pc-add__title small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.pc-add .add-list { border-top: 1px solid var(--ink-blue, #2a4161); }
@media (max-width: 1023px) {
  .spa-tabs__row { display: flex; overflow-x: auto; scrollbar-width: none; }
  .spa-tabs__row::-webkit-scrollbar { display: none; }
  .spa-tab { flex: none; min-height: 52px; padding: 0 20px; }
  .cat-banner { grid-template-columns: 1fr; }
  .cat-banner__photo { aspect-ratio: 16 / 9; order: -1; }
  .cat-banner__text { padding: 32px 28px; }
}
@media (max-width: 639px) {
  .pc { grid-template-columns: 1fr; padding: 24px 20px; }
  .pc__side { justify-items: start; grid-auto-flow: column; align-items: baseline; gap: 16px; }
  .pc__name { font-size: 19px; }
}

/* ---------- 프로그램 상세 페이지 (spa-*.html) ---------- */
.pd-hero { background: var(--p-surface); }
main > section.pd-hero > .wrap.pd-hero__wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 40px; align-items: stretch; min-height: 460px; }
.pd-hero__text { padding: 72px 0; display: flex; flex-direction: column; justify-content: center; }
.pd-hero__cat a { font-size: 16px; font-weight: 600; color: var(--deep-navy, #162a45); text-decoration: none; }
.pd-switch { position: relative; margin-top: 10px; }
.pd-switch summary { display: inline-flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.pd-switch summary::-webkit-details-marker { display: none; }
.pd-switch h1 { font-size: clamp(30px, 1.8vw + 14px, 42px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }
.pd-switch__btn { flex: none; width: 34px; height: 34px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; transition: transform 200ms; }
.pd-switch__btn svg { width: 14px; height: 14px; }
.pd-switch[open] .pd-switch__btn { transform: rotate(180deg); }
.pd-switch__menu { position: absolute; z-index: 6; top: calc(100% + 10px); left: 0; min-width: 300px; margin: 0; padding: 8px 0; list-style: none; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 16px 40px rgb(22 42 69 / .12); }
.pd-switch__menu a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 20px; font-size: 15px; color: var(--ink); text-decoration: none; }
.pd-switch__menu a:hover, .pd-switch__menu a[aria-current] { background: var(--p-surface); color: var(--ink-blue, #2a4161); font-weight: 600; }
.pd-switch__menu small { color: var(--muted); font-weight: 400; }
.pd-hero__sub { margin-top: 6px; font-size: 15px; color: var(--muted); }
.pd-hero__lead { margin-top: 16px; font-size: 17px; line-height: 1.7; color: var(--ink); max-width: 32em; }
.pd-hero__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.pd-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--ink-blue, #2a4161); font-size: 14px; font-weight: 600; }
.pd-badge--best { border-radius: 0; padding: 7px 10px; }
.pd-badge--price { background: var(--ink-blue, #2a4161); color: #fff; }
.pd-hero__photo { position: relative; }
.pd-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-nav { margin: 0; border-top: 0; }
.pd-nav .menu-nav__row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-top: 0; background: #fff; }
.pd-nav .menu-nav__row a { text-align: center; padding: 20px 8px; border-bottom: 3px solid transparent; border-left: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.pd-nav .menu-nav__row a:first-child { border-left: 0; }
.pd-nav .menu-nav__row a.is-cur, .pd-nav .menu-nav__row a:hover { color: var(--ink-blue, #2a4161); border-bottom-color: var(--ink-blue, #2a4161); font-weight: 700; }
.pd-sec { scroll-margin-top: calc(var(--nav, 72px) + 64px); }
.pd-head { text-align: center; margin-bottom: 48px; }
.pd-head h2 { margin-top: 8px; }
.pd-info { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px 72px; align-items: center; }
.pd-info__photo { position: relative; margin: 0; aspect-ratio: 4 / 3; background: var(--p-surface); }
.pd-info__photo img { width: 100%; height: 100%; object-fit: cover; }
.pd-callouts { list-style: none; margin: 0; padding: 0; }
.pd-callout { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 22px 14px 14px; background: #fff; border-radius: 6px;
  box-shadow: 0 12px 32px rgb(0 0 0 / .14); font-size: 16px; font-weight: 600; color: var(--ink); }
.pd-callout span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink-blue, #2a4161); color: #fff; font-size: 14px; }
.pd-callout--1 { top: 12%; right: 8%; } .pd-callout--2 { top: 42%; left: 6%; } .pd-callout--3 { bottom: 14%; right: 12%; } .pd-callout--4 { bottom: 6%; left: 10%; }
.pd-info__text h3 { font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.pd-info__text p { font-size: 16px; line-height: 1.8; color: var(--ink); }
.pd-info__text p + p { margin-top: 10px; color: var(--muted); }
.pd-facts { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--ink-blue, #2a4161); }
.pd-facts li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pd-facts span { color: var(--muted); }
.pd-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 44px; }   /* 줄 단위 가운데 정렬 (마지막 줄이 짧아도 가운데) */
.pd-step { flex: 0 0 calc((100% - 3 * 44px) / 4); }
.pd-step { position: relative; display: grid; align-content: center; justify-items: center; gap: 10px; min-height: 132px; padding: 36px 16px 24px; border: 3px solid var(--line);
  border-radius: 12px; text-align: center; background: #fff; }
.pd-step:nth-child(odd) { border-color: var(--ink-blue, #2a4161); }   /* 홀수 step(01, 03, 05…)만 잉크 블루 테두리 */
.pd-step__no { position: absolute; top: 10px; left: 12px; font-size: 13px; color: var(--muted); }
.pd-step__no b { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 4px; border-radius: 50%; background: var(--ink-blue, #2a4161); color: #fff; font-size: 12px; }
.pd-step strong { font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.pd-step:not(:last-child)::after { content: "→"; position: absolute; right: -36px; top: 50%; translate: 0 -50%; font-size: 24px; color: var(--ink-blue, #2a4161); }
.pd-step:nth-child(4n)::after { display: none; }
.pd-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pd-price { display: grid; grid-template-rows: auto auto 1fr auto; justify-items: center; padding: 44px 32px 0; border-radius: 14px; background: #fff;
  box-shadow: 0 10px 40px rgb(22 42 69 / .08); overflow: hidden; text-align: center; }
.pd-price__tag { padding: 6px 28px; border-radius: 999px; background: var(--ink-blue, #2a4161); color: #fff; font-size: 16px; font-weight: 700; }
.pd-price__was { margin-top: 28px; font-size: 20px; color: var(--muted); text-decoration: line-through; }
.pd-price__now { margin-top: 6px; align-self: center; font-size: clamp(32px, 2vw + 12px, 44px); font-weight: 800; color: var(--ink-blue, #2a4161); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pd-price__was--blank { visibility: hidden; }   /* 일반가 카드에도 취소선 줄 자리를 두어 가격 높이를 회원가와 맞춘다 */
.pd-price ul { justify-self: stretch; margin: 36px -32px 0; padding: 24px 32px 28px 52px; background: var(--p-surface); text-align: left; font-size: 15px; line-height: 1.9; }
/* 가격 카드: 커서를 올린 카드(아무 카드에도 올리지 않았을 때는 가운데 골드 카드)는
   연출16 사진 위에 잉크 블루 색 레이어가 깔리고 글씨가 흰색이 된다 (dalia.kr 가격 카드 참고) */
.pd-price { position: relative; isolation: isolate; transition: color 400ms ease, box-shadow 400ms ease; }
.pd-price::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 400ms ease;
  background: linear-gradient(rgb(42 65 97 / .74), rgb(42 65 97 / .74)), url("img/cards/body1-16-sr.jpg") center 35% / cover; }
.pd-price ul, .pd-price__tag, .pd-price__was, .pd-price__now { transition: background-color 400ms ease, color 400ms ease; }
:is(.pd-price:hover, .pd-prices:not(:hover) .pd-price--hl)::before { opacity: 1; }
:is(.pd-price:hover, .pd-prices:not(:hover) .pd-price--hl) { box-shadow: 0 18px 48px rgb(22 42 69 / .22); }
:is(.pd-price:hover, .pd-prices:not(:hover) .pd-price--hl) .pd-price__tag { background: #fff; color: var(--ink-blue, #2a4161); }
:is(.pd-price:hover, .pd-prices:not(:hover) .pd-price--hl) .pd-price__was { color: rgb(255 255 255 / .65); }
:is(.pd-price:hover, .pd-prices:not(:hover) .pd-price--hl) .pd-price__now { color: #fff; }
:is(.pd-price:hover, .pd-prices:not(:hover) .pd-price--hl) ul { background: rgb(255 255 255 / .08); color: #fff; }
.pd-price__note { margin-top: 20px; text-align: right; font-size: 14px; color: var(--muted); }
.pd-promo { margin-top: 48px; padding: 32px 40px; background: var(--p-surface); }
.pd-promo h3 { font-size: 18px; font-weight: 700; color: var(--ink-blue, #2a4161); margin-bottom: 12px; }
.pd-promo .add-list { border-top: 1px solid var(--ink-blue, #2a4161); }
.pd-promo .add-list li strong { color: var(--ink-blue, #2a4161); }
.pd-promo p { margin-top: 12px; font-size: 14px; color: var(--muted); }
.pd-reserve { list-style: none; margin: 0 auto; padding: 0; max-width: 880px; display: grid; gap: 12px; counter-reset: r; }
.pd-reserve li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 22px 28px; background: var(--p-surface); font-size: 16px; line-height: 1.7; }
.pd-reserve strong { color: var(--ink-blue, #2a4161); }
.pd-reserve__cta { margin-top: 32px; text-align: center; }
.pd-reviews { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pd-review { padding: 28px; border: 1px solid var(--line); border-radius: 6px; }
.pd-review__stars { color: var(--ink-blue, #2a4161); letter-spacing: 2px; }
.pd-review__text { margin-top: 12px; font-size: 15px; line-height: 1.75; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.pd-review__more, .pd-back { margin-top: 28px; text-align: center; }
@media (max-width: 1023px) {
  main > section.pd-hero > .wrap.pd-hero__wrap { grid-template-columns: 1fr; min-height: 0; }
  .pd-hero__photo { aspect-ratio: 16 / 9; order: -1; margin-inline: calc(-1 * var(--edge, 24px)); }
  .pd-hero__text { padding: 32px 0 40px; }
  .pd-nav .menu-nav__row { display: flex; overflow-x: auto; }
  .pd-nav .menu-nav__row a { flex: none; padding: 16px 18px; }
  .pd-info { grid-template-columns: 1fr; }
  .pd-steps { gap: 24px 36px; }
  .pd-step { flex-basis: calc((100% - 36px) / 2); }
  .pd-step:nth-child(4n)::after { display: block; } .pd-step:nth-child(2n)::after { display: none; }
  .pd-prices, .pd-reviews { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .pd-callout { font-size: 13px; padding: 8px 12px 8px 8px; gap: 8px; } .pd-callout span { width: 22px; height: 22px; font-size: 12px; }
  .pd-step { min-height: 104px; padding: 32px 10px 16px; } .pd-step strong { font-size: 15px; }
  .pd-reserve li { grid-template-columns: 1fr; gap: 4px; padding: 18px 20px; }
  .pd-switch__menu { min-width: 0; right: 0; }
}
main > section.pd-hero.pd-hero { height: auto; min-height: 0; padding: 0; }
@media (max-width: 1023px) {
  main > section.pd-hero > .wrap.pd-hero__wrap { height: auto; min-height: 0; gap: 0; grid-template-rows: auto auto; align-content: start; }
  .pd-hero__photo { aspect-ratio: auto; height: 240px; }
  .pd-hero__text { padding: 28px 0 36px; justify-content: flex-start; }
}
/* 프로그램 이름 드롭다운이 아래 '프로그램 안내…' 이동 줄(sticky, z 5) 위로 올라오게: 첫 화면 구역 전체를 그 위 층에 둔다 */
main > section.pd-hero.pd-hero { position: relative; z-index: 7; }
#membership, #promotion { scroll-margin-top: var(--nav, 72px); }   /* 멤버십으로 스크롤해 왔을 때 헤더 아래에서 시작 */
/* 상세 페이지 추가 메뉴 (시그니처·스페셜 바디만): 가격과 예약하기 사이 */
.pd-head__lead { margin-top: 12px; font-size: 16px; color: var(--muted); }
.pd-add__list { width: 100%; max-width: 880px; margin: 0 auto; border-top: 1px solid var(--ink-blue, #2a4161); }
.pd-add__list li { font-size: 16px; padding: 18px 4px; }
/* 상세 페이지 첫 화면: 사진 없이 글만, 높이를 줄임 (2026-11-24) */
main > section.pd-hero > .wrap.pd-hero__wrap { grid-template-columns: 1fr; min-height: 0; }
.pd-hero__text { padding: calc(var(--nav, 72px) + 56px) 0 60px; }   /* 헤더가 첫 화면 위에 겹쳐 있어서 헤더 높이만큼 더 내린다 */
@media (max-width: 1023px) { .pd-hero__text { padding: calc(var(--nav, 56px) + 32px) 0 36px; } }
/* 상세 페이지 첫 화면: 딥 네이비 바탕 + 흰 글씨 (펼친 목록은 흰 판 그대로) */
.pd-hero { background: var(--deep-navy, #162a45); color: #fff; }
.pd-hero :is(.pd-hero__cat a, .pd-switch h1, .pd-hero__lead) { color: #fff; }
.pd-hero__cat a { text-decoration-color: rgb(255 255 255 / .5); }
.pd-hero .pd-hero__sub { color: rgb(255 255 255 / .7); }
.pd-hero .pd-switch__btn { border-color: #fff; color: #fff; }
.pd-hero .pd-badge--best { background: #fff; color: var(--ink-blue, #2a4161); }
.pd-hero .pd-switch__menu a { color: var(--ink); }
.pd-hero .pd-switch__menu a:hover, .pd-hero .pd-switch__menu a[aria-current] { color: var(--ink-blue, #2a4161); }
:root[data-theme] .pd-hero .pd-switch h1 { font-weight: 700; }   /* 상세 첫 화면 서비스명은 굵게 (전역 h1 200을 덮음) */

/* ---------- 움직임 보강 (스파·상세 페이지) ---------- */
/* 상세 첫 화면 글: 사진 첫 화면 글과 같은 곡선으로 차례로 올라옴 */
html.bmv .pd-hero__text > * { animation: b-up 900ms cubic-bezier(.2,.75,.5,1) both; }
/* 나타나기 + 원래 있던 커서 반응(색·그림자·살짝 뜸)을 함께 쓰는 요소: 두 전환을 합쳐 둔다 */
html.bmv .pc[data-breveal] { transition: opacity 900ms cubic-bezier(.2,.75,.5,1), transform 900ms cubic-bezier(.2,.75,.5,1), border-color 200ms, box-shadow 200ms, translate 200ms; }
html.bmv .pd-price[data-breveal] { transition: opacity 900ms cubic-bezier(.2,.75,.5,1), transform 900ms cubic-bezier(.2,.75,.5,1), color 400ms ease, box-shadow 400ms ease; }
/* 화면 밖으로 나가 되돌아갈 때는 바로 (지연 없이) */
html.bmv [data-breveal]:not(.is-in), html.bmv [data-bphoto]:not(.is-in), html.bmv [data-bphoto]:not(.is-in) img { transition-duration: 0ms; }
html.bmv [data-blines]:not(.is-in) .ln > span { transition-duration: 0ms; transition-delay: 0ms !important; }
/* 분류 배너: 사진 왼쪽을 배너 바탕색으로 서서히 덮어 글 영역과 끊김 없이 이어지게 (휴대폰은 사진이 위라 아래쪽을 덮음) */
.cat-banner__photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--p-surface) 0%, rgb(244 246 249 / .85) 12%, rgb(244 246 249 / .45) 30%, rgb(244 246 249 / 0) 55%); }
@media (max-width: 1023px) {
  .cat-banner__photo::before { background: linear-gradient(0deg, var(--p-surface) 0%, rgb(244 246 249 / .8) 14%, rgb(244 246 249 / 0) 50%); }
}
/* 바디 테라피 사진(연출25): 아래쪽(두 손과 스톤)이 보이게 */
:is(.cat-banner__photo, .pd-info__photo) img[src*="brand/story.jpg"] { object-position: 50% 78%; }
/* 프로그램 구성: 줄이 바뀌어 새 줄이 시작될 때 그 첫 상자 왼쪽에도 화살표 (PC 4개씩 → 5·9번째, 휴대폰·태블릿 2개씩 → 3·5·7번째) */
.pd-step:nth-child(4n+1):not(:first-child)::before { content: "→"; position: absolute; left: -36px; top: 50%; translate: 0 -50%; font-size: 24px; color: var(--ink-blue, #2a4161); }
@media (max-width: 1023px) {
  .pd-step:nth-child(4n+1):not(:first-child)::before { content: none; }
  .pd-step:nth-child(2n+1):not(:first-child)::before { content: "→"; position: absolute; left: -20px; top: 50%; translate: 0 -50%; font-size: 17px; color: var(--ink-blue, #2a4161); }
}
/* 브랜드·스파 첫 화면 높이 3/4 (2026-11-24): 헤더 아래로 보이는 사진 500px → 375px, 휴대폰 56svh → 42svh */
main > section.hero--photo-only.hero--photo-only { height: calc(375px + var(--nav, 72px)); }
@media (max-width: 639px) { main > section.hero--photo-only.hero--photo-only { height: 42svh; min-height: 225px; } }
/* 상세 페이지 섹션 사이 여백 절반 (2026-11-24): 위 120 → 60, 아래 72 → 36 (휴대폰도 같은 비율) */
main > section.pd-sec.pd-sec { padding-top: 60px; padding-bottom: 36px; }
@media (max-width: 639px) { main > section.pd-sec.pd-sec { padding-top: 40px; padding-bottom: 24px; } }
.pd-sec { scroll-margin-top: calc(var(--nav, 72px) + 64px - 60px); }
/* 스파 이용 안내: 오른쪽 사진을 왼쪽 단계 카드 묶음의 맨 아래 경계선까지 늘린다 (PC). 사진 위쪽은 제목 시작선 그대로 */
@media (min-width: 1024px) {
  #how > .wrap.grid > figure.pl-photo { align-self: stretch; position: relative; }
  #how > .wrap.grid > figure.pl-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; max-width: none; }
}

/* ---- 아카데미: 바디 습식 정규 클래스 안내 표 · 수강 후기 (2026-11-25) ---- */
.ac-info { display: grid; margin: var(--s-6, 32px) 0; border-top: 1px solid var(--line, rgb(0 0 0 / .12)); }
.ac-info > div { display: grid; grid-template-columns: 7.5em 1fr; gap: var(--s-4, 16px); padding: 14px 0; border-bottom: 1px solid var(--line, rgb(0 0 0 / .12)); }
.ac-info dt { font-weight: 600; color: var(--ink-blue, #2a4161); }
.ac-info dd { margin: 0; line-height: 1.6; }
.ac-info s { color: var(--muted, #8a8f98); margin-right: 6px; }
.ac-info strong { font-size: 1.15em; color: var(--ink-blue, #2a4161); }
.ac-info__note { display: block; font-size: 14px; color: var(--muted, #8a8f98); }
.ac-reviews { display: grid; gap: var(--s-4, 16px); }
.ac-reviews blockquote { margin: 0; padding: var(--s-5, 24px); background: var(--p-surface, #f4f5f7); border-radius: var(--r-md, 8px); }
.ac-reviews blockquote p { line-height: 1.7; }
.ac-reviews cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; color: var(--muted, #8a8f98); }
@media (max-width: 639px) { .ac-info > div { grid-template-columns: 6em 1fr; } }

/* ---- 아카데미 강사진 카드 · 강사 상세 페이지 (2026-11-25) ---- */
.tc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5, 24px); margin-top: var(--s-7, 40px); }
.tc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tc-card { display: grid; gap: 6px; color: inherit; text-decoration: none; transition: transform .25s ease; }
.tc-card:hover { transform: translateY(-2px); }
.tc-card__media { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-md, 8px); background: #eef0f3; margin-bottom: 10px; }
.tc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tc-card:hover .tc-card__media img { transform: scale(1.03); }
.tc-card__name { font: 600 20px/1.3 var(--font-text, inherit); color: var(--ink-blue, #2a4161); }
.tc-card__name span { font-size: 15px; font-weight: 500; color: var(--muted, #8a8f98); }
.tc-card__role { font-size: 15px; color: var(--muted, #6b7280); }
.tc-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.tc-detail__photo { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-md, 8px); position: sticky; top: calc(var(--nav, 72px) + 24px); }
.tc-detail__photo img { width: 100%; height: 100%; object-fit: cover; }
.tc-detail__intro { font-size: 19px; line-height: 1.7; margin-bottom: var(--s-6, 32px); }
.tc-group { padding: var(--s-5, 24px) 0; border-top: 1px solid var(--line, rgb(0 0 0 / .12)); }
.tc-group h2 { font: 600 17px/1.4 var(--font-text, inherit); color: var(--ink-blue, #2a4161); margin-bottom: 12px; }
.tc-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tc-group li { position: relative; padding-left: 16px; line-height: 1.6; }
.tc-group li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-blue, #2a4161); }
@media (max-width: 1023px) { .tc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .tc-grid, .tc-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .tc-detail { grid-template-columns: 1fr; }
  .tc-detail__photo { position: static; max-width: 420px; }
  .tc-card__name { font-size: 17px; } .tc-card__role { font-size: 13px; }
}
main > section > .wrap.tc-detail.tc-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 639px) { main > section > .wrap.tc-detail.tc-detail { grid-template-columns: 1fr; } }
main > section > .wrap > .tc-grid { display: grid; }
/* 다른 강사 카드: 아카데미 강사진 카드와 같은 크기(4칸 기준)로 줄임 */
main > section > .wrap > .tc-grid.tc-grid--3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { main > section > .wrap > .tc-grid.tc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { main > section > .wrap > .tc-grid.tc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
main > section > .wrap > .tc-grid.tc-grid--3 { grid-template-columns: repeat(3, minmax(0, calc((100% - 3 * var(--s-5, 24px)) / 4))); justify-content: center; }
@media (max-width: 1023px) { main > section > .wrap > .tc-grid.tc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.badge--done { background: #eceef1; color: #6b7280; }
.ac-info a { color: var(--ink-blue, #2a4161); text-decoration: underline; text-underline-offset: 3px; }

/* ---- 아카데미 과정 카드 · 과정 상세 페이지 (2026-11-25) ---- */
main > section > .wrap > .cs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6, 32px) var(--s-5, 24px); margin-top: var(--s-7, 40px); }
.cs-card { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; transition: transform .25s ease; }
.cs-card:hover { transform: translateY(-2px); }
.cs-card__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-md, 8px); background: #eef0f3; margin-bottom: 8px; }
.cs-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cs-card:hover .cs-card__media img { transform: scale(1.03); }
.cs-card__meta { font-size: 14px; color: var(--muted, #6b7280); }
.cs-card__name { font: 600 21px/1.35 var(--font-text, inherit); color: var(--ink-blue, #2a4161); }
.cs-card__desc { font-size: 15px; line-height: 1.65; color: var(--ink, #222); }
.cs-card__foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line, rgb(0 0 0 / .12)); }
.cs-card__foot strong { font-size: 17px; color: var(--ink-blue, #2a4161); }
.cs-card__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.cs-card__more .m-arrow { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cal a { color: var(--ink-blue, #2a4161); text-decoration: underline; text-underline-offset: 3px; }
main > section > .wrap > .cs-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cs-split__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md, 8px); position: sticky; top: calc(var(--nav, 72px) + 80px); }
.cs-split__photo img { width: 100%; height: 100%; object-fit: cover; }
.cs-intro p { font-size: 18px; line-height: 1.8; margin-bottom: 16px; }
.cs-intro { margin-bottom: var(--s-5, 24px); }
.cs-split .tc-group h3 { font: 600 17px/1.4 var(--font-text, inherit); color: var(--ink-blue, #2a4161); margin-bottom: 12px; }
.cs-extra { margin-top: var(--s-6, 32px); padding: var(--s-5, 24px); border: 1px solid var(--ink-blue, #2a4161); border-radius: var(--r-md, 8px); }
.cs-extra h3 { font: 600 18px/1.4 var(--font-text, inherit); color: var(--ink-blue, #2a4161); margin-bottom: 12px; }
.cs-extra ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cs-extra strong { display: block; margin-bottom: 4px; }
.cs-extra p { line-height: 1.65; }
.cs-extra__note { margin-top: 12px; font-size: 14px; color: var(--muted, #6b7280); }
main > section > .wrap > .cs-info { max-width: 760px; margin: 0 auto; width: 100%; }
main > section > .wrap > .cs-teacher { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; max-width: 900px; margin: 0 auto; width: 100%; }
.cs-teacher__photo { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-md, 8px); }
.cs-teacher__photo img { width: 100%; height: 100%; object-fit: cover; }
.cs-teacher__name { font: 600 24px/1.3 var(--font-text, inherit); color: var(--ink-blue, #2a4161); }
.cs-teacher__name span { font-size: 16px; font-weight: 500; color: var(--muted, #8a8f98); }
.cs-teacher__role { color: var(--muted, #6b7280); margin: 6px 0 16px; }
.cs-teacher__intro { line-height: 1.75; margin-bottom: 16px; }
main > section > .wrap > .ac-reviews--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5, 24px); }
main > section > .wrap > .cs-faq { max-width: 860px; margin: 0 auto; width: 100%; border-top: 1px solid var(--line, rgb(0 0 0 / .12)); }
.cs-faq__item { border-bottom: 1px solid var(--line, rgb(0 0 0 / .12)); }
.cs-faq__item summary { cursor: pointer; padding: 20px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.cs-faq__item summary::after { content: "+"; font-weight: 400; font-size: 20px; color: var(--ink-blue, #2a4161); }
.cs-faq__item[open] summary::after { content: "−"; }
.cs-faq__item p { padding: 0 0 20px; line-height: 1.7; color: var(--ink, #333); }
@media (max-width: 1023px) {
  main > section > .wrap > .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main > section > .wrap > .ac-reviews--grid { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  main > section > .wrap > .cs-grid { grid-template-columns: 1fr; }
  main > section > .wrap > .cs-split { grid-template-columns: 1fr; }
  .cs-split__photo { position: static; aspect-ratio: 4 / 3; }
  main > section > .wrap > .cs-teacher { grid-template-columns: 120px 1fr; align-items: start; }
  .cs-intro p { font-size: 16px; }
}
main > section > .wrap > .cs-grid.cs-grid--more { grid-template-columns: repeat(auto-fit, minmax(0, calc((100% - 2 * var(--s-5, 24px)) / 3))); justify-content: center; }
@media (max-width: 639px) { main > section > .wrap > .cs-grid.cs-grid--more { grid-template-columns: 1fr; } }

/* 아카데미: 섹션을 한 화면 높이로 늘리지 않고 내용 높이만큼 (스파 목록·멤버십처럼) */
main:has(> #schedule):has(> #teachers) > section:not(.hero) { height: auto; min-height: 0; }
main:has(> #schedule):has(> #teachers) > section:not(.hero) > .wrap { height: auto; }
/* 제목과 카드 사이 간격을 다른 섹션(48px)과 맞춤 */
main > section > .wrap > .cs-grid, main > section > .wrap > .tc-grid { margin-top: 0; }
.tc-detail__name { font: 600 32px/1.25 var(--font-text, inherit); color: var(--ink-blue, #2a4161); }
.tc-detail__name span { font-size: 20px; font-weight: 500; color: var(--muted, #8a8f98); }
.tc-detail__role { margin: 8px 0 24px; color: var(--muted, #6b7280); font-size: 16px; }
@media (max-width: 639px) { .tc-detail__name { font-size: 26px; } }
:root main .tc-detail__body h2.tc-detail__name.tc-detail__name { font-weight: 700; font-size: 32px; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink-blue, #2a4161); }
@media (max-width: 639px) { main .tc-detail__body h2.tc-detail__name { font-size: 26px; } }

/* ===== VOD 강의 카드 (2026-11-25) ===== */
.vd-grid { row-gap: 40px; }
.vd-card { display: flex; flex-direction: column; gap: 16px; }
.vd-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eceef1; }
.vd-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.vd-card__media:hover img { transform: scale(1.03); }
.vd-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.vd-card__body h3 { font-size: 20px; font-weight: 600; line-height: 1.4; margin: 4px 0 0; }
.vd-card__body h3 a { color: inherit; text-decoration: none; }
.vd-card__body h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.vd-card__price { font-size: 18px; font-weight: 700; color: var(--ink-blue, #2a4161); margin: 0; }
.vd-card__facts { font-size: 14px; color: #6b7280; margin: 0; }
.vd-card__desc { font-size: 15px; line-height: 1.7; margin: 4px 0 0; }
.vd-card__desc a { color: inherit; text-underline-offset: 3px; }
main:has(> #list):has(> .hero--photo-only) > section:not(.hero),
main:has(> #list):has(> .hero--photo-only) > section:not(.hero) > .wrap { height: auto; min-height: 0; }
main > section > .wrap > .vd-grid { margin-top: 0; }

/* ===== 제품 (핫스톤 워머 키트, 2026-11-25) ===== */
.st-price { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0; }
.st-price strong { font-size: 28px; font-weight: 700; color: var(--ink-blue, #2a4161); }
.st-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.st-gallery__item { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: #eceef1; }
.st-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.st-gallery__item:hover img { transform: scale(1.03); }
@media (max-width: 900px) { .st-gallery { grid-template-columns: repeat(2, 1fr); } }
main:has(> #product):has(> .hero--photo-only) > section:not(.hero),
main:has(> #product):has(> .hero--photo-only) > section:not(.hero) > .wrap { height: auto; min-height: 0; }
main > section > .wrap > .st-gallery { margin-top: 0; }

/* 사진과 글이 나란히 있는 모든 섹션: 사이 여백을 넓게 (PC, 2026-11-25 공통 규칙) */
@media (min-width: 1024px) {
  main > section > .wrap.grid > figure.span-6 + div.span-6 { padding-left: 64px; }
  main > section > .wrap.grid > div.span-6:has(+ figure.span-6) { padding-right: 64px; }
}
/* 제품 히어로: 모바일에서는 워머가 가운데 오게 */
@media (max-width: 767px) { .hero img[src*="hero-warmer"] { object-position: 86% 50% !important; } }
/* 핫스톤 워머 키트: 글이 더 길어서, 스크롤하는 동안 사진이 따라 내려오게 (PC) */
@media (min-width: 1024px) {
  main > #product > .wrap.grid > figure.pl-photo { position: sticky; top: calc(var(--nav, 72px) + 32px); align-self: start; }
}

/* ===== 고객센터 공지사항 ===== */
.nt-list { border-top: 1px solid var(--ink, #1c2530); }
.nt-item { border-bottom: 1px solid var(--line, rgb(0 0 0 / .12)); }
.nt-item summary { display: grid; grid-template-columns: 6em 1fr auto; align-items: center; gap: 16px; padding: 22px 4px; cursor: pointer; list-style: none; }
.nt-item summary::-webkit-details-marker { display: none; }
.nt-item summary:hover .nt-title { text-decoration: underline; text-underline-offset: 4px; }
.nt-cat { font-size: 13px; font-weight: 600; color: var(--ink-blue, #2a4161); }
.nt-title { font-size: 17px; font-weight: 500; }
.nt-date { font-size: 14px; color: #6b7280; font-variant-numeric: tabular-nums; }
.nt-body { padding: 0 4px 24px calc(6em + 20px); }
.nt-body p { margin: 0; line-height: 1.8; color: #3b4350; }
.nt-body a { color: var(--ink-blue, #2a4161); text-underline-offset: 3px; }
@media (max-width: 767px) {
  .nt-item summary { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .nt-cat { grid-column: 1 / -1; }
  .nt-body { padding-left: 4px; }
}
main > section > .wrap > .nt-list { margin-top: 0; width: 100%; }
main:has(> #notice) > #notice, main:has(> #notice) > #notice > .wrap { height: auto; min-height: 0; }

/* ===== 고객센터: 자주 묻는 질문 / 공지사항 탭 (스파 페이지 탭과 같은 모양) ===== */
.cs-tabs { position: sticky; top: var(--nav, 72px); z-index: 5; background: #fff; margin: 8px 0 40px; }
.cs-tabs__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); }
.cs-tab { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 0 8px; font-size: 16px; font-weight: 600; color: var(--ink);
  text-decoration: none; text-align: center; border-left: 1px solid var(--line); border-top: 3px solid transparent; transition: color 200ms, border-color 200ms, background 200ms; }
.cs-tab:first-child { border-left: 0; }
.cs-tab:hover { color: var(--ink-blue, #2a4161); background: var(--p-surface); }
.cs-tab.is-cur { color: var(--ink-blue, #2a4161); border-top-color: var(--ink-blue, #2a4161); }
.cs-panel + .cs-panel { margin-top: 72px; }
html.cs-tabs-on .cs-panel { display: none; margin-top: 0; }
html.cs-tabs-on .cs-panel.is-cur { display: block; }
main > section > .wrap > .cs-tabs { width: 100%; }
main:has(> #help) > section:not(.hero), main:has(> #help) > section:not(.hero) > .wrap { height: auto; min-height: 0; }

/* =====================================================================
   모바일 최적화 (2026-11-25) — 휴대폰 화면(767px 이하)에서만 적용, PC는 그대로
   ===================================================================== */
@media (max-width: 767px) {
  /* 섹션 위아래 여백: 96/112 → 56/56, 화면 높이로 늘리던 최소 높이 해제 */
  :root main > section:not(.hero):not(.pd-hero):not(.dl-hero):not(.dl-banners):not(.pd-sec) {
    height: auto !important; min-height: 0 !important;
    padding-top: 56px !important; padding-bottom: 56px !important;
  }
  :root main > section:not(.hero):not(.pd-hero):not(.dl-hero):not(.dl-banners) > .wrap { height: auto !important; min-height: 0 !important; }
  /* 상세 페이지 섹션도 같은 리듬으로 */
  :root main > section.pd-sec.pd-sec { padding-top: 48px; padding-bottom: 8px; }
  /* 제목 아래 간격 줄이기 */
  :root main .section-head { margin-bottom: 28px; }
  /* 사진과 글이 위아래로 쌓일 때 사이 간격 */
  :root main > section > .wrap.grid { row-gap: 28px; }

  /* 위치·영업시간처럼 이름|값 두 칸인 목록: 좁은 화면에서는 위아래로 */
  .rows > li { grid-template-columns: minmax(0, 1fr); }
  .rows > li .rows__value { grid-column: 1; grid-row: auto; text-align: left; white-space: normal; max-width: none; text-wrap: pretty; }

  /* 수강 정보 표(dt|dd): 이름 칸 좁게 */
  .ac-info > div { grid-template-columns: 5.5em 1fr; gap: 12px; }

  /* 푸터 채널 링크: 라벨 아래로 링크를 한 줄씩 정렬 */
  .footer .footer__col--row { flex-direction: column; gap: 10px; }
  .footer .footer__col--row h3 { flex: none; }
  .footer .footer__col--row ul { gap: 0 20px; }
  .footer .footer__col--row li a { min-height: 36px; display: inline-flex; align-items: center; }

  /* 월별 강의 일정 표: 날짜·상태 한 줄, 과정은 아래 줄 */
  .cal thead { display: none; }
  .cal, .cal tbody { display: block; }
  .cal tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .cal td { padding: 0; border: 0; }
  .cal td:nth-child(1) { grid-column: 1; grid-row: 1; font-weight: 600; }
  .cal td:nth-child(4) { grid-column: 2; grid-row: 1; }
  .cal td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 15px; }
  .cal caption { display: block; }

  /* 고객센터 사업별 필터: 한 줄에 다 들어가게 */
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; min-height: 40px; padding: 0 14px; font-size: 14px; }

  /* 하단 고정 버튼: 긴 글자도 한 줄로 */
  .actionbar .btn { padding: 0 8px; font-size: 14px; white-space: nowrap; letter-spacing: -0.01em; }

  /* 가격 표: 금액이 줄바꿈되지 않게 */
  li > span + strong { white-space: nowrap; }

  /* 스파 프로그램 분류 탭·상세 페이지 메뉴: 가로 스크롤 대신 한 줄에 3개씩 */
  .spa-tabs__row, .pd-nav .menu-nav__row {
    display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
    overflow: visible; background: var(--line); border: 1px solid var(--line);
  }
  .spa-tabs__row .spa-tab, .pd-nav .menu-nav__row a {
    flex: none; min-height: 46px; padding: 6px 4px; border: 0; border-top: 3px solid transparent;
    background: #fff; font-size: 13.5px; line-height: 1.25; text-align: center; white-space: normal; word-break: keep-all;
    display: flex; align-items: center; justify-content: center;
  }
  .spa-tabs__row .spa-tab.is-cur, .pd-nav .menu-nav__row a.is-cur { border-top-color: transparent; border-bottom: 0; background: var(--ink-blue, #2a4161); color: #fff; font-weight: 700; }
  .spa-tabs { margin-bottom: 24px; }
  /* 마지막 줄에 하나만 남으면 그 줄을 다 채운다 (빈 회색 칸 방지) */
  .spa-tabs__row > :last-child:nth-child(3n+1), .pd-nav .menu-nav__row > :last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .spa-tabs__row > :last-child:nth-child(3n+2), .pd-nav .menu-nav__row > :last-child:nth-child(3n+2) { grid-column: span 2; }
}

/* 휴대폰: 서브 페이지 히어로 — 문구는 사진 위에 두고, 사진 높이는 문구 높이에 맞춘다 (헤더 아래 32px ~ 문구 ~ 아래 28px) */
@media (max-width: 639px) {
  main > section.hero--photo-only.hero--photo-only { height: auto; min-height: calc(var(--nav) + 180px); }
  main > section.hero--photo-only.hero--photo-only:not(.has-over) { height: calc(var(--nav) + 180px); }
  main > section.hero--photo-only > .hero-over { height: auto; padding-top: calc(var(--nav) + 32px); padding-bottom: 28px; }
}

/* 휴대폰 헤더: 화면 위 끝에 붙지 않게 위쪽 여백 12px 추가 (헤더 높이 56 → 68, 고정 탭 위치도 --nav 로 함께 내려감) */
@media (max-width: 639px) {
  :root { --nav: 68px; }
  .nav { box-sizing: border-box; padding-top: 12px; }
}

/* =====================================================================
   휴대폰·태블릿 메뉴: 오른쪽에서 왼쪽으로 밀려 나오는 남색 서랍 (2026-11-25)
   ===================================================================== */
.nav__extra { display: none; }
@media (max-width: 1023px) {
  /* 서랍: 닫혀 있을 때는 화면 오른쪽 밖에 대기 */
  .nav .nav__links {
    display: flex; flex-direction: column; justify-content: center; gap: 0;
    position: fixed; top: 0; right: 0; bottom: 0; left: auto; z-index: 2;
    width: min(78vw, 360px); padding: calc(var(--nav) + 24px) 36px 32px;
    background: var(--ink-blue, #2a4161); color: #fff; overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform 380ms cubic-bezier(.2,.75,.3,1), visibility 0s 380ms;
  }
  .nav.is-open .nav__links {
    transform: translateX(0); visibility: visible; top: 0; left: auto; right: 0; padding: calc(var(--nav) + 24px) 36px 32px;
    background: var(--ink-blue, #2a4161); color: #fff;
    transition: transform 380ms cubic-bezier(.2,.75,.3,1), visibility 0s;
  }
  /* 뒤 화면 어둡게 (누르면 닫힘: nav-fallback.js) */
  .nav::before {
    content: ""; position: fixed; inset: 0; z-index: 1; background: rgb(10 18 30 / .45);
    opacity: 0; pointer-events: none; transition: opacity 380ms ease;
  }
  .nav.is-open::before { opacity: 1; pointer-events: auto; }
  /* 메뉴 단어: 크고 굵은 흰 글자, 줄 구분선 없음 */
  .nav .nav__links .nav__item { display: block; height: auto; border: 0; }
  .nav.nav .nav__links .nav__link, .nav.is-open .nav__links .nav__link { display: inline-flex; align-items: center; height: auto; padding: 10px 0; font-size: 19px; font-weight: 700; color: #fff; background: none; letter-spacing: -0.01em; }
  .nav .nav__links .nav__link::before { display: none; }
  .nav .nav__links .nav__link[aria-current="page"]::after { left: 0; right: auto; width: 24px; bottom: 6px; background: #fff; }
  .nav .nav__links .nav__link:hover { color: rgb(255 255 255 / .75); }
  /* 서랍 아래쪽: 구분선 + 작은 링크 */
  .nav .nav__extra { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: auto; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .3); }
  .nav .nav__links > .nav__item:first-child { margin-top: auto; }
  .nav .nav__extra a { font-size: 14px; color: rgb(255 255 255 / .85); text-decoration: none; }
  .nav .nav__extra a:hover { color: #fff; }
  /* 메뉴 버튼은 서랍 위에 (열리면 흰색 X) */
  .nav .nav__toggle { position: relative; z-index: 3; transition: color 200ms, border-color 200ms; }
  .nav.nav.is-open .nav__toggle { color: #fff; border-color: rgb(255 255 255 / .5); background: transparent; }
  /* 열렸을 때 아래쪽 고정 버튼은 숨김 (서랍 안 링크로 대신) */
  .nav.is-open .nav__actions { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav .nav__links, .nav::before { transition: none !important; }
}
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  :root .nav.nav .nav__links { transition: transform 380ms cubic-bezier(.2,.75,.3,1), visibility 0s 380ms; }
  :root .nav.nav.is-open .nav__links { transition: transform 380ms cubic-bezier(.2,.75,.3,1), visibility 0s; }
}
/* HOME 메뉴: 휴대폰·태블릿 서랍에서만 */
@media (min-width: 1024px) { .nav__item--home { display: none !important; } }

/* ===== 아카데미 월별 강의 일정: 왼쪽 표, 오른쪽 캘린더 (2026-11-26) ===== */
.sch-list .cal th:nth-child(3), .sch-list .cal td:nth-child(3) { display: none; }   /* 장소는 아래 한 줄로 */
.sch-list .cal + .cal { margin-top: var(--s-6, 32px); }
.sch-place { margin-top: 20px; font-size: 14px; color: var(--muted, #6b7280); }
.sch-list .sch-place + p { margin-top: 20px; }

.acal { border: 1px solid var(--line); background: #fff; padding: 28px 28px 24px; }
.acal.is-js .acal__month { display: none; }
.acal.is-js .acal__month.is-cur { display: block; }
.acal:not(.is-js) .acal__month + .acal__month { margin-top: 40px; }
.acal:not(.is-js) .acal__nav { visibility: hidden; }
.acal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.acal__title { margin: 0; font: var(--display-weight, 300) 24px/1.2 var(--font-display, inherit); color: var(--ink-blue, #2a4161); }
.acal__nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong, #c9ced6); background: #fff; color: var(--ink); font-size: 16px; cursor: pointer; transition: background 200ms, color 200ms, border-color 200ms; }
.acal__nav:hover:not(:disabled) { background: var(--ink-blue, #2a4161); color: #fff; border-color: var(--ink-blue, #2a4161); }
.acal__nav:disabled { opacity: .3; cursor: default; }
.acal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.acal__wd { padding: 10px 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted, #6b7280); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--p-surface, #f5f7fa); }
.acal__day { min-height: 86px; padding: 8px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.acal__day--empty { background: #fafbfc; }
.acal__num { font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.is-sun > .acal__num, .acal__wd.is-sun { color: #c0392b; }
.is-sat > .acal__num, .acal__wd.is-sat { color: #2a4f8f; }
.acal__day.is-past > .acal__num { opacity: .4; }
.acal__day.is-today > .acal__num { background: var(--ink-blue, #2a4161); color: #fff; opacity: 1; }
.acal__ev { display: block; padding: 3px 6px; border-radius: 4px; font-size: 12px; font-weight: 600; line-height: 1.3; text-decoration: none; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acal__ev:hover { filter: brightness(1.12); }
.acal__day.is-past .acal__ev { opacity: .45; }
.ev--palp { background: #b5703c; }
.ev--tue { background: var(--ink-blue, #2a4161); }
.ev--wed { background: #5b7fa8; }
.acal__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted, #6b7280); }
.acal__legend li { display: inline-flex; align-items: center; gap: 8px; }
.acal__dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
@media (max-width: 767px) {
  .acal { padding: 18px 14px 16px; margin-top: 8px; }
  .acal__day { min-height: 58px; padding: 4px; }
  .acal__num { font-size: 12px; width: 22px; height: 22px; }
  .acal__day { padding: 4px 2px; }
  .acal__ev { padding: 2px 0; font-size: 9.5px; letter-spacing: -0.04em; text-align: center; text-overflow: clip; }
}
@media (min-width: 1024px) { main > #schedule > .wrap.grid > .sch-cal { padding-left: 48px; } }

/* =====================================================================
   휴대폰 브랜드 페이지: 사진을 제목 바로 아래로, 3:2 가로형·화면 양끝까지 (2026-11-26)
   ===================================================================== */
@media (max-width: 639px) {
  :root main > :is(#story, #space, #therapists, #visit) > .wrap.grid { display: flex !important; flex-direction: column; gap: 0; }
  :root main > :is(#story, #space, #therapists, #visit) > .wrap.grid > div.span-6 { display: contents; }
  :root main > :is(#story, #space, #therapists, #visit) .section-head { order: 1; }
  :root main > :is(#story, #space, #therapists) > .wrap.grid > figure.pl-photo { order: 2; }
  :root main > :is(#story, #space, #therapists) > .wrap.grid > div.span-6 > :not(.section-head) { order: 3; }
  /* 사진: 3:2, 화면 양끝까지 꽉 */
  :root main > :is(#story, #space, #therapists) > .wrap.grid > figure.pl-photo {
    width: auto; margin: 0 calc(-1 * var(--gut, 24px)) 28px; padding: 0; overflow: hidden;
  }
  :root main > :is(#story, #space, #therapists) > .wrap.grid > figure.pl-photo > img {
    width: 100%; height: auto; max-width: none; max-height: none; aspect-ratio: 3 / 2; object-fit: cover; margin: 0;
  }
  /* 오시는 길: 정보 → 약도(4:3) → 길찾기 링크 */
  :root main > #visit .rows { order: 2; }
  :root main > #visit > .wrap.grid > figure.visit-map { order: 3; margin: 24px 0 0; flex: none !important; }
  :root main > #visit > .wrap.grid > figure.visit-map > img { width: 100%; height: auto !important; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; flex: none !important; }
  :root main > #visit .section-foot { order: 4; margin-top: 20px; }
}
@media (max-width: 639px) { :root main > #therapists > .wrap.grid > figure.pl-photo > img { object-position: 50% 18%; } }

/* 휴대폰 Our Story · Our Space · Our Therapists: 사진 위에 제목과 첫 문단(t-lead)을 흰 글씨로 얹고, 나머지 본문은 사진 아래 */
@media (max-width: 639px) {
  :root main > :is(#story, #space, #therapists) { padding-top: 40px !important; }
  :root main > :is(#story, #space, #therapists) > .wrap.grid { display: grid !important; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 0; }
  :root main > :is(#story, #space, #therapists) > .wrap.grid > figure.pl-photo {
    grid-row: 1 / 3; grid-column: 1; position: relative; min-height: 0; margin: 0 calc(-1 * var(--gut, 24px)) 28px; overflow: hidden;
  }
  :root main > :is(#story, #space, #therapists) > .wrap.grid > figure.pl-photo > img {
    position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none; aspect-ratio: auto; object-fit: cover; margin: 0;
  }
  :root main > #story > .wrap.grid > figure.pl-photo > img { object-position: 50% 55%; }
  :root main > #space > .wrap.grid > figure.pl-photo > img { object-position: 50% 45%; }
  :root main > #therapists > .wrap.grid > figure.pl-photo > img { object-position: 50% 20%; }
  :root main > :is(#story, #space, #therapists) > .wrap.grid > figure.pl-photo::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgb(12 16 22 / .05) 0%, rgb(12 16 22 / .35) 35%, rgb(12 16 22 / .72) 100%);
  }
  :root main > :is(#story, #space, #therapists) > .wrap.grid > div.span-6 > .section-head {
    grid-row: 1; grid-column: 1; position: relative; z-index: 1; margin: 0; padding: 140px 0 16px;
  }
  :root main > :is(#story, #space, #therapists) .section-head :is(.eyebrow, h2) { color: #fff !important; text-shadow: 0 1px 12px rgb(0 0 0 / .25); }
  :root main > :is(#story, #space, #therapists) > .wrap.grid > div.span-6 > .t-lead {
    grid-row: 2; grid-column: 1; position: relative; z-index: 1; align-self: start; margin: 0 0 28px; padding: 0 0 32px;
    color: #fff; text-shadow: 0 1px 12px rgb(0 0 0 / .25);
  }
  :root main > :is(#story, #space, #therapists) > .wrap.grid > div.span-6 > .story__body { grid-row: 3; grid-column: 1; }
}

/* 휴대폰 브랜드: 히어로와 Our Story 사진 사이의 "Our Brand Story" (PC에서는 숨김) */
.story-kicker { display: none; }
@media (max-width: 639px) {
  :root main > #story > .wrap.grid { grid-template-rows: auto auto auto auto; }
  :root main > #story > .wrap.grid > .story-kicker {
    display: block; grid-row: 1; grid-column: 1; margin: 0 0 24px;
    font: 200 30px/1.2 "Pretendard Variable", Pretendard, sans-serif; letter-spacing: -0.02em; color: var(--ink-blue, #2a4161);
  }
  :root main > #story > .wrap.grid > figure.pl-photo { grid-row: 2 / 4; }
  :root main > #story > .wrap.grid > div.span-6 > .section-head { grid-row: 2; }
  :root main > #story > .wrap.grid > div.span-6 > .t-lead { grid-row: 3; }
  :root main > #story > .wrap.grid > div.span-6 > .story__body { grid-row: 4; }
}
/* 휴대폰 푸터 채널 링크: 2행 2열 */
@media (max-width: 767px) {
  :root .footer .footer__col--row ul { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 32px; }
}
/* 간단한 푸터(홈 외 페이지): 저작권 줄 옆 "사업자 정보" 링크 → 홈 푸터 */
.footer__legal .footer__bizlink { margin-left: 16px; color: inherit; opacity: .8; text-decoration: underline; text-underline-offset: 3px; }
.footer__legal .footer__bizlink:hover { opacity: 1; }

/* 휴대폰 스파 분류 배너: 단색 배경 없이 사진 위에 흰 글씨 (2026-11-26) */
@media (max-width: 639px) {
  :root main .cat-banner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; min-height: 300px; background: #1c2530; }
  :root main .cat-banner > .cat-banner__photo { grid-area: 1 / 1; aspect-ratio: auto; order: 0; min-height: 300px; }
  :root main .cat-banner > .cat-banner__photo::before {
    background: linear-gradient(180deg, rgb(12 16 22 / .05) 0%, rgb(12 16 22 / .3) 40%, rgb(12 16 22 / .72) 100%);
  }
  :root main .cat-banner > .cat-banner__text { grid-area: 1 / 1; position: relative; z-index: 2; justify-content: flex-end; padding: 120px 24px 26px; }
  :root main .cat-banner .cat-banner__en { color: #fff; opacity: .9; }
  :root main .cat-banner .cat-banner__title { color: #fff; }
  :root main .cat-banner .cat-banner__intro { color: rgb(255 255 255 / .92); }
  :root main .cat-banner :is(.cat-banner__en, .cat-banner__title, .cat-banner__intro) { text-shadow: 0 1px 12px rgb(0 0 0 / .25); }
}
/* Dear Mother 카드: 제목 옆 산전·산후는 회색 작은 글씨 */
:root main .pc .pc__name .pc__sub { color: #8a8f98; font-size: 13px; font-weight: 500; margin-left: 6px; }
/* 서비스 카드: 시간과 가격을 한 줄에 (시간 왼쪽, 가격 오른쪽) */
:root main .pc { grid-template-columns: minmax(0, 1fr); }
.pc__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
:root main .pc .pc__meta .pc__time { margin-top: 0; }
:root main .pc .pc__meta .pc__price { white-space: nowrap; }
@media (max-width: 639px) { :root main .pc { padding: 20px 20px; } .pc__meta { margin-top: 12px; } :root main .pc .pc__meta .pc__price { font-size: 18px; } }
/* 휴대폰 스파 페이지: 스파 이용 안내(How It Works) 아래 사진 숨김 */
@media (max-width: 639px) { :root main:has(> #programs) > #how > .wrap.grid > figure.pl-photo { display: none; } }

/* 휴대폰 서비스 상세: 일반가·골드·VIP 가격 카드 3개를 한 줄에 (작게) */
@media (max-width: 639px) {
  :root main .pd-prices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  :root main .pd-price { padding: 16px 6px 16px; border-radius: 10px; grid-template-rows: auto auto auto; }
  :root main .pd-price__tag { padding: 4px 8px; font-size: 11px; line-height: 1.3; text-align: center; word-break: keep-all; }
  :root main .pd-price__was { margin-top: 12px; font-size: 12px; }
  :root main .pd-price__now { margin-top: 2px; font-size: 17px; letter-spacing: -0.03em; }
  :root main .pd-price ul { display: none; }   /* 가격정보·관리시간 문구는 좁은 화면에서 생략 (할인은 취소선 가격으로 보임) */
  :root main .pd-price__note { margin-top: 12px; font-size: 12px; text-align: left; }
}

/* 휴대폰 서비스 상세: 고객 후기를 옆으로 넘기는 카드로 (다음 카드가 살짝 보임) */
@media (max-width: 639px) {
  :root main .pd-reviews {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * var(--gut, 24px)); padding: 4px var(--gut, 24px) 12px; scroll-padding-inline: var(--gut, 24px);
    scrollbar-width: none;
  }
  :root main .pd-reviews::-webkit-scrollbar { display: none; }
  :root main .pd-reviews > .pd-review { flex: 0 0 82%; scroll-snap-align: start; padding: 22px 20px; background: #fff; }
}
/* 휴대폰 상세 페이지 맨 아래: "스파 프로그램 전체 보기"와 푸터 사이를 위쪽 카드와의 간격(28px)과 같게 */
@media (max-width: 639px) {
  :root main > section.pd-sec:last-child, :root main > section.pd-sec:last-child > .wrap { height: auto !important; min-height: 0 !important; }
  :root main > section.pd-sec:last-child { padding-bottom: 28px !important; }
  :root main > section.pd-sec:last-child .pd-back { margin-bottom: 0; }
}

/* 휴대폰 서비스 상세: 프로그램 구성 카드 작게 (한 줄에 2개 유지) */
@media (max-width: 639px) {
  :root main .pd-steps { gap: 14px 28px; }
  :root main .pd-step { flex: 0 0 calc((100% - 28px) / 2); min-width: 0; min-height: 66px; padding: 24px 8px 10px; gap: 4px; border-width: 2px; border-radius: 10px; }
  :root main .pd-step__no { top: 6px; left: 8px; font-size: 11px; }
  :root main .pd-step__no b { width: 18px; height: 18px; font-size: 10px; margin-right: 3px; }
  :root main .pd-step strong { font-size: 13px; line-height: 1.35; text-align: center; word-break: keep-all; }
  :root main .pd-step:not(:last-child)::after { right: -21px; font-size: 15px; }
  :root main .pd-step:nth-child(2n+1):not(:first-child)::before { left: -21px; font-size: 15px; }
}

/* 서비스 상세: 프로그램 안내 사진을 휴대폰에서는 첫 화면(히어로) 배경으로, 안내 섹션에서는 숨김. PC는 그대로 */
.pd-hero__bg { display: none; }
@media (max-width: 639px) {
  main > section.pd-hero--spa { position: relative; isolation: isolate; }
  main > section.pd-hero--spa > .pd-hero__bg { display: block; position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; }
  main > section.pd-hero--spa::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgb(12 18 30 / .55) 0%, rgb(12 18 30 / .45) 45%, rgb(12 18 30 / .78) 100%);
  }
  main > section.pd-hero--spa :is(.pd-hero__cat a, .pd-switch h1, .pd-hero__lead, .pd-hero__sub) { text-shadow: 0 1px 12px rgb(0 0 0 / .3); }
  main:has(> .pd-hero--spa) .pd-info__photo { display: none; }
}
/* 휴대폰 상세 페이지 메뉴: 화면 좌우 끝까지, 칸 크기 모두 같게 */
@media (max-width: 639px) {
  :root main .pd-nav .menu-nav__row {
    margin-inline: calc(-1 * var(--gut, 24px)); border-left: 0; border-right: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 46px;
  }
  :root main .pd-nav .menu-nav__row > a { grid-column: auto !important; min-height: 0; height: 100%; }
}
/* 가격 안내 문장과 "멤버십 안내 보기" 사이: 스페이스 3칸만큼 (PC·휴대폰) */
:root main .pd-price__note .link { margin-left: .85em; }
/* 휴대폰 스파 분류 배너: 모든 분류 같은 높이(360px), 글 묶음은 사진 세로 가운데 */
@media (max-width: 639px) {
  :root main .cat-banner { height: 360px; min-height: 0; }
  :root main .cat-banner > .cat-banner__photo { min-height: 0; height: 100%; }
  :root main .cat-banner > .cat-banner__text { justify-content: center; padding: 24px; height: 100%; box-sizing: border-box; }
  :root main .cat-banner > .cat-banner__photo::before { background: rgb(12 16 22 / .5); }
}
/* 휴대폰 스파 분류 탭: 화면 좌우 끝까지, 칸 크기 모두 같게 (Membership도 한 칸) */
@media (max-width: 639px) {
  :root main .spa-tabs { margin-inline: calc(-1 * var(--gut, 24px)); }
  :root main .spa-tabs__row {
    grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 46px; gap: 0;
    background: #fff; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  }
  :root main .spa-tabs__row > .spa-tab { grid-column: auto !important; height: 100%; min-height: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  :root main .spa-tabs__row > .spa-tab:nth-child(3n) { border-right: 0; }
  :root main .spa-tabs__row > .spa-tab:nth-last-child(-n+1):nth-child(3n+1) { border-bottom: 0; }
}
@media (max-width: 639px) {
  /* Membership 탭만 마지막 줄 3칸을 다 차지 */
  :root main .spa-tabs__row > .spa-tab:last-child { grid-column: 1 / -1 !important; border-right: 0; border-bottom: 0; }
}
/* 휴대폰: 위에 붙어 따라오는 스파 분류 탭에서는 Membership 빼고 6개만 (빠진 줄 높이만큼 아래 여백으로 메워 본문이 움직이지 않게) */
@media (max-width: 639px) {
  :root main .spa-tabs.is-stuck .spa-tabs__row > .spa-tab:last-child { display: none; }
  :root main .spa-tabs.is-stuck .spa-tabs__row > .spa-tab:nth-child(n+4):nth-child(-n+6) { border-bottom: 0; }
  :root main .spa-tabs.is-stuck { margin-bottom: calc(24px + 46px); }
}
/* 휴대폰 아카데미 과정 카드: 테두리 있는 카드로 나눠 두 과정이 구분되게 */
@media (max-width: 639px) {
  :root main .cs-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; padding-bottom: 16px; gap: 6px; box-shadow: 0 6px 18px rgb(22 42 69 / .06); }
  :root main .cs-card > .cs-card__media { border-radius: 0; margin-bottom: 10px; }
  :root main .cs-card > :not(.cs-card__media) { margin-inline: 18px; }
  :root main .cs-card .cs-card__foot { margin-top: 8px; }
  main > section > .wrap > .cs-grid { gap: 20px; }
}

/* 아카데미 모바일: 수강신청 절차·후기·FAQ 하단 사진 숨김 */
@media (max-width: 639px) {
  :root main:has(> #apply) :is(#apply, #reviews, #faq) .pl-photo { display: none !important; }
}

/* 모바일: More(함께 보면 좋은 곳) 카드 경계 */
@media (max-width: 639px) {
  :root main #related .tile { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; padding-bottom: 16px; box-shadow: 0 6px 18px rgb(22 42 69 / .06); }
  :root main #related .tile > .tile__media { border-radius: 0; margin-bottom: 10px; }
  :root main #related .tile > :not(.tile__media) { margin-inline: 18px; }
  :root main #related .wrap > .grid { gap: 20px; }
}

/* VOD 모바일: 강의 카드 경계 + 후기·진행방식·FAQ 하단 사진 숨김 */
@media (max-width: 639px) {
  :root main .vd-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; padding-bottom: 18px; gap: 12px; box-shadow: 0 6px 18px rgb(22 42 69 / .06); }
  :root main .vd-card > .vd-card__body { padding-inline: 18px; }
  main > section > .wrap > .vd-grid { gap: 20px; }
  :root main:has(> #list .vd-grid) :is(#reviews, #how, #faq) .pl-photo { display: none !important; }
}

/* 제품 모바일: 제조 행 숨김 */
@media (max-width: 639px) {
  :root main .pr-spec--maker { display: none !important; }
}

/* 제품 모바일: 후기·사용 순서·FAQ 하단 사진 숨김 */
@media (max-width: 639px) {
  :root main:has(> #product) :is(#reviews, #how, #faq) .pl-photo { display: none !important; }
}

/* 고객센터 모바일: 맨 아래 문의 섹션 사진 숨김 */
@media (max-width: 639px) {
  :root main:has(> #help) #ask .pl-photo { display: none !important; }
}

/* 달력 칸 과정 이름: 범례 이름 그대로 (관리자에서 고치면 같이 바뀜), 잘리지 않게 줄바꿈 */
:root main .acal__ev { white-space: normal; word-break: keep-all; overflow-wrap: anywhere; text-overflow: clip; }
:root main .acal__ev + .acal__ev { margin-top: 3px; }
