/* 초크자국 클라이밍 — 동네 볼더링 짐 디자인 샘플 (디코랩)
   구성: 페이지 전체가 한 장의 벽 토포. 섹션 = 벽 위 문제 상자, 상자 사이를 등반 경로(점선 + 홀드)가 잇는다. */

:root {
  --color-plywood: #E3DFD7;      /* 벽 합판 — 배경 */
  --color-plywood-deep: #CEC8BD; /* 판 이음·그늘 */
  --color-bolt: #1E1C21;         /* 볼트 먹 — 글자·토포 선 */
  --color-bolt-soft: #4D4952;    /* 보조 글자 */
  --color-topo: #FBFAF6;         /* 토포 종이 — 상자 */
  --color-hold: #C8155A;         /* 홀드 자홍 — 내 루트·주 버튼 */
  --color-hold-deep: #9A0E44;
  --color-mat: #2F3B48;          /* 낙하 매트 */
  --v0: #F3C623; --v1: #2E8B57; --v2: #2A63B8; --v3: #E5741F; --v4: #6B3FA0; --v5: #2A2A2E;
  --kakao: #FEE500;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-tape: "Black Han Sans", var(--font);
  --fs-h1: clamp(2.15rem, 1.35rem + 3.3vw, 3.9rem);
  --fs-h2: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem);
  --fs-h3: 1.12rem;
  --fs-small: .875rem;
  --radius: 3px;
  --header-h: 56px;
  --line-x: 13px; /* 모바일 세로 경로 위치 */
  --tear: polygon(0 8%, 4% 0, 96% 6%, 100% 0, 98% 50%, 100% 100%, 95% 92%, 4% 100%, 0 94%, 2% 50%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-bolt);
  background-color: var(--color-plywood);
  /* T너트 구멍 격자 + 합판 결(노이즈) + 판 이음 */
  background-image:
    radial-gradient(circle, rgba(30, 28, 33, .34) 0 1.6px, transparent 2.2px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .11 0 0 0 0 .13 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(90deg, transparent calc(100% - 2px), rgba(30, 28, 33, .12) 0);
  background-size: 44px 44px, 240px 240px, 488px 100%;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: clip;
}
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
h1, h2 { font-family: var(--font-tape); font-weight: 400; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.small { font-size: var(--fs-small); color: var(--color-bolt-soft); }
.ph { display: inline-block; padding: 0 .35em; border: 1.5px dashed currentColor; border-radius: 2px; font-size: .92em; line-height: 1.5; color: var(--color-bolt-soft); }
:focus-visible { outline: 3px solid var(--color-hold); outline-offset: 2px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 8px 14px; background: var(--color-bolt); color: #fff; }
.skip-link:focus { top: 12px; }

/* ---------- 샘플 안내 띠 ---------- */
.sample-banner { background: var(--color-bolt); color: #EDEAE4; font-size: .85rem; line-height: 1.55; }
.sample-banner__inner { max-width: 1440px; margin: 0 auto; padding: 9px 20px; display: flex; gap: 10px; align-items: flex-start; }
.sample-banner__tag { flex: none; padding: 1px 8px; background: var(--v0); color: var(--color-bolt); font-weight: 700; font-size: .78rem; border-radius: 2px; margin-top: 1px; }
.sample-banner a { color: #fff; font-weight: 700; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: .6em 1.2em; border: 2px solid var(--color-bolt); border-radius: var(--radius);
  font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.3;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(2px); }
.btn--hold { background: var(--color-hold); color: #fff; box-shadow: 0 4px 0 var(--color-bolt); }
.btn--hold:hover { background: var(--color-hold-deep); }
.btn--line { background: var(--color-topo); color: var(--color-bolt); }
.btn--line:hover { background: #fff; }
.btn--kakao { background: var(--kakao); color: #191600; }

/* ---------- 비닐 테이프 (루트 번호·그레이드) ---------- */
.tape {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .42em 1.15em .36em .95em;
  background: var(--tape); color: var(--tape-ink);
  font-family: var(--font-tape); font-size: 1rem; line-height: 1;
  clip-path: var(--tear);
  transform: rotate(-2deg);
}
.tape__no { font-size: 1.35em; }
.tape__grade { padding: .18em .4em; background: rgba(0, 0, 0, .16); }
.tape__color { font-family: var(--font); font-weight: 700; font-size: .78em; }

/* ---------- 헤더 (1100 미만) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 70;
  height: var(--header-h);
  display: flex; align-items: center; gap: 8px; padding: 0 12px 0 16px;
  background: var(--color-topo); border-bottom: 2px solid var(--color-bolt);
}
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo__mark use { stroke: var(--color-bolt); stroke-width: 1.6; }
.logo__name { font-family: var(--font-tape); font-size: 1.3rem; line-height: 1; }
.logo__name small { display: block; font-family: var(--font); font-weight: 700; font-size: .7rem; letter-spacing: .02em; margin-top: 4px; color: var(--color-bolt-soft); }
.site-header .logo { margin-right: auto; }
.menu-btn, .hdr-call {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border: 2px solid var(--color-bolt); border-radius: var(--radius); background: var(--color-topo);
  font-weight: 700; font-size: .9rem; text-decoration: none; cursor: pointer;
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -5px; } .menu-btn__bars::after { top: 5px; }
.hdr-call { background: var(--color-bolt); color: #fff; }
.hdr-call svg { width: 18px; height: 18px; }

/* ---------- 레이아웃 ---------- */
.layout { max-width: 1440px; margin: 0 auto; padding: 0 16px; }

/* 루트 목록표 */
.legend { position: relative; background: var(--color-topo); border: 2px solid var(--color-bolt); border-radius: var(--radius); padding: 22px 18px 20px; margin: 18px 0 0; }
.legend__pin { position: absolute; top: -11px; width: 58px; height: 20px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(30, 28, 33, .12); clip-path: var(--tear); }
.legend__pin--l { left: 14px; transform: rotate(-6deg); }
.legend__pin--r { right: 14px; transform: rotate(5deg); }
.legend__logo { display: none; }
.legend__close { display: none; }
.legend__title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 800; font-size: .95rem; padding-bottom: 8px; border-bottom: 2px solid var(--color-bolt); }
.legend__count { font-weight: 600; font-size: .8rem; color: var(--color-bolt-soft); font-variant-numeric: tabular-nums; }
.routes { margin: 6px 0 10px; }
.routes a {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px;
  min-height: 46px; padding: 6px 8px 6px 4px; text-decoration: none; border-bottom: 1px dashed rgba(30, 28, 33, .25);
  transition: background-color .2s ease;
}
.routes__tape { display: grid; place-items: center; height: 24px; background: var(--tape); color: var(--tape-ink); font-family: var(--font-tape); font-size: .95rem; clip-path: var(--tear); }
.routes__name { font-weight: 600; line-height: 1.35; }
.routes__grade { font-family: var(--font-tape); font-size: .85rem; color: var(--color-bolt-soft); }
.routes a:hover { background: rgba(30, 28, 33, .06); }
.routes a.is-active { background: var(--color-bolt); color: #fff; }
.routes a.is-active .routes__grade { color: #fff; }
.routes a.is-active .routes__name::after { content: ""; display: inline-block; width: 11px; height: 11px; margin-left: 7px; background: var(--color-hold); border: 1.5px solid #fff; border-radius: 50% 40% 55% 45%; vertical-align: 0; }
.routes li.is-done .routes__grade::after { content: " ✓"; }
.legend__note { font-size: .78rem; line-height: 1.5; color: var(--color-bolt-soft); }
.legend__today { margin-top: 10px; font-size: .88rem; }
.legend__actions { display: grid; gap: 8px; margin-top: 12px; }
.legend__actions .btn { min-height: 44px; font-size: .92rem; }

/* 서랍 (JS 가 있을 때, 1100 미만) */
@media (max-width: 1099.98px) {
  .js .legend {
    position: fixed; inset: 0; z-index: 90; margin: 0; border: 0; border-radius: 0;
    padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .js .legend.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
  .js .legend__pin { display: none; }
  .js .legend__logo { display: inline-flex; margin-bottom: 16px; }
  .js .legend__close {
    display: inline-flex; align-items: center; position: absolute; top: 14px; right: 16px; min-height: 40px; padding: 0 14px;
    border: 2px solid var(--color-bolt); border-radius: var(--radius); background: var(--color-bolt); color: #fff; font-weight: 700; cursor: pointer;
  }
  body.nav-open { overflow: hidden; }
}

/* ---------- 벽과 경로 ---------- */
.wall { position: relative; padding: 4px 0 64px; }
.topo { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.topo__bg use { stroke: rgba(30, 28, 33, .55); stroke-width: 1.2; }
.seg__chalk { fill: none; stroke: #fff; stroke-opacity: .6; stroke-width: 13; stroke-linecap: round; }
.seg__line { fill: none; stroke: var(--color-bolt); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.seg__mask { fill: none; stroke: #fff; stroke-width: 18; stroke-linecap: round; transition: stroke-dashoffset 1.15s cubic-bezier(.45, .05, .35, 1); }
.seg.is-drawn .seg__mask { stroke-dashoffset: 0 !important; }
.hold__in { transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform .38s cubic-bezier(.3, 1.6, .5, 1) var(--d, 0s); }
.hold__in use { fill: var(--color-hold); stroke: var(--color-bolt); stroke-width: 1.6; }
.hold__in circle { fill: var(--color-bolt); }
.seg.is-drawn .hold__in { transform: scale(1); }
.topo.is-instant .seg__mask, .topo.is-instant .hold__in { transition: none; }
/* JS 가 없으면 모바일 세로 경로를 CSS 점선으로 대신 */
html:not(.js) .wall::before { content: ""; position: absolute; left: var(--line-x); top: 0; bottom: 0; border-left: 3px dotted var(--color-bolt); }

.hero, .problem { position: relative; z-index: 1; }

/* ---------- 히어로 ---------- */
.hero { display: grid; gap: 18px; padding: 22px 0 0; }
.hero__copy { position: relative; }
.tape--start { margin-bottom: 14px; }
.hero h1 { font-size: var(--fs-h1); line-height: 1.16; letter-spacing: -.025em; }
.hero__lead { margin-top: 12px; max-width: 30em; font-size: 1.02rem; color: var(--color-bolt-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero__actions .btn { flex: 1 1 auto; }
.hero__meta { margin-top: 12px; font-size: .9rem; }
.hero__start { display: none; }
.hero__art { margin: 0; position: relative; }
.hero__art svg { width: 100%; height: auto; border: 2px solid var(--color-bolt); border-radius: var(--radius); background: var(--color-plywood); }
.hero__art figcaption { margin-top: 6px; font-size: .8rem; color: var(--color-bolt-soft); }
.art-tape { font-family: var(--font-tape); font-size: 11px; fill: #fff; }
.svg-small { font: 700 12px var(--font); fill: var(--color-bolt); }
.svg-small--w { fill: #fff; }

/* ---------- 문제 상자 ---------- */
.problem {
  container-type: inline-size;
  margin: 70px 0 0 30px;
  padding: 36px 18px 24px;
  background: var(--color-topo);
  border: 2px solid var(--color-bolt);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 rgba(30, 28, 33, .14);
  scroll-margin-top: calc(var(--header-h) + 34px);
}
.problem::before { /* 테이프 옆 초크 가루 */
  content: ""; position: absolute; left: -44px; top: -46px; width: 170px; height: 96px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0));
}
.problem > .tape, .problem__head .tape { position: absolute; top: -17px; left: 14px; }
.problem__head { margin-bottom: 18px; }
.problem__head h2 { font-size: var(--fs-h2); }
.beta { margin-top: 8px; color: var(--color-bolt-soft); }
.beta b { display: inline-block; margin-right: 6px; padding: 0 6px; font-size: .78rem; line-height: 1.6; background: var(--color-bolt); color: #fff; border-radius: 2px; vertical-align: 1px; }
.problem h3 { font-size: var(--fs-h3); }
.chalk-hand { position: absolute; width: 64px; height: 86px; right: 10px; top: -70px; opacity: .8; transform: rotate(16deg); pointer-events: none; z-index: -1; }
.chalk-hand--r { right: auto; left: -8px; top: auto; bottom: -78px; transform: rotate(-150deg); }

/* 1 벽 */
.walls { display: grid; gap: 14px; }
.walls li { display: grid; grid-template-columns: 56px 1fr; gap: 4px 12px; align-items: start; }
.walls svg { grid-row: span 2; width: 56px; height: 56px; background: var(--color-plywood); border-radius: var(--radius); }
.walls p { font-size: .95rem; color: var(--color-bolt-soft); }
.grades { margin-top: 22px; padding-top: 16px; border-top: 2px dashed rgba(30, 28, 33, .3); }
.grades > p { margin-top: 4px; font-size: .95rem; color: var(--color-bolt-soft); }
.grades__scale { display: flex; flex-wrap: wrap; gap: 8px 6px; margin-top: 12px; }
.grades__scale li { display: grid; min-width: 64px; padding: 6px 10px 5px; background: var(--tape); color: var(--tape-ink); clip-path: var(--tear); font-weight: 700; font-size: .85rem; line-height: 1.3; }
.grades__scale b { font-family: var(--font-tape); font-weight: 400; font-size: 1.15rem; }
.grades__scale small { font-size: .72rem; font-weight: 600; }
.setting { margin-top: 18px; padding: 10px 12px; border-left: 5px solid var(--v0); background: rgba(243, 198, 35, .14); font-size: .95rem; }
.setting b { margin-right: 6px; }
@container (min-width: 540px) {
  .walls { grid-template-columns: 1fr 1fr; gap: 18px 22px; }
}

/* 2 첫 방문 코스 짜기 */
.planner { display: grid; gap: 22px; }
.planner__form { display: grid; gap: 16px; align-content: start; }
.pick { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pick legend { width: 100%; padding: 0; margin-bottom: 8px; font-weight: 800; }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; gap: 6px;
  border: 2px solid var(--color-bolt); border-radius: 22px; background: #fff; font-weight: 600;
  transition: background-color .15s ease, color .15s ease;
}
.pick span::before { content: ""; width: 10px; height: 10px; border-radius: 50% 40% 55% 45%; border: 2px solid var(--color-bolt); }
.pick input:checked + span { background: var(--color-bolt); color: #fff; }
.pick input:checked + span::before { background: var(--v0); border-color: var(--v0); }
.pick input:focus-visible + span { outline: 3px solid var(--color-hold); outline-offset: 2px; }
.planner__row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: end; }
.stepper__label, .size > span { display: block; font-weight: 800; margin-bottom: 6px; }
.stepper__box { display: inline-flex; align-items: center; border: 2px solid var(--color-bolt); border-radius: var(--radius); background: #fff; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 1.6em; text-align: center; font-family: var(--font-tape); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.stepper__unit { margin-right: 4px; font-size: .9rem; }
.size select { min-height: 48px; min-width: 132px; padding: 0 12px; font-size: 16px; border: 2px solid var(--color-bolt); border-radius: var(--radius); background: #fff; }
.own { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.own input { width: 20px; height: 20px; accent-color: var(--color-bolt); }

.planner__out { display: grid; gap: 18px; }
.ticket { position: relative; padding: 18px 18px 16px; background: #fff; border: 2px solid var(--color-bolt); border-left-width: 10px; border-left-color: var(--v1); }
.ticket::after { content: ""; position: absolute; right: -2px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--color-topo); border: 2px solid var(--color-bolt); border-right-color: transparent; border-bottom-color: transparent; transform: rotate(-135deg); translate: 9px 0; }
.ticket__label { font-size: .82rem; font-weight: 700; color: var(--color-bolt-soft); }
.ticket__name { font-family: var(--font-tape); font-size: 1.65rem; line-height: 1.25; }
.ticket__desc { font-size: .95rem; color: var(--color-bolt-soft); }
.ticket__sum { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed rgba(30, 28, 33, .35); font-size: .92rem; }
.ticket__sum div { display: flex; justify-content: space-between; gap: 10px; }
.ticket__sum dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.ticket__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 8px; border-top: 2px solid var(--color-bolt); }
.ticket__total span { font-weight: 800; }
.ticket__total span::after { content: " (예시)"; font-weight: 500; font-size: .8rem; color: var(--color-bolt-soft); }
.ticket__total b { font-family: var(--font-tape); font-weight: 400; font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.ticket__note { margin-top: 8px; font-size: .86rem; color: var(--color-bolt-soft); }

.day h3, .shoes h3, .pack h3 { margin-bottom: 10px; }
.day__body { display: grid; gap: 14px; }
.day__topo { width: 100%; max-width: 220px; height: auto; border: 2px solid var(--color-bolt); border-radius: var(--radius); }
.day__holds use { stroke: var(--color-bolt); stroke-width: 1.6; }
.day__num { font: 400 13px var(--font-tape); fill: #fff; }
.day__num-bg { fill: var(--color-bolt); }
.flow { counter-reset: f; display: grid; gap: 8px; }
.flow li { counter-increment: f; position: relative; padding: 2px 0 8px 40px; border-bottom: 1px dashed rgba(30, 28, 33, .22); font-size: .95rem; line-height: 1.55; }
.flow li::before { content: counter(f); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 46% 54% 50% 50%; background: var(--k); border: 2px solid var(--color-bolt); font-family: var(--font-tape); font-size: .9rem; }
.flow__t { display: block; font-size: .8rem; font-weight: 700; color: var(--color-bolt-soft); font-variant-numeric: tabular-nums; }
.flow b { margin-right: 4px; }

.gear { display: grid; gap: 18px; }
.shoes table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; background: #fff; }
.shoes th, .shoes td { padding: 7px 10px; border: 1.5px solid var(--color-bolt); text-align: left; }
.shoes thead th { background: var(--color-plywood); font-size: .85rem; }
.shoes tr.is-pick td { background: rgba(46, 139, 87, .16); font-weight: 800; }
.shoes tr.is-pick td:first-child::before { content: "▸ "; }
.shoes .small { margin-top: 8px; }
.pack ul { display: grid; gap: 6px; }
.pack label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .95rem; line-height: 1.5; }
.pack input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--v1); }
.pack input:checked + span { text-decoration: line-through; color: var(--color-bolt-soft); }

.say { padding: 18px; background: var(--color-bolt); color: #F2EFEA; border-radius: var(--radius); }
.say__label { font-size: .82rem; font-weight: 700; color: #C9C4BC; }
.say__text { margin-top: 4px; font-size: 1.05rem; font-weight: 600; line-height: 1.6; }
.say__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.say .btn--hold { box-shadow: 0 4px 0 #000; border-color: #000; }

@container (min-width: 520px) {
  .day__body { grid-template-columns: 170px 1fr; align-items: start; }
}
@container (min-width: 640px) {
  .gear { grid-template-columns: 1fr 1fr; gap: 22px; }
}
@container (min-width: 860px) {
  .planner { grid-template-columns: 300px 1fr; gap: 30px; }
  .planner__form { position: sticky; top: 24px; padding-right: 26px; border-right: 2px dashed rgba(30, 28, 33, .3); }
}

/* 3 요금 */
.price { display: grid; gap: 20px; }
.price__list { margin: 0; }
.price__list div { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1.5px dashed rgba(30, 28, 33, .32); }
.price__list dt { font-weight: 800; }
.price__list dt small { display: block; font-weight: 500; font-size: .85rem; color: var(--color-bolt-soft); }
.price__list dd { margin: 0; font-family: var(--font-tape); font-size: 1.2rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price__side { display: grid; gap: 16px; align-content: start; }
.rent li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dotted rgba(30, 28, 33, .35); font-variant-numeric: tabular-nums; }
.price__side h3 { margin-bottom: 6px; }
.math { padding: 14px; background: var(--color-plywood); border-radius: var(--radius); }
.math p { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; font-variant-numeric: tabular-nums; }
.math b { white-space: nowrap; }
.math p + p { margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(30, 28, 33, .25); }
.math p:last-child b { color: var(--v1); }
.price + .small { margin-top: 14px; }
@container (min-width: 600px) {
  .price { grid-template-columns: 1.45fr 1fr; gap: 30px; }
}

/* 4 강습 */
.classes { display: grid; gap: 14px; }
.classes li { position: relative; padding: 18px 16px 14px; background: #fff; border: 2px solid var(--color-bolt); border-top: 10px solid var(--tape); }
.classes__tag { position: absolute; top: -18px; right: 12px; padding: 2px 10px; background: var(--tape); color: var(--tape-ink); font-family: var(--font-tape); font-size: .9rem; clip-path: var(--tear); }
.classes h3 { margin-bottom: 6px; }
.classes p { font-size: .93rem; color: var(--color-bolt-soft); }
.classes dl { margin: 10px 0 0; font-size: .9rem; }
.classes dl div { display: grid; grid-template-columns: 3em 1fr; gap: 6px; padding: 3px 0; border-top: 1px dotted rgba(30, 28, 33, .3); }
.classes dt { font-weight: 800; }
.classes dd { margin: 0; font-variant-numeric: tabular-nums; }
.week { display: none; width: 100%; margin-top: 20px; border-collapse: collapse; font-size: .9rem; text-align: center; background: #fff; }
.week caption { text-align: left; font-weight: 800; margin-bottom: 8px; }
.week th, .week td { padding: 8px 4px; border: 1.5px solid var(--color-bolt); }
.week thead th { background: var(--color-plywood); }
.week tbody th { text-align: left; padding-left: 10px; width: 4.5em; }
.slot { display: inline-block; padding: 2px 6px; background: var(--tape); font-weight: 700; font-variant-numeric: tabular-nums; clip-path: var(--tear); }
.slot--dark { color: #fff; }
.week + .small { margin-top: 14px; }
.classes + .small { margin-top: 14px; }
@container (min-width: 640px) {
  .classes { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .week { display: table; }
}

/* 5 안전 */
.safety { display: grid; gap: 18px; }
.safety__fig { margin: 0; }
.safety__fig svg { width: 100%; max-width: 260px; height: auto; background: var(--color-plywood); border: 2px solid var(--color-bolt); border-radius: var(--radius); }
.safety__fig figcaption { margin-top: 6px; font-size: .88rem; color: var(--color-bolt-soft); max-width: 260px; }
.rules { counter-reset: r; display: grid; gap: 10px; }
.rules li { counter-increment: r; position: relative; padding-left: 42px; font-size: .94rem; color: var(--color-bolt-soft); line-height: 1.55; }
.rules li::before { content: counter(r); position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center; background: var(--v4); color: #fff; font-family: var(--font-tape); border-radius: 48% 52% 44% 56%; border: 2px solid var(--color-bolt); }
.rules b { display: block; color: var(--color-bolt); font-size: 1rem; }
.safety + .small { margin-top: 16px; }
@container (min-width: 560px) {
  .safety { grid-template-columns: 220px 1fr; gap: 26px; }
}

/* 6 FAQ */
.faq { display: grid; gap: 0; border-top: 2px solid var(--color-bolt); }
.qa { border-bottom: 1.5px solid rgba(30, 28, 33, .35); }
.qa h3 { font-size: 1rem; }
.qa button { display: flex; width: 100%; justify-content: space-between; gap: 12px; align-items: center; min-height: 52px; padding: 10px 2px; border: 0; background: none; text-align: left; font-weight: 700; line-height: 1.45; cursor: pointer; }
.qa button::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease; }
.qa.is-open button::after { transform: rotate(-135deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.qa__a > p { overflow: hidden; min-height: 0; color: var(--color-bolt-soft); font-size: .95rem; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa.is-open .qa__a > p { padding-bottom: 14px; }
html:not(.js) .qa__a { grid-template-rows: 1fr; }

/* TOP 오시는 길 */
.problem--top { border-width: 3px; }
.problem--top .tape__no { font-size: 1.2em; }
.visit { display: grid; gap: 20px; }
.map { margin: 0; }
.map svg { width: 100%; height: auto; border: 2px solid var(--color-bolt); border-radius: var(--radius); }
.map figcaption { margin-top: 6px; font-size: .85rem; color: var(--color-bolt-soft); }
.map__t { font: 600 13px var(--font); fill: var(--color-bolt-soft); }
.map__shop { font: 400 16px var(--font-tape); fill: var(--color-bolt); }
.map__sub { font: 700 11px var(--font); fill: #fff; }
.info { margin: 0; }
.info div { display: grid; grid-template-columns: 4.6em 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px dashed rgba(30, 28, 33, .3); font-size: .95rem; }
.info dt { font-weight: 800; }
.info dd { margin: 0; }
.hours { width: 100%; margin-top: 16px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours caption { text-align: left; font-weight: 800; margin-bottom: 6px; }
.hours th, .hours td { padding: 8px 10px; border: 1.5px solid var(--color-bolt); text-align: left; font-size: .95rem; }
.hours th { width: 46%; background: var(--color-plywood); }
.hours tr.is-today th, .hours tr.is-today td { background: var(--v0); }
.hours tr.is-today td::after { content: " 오늘"; font-size: .78rem; font-weight: 800; }
.hours tr.is-off td { color: var(--color-bolt-soft); }
.hours + .small { margin-top: 8px; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.visit__actions .btn { flex: 1 1 180px; }
@container (min-width: 720px) {
  .visit { grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: start; }
}

/* ---------- 푸터·하단 바·토스트 ---------- */
.site-footer { margin-top: 30px; background: var(--color-bolt); color: #D9D5CE; font-size: .88rem; line-height: 1.7; border-top: 8px solid var(--color-mat); }
.site-footer__inner { max-width: 1440px; margin: 0 auto; padding: 30px 20px calc(96px + env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.site-footer__logo { font-family: var(--font-tape); font-size: 1.3rem; color: #fff; }
.site-footer a { color: #fff; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer .strong { font-weight: 800; }
.site-footer .ph { color: #BDB8B0; }
.site-footer__credit { color: #ABA59C; }

.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr 1.3fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--color-topo); border-top: 2px solid var(--color-bolt);
}
.quickbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; font-size: .8rem; font-weight: 700; text-decoration: none; }
.quickbar a + a { border-left: 1.5px solid rgba(30, 28, 33, .25); }
.quickbar svg { width: 22px; height: 22px; }
.quickbar__cta { background: var(--color-hold); color: #fff; font-size: .92rem !important; }
body.nav-open .quickbar { visibility: hidden; }

.toast { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 120; translate: -50% 0; max-width: calc(100% - 32px); padding: 10px 16px; background: var(--color-bolt); color: #fff; border-radius: var(--radius); font-size: .9rem; box-shadow: 0 6px 0 rgba(0, 0, 0, .2); }

/* ---------- 태블릿 760+ : 상자가 벽 위에 지그재그 ---------- */
@media (min-width: 760px) {
  .layout { padding: 0 28px; }
  .hero { grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; padding-top: 36px; }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__start { display: inline-flex; margin-top: 26px; padding: 6px 12px; border: 2px dashed var(--color-bolt); border-radius: var(--radius); background: rgba(251, 250, 246, .7); font-size: .88rem; font-weight: 700; }
  .problem { width: 86%; margin: 130px 0 0; padding: 42px 32px 30px; }
  .problem:nth-of-type(odd) { margin-left: auto; }
  .problem--wide { width: 100%; }
  .problem__head .tape { left: 26px; top: -19px; font-size: 1.1rem; }
  .problem::before { left: -60px; top: -60px; width: 220px; height: 120px; }
  .chalk-hand { width: 80px; height: 106px; top: -96px; right: 40px; }
  .chalk-hand--r { top: auto; bottom: -100px; left: -20px; }
  .quickbar { display: none; }
  .site-footer__inner { padding-bottom: 40px; }
  .toast { bottom: 24px; }
  .wall { padding-bottom: 90px; }
}

/* ---------- 데스크톱 1100+ : 왼쪽 코팅 범례 + 벽 ---------- */
@media (min-width: 1100px) {
  .site-header { display: none; }
  .layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 40px; padding: 0 32px; }
  .legend { position: sticky; top: 22px; align-self: start; margin-top: 30px; max-height: calc(100vh - 44px); overflow-y: auto; transform: rotate(-.6deg); }
  .legend__logo { display: inline-flex; margin-bottom: 16px; }
  .legend__logo .logo__mark { width: 36px; height: 36px; }
  .legend__logo .logo__name { font-size: 1.55rem; }
  .problem { width: var(--w); margin: 150px 0 0 var(--x); }
  .problem:nth-of-type(odd) { margin-left: var(--x); }
  .problem--wide { width: var(--w); }
  .hero { padding-top: 40px; }
  .problem { scroll-margin-top: 40px; }
}

/* ---------- 등장 (보이는 상태가 기본, has-motion 일 때만) ---------- */
.has-motion .problem__head .tape { transition: transform .45s cubic-bezier(.3, 1.5, .5, 1), opacity .3s ease; }
.has-motion .problem:not(.is-reached) .problem__head .tape { opacity: 0; transform: rotate(-9deg) translateY(-14px); }

/* ---------- 동작 줄이기 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .btn, .pick span, .routes a, .qa__a { transition-duration: .2s !important; }
}
