/* =========================================================================
   네일하남 (NAIL HANAM) — style.css
   하남 미사 네일샵 공식 홈페이지 · 순수 HTML/CSS/JS (프레임워크 없음)
   톤: 화이트 베이스 + 진한 청록(teal #0e6b62) + 골드 옐로우 악센트 · 고급스럽고 담백한 뷰티샵
   ========================================================================= */

/* ---------- 폰트 (font-kit self-host) ---------- */
@font-face {
  font-family: "MaruBuri";
  src: url("../fonts/MaruBuri-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "MaruBuri";
  src: url("../fonts/MaruBuri-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pretendard Variable";
  src: url("../fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- 디자인 토큰 ----------
   톤: 화이트 베이스 + 진한 청록(teal) + 골드 옐로우 악센트.
   변수명은 기존 구조 유지 — --green* = 청록 계열, --apricot* = 노란/골드 계열. */
:root {
  --white: #fdfcfa;
  --paper: #f9f2dd;      /* 소프트 옐로우 크림 — 섹션 배경 */
  --cream: #f5ebcf;      /* 웜 아이보리 (옐로우 틴트) */
  --ink: #15302c;        /* 딥 틸-블랙 본문 */
  --ink-soft: #324743;
  --muted: #627773;
  --line: rgba(14, 107, 98, 0.14);
  --line-strong: rgba(14, 107, 98, 0.26);

  --green: #0e6b62;      /* 진한 청록 — primary */
  --green-deep: #083f39; /* 다크 청록 — gradient·footer */
  --green-tint: #e0f0ec;
  --green-tint-2: #cbe6df;

  --apricot: #f5c542;      /* 골드 옐로우 — 다크 청록 위 악센트 */
  --apricot-deep: #b17d10; /* 딥 머스터드 골드 — 화이트 위 텍스트 악센트 */
  --apricot-tint: #fbf0d4; /* 페일 옐로우 틴트 */

  --naver: #03c75a;
  --kakao: #fee500;
  --kakao-ink: #3c1e1e;

  --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-display: "MaruBuri", "Pretendard Variable", Georgia, serif;

  --wrap: 1140px;
  --wrap-narrow: 880px;
  --pad: clamp(20px, 5vw, 40px);
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(8, 63, 57, 0.06);
  --shadow: 0 14px 40px -18px rgba(8, 63, 57, 0.28);
  --shadow-lg: 0 30px 70px -30px rgba(8, 63, 57, 0.4);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
}

/* ---------- 리셋 ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.72;
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--green); color: #fff; }

/* ---------- 레이아웃 헬퍼 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(64px, 10vw, 128px); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.section--paper { background: var(--paper); }
.section--green {
  background: linear-gradient(160deg, var(--green-deep), var(--green));
  color: #fff;
}
.section--cream { background: linear-gradient(180deg, var(--white), var(--cream)); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ---------- 타이포 ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--green);
}
.kicker::before {
  content: ""; width: 26px; height: 1px; background: var(--apricot-deep);
}
.section--green .kicker { color: var(--apricot); }
.section--green .kicker::before { background: var(--apricot); }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
.h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.h3 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-soft); }
.muted { color: var(--muted); }
.serif { font-family: var(--font-display); }
.eyebrow-num { font-family: var(--font-display); color: var(--apricot-deep); }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; }
.section-head.center { margin-inline: auto; }

/* ---------- 버튼 ---------- */
.btn {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.95em 1.6em;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.98rem; line-height: 1;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s, filter 0.25s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); filter: brightness(1.03); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; }
.btn-sm { padding: 0.62em 1.05em; font-size: 0.86rem; }
.btn-lg { padding: 1.15em 2em; font-size: 1.06rem; }
.btn-block { display: flex; width: 100%; }

.btn-naver { --btn-bg: var(--naver); --btn-fg: #fff; }
.btn-kakao { --btn-bg: var(--kakao); --btn-fg: var(--kakao-ink); }
.btn-ink   { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn-outline {
  --btn-bg: transparent; --btn-fg: var(--green);
  border: 1.5px solid var(--line-strong); box-shadow: none;
}
.btn-outline:hover { background: var(--green-tint); }
.section--green .btn-outline { --btn-fg: #fff; border-color: rgba(255,255,255,0.4); }
.section--green .btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--green-deep); }

/* N 아이콘 배지 (네이버) */
.n-badge {
  display: inline-grid; place-items: center; width: 1.35em; height: 1.35em;
  background: #fff; color: var(--naver); border-radius: 5px;
  font-weight: 800; font-size: 0.82em; font-family: var(--font-body);
}
.btn-naver .n-badge { background: #fff; }

/* ---------- 큰 카드형 버튼 (와이어프레임 스타일) ---------- */
.card-btn {
  display: flex; align-items: center; gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
  text-align: left;
}
.card-btn:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-btn .cb-icon {
  flex: none; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--green-tint); color: var(--green);
}
.card-btn .cb-icon svg { width: 26px; height: 26px; }
.card-btn.is-naver .cb-icon { background: rgba(3,199,90,0.12); color: var(--naver); }
.card-btn.is-kakao .cb-icon { background: rgba(254,229,0,0.35); color: var(--kakao-ink); }
.card-btn .cb-body { min-width: 0; }
.card-btn .cb-title { display: block; font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em; }
.card-btn .cb-sub { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 3px; }
.card-btn .cb-arrow { margin-left: auto; flex: none; color: var(--apricot-deep); transition: transform 0.35s var(--ease); }
.card-btn:hover .cb-arrow { transform: translateX(5px); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 20px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 24px); }

/* ---------- 헤더 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  transition: box-shadow 0.35s;
}
/* 배경·블러는 ::before로 분리 — 헤더에 backdrop-filter를 직접 걸면 자식 .nav-overlay(position:fixed)의
   컨테이닝 블록이 헤더가 되어 풀스크린 오버레이가 헤더 높이로 잘린다. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--white) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.site-header.is-scrolled::before {
  background: color-mix(in srgb, var(--white) 94%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px -18px rgba(8,63,57,0.5);
}
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.brand {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem); letter-spacing: 0.14em;
  color: var(--green-deep); white-space: nowrap;
}
.brand span { color: var(--apricot-deep); }
.header-right { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line-strong); color: var(--green);
  transition: background 0.25s, border-color 0.25s;
}
.nav-toggle:hover { background: var(--green-tint); }
.nav-toggle-lines { display: grid; gap: 5px; width: 20px; }
.nav-toggle-lines span { height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease), opacity 0.2s; }

/* ---------- 풀스크린 오버레이 내비 ---------- */
.nav-overlay {
  position: fixed; inset: 0; z-index: 70;
  background: linear-gradient(165deg, var(--green-deep), var(--green) 120%);
  color: #fff;
  padding: calc(var(--header-h) + 8px) var(--pad) 40px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
  overflow-y: auto;
}
.nav-overlay[hidden] { display: flex; } /* JS는 클래스로 제어, hidden 무력화 */
body.nav-open .nav-overlay { opacity: 1; visibility: visible; pointer-events: auto; }
body.nav-open { overflow: hidden; }

.nav-close {
  position: absolute; top: 12px; right: var(--pad);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.35); color: #fff; font-size: 1.1rem;
}
.nav-close:hover { background: rgba(255,255,255,0.12); }
.nav-overlay-inner {
  width: 100%; max-width: 520px; margin: auto auto;
  display: flex; flex-direction: column; gap: 2px;
}
.nav-link, .nav-group-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left;
  font-family: var(--font-display); font-size: clamp(1.5rem, 6vw, 2rem);
  padding: 0.5em 0; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  opacity: 0; transform: translateY(14px);
}
body.nav-open .nav-link, body.nav-open .nav-group-toggle {
  animation: navIn 0.5s var(--ease) forwards;
}
body.nav-open .nav-overlay-inner > *:nth-child(1) { animation-delay: 0.06s; }
body.nav-open .nav-overlay-inner > *:nth-child(2) { animation-delay: 0.10s; }
body.nav-open .nav-overlay-inner > *:nth-child(3) { animation-delay: 0.14s; }
body.nav-open .nav-overlay-inner > *:nth-child(4) { animation-delay: 0.18s; }
body.nav-open .nav-overlay-inner > *:nth-child(5) { animation-delay: 0.22s; }
body.nav-open .nav-overlay-inner > *:nth-child(6) { animation-delay: 0.26s; }
body.nav-open .nav-overlay-inner > *:nth-child(7) { animation-delay: 0.30s; }
body.nav-open .nav-overlay-inner > *:nth-child(8) { animation-delay: 0.34s; }
@keyframes navIn { to { opacity: 1; transform: none; } }
.nav-link:hover { color: var(--apricot); }
/* 내비 메뉴 영문 병기 라벨 (한글 시그니처 + 소형 영문) */
.nav-en { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.55; margin-left: 0.5em; }
.nav-sub a .nav-en { font-size: 0.72rem; }
.nav-group-toggle .chev {
  width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform 0.3s var(--ease); flex: none; margin-right: 4px;
}
.nav-group-toggle[aria-expanded="true"] .chev { transform: rotate(-135deg); }
.nav-sub {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease);
}
.nav-sub > div { overflow: hidden; }
.nav-group.is-open .nav-sub { grid-template-rows: 1fr; }
.nav-sub a {
  display: block; padding: 0.55em 0 0.55em 4px;
  font-size: 1.02rem; color: rgba(255,255,255,0.82);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-sub a:first-child { padding-top: 0.7em; }
.nav-sub a:hover { color: var(--apricot); }
.nav-cta { margin-top: 22px; opacity: 0; }
body.nav-open .nav-cta { animation: navIn 0.5s var(--ease) 0.38s forwards; }

/* 햄버거 → X (열림 시) */
body.nav-open .nav-toggle-lines span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle-lines span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-lines span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 히어로 ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(28px, 6vw, 70px)); padding-bottom: clamp(40px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.hero-copy .sub { color: var(--apricot-deep); font-weight: 600; letter-spacing: 0.02em; margin-bottom: 12px; }
.hero-title { font-size: clamp(3rem, 11vw, 6.4rem); line-height: 1; }
.hero-body { margin-top: clamp(22px, 3vw, 30px); max-width: 34ch; color: var(--ink-soft); font-size: clamp(1rem, 1.4vw, 1.12rem); }
.hero-actions { margin-top: clamp(26px, 3.5vw, 36px); display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; }
.hero-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute; z-index: 2; bottom: 18px; left: 18px;
  background: rgba(253,252,250,0.92); backdrop-filter: blur(6px);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-sm);
  font-size: 0.86rem; line-height: 1.4;
}
.hero-badge strong { color: var(--green); display: block; font-size: 0.98rem; }

