@charset "utf-8";
/* =========================================================
   DIVUM CLINIC — style.css
   1. Tokens (Light / Dark)   2. Reset & Base   3. Common UI
   4. Header / Sidebar / Quick / CTA   5. Sections
   6. Footer   7. Layer popup   8. Consult modal   9. Toast
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #f1f0f4;
  --bg-alt: #dfdedb;
  --bg-soft: #f6f4f2;

  /* 섹션 배경 : 색 있는 섹션 ↔ 흰 섹션 교차 (SIGNATURE 기준) */
  --sec-plain: #ffffff;
  --sec-hero: #efeaee;       /* 은은한 라벤더 그레이 */
  --sec-signature: #dfdedb;  /* 기존 SIGNATURE 색 */
  --sec-treatments: #ece5df; /* 은은한 웜 베이지 */
  --sec-blog: #e7e4ec;       /* 은은한 쿨 그레이 */
  --sec-map: #ebe8e4;        /* 은은한 웜 그레이 */
  --surface: #ffffff;
  --surface-2: #f3f0ed;
  --line: #e4dfda;
  --line-strong: #cfc7c1;

  --text: #2b2727;
  --text-2: #5f5856;
  --text-3: #958c88;
  --title-dark: #4a4646;

  --brand: #8e7f77;          /* 헤더·주요 버튼 */
  --brand-strong: #776860;
  --brand-ink: #8a7a72;      /* 타이틀 텍스트 */
  --brand-soft: #bdb1a7;     /* 고민 카드 패널 */
  --brand-tint: #ece6e1;

  --header-bg: #8e7f77;
  --header-ink: #ffffff;
  --nav-top: #a49ca0;
  --nav-top-active: #6b6262;

  --naver: #19ce1f;
  --naver-soft: #9ce7b8;
  --kakao: #fec100;
  --kakao-ink: #1f1a00;

  --ph-a: #e9e4e0;
  --ph-b: #dcd4ce;
  --ph-ink: #a69b94;

  --dim: rgba(128, 120, 124, .72);
  --shadow-sm: 0 5px 18px rgba(60, 45, 38, .06);
  --shadow: 0 18px 52px rgba(60, 45, 38, .10);
  --shadow-lg: 0 31px 78px rgba(40, 30, 26, .18);

  --quick-bg: #8b8384;
  --quick-ink: #8b8384;

  --radius-sm: 10.5px;
  --radius: 18px;
  --radius-lg: 26px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --header-h: 83px;
  --container: 1534px;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-en: "Poppins", var(--font);
  --font-logo: "Cormorant Garamond", "Times New Roman", serif;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #171517;
  --bg-alt: #1e1b1d;
  --bg-soft: #211e20;

  --sec-plain: #161416;
  --sec-hero: #1f1b1f;
  --sec-signature: #232021;
  --sec-treatments: #241f1c;
  --sec-blog: #1e1c23;
  --sec-map: #211e1d;
  --surface: #262224;
  --surface-2: #2e292b;
  --line: #3a3436;
  --line-strong: #4b4447;

  --text: #f0eae6;
  --text-2: #c4bab4;
  --text-3: #8f8681;
  --title-dark: #e6ded9;

  --brand: #a08f86;
  --brand-strong: #b8a69c;
  --brand-ink: #cdbbb0;
  --brand-soft: #4a3f3a;
  --brand-tint: #332c2b;

  --header-bg: #2a2426;
  --header-ink: #f3ece8;
  --nav-top: #8f8681;
  --nav-top-active: #f0eae6;

  --naver-soft: #2f6b45;

  --ph-a: #2b2628;
  --ph-b: #352f31;
  --ph-ink: #7e746f;

  --dim: rgba(8, 6, 8, .76);
  --shadow-sm: 0 5px 18px rgba(0, 0, 0, .25);
  --shadow: 0 18px 52px rgba(0, 0, 0, .35);
  --shadow-lg: 0 31px 78px rgba(0, 0, 0, .5);

  --quick-bg: #4a4245;
  --quick-ink: #4a4245;

  color-scheme: dark;
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
h1, h2, h3, h4, p, dl, dd, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a, button, label { -webkit-tap-highlight-color: transparent; }   /* iOS 터치 시 회색 박스 제거 */
input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }
img { max-width: 100%; display: block; }
mark { background: none; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 5px; }

html.is-locked, html.is-locked body { overflow: hidden; }

