/* ==========================================================
   오팔식당 리뉴얼 1차 시안 — 다크 프리미엄 테마
   모바일 퍼스트 (기본 모바일 → 768 태블릿 → 1024 데스크탑)
   ========================================================== */
:root {
  --font-heading: 'Hahmlet', 'Pretendard Variable', Pretendard, serif;
  --bg: #141110;
  --bg2: #1b1715;
  --panel: #221d1a;
  --line: #362e29;
  --red: #C8102E;
  --red-hi: #E63946;
  --cream: #F7F1E6;
  --gold: #D9A441;
  --text: #EDE7DD;
  --muted: #A79E92;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  --radius: 14px;
  --header-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); overflow-x: clip; }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip; /* 마퀴 풀블리드(calc(50%-50vw)) 스크롤바 오차로 인한 가로 흔들림 차단. clip=sticky 헤더 안 깨짐 */
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── 공통 버튼 ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 16px; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(200, 16, 46, .35); }
.btn-red:hover { background: var(--red-hi); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .55); color: #fff; backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-dark { background: #2a2420; color: #fff; border: 1px solid var(--line); }
.btn-full { width: 100%; }

/* ── 헤더 ─────────────────────────────── */
#header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .3s, box-shadow .3s;
}
#header.active { background: rgba(15, 12, 11, .92); backdrop-filter: blur(12px); box-shadow: 0 2px 20px rgba(0, 0, 0, .4); }
.hd-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.hd-logo img { height: 34px; width: auto; }
.hd-nav { display: none; gap: 6px; }
.hd-nav a { padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--text); transition: color .2s, background .2s; }
.hd-nav a:hover, .hd-nav a.active { color: #fff; background: rgba(200, 16, 46, .25); }
.hd-tel { display: none; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; color: var(--gold); }
.hd-tel svg { width: 18px; height: 18px; }
.hd-burger { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
.hd-burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.hd-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hd-burger.open span:nth-child(2) { opacity: 0; }
.hd-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mob-menu {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
  background: rgba(15, 12, 11, .97); backdrop-filter: blur(12px);
  transform: translateY(-110%); transition: transform .35s ease;
  border-bottom: 1px solid var(--line);
}
.mob-menu.open { transform: translateY(0); }
.mob-menu nav { display: flex; flex-direction: column; padding: 12px 20px 24px; }
.mob-menu a { padding: 14px 8px; font-size: 17px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.mob-menu .mob-tel { color: var(--gold); font-weight: 800; border: 0; }

/* ── 히어로 ────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -4%;
  background-size: cover; background-position: center;
  /* Ken Burns — 천천히 줌인/아웃 무한 왕복 (km-167 기법) */
  animation: kenburns 9s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } }
.hero-shade {
  position: absolute; inset: 0;
  /* 트리플 스톱 그라디언트 + 레드 radial 글로우 — 영화 포스터 깊이감 */
  background:
    linear-gradient(180deg, rgba(10, 8, 7, .55) 0%, rgba(10, 8, 7, .42) 50%, rgba(20, 17, 16, .97) 100%),
    radial-gradient(ellipse at 30% 40%, rgba(200, 16, 46, .30) 0%, transparent 55%);
}
.hero-inner { position: relative; padding-top: calc(var(--header-h) + 40px); padding-bottom: 40px; }
.hero-eyebrow {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(217, 164, 65, .5); color: var(--gold);
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  background: rgba(20, 17, 16, .45); backdrop-filter: blur(4px);
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(38px, 9vw, 72px); line-height: 1.18; font-weight: 800; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.hero h1 b { color: var(--red-hi); }
.hero-sub { margin-top: 18px; font-size: clamp(16px, 4vw, 21px); color: rgba(255, 255, 255, .85); font-weight: 500; }
/* 강조박스 — 골드 underline 좌→우 draw + 글로우 펄스 */
.hero-punch {
  position: relative; display: inline-flex; flex-direction: column; gap: 2px;
  width: fit-content; margin-top: 22px; padding: 12px 20px 14px;
  border-radius: 16px; background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  backdrop-filter: blur(4px); overflow: hidden;
  animation: punchGlow 2.4s ease-in-out 1.6s infinite;
}
.hero-punch::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--gold), rgba(217, 164, 65, .6), transparent);
  transform: scaleX(0); transform-origin: left;
  animation: underlineDraw 1s ease-out 1.1s forwards;
}
@keyframes underlineDraw { to { transform: scaleX(1); } }
@keyframes punchGlow {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 0 rgba(217, 164, 65, 0); }
  50% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 24px 4px rgba(217, 164, 65, .35); }
}
@media (prefers-reduced-motion: reduce) { .hero-punch, .hero-punch::after { animation: none; } .hero-punch::after { transform: scaleX(1); } }
.hp-main { font-family: var(--font-heading); font-size: clamp(20px, 5.2vw, 30px); font-weight: 800; color: var(--gold); }
.hp-sub { font-size: clamp(13px, 3.4vw, 16px); color: rgba(255, 255, 255, .75); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stats { position: relative; margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .12); background: rgba(15, 12, 11, .55); backdrop-filter: blur(8px); }
.hero-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 18px 8px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .08); }
.stat:nth-child(2n) { border-right: 0; }
.stat em { display: block; font-style: normal; font-size: clamp(24px, 6vw, 40px); font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.stat em i { font-style: normal; font-size: .55em; margin: 0 2px; }
.stat span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.scroll-down {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 999px;
  display: none;
}
.scroll-down span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ── 섹션 공통 ─────────────────────────── */
.sec { padding: 88px 0; }
.sec-title { text-align: center; margin-bottom: 48px; }
.sec-title .eyebrow { color: var(--red-hi); font-weight: 800; font-size: 13px; letter-spacing: .18em; margin-bottom: 12px; }
.sec-title h2 { font-size: clamp(26px, 6vw, 44px); line-height: 1.3; font-weight: 800; color: #fff; }
.sec-title h2 b { color: var(--red-hi); }
.sec-title .sub { margin-top: 14px; color: var(--muted); font-size: clamp(14px, 3.6vw, 17px); }
.sec-title .sub b { color: var(--text); }

/* reveal 애니메이션 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }
.reveal.d5 { transition-delay: .5s; }

/* ── Hahmlet 세리프 헤딩 페어링 (H1·H2급 — 본문은 Pretendard 유지) ── */
.hero h1, .sec-title h2, .story-copy h2, .lunch-copy h2,
.worry-copy h3, .profit h3, .cost h3, .menu-head {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* ── page1 고민 ────────────────────────── */
.sec-worry { background: var(--bg2); }
.worry-wrap { display: grid; gap: 32px; align-items: center; }
.worry-copy h3 { font-size: clamp(22px, 5vw, 32px); line-height: 1.35; font-weight: 800; color: #fff; margin-bottom: 24px; }
.worry-copy h3 b { color: var(--red-hi); }
.worry-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 16px; margin-bottom: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  font-weight: 600; font-size: 15.5px;
}
.worry-list li::before {
  content: "?"; flex: 0 0 24px; height: 24px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; border-radius: 50%; font-weight: 800; font-size: 14px;
}
.worry-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.worry-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.worry-img figcaption { padding: 12px 16px; background: var(--panel); color: var(--muted); font-size: 13.5px; text-align: center; }

/* ── page2 경쟁력 ──────────────────────── */
.power-grid { display: grid; gap: 20px; }
.power-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .3s, border-color .3s;
}
.power-card:hover { transform: translateY(-6px); border-color: rgba(200, 16, 46, .5); }
.power-img { aspect-ratio: 16 / 10; overflow: hidden; }
.power-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.power-card:hover .power-img img { transform: scale(1.05); }
.power-body { padding: 22px 22px 26px; }
.power-body .num { color: var(--red-hi); font-weight: 800; font-size: 14px; letter-spacing: .1em; }
.power-body h3 { font-size: 21px; font-weight: 800; color: #fff; margin: 6px 0 10px; }
.power-body p { color: var(--muted); font-size: 14.5px; }

/* ── page3 스토리/수익 ─────────────────── */
.sec-story { background: var(--bg2); }
.story-grid { display: grid; gap: 32px; align-items: center; margin-bottom: 72px; }
.story-copy .eyebrow { color: var(--gold); font-weight: 800; letter-spacing: .16em; font-size: 13px; margin-bottom: 12px; }
.story-copy h2 { font-size: clamp(26px, 6vw, 40px); font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 20px; }
.story-copy p { color: var(--muted); margin-bottom: 14px; font-size: 15.5px; }
.story-copy p b { color: var(--gold); }
.story-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.story-img img { width: 100%; object-fit: cover; }

.profit { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 36px 24px; }
.profit h3 { text-align: center; font-size: clamp(20px, 4.6vw, 28px); font-weight: 800; color: #fff; line-height: 1.4; margin-bottom: 36px; }
.profit h3 b { color: var(--red-hi); }
.profit-grid { display: grid; gap: 36px; align-items: center; justify-items: center; }

/* ── 리더선 도넛 (클라 5차 — 레퍼런스 34224 스타일) ── */
.donut-figure { margin: 0; width: 100%; max-width: 440px; }
.donut-svg { width: 100%; height: auto; overflow: visible; }
/* 링 세그먼트 stroke-dasharray 드로우 (C = 2π×42 ≈ 263.894, JS가 그림) */
.donut-svg .seg {
  fill: none; stroke-width: 14;
  stroke-dasharray: 0 263.894;
  transition: stroke-dasharray 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.donut-svg .s-food  { stroke: #B3892B; }
.donut-svg .s-labor { stroke: #7A6A55; transition-delay: .1s; }
.donut-svg .s-rent  { stroke: #55483A; transition-delay: .18s; }
.donut-svg .s-util  { stroke: #3a322a; transition-delay: .24s; }
.donut-svg .s-etc   { stroke: #2c261f; transition-delay: .3s; }
.donut-svg .s-profit{ stroke: #C8102E; transition-delay: .4s; }
/* 리더선 + 라벨 */
.donut-svg .ldr { fill: none; stroke: var(--muted); stroke-width: .8; stroke-dasharray: 2 2; }
.donut-svg .ldr-hl { stroke: var(--red-hi); stroke-width: 1.1; stroke-dasharray: none; }
.donut-svg .ldr-dot.s-food { fill: #B3892B; }
.donut-svg .ldr-dot.s-labor { fill: #8a795f; }
.donut-svg .ldr-dot.s-rent { fill: #6b5c48; }
.donut-svg .ldr-dot.s-util { fill: #4a4136; }
.donut-svg .ldr-dot.s-etc { fill: #3a322a; }
.donut-svg .ldr-dot.s-profit { fill: #C8102E; }
.donut-svg .dlabel { font-family: var(--font-pretendard, inherit); font-size: 11px; }
.donut-svg .dl-name { fill: var(--text); font-weight: 700; }
.donut-svg .dl-pct  { fill: var(--muted); font-weight: 800; }
/* 매출총이익 강조박스 */
.donut-svg .hl-box { fill: #C8102E; }
.donut-svg .hl-title { fill: #fff; font-size: 11px; font-weight: 800; }
.donut-svg .hl-amt { fill: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: -0.02em; }
/* 중앙 텍스트 */
.donut-svg .donut-c-pct { font-size: 30px; font-weight: 800; fill: var(--red-hi); }
.donut-svg .donut-c-pct .pctsign { font-size: 16px; }
.donut-svg .donut-c-lbl { font-size: 11px; font-weight: 700; fill: var(--muted); }
.donut-figure.drawn .donut-c-pct { animation: pctPulse 1.8s ease-in-out .8s infinite; }
@keyframes pctPulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .donut-figure.drawn .donut-c-pct { animation: none; } }

.profit-table { width: 100%; overflow-x: auto; }
.profit-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.profit-table caption { caption-side: top; text-align: left; color: var(--muted); font-size: 13px; padding-bottom: 10px; }
.profit-table th, .profit-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.profit-table th { font-weight: 700; color: var(--text); white-space: nowrap; }
.profit-table td { color: var(--muted); font-variant-numeric: tabular-nums; }
.profit-table tr.hl th, .profit-table tr.hl td { color: var(--gold); font-weight: 800; border-bottom: 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.c1 { background: #B3892B; } .c2 { background: #7A6A55; } .c3 { background: #55483A; }
.c4 { background: #3a322a; } .c5 { background: #2c261f; } .c6 { background: #C8102E; }

/* ── page5 인테리어 ────────────────────── */
.interior-steps { display: grid; gap: 14px; max-width: 760px; margin: 0 auto 88px; }
.interior-steps li {
  display: flex; align-items: center; gap: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; font-size: 16px; font-weight: 600;
}
.interior-steps li b { color: var(--gold); }
.interior-steps li span {
  flex: 0 0 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; font-weight: 800; font-size: 17px;
}
.thief-grid { display: grid; gap: 24px; }
.thief-grid figure { border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.thief-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thief-grid figcaption { padding: 18px; text-align: center; font-weight: 700; font-size: 15.5px; color: var(--text); }

/* ── page6 점심 ────────────────────────── */
.sec-lunch { background: var(--bg2); }
.lunch-grid { display: grid; gap: 32px; align-items: center; }
.lunch-copy .eyebrow { color: var(--gold); font-weight: 800; letter-spacing: .16em; font-size: 13px; margin-bottom: 12px; }
.lunch-copy h2 { font-size: clamp(26px, 6vw, 40px); font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 20px; }
.lunch-copy h2 b { color: var(--red-hi); }
.lunch-copy p { color: var(--muted); margin-bottom: 14px; font-size: 15.5px; }
.lunch-copy p span { font-size: 14px; color: #8d857a; }
.lunch-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.lunch-img img { width: 100%; object-fit: cover; }

/* ── page7 메뉴 ────────────────────────── */
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.tab-btn {
  padding: 12px 24px; border-radius: 999px; font-size: 15.5px; font-weight: 700;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  transition: all .25s;
}
.tab-btn.active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(200, 16, 46, .35); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.menu-head { text-align: center; font-size: clamp(19px, 4.6vw, 26px); font-weight: 700; color: var(--text); margin-bottom: 28px; }
.menu-head b { color: var(--red-hi); }

.menu-masonry { columns: 1; column-gap: 18px; }
.menu-masonry figure {
  break-inside: avoid; margin-bottom: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.menu-masonry img { width: 100%; }
.menu-masonry figcaption { padding: 14px 16px; font-weight: 700; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.menu-masonry .new, .menu-masonry .badge {
  font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
}
.menu-masonry .new { background: var(--red); color: #fff; }
.menu-masonry .badge { background: rgba(217, 164, 65, .18); color: var(--gold); border: 1px solid rgba(217, 164, 65, .5); }
.menu-masonry.one-row { max-width: 640px; margin: 24px auto 0; }

/* ── 마퀴 캐러셀 (continuous, 3x clone + delta-time) ── */
.marquee {
  display: flex; gap: 14px; overflow-x: scroll;
  cursor: grab; user-select: none; -webkit-user-select: none;
  scrollbar-width: none; -ms-overflow-style: none;
  margin-inline: calc(50% - 50vw); /* 풀블리드 */
  padding: 4px 20px 8px;
}
.marquee::-webkit-scrollbar { display: none; }
.marquee img { pointer-events: none; }
.m-card {
  flex: none; position: relative; height: 300px; margin: 0;
  border-radius: var(--radius); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.m-card img { height: 100%; width: auto; display: block; }
.menu-marquee .m-card { cursor: pointer; }
.dinner-marquee .m-card { cursor: grab; } /* 저녁반주 탭은 라이트박스 없이 드래그만 → grab */
.menu-marquee figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px; font-weight: 700; font-size: 14.5px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .88));
  display: flex; align-items: center; gap: 8px;
}
.m-card .new, .m-card .badge { font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.m-card .new { background: var(--red); color: #fff; }
.m-card .badge { background: rgba(217, 164, 65, .25); color: var(--gold); border: 1px solid rgba(217, 164, 65, .5); }
.review-card { background: #fff; }
.marquee-hint { margin-top: 14px; text-align: center; color: var(--muted); font-size: 12.5px; }

/* ── 라이트박스 ── */
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .88); backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lb-body { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 92vw; }
.lb-body img { max-width: 92vw; max-height: 78vh; border-radius: 12px; }
.lb-body p { color: #fff; font-weight: 700; font-size: 16px; }
.lb-close {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; line-height: 1;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; line-height: 1;
}
.lb-nav:hover, .lb-close:hover { background: rgba(255, 255, 255, .25); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

.highball-grid { display: grid; gap: 18px; align-items: stretch; }
.hb-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hb-img img { width: 100%; height: 100%; object-fit: cover; }
.hb-list { display: flex; flex-direction: column; justify-content: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.hb-list li { font-size: 17px; font-weight: 700; padding-left: 16px; position: relative; }
.hb-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--gold); }

/* ── 본사 직공급 ──────────────────────── */
.sec-supply { background: var(--bg2); }
.supply-grid { display: grid; gap: 20px; }
.supply-grid figure { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.supply-grid img { width: 100%; }
.supply-grid figcaption { padding: 16px; text-align: center; font-size: 15px; color: var(--muted); }
.supply-grid figcaption b { color: var(--text); }

/* ── page8 리뷰/증거 ───────────────────── */
.cctv-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 12px; }
.cctv-grid figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; }
.cctv-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cctv-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 16px 12px; font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
}
.cctv-note { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 56px; }
.review-masonry { columns: 1; column-gap: 16px; }
.review-masonry img {
  width: 100%; margin-bottom: 16px; break-inside: avoid;
  border-radius: 12px; border: 1px solid #e8e2d8;
  background: #fff;
}

/* ── page10 창업비용 ───────────────────── */
.sec-cost { background: var(--cream); color: #241f1b; }
.sec-cost .sec-title h2 { color: #241f1b; }
.sec-cost .sec-title h2 b { color: var(--red); }
.sec-cost .sec-title .sub { color: #6d6459; }
.floorplan { max-width: 860px; margin: 0 auto 56px; }
.floorplan img { width: 100%; border-radius: var(--radius); }
.floorplan figcaption { text-align: center; color: #6d6459; font-size: 14px; margin-top: 10px; font-weight: 600; }
.cost h3 { font-size: clamp(20px, 4.6vw, 28px); font-weight: 800; margin-bottom: 20px; text-align: center; }
.cost h3 b { color: var(--red); }
.cost h3 span { font-size: .55em; font-weight: 600; color: #6d6459; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; box-shadow: 0 10px 36px rgba(36, 31, 27, .12); }
.cost table { width: 100%; min-width: 720px; border-collapse: collapse; background: #fff; font-size: 14px; }
.cost th, .cost td { padding: 13px 12px; border: 1px solid #e5ded2; text-align: center; vertical-align: middle; }
.cost thead th { background: #241f1b; color: #fff; font-weight: 700; border-color: #3a332c; }
.cost td.tl { text-align: left; color: #4d453c; }
.cost td.free { background: #fdf3f4; }
.cost td.free b { color: var(--red); font-size: 17px; }
.cost td.free s { color: #a39a8d; margin-right: 6px; }
.cost td.free span { font-size: 12px; color: #a39a8d; }
.cost-note { margin-top: 16px; text-align: center; font-weight: 800; color: var(--red); font-size: 15.5px; }

/* ── page11 절차 ───────────────────────── */
.process-steps { display: grid; gap: 14px; grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; counter-reset: step; }
.process-steps li {
  display: flex; align-items: center; gap: 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; font-weight: 700; font-size: 16px;
}
.process-steps li span { color: var(--red-hi); font-size: 14px; font-weight: 800; letter-spacing: .06em; }

/* ── page12 문의 ───────────────────────── */
.sec-contact { position: relative; overflow: hidden; }
.sec-contact video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 12, 11, .93), rgba(15, 12, 11, .88)); }
.contact-inner { position: relative; max-width: 860px; }
.contact-form {
  background: rgba(28, 23, 20, .88); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px 22px; backdrop-filter: blur(8px);
}
.form-row { display: grid; gap: 16px; }
.field { margin-bottom: 16px; }
.field label, .field .label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--text); }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px;
  background: #171310; border: 1px solid var(--line); color: var(--text);
  font-family: inherit; font-size: 15px; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red-hi); }
.field input::placeholder, .field textarea::placeholder { color: #6d655a; }
.radio-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-wrap label { cursor: pointer; }
.radio-wrap input { position: absolute; opacity: 0; pointer-events: none; }
.radio-wrap span {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  background: #171310; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted);
  transition: all .2s;
}
.radio-wrap input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.privacy { display: flex; align-items: center; gap: 10px; margin: 4px 0 20px; font-size: 14px; color: var(--muted); cursor: pointer; }
.privacy input { width: 17px; height: 17px; accent-color: var(--red); }
.privacy a { color: var(--gold); text-decoration: underline; }
.contact-tel { display: block; text-align: center; margin-top: 24px; font-size: 17px; color: var(--muted); }
.contact-tel b { color: var(--gold); font-size: 1.25em; margin-left: 6px; }

/* ── 팝업 ─────────────────────────────── */
.popup { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .7); padding: 20px; }
.popup[hidden] { display: none; }
.popup-inner { position: relative; max-width: 560px; max-height: 80vh; overflow-y: auto; background: #fff; color: #241f1b; border-radius: 16px; padding: 32px 26px; }
.popup-inner h3 { margin-bottom: 16px; font-size: 20px; }
.popup-body p { font-size: 13.5px; line-height: 1.7; color: #4d453c; margin-bottom: 12px; }
.popup-close { position: absolute; top: 14px; right: 16px; font-size: 26px; line-height: 1; color: #4d453c; }

/* ── 푸터 ─────────────────────────────── */
#ft { background: #0e0b0a; padding: 44px 0 110px; border-top: 1px solid var(--line); }
.ft-info { display: flex; flex-wrap: wrap; gap: 4px 0; flex-direction: column; margin-bottom: 14px; }
.ft-info p { color: #7d766c; font-size: 13.5px; }
.ft-tel { color: var(--text); font-weight: 700; margin-bottom: 14px; }
.ft-tel a { color: var(--gold); }
.copyright { color: #57524b; font-size: 12.5px; }

/* ── 플로팅 CTA ────────────────────────── */
.float-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(14, 11, 10, .92); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.float-cta .btn { padding: 13px 10px; font-size: 15px; border-radius: 12px; }

/* ══════════ 태블릿 (768+) ══════════ */
@media (min-width: 768px) {
  .hero-stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat:nth-child(2n) { border-right: 1px solid rgba(255, 255, 255, .08); }
  .stat:last-child { border-right: 0; }
  .worry-wrap { grid-template-columns: 1.15fr 1fr; }
  .power-grid { grid-template-columns: repeat(3, 1fr); }
  .story-grid { grid-template-columns: 1.1fr 1fr; }
  .profit-grid { grid-template-columns: 1.35fr 1fr; }
  .profit-grid .donut-figure { max-width: 560px; }
  .profit { padding: 44px 40px; }
  .thief-grid { grid-template-columns: 1fr 1fr; }
  .lunch-grid { grid-template-columns: 1fr 1.1fr; }
  .menu-masonry { columns: 2; }
  .m-card { height: 360px; }
  .marquee { gap: 18px; }
  .cctv-grid { grid-template-columns: 1fr 1fr; }
  .supply-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .highball-grid { grid-template-columns: 1fr auto 1fr; }
  .hb-list { padding: 26px 40px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .process-steps li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; }
}

/* ══════════ 데스크탑 (1024+) ══════════ */
@media (min-width: 1024px) {
  :root { --header-h: 72px; }
  .hd-nav { display: flex; }
  .hd-tel { display: inline-flex; }
  .hd-burger { display: none; }
  .mob-menu { display: none; }
  .float-cta { display: none; }
  #ft { padding-bottom: 44px; }
  .sec { padding: 120px 0; }
  .scroll-down { display: block; }
  .menu-masonry { columns: 3; }
  .m-card { height: 420px; }
  .ft-info { flex-direction: row; gap: 6px 28px; }
  .contact-form { padding: 40px 44px; }
}