/* ---------- 이미지 자리표시자 ---------- */
.img-ph {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 10%, var(--apricot-tint), transparent 60%),
    linear-gradient(150deg, var(--green-tint), var(--cream));
  display: grid; place-items: center; color: var(--green-deep);
  isolation: isolate;
}
.img-ph::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: radial-gradient(circle at 1px 1px, rgba(14,107,98,0.14) 1px, transparent 0);
  background-size: 22px 22px;
}
.img-ph span {
  font-family: var(--font-display); font-size: 0.92rem; letter-spacing: 0.02em;
  padding: 8px 14px; border: 1px dashed var(--line-strong); border-radius: 999px;
  background: rgba(253,252,250,0.6);
}
.img-ph.is-full { width: 100%; height: 100%; }

/* ---------- 인포 / 리스트 카드 ---------- */
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-sm);
}
.section--green .info-card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); color: #fff; }

.feature-row { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: 0; }
.feature-row .fr-num { font-family: var(--font-display); font-size: 1.5rem; color: var(--apricot-deep); line-height: 1; flex: none; width: 42px; }
.feature-row h3 { font-size: 1.12rem; font-weight: 700; }
.feature-row p { color: var(--muted); margin-top: 4px; font-size: 0.96rem; }

/* 정보 정의 리스트(운영시간·위치) */
.def-list { display: grid; gap: 2px; }
.def-row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.def-row dt { font-weight: 700; color: var(--green); }
.def-row dd { color: var(--ink-soft); }
.note-box {
  margin-top: 18px; padding: 16px 18px; border-radius: 14px;
  background: var(--apricot-tint); border: 1px solid rgba(177,125,16,0.3);
  font-size: 0.92rem; color: var(--ink-soft); line-height: 1.65;
}
.note-box.is-green { background: var(--green-tint); border-color: var(--line-strong); }