.skip-link {
  position: fixed; left: 15.5px; top: -60px; z-index: 999;
  padding: 13px 21px; border-radius: 10.5px;
  background: var(--brand); color: #fff; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 15.5px; }

/* ---------- 3. Common UI ---------- */
/* ---------------------------------------------------------
   이미지 영역
   - 자리 표시: <div class="ph media"> (이미지명 + 권장 크기·형식 표기)
   - 교체 방법: 같은 위치에 <img class="media" src="..." alt="..."> 로 바꾸면 됩니다.
   - 모든 이미지 틀은 비율이 고정되어 있고 object-fit 으로 채워져 찌그러지지 않습니다.
   --------------------------------------------------------- */
.media { display: block; width: 100%; height: 100%; }
img.media, .media img { object-fit: cover; object-position: center; }
picture.media img { display: block; width: 100%; height: 100%; }
.ph {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 10px;
  background: linear-gradient(160deg, var(--ph-a), var(--ph-b));
  color: var(--ph-ink);
  text-align: center;
  overflow: hidden;
}
/* .ph::before {
  content: "";
  width: 34px; height: 34px; margin-bottom: 6px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='15' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='m3.5 17.5 5-4.5 4 3.5 3-2.5 5 4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='15' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='m3.5 17.5 5-4.5 4 3.5 3-2.5 5 4'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .75;
} */
.ph__name { font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
.ph__spec { font-size: 12px; font-weight: 500; letter-spacing: 0; opacity: .9; }
.ph__spec--m { display: none; }   /* 모바일 전용 권장 크기 (모바일에서만 표시) */
.ph--sm { padding: 0; }
.ph--sm::before { width: 22px; height: 22px; margin: 0; }
/* 넣어야 할 파일 이름 표시 (이 이름으로 images 폴더에 넣으면 자동으로 이미지가 표시됨) */
.ph__file {
  margin-top: 6px; padding: 3px 8px; border-radius: 4px;
  background: rgba(255, 255, 255, .6); color: var(--text-2);
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; font-weight: 600; letter-spacing: 0;
  word-break: break-all;
}
[data-theme="dark"] .ph__file { background: rgba(0, 0, 0, .3); color: var(--text-2); }
.ph--sm .ph__name, .ph--sm .ph__spec, .ph--sm .ph__file { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 57px; padding: 0 28.5px; border-radius: 13px;
  font-weight: 600; font-size: 18px;
  transition: background-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--sm { height: 47px; padding: 0 21px; font-size: 17px; border-radius: 10.5px; }
.btn--block { width: 100%; }

/* PC : 섹션 1개 = 화면 1개(1080 기준). 위 여백에 고정 헤더 높이를 포함하고,
   아래 여백은 하단 상담 바 높이만큼 비워 내용은 그 사이 가운데에 놓입니다. */
.sec {
  position: relative;
  min-height: min(100vh, 1080px);   /* 세로 모니터 등 화면이 1080보다 높아도 섹션은 최대 1080 */
  padding: calc(var(--header-h) + 44px) 31px 116px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--sec-plain);
}
main { background: var(--sec-plain); }

/* 배경 교차 : 색 있음(메인·SIGNATURE·TREATMENTS·BLOG·MAP) ↔ 흰색(CONCERN·ACNE·DOCTOR·SPACE) */
.hero       { background: var(--sec-hero); }
.signature  { background: var(--sec-signature); }
.treatments { background: var(--sec-treatments); }
.blog       { background: var(--sec-blog); }
.map        { background: var(--sec-map); }
.sec-head { text-align: center; margin-bottom: 50px; }
.sec-title {
  font-family: var(--font-en);
  font-size: 26px; font-weight: 700; letter-spacing: .01em;
  color: var(--brand-ink);
  line-height: 1.3;
}
.sec-title--dark { color: var(--title-dark); }
.sec-sub { margin-top: 8px; font-size: 16px; color: var(--text-3); line-height: 1.55; }

.round-arrow {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.3px solid var(--text-2); color: var(--text-2);
  display: grid; place-items: center;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.round-arrow svg { width: 18px; height: 18px; }
.round-arrow:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.08); }

/* ---------- 4-1. Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  color: var(--header-ink);
  transition: background-color .45s var(--ease), color .45s var(--ease), box-shadow .45s, transform .45s var(--ease);
}
.header.is-scrolled { box-shadow: 0 8px 31px rgba(40, 30, 26, .12); }
.header.is-top { background: transparent; color: var(--nav-top); box-shadow: none; }
.header__inner {
  height: 100%;
  display: flex; align-items: center; gap: 31px;
  padding: 0 39px 0 44px;
}

.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: inherit; }
.header.is-top .logo { color: var(--brand-ink); }
.logo__crown { width: 34px; height: 22px; margin-bottom: 2px; }
.logo__text {
  position: relative;
  font-family: var(--font-logo); font-weight: 700; font-size: 24.5px; letter-spacing: .02em;
}
.logo:hover .logo__crown { animation: crownWiggle .7s var(--ease); }
@keyframes crownWiggle { 30% { transform: rotate(-10deg) translateY(-2px); } 60% { transform: rotate(8deg); } }

.gnb { flex: 1; display: flex; justify-content: center; }
.gnb ul { width: 100%; max-width: 1430px; display: flex; justify-content: space-around; }
/* PC 메뉴 : 마우스를 올리면 영문 → 한글명으로 전환 */
.gnb a {
  position: relative; display: grid; place-items: center;
  padding: 10.5px 8px;
  overflow: hidden;
  opacity: .82;
  transition: opacity .25s, color .25s;
}
.gnb__en, .gnb__ko {
  grid-area: 1 / 1;
  white-space: nowrap;
  transition: transform .45s var(--ease-out), opacity .35s var(--ease);
}
.gnb__en { font-family: var(--font-en); font-size: 15px; font-weight: 500; letter-spacing: .02em; }
.gnb__ko { font-size: 15px; font-weight: 600; letter-spacing: -.02em; opacity: 0; transform: translateY(110%); }
/* :focus-visible 은 구형 Safari 에서 규칙 전체가 무시되지 않도록 분리 */
.gnb a:hover .gnb__en { opacity: 0; transform: translateY(-110%); }
.gnb a:hover .gnb__ko { opacity: 1; transform: none; }
.gnb a:focus-visible .gnb__en { opacity: 0; transform: translateY(-110%); }
.gnb a:focus-visible .gnb__ko { opacity: 1; transform: none; }
.gnb a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px;
  width: 0; height: 1.5px; background: currentColor;
  transition: width .35s var(--ease), left .35s var(--ease);
}
.gnb a:hover { opacity: 1; }
.gnb a:hover::after { width: 60%; left: 20%; }
.gnb a.is-active { opacity: 1; }
.gnb a.is-active .gnb__en { font-weight: 700; }
.gnb a.is-active .gnb__ko { font-weight: 800; }
.header.is-top .gnb a.is-active { color: var(--nav-top-active); }

/* 스크롤 진행 표시줄 */
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; }
.progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, #d9c3b6, #fff 60%, #e7d6cc);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}
.header.is-top .progress { opacity: 0; }
[data-theme="dark"] .progress span { background: linear-gradient(90deg, #8e7f77, #e9d9cf); }

/* Theme toggle */
.theme-toggle {
  position: relative; flex: none;
  width: 109px; height: 28.5px; border-radius: 128.5px;
  border: 1.3px solid currentColor;
  display: flex; align-items: center;
  color: inherit;
  transition: border-color .3s;
}
.header.is-top .theme-toggle { color: #c08ea0; }
[data-theme="dark"] .header.is-top .theme-toggle { color: var(--brand-ink); }
.theme-toggle__label {
  position: absolute; left: 14.5px;
  font-family: var(--font-en); font-size: 13px; font-weight: 600;
  color: var(--header-ink);
  transition: left .45s var(--ease), color .3s;
}
.header.is-top .theme-toggle__label { color: var(--text-2); }
.theme-toggle__knob {
  position: absolute; right: 2px; top: 2px;
  width: 49.5px; height: calc(100% - 5px); border-radius: 128.5px;
  background: var(--header-ink);
  transition: right .45s var(--ease), background-color .3s;
}
.header.is-top .theme-toggle__knob { background: var(--brand); }
[data-theme="dark"] .theme-toggle__label { left: 57px; }
[data-theme="dark"] .theme-toggle__knob { right: 54.5px; }

.menu-btn { display: none; }

/* ---------- 4-2. Mobile Sidebar ---------- */
.sidebar-dim {
  position: fixed; inset: 0; z-index: 140;
  background: var(--dim);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.sidebar {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
  width: min(84vw, 340px);
  display: flex; flex-direction: column;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .5s var(--ease-out), visibility .5s;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom);
}
.is-sidebar-open .sidebar-dim { opacity: 1; visibility: visible; }
.is-sidebar-open .sidebar { transform: none; visibility: visible; }
.sidebar__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.logo--side { color: var(--brand-ink); }
.sidebar__close { width: 36px; height: 36px; display: grid; place-items: center; color: var(--text-2); border-radius: 50%; transition: background-color .2s, transform .3s var(--ease); }
.sidebar__close:hover { background: var(--surface-2); transform: rotate(90deg); }
.sidebar__close svg { width: 22px; height: 22px; }
.sidebar__nav { padding: 10px 0; }
.sidebar__nav li {
  opacity: 0; transform: translateX(24px);
  transition: opacity .4s var(--ease), transform .5s var(--ease-out);
}
.is-sidebar-open .sidebar__nav li { opacity: 1; transform: none; }
.is-sidebar-open .sidebar__nav li:nth-child(1) { transition-delay: .08s; }
.is-sidebar-open .sidebar__nav li:nth-child(2) { transition-delay: .12s; }
.is-sidebar-open .sidebar__nav li:nth-child(3) { transition-delay: .16s; }
.is-sidebar-open .sidebar__nav li:nth-child(4) { transition-delay: .20s; }
.is-sidebar-open .sidebar__nav li:nth-child(5) { transition-delay: .24s; }
.is-sidebar-open .sidebar__nav li:nth-child(6) { transition-delay: .28s; }
.is-sidebar-open .sidebar__nav li:nth-child(7) { transition-delay: .32s; }
.is-sidebar-open .sidebar__nav li:nth-child(8) { transition-delay: .36s; }
.sidebar__nav a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 13px 24px;
  transition: background-color .2s, padding-left .3s var(--ease);
}
.sidebar__nav a b { font-family: var(--font-en); font-size: 15px; font-weight: 600; color: var(--text); }
.sidebar__nav a span { font-size: 12px; color: var(--text-3); }
.sidebar__nav a:hover, .sidebar__nav a.is-active { background: var(--brand-tint); padding-left: 30px; }
.sidebar__nav a.is-active b { color: var(--brand-ink); }
.sidebar__theme {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 24px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--text-2);
}
.theme-toggle--side { color: var(--brand); }
.theme-toggle--side .theme-toggle__label { color: var(--text-2); }
.theme-toggle--side .theme-toggle__knob { background: var(--brand); }
.sidebar__foot { margin-top: auto; padding: 20px 24px 28px; }
.sidebar__tel { display: block; margin: 14px 0 10px; font-family: var(--font-en); font-size: 18px; font-weight: 600; color: var(--brand-ink); text-align: center; }
.sidebar__hours { font-size: 12.5px; color: var(--text-2); }
.sidebar__hours div { display: flex; justify-content: space-between; padding: 3px 0; }
.sidebar__hours dt { color: var(--text-3); }
.sidebar__off { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--text); }

/* ---------- 4-3. Quick menu ---------- */
.quick {
  position: fixed; right: 52px; top: 50%; z-index: 90;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 18px;
}
.quick a, .quick button {
  position: relative;
  width: 40.5px; height: 40.5px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--quick-bg); color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), background-color .3s;
}
.quick svg { width: 22px; height: 22px; }
.quick a:hover, .quick button:hover { transform: scale(1.12); background: var(--brand); }
.quick [data-tip]::before {
  content: attr(data-tip);
  position: absolute; right: calc(100% + 13px); top: 50%;
  transform: translate(8px, -50%);
  white-space: nowrap;
  padding: 6.5px 13px; border-radius: 8px;
  background: var(--text); color: var(--bg);
  font-size: 15px; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .3s var(--ease);
}
.quick [data-tip]:hover::before { opacity: 1; transform: translate(0, -50%); }
.quick [data-tip]:focus-visible::before { opacity: 1; transform: translate(0, -50%); }
.quick__top { opacity: 0; transform: translateY(10.5px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.is-past-hero .quick__top { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- 4-4. Bottom CTA (sticky) ---------- */
.cta-wrap {
  position: sticky; bottom: 26px; z-index: 80;
  display: flex; justify-content: center;
  margin-top: -66px;            /* 마지막 섹션 하단 여백과 겹치도록 */
  padding: 0 21px 26px;
  pointer-events: none;
}
.cta-bar {
  display: flex; width: 651.5px; max-width: 100%;
  border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow);
  pointer-events: auto;
}
.cta-bar__btn {
  flex: 1; height: 60px;
  display: flex; align-items: center; justify-content: center; gap: 13px;
  font-size: 15.5px; font-weight: 700;
  transition: filter .25s, flex-grow .45s var(--ease);
}
.cta-bar__btn svg { width: 23.5px; height: 23.5px; }
.cta-bar__btn:hover { filter: brightness(1.06); flex-grow: 1.18; }
.cta-bar__btn--consult { background: var(--brand); color: #fff; }
.cta-bar__btn--consult svg { opacity: .85; }
.cta-bar__btn--naver { background: var(--naver); color: #fff; }
.cta-bar__btn--kakao { background: var(--kakao); color: var(--kakao-ink); }

/* ---------- 5-1. HERO ---------- */
.hero { min-height: min(100vh, 1080px); min-height: min(100svh, 1080px); padding-top: calc(var(--header-h) + 20px); padding-bottom: 120px; }
.hero__slider { position: relative; width: 100%; max-width: 1170px; }
.hero__slides { position: relative; display: grid; }
.hero__slide {
  grid-area: 1 / 1;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
/* 메인 모델 이미지 : 6:5 비율 고정 (화면 높이에 맞춰 크기만 줄어듦) */
.hero__visual {
  position: relative;
  width: min(720px, 80vw, max(340px, calc((100vh - 430px) * 1.2)));
  aspect-ratio: 6 / 5;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
}
.hero__visual img.media { object-position: center top; }
.hero__copy { position: relative; text-align: center; margin-top: -22px; }
.hero__title {
  font-size: clamp(34px, 2.6vw, 48px); font-weight: 300; letter-spacing: -.035em;
  color: var(--brand-ink); line-height: 1.3;
}
.hero__title strong { font-weight: 800; }
.hero__desc { margin-top: 23.5px; font-size: 18px; color: var(--text-2); line-height: 1.6; }
.hero__dots { display: flex; justify-content: center; gap: 5px; margin-top: 39px; }
.hero__dots button {
  width: 15.5px; height: 15.5px; border-radius: 50%;
  border: 1.3px solid var(--text-3);
  position: relative;
  transition: transform .3s var(--ease), border-color .3s;
}
.hero__dots button::after {
  content: ""; position: absolute; inset: 1.5px; border-radius: 50%;
  background: var(--text-3); transform: scale(0);
  transition: transform .4s var(--ease-out);
}
.hero__dots button.is-active::after { transform: scale(1); }
.hero__dots button:hover { transform: scale(1.15); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 119.5px; transform: translateX(-50%);
  width: 28.5px; height: 44px; border-radius: 15.5px; border: 1.3px solid var(--text-3);
  opacity: .55; display: none;
}

/* ---------- 5-2. CONCERN ---------- */
.concern__wrap {
  width: 100%; max-width: 1690px;
  display: grid; grid-template-columns: 344.5px 1fr; align-items: center; gap: 0;
}
.concern__intro { padding-left: 0; color: var(--brand-ink); }
.concern__crown { width: 34px; height: 22px; margin-left: 13px; }
.concern__logo { display: block; font-family: var(--font-logo); font-size: 22px; font-weight: 700; margin: 0 0 10.5px; }
.concern__title { font-size: 24.5px; font-weight: 700; letter-spacing: -.03em; }
.concern__text { margin-top: 34px; font-size: 21px; line-height: 1.45; color: var(--brand-ink); opacity: .9; }
.concern__arrows { display: flex; gap: 10.5px; margin-top: 39px; }

.concern__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding-bottom: 20px; }

/* 고민 카드 : 앞면(이미지) ↔ 뒷면(솔루션) 3D 뒤집기
   클릭·터치 → .is-flipped 로 뒤집힘, 뒷면 빈 곳이나 ↺ 버튼을 누르면 앞면으로 */
.c-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 13px;
  perspective: 1600px;
}
.c-card__inner {
  position: absolute; inset: 0;
  border-radius: inherit;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.45, .05, .2, 1);
}
.c-card.is-flipped .c-card__inner { transform: rotateY(180deg); }
.c-card__face {
  position: absolute; inset: 0;
  border-radius: inherit;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.c-card__front { transform: rotateY(0deg); }
.c-card__back { transform: rotateY(180deg); }

.c-card__media { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.c-card__media .media { transition: transform 1.2s var(--ease-out); }
.c-card:hover .c-card__media .media { transform: scale(1.06); }
.c-card__cover {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 26px 26px 21px; text-align: left;
  border-radius: inherit;
  color: #fff;
  background: linear-gradient(180deg, rgba(40,30,28,.40) 0%, rgba(40,30,28,0) 38%, rgba(40,30,28,0) 70%, rgba(40,30,28,.45) 100%);
}
.c-card__no { font-family: var(--font-en); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }
.c-card__name { font-size: 19.5px; font-weight: 700; margin-top: 2px; }
.c-card__more { margin-top: auto; align-self: flex-end; display: inline-flex; align-items: center; gap: 10.5px; font-size: 14.5px; }
.c-card__more svg { width: 23.5px; height: 23.5px; transition: transform .35s var(--ease); }
.c-card__cover:hover .c-card__more svg { transform: rotate(-12deg) scale(1.15); }

.c-card__panel {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: var(--brand-soft);
  color: #fff;
  padding: 30px 14px 44px;
  text-align: center;
  display: flex; flex-direction: column; justify-content: center;
  cursor: pointer;
}
[data-theme="dark"] .c-card__panel { color: var(--text); }
.c-card__panel dt { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.c-card__panel dd { font-size: 13.5px; letter-spacing: -.03em; line-height: 1.65; opacity: .95; margin-bottom: 22px; }
.c-card__panel dd:last-child { margin-bottom: 0; }
.c-card__flipback {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; background: rgba(255,255,255,.18);
  transition: background-color .25s, transform .45s var(--ease);
}
.c-card__flipback svg { width: 16px; height: 16px; }
.c-card__flipback:hover { background: rgba(255,255,255,.32); transform: rotate(-180deg); }
[data-theme="dark"] .c-card__flipback { color: var(--text); }

.c-card__actions {
  position: absolute; left: 50%; bottom: -17px; z-index: 3;
  transform: translateX(-50%);
  display: flex; align-items: center;
  height: 35px; padding: 0 5px; border-radius: 8px;
  background: var(--brand); color: #fff;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.c-card__actions button { display: inline-flex; align-items: center; gap: 15.5px; height: 100%; padding: 0 18px; font-size: 13px; }
.c-card__actions button + button { border-left: 1px solid rgba(255,255,255,.7); }
.c-card__actions svg { width: 14.5px; height: 14.5px; opacity: .8; }
.c-card__actions button:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 5-3. SIGNATURE ---------- */
.signature__list {
  display: grid; grid-template-columns: repeat(3, 316px); gap: 26px;
  align-items: start;
  margin-top: 10.5px;
}
.s-card {
  position: relative;
  background: var(--surface-2);
  border-radius: 8px;
  padding-bottom: 44px;
  box-shadow: var(--shadow-sm);
  margin-top: 64px;
  transition: box-shadow .4s var(--ease), translate .4s var(--ease);
}
.s-card:hover { box-shadow: var(--shadow); translate: 0 -4px; }
.s-card--featured { margin-top: 0; }
.s-card__media { position: relative; aspect-ratio: 16 / 10; border-radius: 8px 8px 0 0; overflow: hidden; }
.s-card__badge {
  position: absolute; left: 23.5px; bottom: 11.5px;
  padding: 1px 11.5px; border-radius: 128.5px;
  border: 1px solid rgba(255,255,255,.9);
  color: #fff; font-size: 11px; background: rgba(60,48,44,.22);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.s-card__body { padding: 26px 23.5px 0; }
.s-card__title { font-size: 18px; font-weight: 700; color: var(--brand-ink); letter-spacing: -.02em; }
.s-card__tags { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.s-card__info { margin-top: 18px; }
.s-card__info dt { font-size: 11px; color: var(--text-3); }
.s-card__info dd { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin: 4px 0 16px; line-height: 1.55; }
.s-card__info dd:last-child { margin-bottom: 0; }
.s-card__btn {
  position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%);
  width: 197.5px; height: 39px; border-radius: 6.5px;
  background: var(--brand); color: #fff;
  font-size: 14.5px; font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: background-color .25s, width .4s var(--ease-out);
}
.s-card__btn:hover { background: var(--brand-strong); width: 216px; }
.signature__outro { text-align: center; margin-top: 52px; }
.signature__big { font-size: clamp(28.5px, 2vw, 36.5px); font-weight: 300; letter-spacing: -.035em; color: var(--brand-ink); }
.signature__big strong { font-weight: 800; }
.signature__small { margin-top: 15.5px; font-size: 17px; line-height: 1.55; color: var(--text-2); }

/* ---------- 5-3-2. ACNE CARE ---------- */
.acne__wrap {
  width: 100%; max-width: 1180px;
  display: grid; grid-template-columns: 400px 1fr; gap: 64px; align-items: center;
}
.acne__intro { display: flex; flex-direction: column; gap: 26px; }
.acne__copy { order: -1; }
.acne__title { font-size: 30px; font-weight: 300; letter-spacing: -.035em; line-height: 1.3; color: var(--brand-ink); }
.acne__title strong { font-weight: 800; }
.acne__desc { margin-top: 14px; font-size: 16.5px; line-height: 1.6; color: var(--text-2); }
.acne__visual { position: relative; aspect-ratio: 4 / 5; max-height: 440px; border-radius: 16px; overflow: hidden; }

.acne__guide-head {
  display: grid; grid-template-columns: 52px 1fr 30px 1.15fr 168px; gap: 0 14px;
  padding: 0 22px 10px; font-size: 13px; font-weight: 700; color: var(--text-3); letter-spacing: .02em;
}
.acne__guide-head span:first-child { grid-column: 2; }
.acne__guide-head span:last-child { grid-column: 4; }
.acne__list { display: flex; flex-direction: column; gap: 10px; counter-reset: none; }
.a-row {
  position: relative;
  display: grid; grid-template-columns: 52px 1fr 30px 1.15fr 168px; gap: 0 14px; align-items: center;
  min-height: 82px; padding: 12px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
}
.a-row::before {   /* 왼쪽 강조선 */
  content: ""; position: absolute; left: -1px; top: 16px; bottom: 16px; width: 3px; border-radius: 3px;
  background: var(--brand); transform-origin: 50% 0;
}
.a-row:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: var(--brand-soft); }
.a-row__no { font-family: var(--font-en); font-size: 22px; font-weight: 700; color: var(--brand-soft); }
.a-row__label { display: block; font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.35; }
.a-row__opt {
  display: inline-block; margin-top: 5px; padding: 1px 8px; border-radius: 99px;
  border: 1px solid var(--line-strong); font-style: normal; font-size: 11.5px; color: var(--text-3);
}
.a-row__arrow { width: 26px; height: 26px; color: var(--brand-soft); }
.a-row__arrow path { stroke-dasharray: 40; stroke-dashoffset: 0; }
.a-row__name { display: block; font-size: 17px; font-weight: 800; color: var(--brand-ink); letter-spacing: -.02em; }
.a-row__tags { display: block; margin-top: 2px; font-size: 13px; color: var(--text-2); }
.a-row__actions { display: flex; gap: 6px; justify-content: flex-end; }
.a-row__actions button {
  display: inline-flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 11px; border-radius: 8px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--line-strong); color: var(--text-2); background: var(--surface);
  transition: background-color .25s, color .25s, border-color .25s;
}
.a-row__actions button + button { background: var(--brand); border-color: var(--brand); color: #fff; }
.a-row__actions button:hover { border-color: var(--brand); color: var(--brand-ink); }
.a-row__actions button + button:hover { background: var(--brand-strong); color: #fff; }
.a-row__actions svg { width: 13px; height: 13px; }
/* 선택 노출 : 보조 관리(LDM) — 점선 테두리로 구분. 숨기려면 index.html 의 data-optional 행에 hidden 속성 추가 */
.a-row--optional { background: transparent; border-style: dashed; box-shadow: none; }
.a-row--optional::before { background: var(--line-strong); }
.a-row--optional .a-row__name { color: var(--text-2); }
.acne__note {
  margin-top: 16px; padding-left: 22px;
  font-size: 13.5px; line-height: 1.6; color: var(--text-3);
}

/* ---------- 5-4. TREATMENTS ---------- */
.treatments .sec-head { margin-bottom: 24px; }
.treatments__inner { width: 100%; max-width: 875px; }
.treatments__ask { text-align: center; font-size: 17px; font-weight: 700; color: var(--brand-ink); margin-bottom: 13px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6.5px; padding-bottom: 26px; border-bottom: 1px solid var(--text); }
.chip {
  height: 32.5px; padding: 0 13px; border-radius: 128.5px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--text-2);
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--brand-ink); transform: translateY(-1px); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }

.t-row {
  display: grid; grid-template-columns: 188.5px 1fr; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.t-row__head strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--text); }
.t-row__head span { display: block; font-family: var(--font-en); font-size: 10px; color: var(--text-3); margin-top: 2px; }
.t-row__items { display: grid; grid-template-columns: 1fr 1fr; gap: 15.5px; }
.t-item {
  position: relative;
  display: flex; align-items: center;
  height: 73px; border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--surface);
  transition: opacity .4s var(--ease), border-color .3s, box-shadow .3s, transform .35s var(--ease), filter .4s;
}
.t-item:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.t-item__main { flex: 1; display: flex; align-items: center; gap: 13px; height: 100%; padding: 0 0 0 10.5px; text-align: left; min-width: 0; }
.t-item__thumb { width: 50.5px; height: 50.5px; flex: none; border-radius: 8px; overflow: hidden; }
.t-item__name { display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 700; color: var(--text); }
.t-item__name em { font-style: normal; font-size: 10px; font-weight: 500; padding: 1px 6.5px; border-radius: 4px; background: var(--brand-tint); color: var(--text-2); }
.t-item__tags { display: block; font-size: 11px; color: var(--text-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-item__cta { flex: none; height: 100%; padding: 0 13px 0 10.5px; font-size: 11px; font-weight: 700; color: var(--text); transition: color .2s; }
.t-item__cta:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 4px; }
/* 탭에 해당하지 않는 시술·분류 행은 숨김. 탭마다 행 수가 달라도 화면이 들썩이지 않도록 최소 높이 확보 */
.t-row.is-hidden, .t-item.is-hidden { display: none; }

/* 여드름 탭 : 지금 고민(왼쪽) → 상담 시술(오른쪽) 한 줄씩 */
.t-row--acne { grid-template-columns: 300px 1fr; padding: 10px 0; }
.t-row--acne .t-row__head { display: flex; align-items: center; gap: 12px; }
.t-row__no { font-family: var(--font-en); font-size: 15px; font-weight: 700; color: var(--brand-soft); min-width: 22px; }
.t-row--acne .t-row__head strong { font-size: 14.5px; line-height: 1.35; }
.t-row--acne .t-row__head::after {
  content: ""; flex: none; width: 22px; height: 1.5px; margin-left: auto; margin-right: 6px;
  background: linear-gradient(90deg, transparent, var(--brand-soft));
}
.t-row__opt {
  flex: none; padding: 1px 7px; border-radius: 99px;
  border: 1px solid var(--line-strong); font-style: normal; font-size: 10.5px; color: var(--text-3); white-space: nowrap;
}
.t-row--acne .t-row__items { grid-template-columns: 1fr; }
.t-row--acne .t-item { height: 62px; }
.t-row--acne.is-optional .t-item { border-style: dashed; background: transparent; }
.t-row--acne.is-optional .t-item__name { color: var(--text-2); }
.t-table { min-height: 180px; }

.t-notice {
  display: flex; align-items: center; justify-content: space-between; gap: 21px;
  margin-top: 18px; padding: 15.5px 18px;
  background: var(--surface-2); border-radius: 9px;
}
.t-notice__title { font-size: 12.5px; font-weight: 600; color: var(--text); }
.t-notice__desc { font-size: 10.5px; color: var(--text-2); }
.t-notice .btn--sm { height: 36.5px; font-size: 12.5px; padding: 0 15.5px; border-radius: 8px; }

/* ---------- 5-5. DOCTOR ---------- */
.doctor { padding-bottom: 0; justify-content: flex-start; }
.doctor .sec-head { margin-bottom: 24px; }
.doctor__wrap {
  width: 100%; max-width: 1118px; flex: 1;
  display: grid; grid-template-columns: 480px 1fr; gap: 64px; align-items: end;
}
/* 대표원장 사진 : 480 × 720 고정 (2:3) */
.doctor__visual { position: relative; width: 480px; height: 720px; }
.doctor__photo {
  position: relative; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}
.doctor__photo img.media { object-position: center top; }
.doctor__info { align-self: center; padding: 40px 0 130px; }
.doctor__quote { font-size: 19.5px; color: var(--text-2); line-height: 1.3; letter-spacing: -.02em; }
.doctor__quote strong { color: var(--text); font-weight: 700; }
.doctor__quote mark {
  color: #fff;
  background: linear-gradient(var(--title-dark), var(--title-dark)) no-repeat left / 0 100%;
  padding: 0 2px;
  transition: background-size 1s var(--ease) .5s;
}
[data-theme="dark"] .doctor__quote mark { color: var(--bg); }
.doctor__name { margin-top: 28.5px; font-size: 16px; font-weight: 500; color: var(--text); }
.doctor__cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; margin-top: 70px; }
.doctor__col h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 23.5px; }
.doctor__col li { position: relative; padding-left: 17px; font-size: 14.5px; color: var(--text-2); line-height: 1; margin-bottom: 19.5px; }
.doctor__col li::before { content: ""; position: absolute; left: 0; top: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.doctor__col li.is-current { color: var(--text); font-weight: 700; }

/* ---------- 5-6. BLOG ---------- */
.blog .sec-head { margin-bottom: 18px; }
.blog__tags { display: flex; gap: 28.5px; margin-bottom: 26px; }
.blog__tags button { font-size: 11px; color: var(--text-3); padding: 5px 2px; position: relative; transition: color .25s; }
.blog__tags button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brand); transform: scaleX(0); transition: transform .35s var(--ease); }
.blog__tags button:hover, .blog__tags button[aria-pressed="true"] { color: var(--brand-ink); }
.blog__tags button[aria-pressed="true"]::after { transform: scaleX(1); }

.blog__list { width: 100%; max-width: 728px; display: flex; flex-direction: column; gap: 20px; }
.b-item__link {
  width: 100%; display: grid; grid-template-columns: 277px 1fr; gap: 39px; align-items: center;
  text-align: left;
}
.b-item__thumb { display: block; aspect-ratio: 7 / 5; border-radius: 5px; overflow: hidden; }
.b-item__thumb .media { transition: transform 1s var(--ease-out); }
.b-item__link:hover .b-item__thumb .media { transform: scale(1.06); }
.b-item__tags { display: flex; gap: 18px; font-size: 8.5px; color: var(--text-3); }
.b-item__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 15.5px; font-size: 17px; font-weight: 700; line-height: 1.45; color: var(--text);
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 1px;
  transition: background-size .5s var(--ease);
}
.b-item__link:hover .b-item__title { background-size: 100% 1px; }
.b-item__excerpt {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 10.5px; font-size: 11px; line-height: 1.65; color: var(--text-2);
}
.b-item__meta { display: flex; gap: 18px; margin-top: 21px; font-size: 11px; color: var(--text-2); }
.b-item__meta span { display: inline-flex; align-items: center; gap: 5px; }
.b-item__meta svg { width: 13px; height: 13px; }
.blog__empty { text-align: center; padding: 78px 0; color: var(--text-3); font-size: 17px; }