/* ---------- 컬렉션 카드 ---------- */
.collection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.5vw, 26px); }
.collection-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.collection-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.collection-card .cc-media { aspect-ratio: 4 / 3; }
.collection-card .cc-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.collection-card .cc-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--green); line-height: 1; }
.collection-card .cc-title { font-weight: 700; font-size: 1.05rem; }
.collection-card .cc-en { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.06em; }
.collection-card .cc-link { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; color: var(--apricot-deep); font-weight: 600; font-size: 0.9rem; }
.collection-card:hover .cc-link svg { transform: translateX(4px); }
.collection-card .cc-link svg { transition: transform 0.3s var(--ease); }
.wide-banner {
  margin-top: clamp(16px, 2.5vw, 26px);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: clamp(24px, 3.5vw, 38px);
  background: linear-gradient(150deg, var(--green-deep), var(--green));
  color: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.wide-banner .wb-body { flex: 1 1 260px; }
.wide-banner .wb-body h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.wide-banner .wb-body p { color: rgba(255,255,255,0.82); margin-top: 6px; }

/* ---------- 예약 스텝 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; box-shadow: var(--shadow-sm);
}
.step .step-num {
  display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px;
  border-radius: 50%; background: var(--green-tint); color: var(--green);
  font-family: var(--font-display); font-size: 1.3rem;
}
.step h3 { font-size: 1.02rem; font-weight: 700; }
.step p { color: var(--muted); font-size: 0.86rem; margin-top: 4px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 48px; right: -9px; z-index: 1;
  width: 16px; height: 16px; border-top: 2px solid var(--apricot-deep); border-right: 2px solid var(--apricot-deep);
  transform: rotate(45deg);
}

/* ---------- 멤버십 테이블 (SEO — 실제 <table>) ---------- */
.mtable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.mtable { width: 100%; border-collapse: collapse; min-width: 520px; background: #fff; }
.mtable caption { text-align: left; padding: 0 0 14px; color: var(--muted); font-size: 0.9rem; }
.mtable th, .mtable td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.mtable thead th { background: var(--green); color: #fff; font-size: 1.05rem; font-family: var(--font-display); border-bottom: none; padding-top: 26px; vertical-align: middle; }
.mtable thead th:first-child { background: var(--green-deep); }
.mtable tbody th[scope="row"] { background: var(--apricot-tint); color: var(--green-deep); font-weight: 700; text-align: left; white-space: nowrap; }
.mtable tbody tr:last-child td, .mtable tbody tr:last-child th { border-bottom: none; }
.mtable .price { font-family: var(--font-display); font-size: 1.3rem; color: var(--green); }
.mtable .tier-benefit { background: var(--green-tint); font-weight: 600; color: var(--green-deep); }
.mtable .tier-gold { position: relative; }
.mtable .tier-gold::after { content: "추천"; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-family: var(--font-body); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; background: var(--apricot-deep); color: #fff; padding: 2px 8px; border-radius: 999px; line-height: 1.4; }
.vat-tag { display: inline-block; font-size: 0.82rem; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; }

/* ---------- 폼 ---------- */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field > label { font-weight: 700; font-size: 0.98rem; }
.field .req { color: var(--apricot-deep); margin-left: 3px; }
.field .opt { color: var(--muted); font-weight: 500; font-size: 0.82rem; margin-left: 6px; }
.field .hint { color: var(--muted); font-size: 0.84rem; line-height: 1.5; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; padding: 0.85em 1em; background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: #a9b3ae; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
.field textarea { min-height: 100px; resize: vertical; }

/* 버튼형 라디오 (예/아니오) */
.btn-choice { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-choice label {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 96px; padding: 0.7em 1.3em; border-radius: 12px;
  border: 1.5px solid var(--line-strong); background: #fff; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.btn-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.btn-choice label:hover { border-color: var(--green); }
.btn-choice input:checked + span,
.btn-choice label:has(input:checked) { }
.btn-choice label:has(input:checked) { background: var(--green); border-color: var(--green); color: #fff; }
.btn-choice input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 4px; }

/* 체크박스 칩 목록 (교육 과정) */
.chip-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.chip {
  position: relative; display: flex; align-items: flex-start; gap: 10px;
  padding: 0.85em 1em; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; cursor: pointer; transition: all 0.2s; font-size: 0.95rem; line-height: 1.4;
}
.chip input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--green); flex: none; cursor: pointer; }
.chip:hover { border-color: var(--green); background: var(--green-tint); }
.chip:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.chip.chip-etc { grid-column: 1 / -1; flex-direction: column; }
.chip-etc input[type="text"] { margin-top: 8px; width: 100%; padding: 0.7em 0.9em; border: 1.5px solid var(--line-strong); border-radius: 10px; }

/* 안내(첨부) 박스 */
.attach-note {
  padding: 18px 20px; border-radius: 14px;
  background: var(--green-tint); border: 1px dashed var(--line-strong);
  font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft);
}
.attach-note strong { color: var(--green-deep); }

/* 개인정보 동의 박스 */
.consent {
  padding: 20px 22px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line);
  font-size: 0.88rem; line-height: 1.7; color: var(--ink-soft);
}
.consent h4 { font-size: 0.98rem; color: var(--ink); margin-bottom: 8px; }
.consent dl { display: grid; gap: 4px; margin: 10px 0; }
.consent .c-agree { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); cursor: pointer; }
.consent .c-agree input { width: 20px; height: 20px; accent-color: var(--green); }

.form-submit[disabled] { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.3); }
.form-status { font-size: 0.9rem; }

/* 제출 완료 화면 */
.form-done { display: none; text-align: center; padding: clamp(30px, 5vw, 54px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.form-done.is-visible { display: block; animation: navIn 0.5s var(--ease) forwards; }
.form-done .done-check { width: 66px; height: 66px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--green-tint); color: var(--green); }
.form-done .done-check svg { width: 32px; height: 32px; }
.form-done h3 { font-family: var(--font-display); font-size: 1.6rem; }
.form-done p { color: var(--ink-soft); margin-top: 10px; }
.form-done .done-kakao { margin-top: 22px; }

/* ---------- 지도 ---------- */
.map-frame { width: 100%; height: clamp(280px, 42vw, 400px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--green-tint); }
.map-frame > div { width: 100%; height: 100%; }
.dir-actions { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* 네이버 플레이스 유입 밴드 */
.place-band { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.place-band a {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  font-size: 0.86rem; font-weight: 600; text-align: center; transition: all 0.25s;
}
.place-band a:hover { border-color: var(--naver); background: rgba(3,199,90,0.06); transform: translateY(-2px); }
.place-band svg { width: 22px; height: 22px; color: var(--naver); }

/* ---------- 모바일 플로팅 버튼 ---------- */
.floating { position: fixed; right: 16px; bottom: 16px; z-index: 55; display: flex; flex-direction: column; gap: 12px; }
.fab {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: #fff; color: var(--green); box-shadow: var(--shadow);
  border: 1px solid var(--line); transition: transform 0.3s var(--ease);
}
.fab:hover { transform: scale(1.06); }
.fab svg { width: 24px; height: 24px; }
/* 예약 버튼도 나머지와 동일 크기(54px) — 강조는 크기가 아니라 색(네이버 그린)+최상단 위치로. */
.fab-book { background: var(--naver); color: #fff; font-weight: 800; font-size: 0.82rem; border-color: transparent; }
.fab-kakao { background: var(--kakao); color: var(--kakao-ink); border-color: transparent; }
@media (min-width: 900px) { .floating { display: none; } }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,0.82); padding-block: clamp(48px, 7vw, 76px); }
.footer-top { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,0.16); }
.footer-legal { display: flex; gap: 18px; font-size: 0.9rem; }
.footer-legal button:hover, .footer-legal a:hover { color: #fff; text-decoration: underline; }
.footer-sns { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-sns a {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22); font-size: 0.82rem; transition: all 0.25s;
}
.footer-sns a:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.4); }
.footer-sns svg { width: 16px; height: 16px; }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.14em; color: #fff; margin: 30px 0 16px; }
.footer-biz { font-size: 0.86rem; line-height: 1.9; color: rgba(255,255,255,0.7); }
.footer-biz .copy { margin-top: 14px; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ---------- 모달 (약관) ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 20px; background: rgba(8,45,41,0.5); backdrop-filter: blur(4px); }
.modal.is-open { display: grid; }
.modal-box { width: 100%; max-width: 640px; max-height: 80vh; overflow-y: auto; background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.modal-box h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 14px; }
.modal-box p, .modal-box li { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.8; }
.modal-close { position: absolute; top: 16px; right: 20px; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); }

/* ---------- 페이지 히어로 (서브페이지 공통) ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 84px)); padding-bottom: clamp(30px, 5vw, 56px); background: linear-gradient(180deg, var(--white), var(--paper)); }
.page-hero .h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-top: 12px; }
.page-hero p { margin-top: 16px; max-width: 52ch; }
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 4px; }
.breadcrumb a:hover { color: var(--green); }

/* ---------- 스크롤 리빌 ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); will-change: opacity, transform; }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.32s; }

/* ---------- 반응형 ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; margin-inline: auto; width: 100%; }
  .hero-frame { aspect-ratio: 16 / 12; }
  .hero-body { max-width: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .collection-grid { grid-template-columns: 1fr; }
  .def-row { grid-template-columns: 92px 1fr; }
  .dir-actions { grid-template-columns: 1fr; }
  .card-btn { padding: 18px; gap: 14px; }
  .card-btn .cb-icon { width: 46px; height: 46px; }
}
@media (max-width: 420px) {
  :root { --header-h: 60px; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .header-right .header-book { padding: 0.55em 0.85em; font-size: 0.8rem; }
  .brand { letter-spacing: 0.08em; }
}

/* ---------- 모션 최소화 존중 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  body.nav-open .nav-link, body.nav-open .nav-group-toggle, body.nav-open .nav-cta { opacity: 1; transform: none; }
}