.pager { display: flex; align-items: center; gap: 11.5px; margin-top: 34px; }
.pager button {
  min-width: 28.5px; height: 28.5px; border-radius: 4px;
  font-size: 11.5px; font-weight: 600; color: var(--text);
  background: var(--surface-2);
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.pager button:hover:not(:disabled) { transform: translateY(-2px); }
.pager button.is-active { background: var(--text-3); color: #fff; }
.pager .pager__arrow { background: none; width: 34px; display: grid; place-items: center; color: var(--text); }
.pager .pager__arrow svg { width: 26px; height: 26px; }
.pager .pager__arrow:disabled { color: var(--line-strong); cursor: default; }

/* ---------- 5-7. SPACE ---------- */
.space__slider { position: relative; width: 100%; max-width: 1170px; display: flex; align-items: center; gap: 28.5px; }
.space__viewport { position: relative; flex: 1; aspect-ratio: 16 / 9; overflow: hidden; }
.space__track { display: flex; height: 100%; transition: transform .9s var(--ease-out); }
.space__slide { position: relative; flex: 0 0 100%; height: 100%; }
.space__cap {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  padding: 9px 30px; background: rgba(66,62,64,.92); color: #fff;
  font-size: 13px; white-space: nowrap;
}
.space__count {
  position: absolute; right: 21px; top: 18px;
  padding: 4px 13px; border-radius: 128.5px; background: rgba(40,36,38,.5); color: #fff;
  font-family: var(--font-en); font-size: 14.5px;
}
.space__arrow { width: 39px; height: 52px; display: grid; place-items: center; color: var(--title-dark); transition: transform .3s var(--ease), color .2s; }
.space__arrow svg { width: 34px; height: 34px; }
.space__arrow--prev:hover { transform: translateX(-4px); color: var(--brand-ink); }
.space__arrow--next:hover { transform: translateX(5px); color: var(--brand-ink); }

/* ---------- 5-8. MAP ---------- */
.map { padding-bottom: 150px; }   /* 하단 상담 바가 멈추는 자리 포함 */
.map__inner { width: 100%; max-width: 946.5px; }
.map__box { position: relative; aspect-ratio: 728 / 304; overflow: hidden; }
.ph--map { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(150,140,140,.08) 1px, transparent 1px) 0 0 / 52px 52px,
  linear-gradient(rgba(150,140,140,.08) 1px, transparent 1px) 0 0 / 52px 52px,
  linear-gradient(150deg, var(--ph-a), var(--ph-b)); }
.map__pin {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; color: var(--brand);
}
.map__pin svg { width: 44px; height: 44px; filter: drop-shadow(0 5px 8px rgba(0,0,0,.2)); }
.map__pin em { font-style: normal; font-size: 14.5px; font-weight: 700; color: var(--text); background: var(--surface); padding: 2px 10.5px; border-radius: 5px; box-shadow: var(--shadow-sm); margin-top: 2px; }
@keyframes pinBob { 50% { transform: translate(-50%, calc(-100% - 8px)); } }

.map__info { display: grid; grid-template-columns: 1fr auto; gap: 26px; margin-top: 21px; padding: 0 15.5px; }
.map__list div { display: grid; grid-template-columns: 62.5px 1fr; gap: 0 15.5px; margin-bottom: 10.5px; font-size: 11.5px; line-height: 1.6; }
.map__list dt { font-weight: 700; color: var(--text); }
.map__list dd { color: var(--text-2); }
.map__list dd strong { color: var(--text); margin-left: 8px; }
.map__list--hours { display: grid; grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 0 29px; align-content: start; }
.map__list--hours div { grid-template-columns: 52px auto; margin-bottom: 4px; }
.map__list--hours .map__off { grid-template-columns: 1fr; }
.map__list--hours .map__off dd strong { margin: 0; }

/* ---------- 6. Footer ---------- */
/* 모든 정보 행은 같은 줄 높이(--row)를 써서 열끼리 가로줄이 맞도록 구성 */
.footer {
  --row: 30px;
  background: #4e4c4d; color: #fff;
  padding: 44px 24px 0;
}
[data-theme="dark"] .footer { background: #0f0e0f; }
.footer__inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 140px 1fr; align-items: start; gap: 40px;
  padding-bottom: 36px;
}
.footer__brand { display: flex; flex-direction: column; align-items: center; justify-self: start; color: #e0d4cd; padding-top: 2px; }
.footer__brand .logo__crown { width: 34px; height: 22px; margin-bottom: 2px; }
.footer__brand .logo__text { font-size: 26px; }
.footer__info { display: flex; flex-wrap: wrap; gap: 0 64px; }
.footer__col div {
  display: grid; grid-template-columns: 88px auto; align-items: center;
  height: var(--row);
  font-size: 13.5px; line-height: 1;
}
.footer__col dt { font-weight: 700; color: #fff; }
.footer__col dd { color: #cdc7c4; white-space: nowrap; }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__col--addr div { grid-template-columns: 48px auto; }

.footer__bottom {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.footer__links { display: flex; align-items: center; }
.footer__links li { display: flex; align-items: center; font-size: 13px; line-height: 1; color: #e9e5e3; }
.footer__links li + li::before { content: ""; width: 1px; height: 11px; margin: 0 14px; background: rgba(255,255,255,.35); }
.footer__links li:first-child a { font-weight: 700; color: #fff; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__copy { font-family: var(--font-en); font-size: 12px; font-weight: 500; letter-spacing: .04em; color: #a9a3a0; line-height: 1; }

/* ---------- 7. Layer popup (시술 / 게시글 상세) ---------- */
.layer {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--header-h) + 52px) 31px 39px;
}
.layer__dim {
  position: absolute; inset: 0;
  background: var(--dim);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .45s var(--ease);
}
.layer__head { position: relative; text-align: center; color: #fff; margin-bottom: 39px; pointer-events: none; opacity: 0; transform: translateY(-10px); transition: opacity .5s var(--ease) .1s, transform .5s var(--ease) .1s; }
.layer__sec { font-family: var(--font-en); font-size: 26px; font-weight: 700; }
.layer__secsub { font-size: 15.5px; opacity: .9; margin-top: 2px; }
.layer__stage { position: relative; width: 100%; max-width: 1079px; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 34px; }
.layer__box {
  position: relative;
  width: 946.5px; max-width: 100%; height: 100%;
  background: var(--surface);
  border-radius: 18px 18px 0 0;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(52px) scale(.98);
  transition: opacity .5s var(--ease), transform .6s var(--ease-out);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.layer.is-open .layer__dim { opacity: 1; }
.layer.is-open .layer__head { opacity: 1; transform: none; }
.layer.is-open .layer__box { opacity: 1; transform: none; }
.layer__close {
  position: absolute; right: 18px; top: 15.5px; z-index: 2;
  width: 47px; height: 47px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text-2);
  background: var(--surface);
  transition: background-color .2s, transform .35s var(--ease);
}
.layer__close:hover { background: var(--surface-2); transform: rotate(90deg); }
.layer__close svg { width: 26px; height: 26px; }
.layer__scroll {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 44px 52px 0 78px;
  margin-right: 23.5px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.layer__scroll::-webkit-scrollbar { width: 13px; }
.layer__scroll::-webkit-scrollbar-track { background: linear-gradient(var(--text-3), var(--text-3)) center / 1px 100% no-repeat; margin: 26px 0; }
.layer__scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 128.5px; }
.layer__arrow {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.35); color: rgba(255,255,255,.95);
  transition: background-color .25s, transform .3s var(--ease), opacity .25s;
}
.layer__arrow svg { width: 15.5px; height: 15.5px; }
.layer__arrow:hover:not(:disabled) { background: rgba(255,255,255,.6); transform: scale(1.15); }
.layer__arrow:disabled { opacity: .25; cursor: default; }

.detail { text-align: center; padding-bottom: 52px; }
.detail.is-swap { animation: detailSwap .55s var(--ease-out); }
@keyframes detailSwap { from { opacity: 0; transform: translateY(18px); } }
.detail__cat { font-family: var(--font-en); font-size: 11.5px; color: var(--text-2); letter-spacing: .02em; }
.detail__title { margin-top: 13px; font-size: clamp(26px, 2.2vw, 34px); font-weight: 700; color: var(--title-dark); line-height: 1.25; letter-spacing: -.02em; }
.detail__tags { margin-top: 15.5px; font-size: 16px; color: var(--text); }
.detail__count { display: inline-block; margin-top: 10.5px; font-family: var(--font-en); font-size: 13px; color: var(--text-3); }
.detail__media { width: 403px; max-width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 6px; margin: 15.5px auto 0; }
.detail__media--tall { width: 330px; aspect-ratio: 3 / 4; }
.detail__lead { margin-top: 44px; font-size: 21px; font-weight: 700; color: var(--title-dark); line-height: 1.2; }
.detail__body { margin-top: 39px; font-size: 17px; line-height: 1.4; color: var(--text-2); }
.detail__body p + p { margin-top: 1.4em; }
.detail__spec { max-width: 572px; margin: 47px auto 0; border-top: 1px solid var(--text); text-align: left; }
.detail__spec div { display: grid; grid-template-columns: 143px 1fr; padding: 15.5px 8px; border-bottom: 1px solid var(--line); font-size: 17px; }
.detail__spec dt { font-weight: 700; color: var(--text); }
.detail__spec dd { color: var(--text-2); }
.detail__cta { margin-top: 39px; }

/* 시술 상세 (TREATMENTS 팝업) */
.detail--treat .detail__cat b { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 99px; background: var(--brand); color: #fff; font-weight: 700; }
.detail__en { margin-top: 4px; font-family: var(--font-en); font-size: 14px; font-weight: 500; color: var(--text-3); letter-spacing: .02em; }
.detail__intro {
  display: inline-block; margin-top: 16px; padding: 8px 18px; border-radius: 99px;
  background: var(--brand-tint); color: var(--brand-ink); font-size: 16px; font-weight: 700; line-height: 1.4;
}
.detail--treat .detail__media { margin-top: 26px; }
.detail--treat .detail__body { max-width: 600px; margin: 30px auto 0; line-height: 1.7; word-break: keep-all; }
.detail--treat .detail__body p + p { margin-top: .6em; }
.detail__block { max-width: 600px; margin: 34px auto 0; text-align: left; }
.detail__h {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; font-size: 15px; font-weight: 800; color: var(--text);
}
.detail__h::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--brand); }
.detail__worries { display: flex; flex-wrap: wrap; gap: 7px; }
.detail__worries li {
  padding: 6px 13px; border-radius: 99px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 14px; color: var(--text-2); line-height: 1.35;
}
.detail__care p {
  padding: 16px 18px; border-radius: 10px; background: var(--surface-2);
  font-size: 15.5px; line-height: 1.65; color: var(--text); word-break: keep-all;
}
.detail--treat .detail__spec { max-width: none; margin: 0; }
.detail--treat .detail__spec div { grid-template-columns: 120px 1fr; padding: 13px 8px; font-size: 15.5px; line-height: 1.5; }

/* TREATMENTS 하단 실리프팅 안내 : 상세보기 + 상담 예약 */
.t-notice__btns { display: flex; align-items: center; gap: 8px; flex: none; }
.t-notice__more {
  height: 36.5px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--text-2);
  transition: border-color .25s, color .25s;
}
.t-notice__more:hover { border-color: var(--brand); color: var(--brand-ink); }

.post-nav {
  position: sticky; bottom: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 13px;
  padding: 21px 0 26px;
  background: linear-gradient(to bottom, transparent, var(--surface) 26%);
  border-top: 1px solid var(--line);
}
.post-nav__btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 18px; border-radius: 10.5px;
  font-size: 17px; font-weight: 600; color: var(--text-2);
  transition: background-color .25s, color .25s, opacity .25s;
  min-width: 0;
}
.post-nav__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-nav__btn svg { width: 21px; height: 21px; flex: none; transition: transform .3s var(--ease); }
.post-nav__btn:first-child { justify-self: start; }
.post-nav__btn:last-child { justify-self: end; }
.post-nav__btn:first-child:hover:not(:disabled) svg { transform: translateX(-3px); }
.post-nav__btn:last-child:hover:not(:disabled) svg { transform: translateX(4px); }
.post-nav__btn:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.post-nav__btn:disabled { opacity: .35; cursor: default; }
.post-nav__btn--close { justify-content: center; padding: 0 34px; background: var(--brand); color: #fff; }
.post-nav__btn--close:hover:not(:disabled) { background: var(--brand-strong); color: #fff; }

/* ---------- 8. Consult modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 210;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 26px;
}
.modal__dim { position: absolute; inset: 0; background: var(--dim); opacity: 0; transition: opacity .4s var(--ease); }
.modal__label { position: absolute; top: calc(var(--header-h) + 52px); left: 0; right: 0; text-align: center; color: #fff; font-size: 24.5px; font-weight: 700; pointer-events: none; opacity: 0; transition: opacity .4s; }
.modal__box {
  position: relative;
  width: 434px; max-width: 100%;
  max-height: calc(100vh - 52px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 18px;
  padding: 18px 19.5px 18px;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(31px) scale(.96);
  transition: opacity .45s var(--ease), transform .55s var(--ease-out);
  scrollbar-width: thin;
}
.modal.is-open .modal__dim, .modal.is-open .modal__label { opacity: 1; }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__head { position: relative; padding-right: 39px; margin-bottom: 18px; }
.modal__head h2 { font-size: 21px; font-weight: 700; color: var(--text); }
.modal__head p { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.modal__close { position: absolute; right: -4px; top: -2px; width: 36.5px; height: 36.5px; display: grid; place-items: center; color: var(--text-2); border-radius: 50%; transition: transform .35s var(--ease), background-color .2s; }
.modal__close:hover { transform: rotate(90deg); background: var(--surface-2); }
.modal__close svg { width: 23.5px; height: 23.5px; }

.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 4px; border-radius: 10.5px; background: var(--surface-2); margin-bottom: 18px; }
.tabs__btn { height: 41.5px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: background-color .3s, color .3s; }
.tabs__btn.is-active { background: var(--brand); color: #fff; font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 1px; display: inline-block; }
.dot--naver { background: var(--naver); }
.dot--kakao { background: var(--kakao); }

.cform { animation: formIn .45s var(--ease-out); }
@keyframes formIn { from { opacity: 0; transform: translateX(13px); } }
.cform__lead { font-size: 15px; color: var(--text); margin-bottom: 5px; }
.cform__note { font-size: 11.5px; color: var(--text-2); margin-bottom: 18px; }
.field { margin-bottom: 15.5px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.req { color: #e05a4f; margin-left: 2px; }
.field input, .select select {
  width: 100%; height: 49.5px; padding: 0 15.5px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg-soft); color: var(--text);
  font-size: 15.5px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
[data-theme="light"] .field input, [data-theme="light"] .select select { background: #f8f4f1; border-color: #eadfd8; }
.field input::placeholder { color: var(--text-3); }
.field input:focus, .select select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.field input.is-invalid { border-color: #e05a4f; }
.field__err { display: none; margin-top: 5px; font-size: 13px; color: #e05a4f; }
.field input.is-invalid + .field__err { display: block; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 1.3px solid var(--text-2); border-bottom: 1.3px solid var(--text-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select:invalid { color: var(--text-3); }

.agree { border: 1px solid var(--line); border-radius: 10.5px; padding: 8px 13px; margin: 5px 0 18px; }
.check { display: inline-flex; align-items: center; gap: 10.5px; min-height: 39px; cursor: pointer; font-size: 13px; color: var(--text); }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 19.5px; height: 19.5px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.check input::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg) scale(0); margin-top: -2px; transition: transform .2s var(--ease-out); }
.check input:checked { background: var(--brand); border-color: var(--brand); }
.check input:checked::after { transform: rotate(45deg) scale(1); }
.check em { font-style: normal; font-size: 11px; color: var(--text-2); margin-right: 1px; }
.check--all { width: 100%; font-weight: 700; border-bottom: 1px solid var(--line); padding-bottom: 5px; margin-bottom: 2px; }
.agree__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.agree__row--line { border-bottom: 1px solid var(--line); }
.agree__view { font-size: 12.5px; color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; padding: 5px 2px; }
.agree__terms { flex: 0 0 100%; margin: 2px 0 10.5px; padding: 10.5px 13px; border-radius: 8px; background: var(--surface-2); font-size: 12.5px; color: var(--text-2); line-height: 1.6; animation: formIn .35s var(--ease-out); }

.submit {
  width: 100%; height: 52px; border-radius: 10.5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10.5px;
  font-size: 15.5px; font-weight: 700; color: #fff;
  transition: background-color .3s, opacity .3s, transform .25s var(--ease);
}
.submit svg { width: 21px; height: 21px; }
.submit:not(:disabled):hover { transform: translateY(-1px); }
.submit--brand { background: var(--brand); }
.submit--brand:disabled { background: #d7d0cc; cursor: not-allowed; }
[data-theme="dark"] .submit--brand:disabled { background: #4a4446; color: #8f8681; }
.submit--naver { background: var(--naver); }
.submit--naver:disabled { background: var(--naver-soft); cursor: not-allowed; }
.submit__n { font-family: Arial, sans-serif; font-weight: 900; font-size: 17px; }
.submit--kakao { background: var(--kakao); color: var(--kakao-ink); }
.submit--kakao:disabled { opacity: .45; cursor: not-allowed; }

.cdone { text-align: center; padding: 31px 8px 8px; animation: formIn .45s var(--ease-out); }
.cdone__icon { width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; animation: donePop .6s var(--ease-out); }
.cdone__icon svg { width: 34px; height: 34px; }
@keyframes donePop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } }
.cdone__title { font-size: 19.5px; font-weight: 700; }
.cdone__desc { font-size: 15.5px; color: var(--text-2); margin: 5px 0 26px; }

/* ---------- 9. Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 300;
  transform: translate(-50%, 20px);
  max-width: calc(100% - 32px);
  padding: 11px 18px; border-radius: 10px;
  background: var(--text); color: var(--bg);
  font-size: 13px; font-weight: 500; text-align: center;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease), transform .45s var(--ease-out);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* 카카오 지도 반응형 처리 */
.root_daum_roughmap {
    width: 100% !important;
}
.root_daum_roughmap .wrap_map {
    width: 100% !important;
    pointer-events: none !important; 
}


/* Header Section */
.main-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
}

.top-bar {
    background-color: var(--dark-bg);
    padding: 10px 0;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 40px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.main-logo {
    height: 50px;
}

.social-icons {
    position: absolute;
    right: 40px;
    display: flex;
    gap: 15px;
}

.social-icons img {
    height: 24px;
    transition: transform var(--transition-speed);
}

.social-icons a:hover img {
    transform: translateY(-3px);
}

/* Sidebar Toggle Button (Mobile Only) */
.toggle-btn {
    display: none; /* Hidden on Desktop */
    position: absolute;
    left: 40px;
    background: none;
    border: 2px solid var(--white);
    color: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-speed);
    z-index: 1100;
}

.toggle-btn:hover {
    background-color: var(--white);
    color: var(--dark-bg);
}

.plus-icon {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

/* Navigation Section */
.main-nav {
    background-color: var(--white);
    border-bottom: 1px solid #eee;
    height: 50px;
    display: flex;
    align-items: center;
}

.nav-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav-menu li {
    padding: 0 20px;
    height: 50px;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.nav-menu li.active {
    background-color: var(--primary-red);
}

.nav-menu li.active a {
    color: var(--white);
}

.nav-menu li:not(.active):hover a {
    color: var(--primary-red);
}