/* 느티 자동차정비 — 동네 정비소(경정비) 디자인 샘플 (디코랩)
   구성: 왼쪽 고정 사이드바 + 정비 작업지시서 종이. 색은 정비소 실물에서:
   작업복 청색(=볼펜 잉크), 작업지시서 종이, 작업대 철판, 인쇄 잉크, 경고등 호박색, 도장 인주 */
:root {
  --color-coverall: #2B4C8C;      /* 사이드바 면, 볼펜으로 적은 글씨 */
  --color-coverall-deep: #223D72;
  --color-paper: #FCFBF6;         /* 작업지시서 종이 */
  --color-bench: #D6DCE3;         /* 종이가 놓인 작업대 */
  --color-graphite: #20252D;      /* 인쇄 글자·서식 선 */
  --color-muted: #545D6A;
  --color-formtint: #E7EDF6;      /* 인쇄된 라벨 칸 */
  --color-lamp: #F2A20C;          /* 주 버튼(전화 예약)에만 */
  --color-stamp: #C8372D;         /* 도장 인주, "운행 멈춤 권장" */
  --color-go: #2F7D4F;            /* "다음 정비 때" */
  --color-pen: var(--color-coverall);
  --color-dash: #26303B;          /* 계기판 패널 */

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
          "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-display: "Gothic A1", var(--font);

  --fs-h1: clamp(2rem, 1.15rem + 2.7vw, 3.3rem);
  --fs-h2: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  --fs-h3: 1.15rem;
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-label: .8125rem;

  --rule: 1.5px solid var(--color-graphite);
  --side-w: 272px;
  --bar-h: 60px;
  --gutter: 16px;
  --banner-h: 0px;   /* main.js 가 샘플 띠 높이로 바꾼다 */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.72;
  color: var(--color-graphite);
  background: var(--color-bench);
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.28; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--color-graphite); color: #fff; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--color-lamp); outline-offset: 3px; }

/* 볼펜 글씨 · 실제 정보 자리 */
.pen { color: var(--color-pen); font-weight: 600; }
.ph { display: inline-block; padding: 0 .4em; border: 1.5px dashed currentColor; border-radius: 4px; opacity: .8; font-size: .92em; font-weight: 500; color: var(--color-muted); }

/* 샘플 안내 띠 — 사이드바 구성에서도 맨 위 전체 폭 */
.sample-banner { position: relative; z-index: 45; background: var(--color-graphite); color: #E9ECF2; font-size: var(--fs-small); line-height: 1.6; }
.sample-banner__inner { display: flex; gap: 10px; align-items: baseline; padding: 9px var(--gutter); max-width: 1400px; }
.sample-banner__tag { flex: none; padding: 1px 8px; border-radius: 3px; background: var(--color-paper); color: var(--color-graphite); font-weight: 700; font-size: .78rem; }
.sample-banner a { color: #fff; font-weight: 600; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 6px; font-weight: 700; font-size: 1.02rem; text-decoration: none; border: 2px solid var(--color-graphite); cursor: pointer; font-family: inherit; transition: transform .18s ease, background-color .18s ease; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn--lamp { background: var(--color-lamp); color: var(--color-graphite); }
.btn--lamp:hover { background: #FFB42A; }
.btn--line { background: var(--color-paper); color: var(--color-graphite); }
.btn--line:hover { background: var(--color-formtint); }
.btn--block { width: 100%; }

/* ---------- 틀: 사이드바 | 작업대 ---------- */
.shell { display: grid; grid-template-columns: minmax(0, 1fr); }

.side { position: sticky; top: 0; z-index: 40; background: var(--color-coverall); color: #fff; }
.side__bar { display: flex; align-items: center; gap: 6px; height: var(--bar-h); padding: 0 8px 0 var(--gutter); }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: #fff; min-width: 0; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo__text { display: grid; line-height: 1.2; }
.logo__text b { font-family: var(--font-display); font-weight: 900; font-size: 1.12rem; letter-spacing: -.02em; white-space: nowrap; }
.logo__text small { font-size: .74rem; opacity: .8; font-weight: 500; }
.side__call-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; background: var(--color-lamp); color: var(--color-graphite); }
.side__call-icon svg { width: 22px; height: 22px; }
.menu-toggle { width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; color: #fff; }
.menu-toggle__bar, .menu-toggle__bar::before, .menu-toggle__bar::after { position: absolute; left: 10px; width: 24px; height: 2.5px; border-radius: 2px; background: currentColor; content: ""; transition: transform .25s, opacity .2s; }
.menu-toggle__bar { top: 21px; }
.menu-toggle__bar::before { left: 0; top: -7px; }
.menu-toggle__bar::after { left: 0; top: 7px; }
.side.is-open .menu-toggle__bar { background: transparent; }
.side.is-open .menu-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.side.is-open .menu-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

/* 모바일 메뉴: 상단 바 아래 전체 화면 (사이드바에 transform·filter 를 두지 않는다) */
.side__panel { display: none; position: fixed; left: 0; right: 0; top: var(--menu-top, var(--bar-h)); bottom: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain; background: var(--color-coverall); padding: 6px 20px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.25); }
.side.is-open .side__panel { display: flex; flex-direction: column; gap: 22px; }

.gnb__title, .side__label { font-size: var(--fs-label); font-weight: 700; color: rgba(255,255,255,.72); margin-bottom: 6px; }
.gnb ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.3); }
.gnb a { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 12px; min-height: 48px; padding: 6px 4px; border-bottom: 1px solid rgba(255,255,255,.3); text-decoration: none; font-weight: 600; color: rgba(255,255,255,.9); transition: background-color .18s; }
.gnb a:hover { background: rgba(255,255,255,.08); }
.gnb em { font-style: normal; font-size: .75rem; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.gnb__box { position: relative; width: 16px; height: 16px; border: 1.5px solid rgba(255,255,255,.85); }
.gnb a.is-active { color: #fff; font-weight: 800; }
.gnb a.is-active .gnb__box { background: #fff; }
.gnb a.is-active .gnb__box::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 9px; border: solid var(--color-coverall); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }

.side__num { display: block; margin: 0 0 10px; font-family: var(--font-display); font-weight: 900; font-size: 1.75rem; line-height: 1.2; letter-spacing: -.01em; text-decoration: none; font-variant-numeric: tabular-nums; }
.side__kakao { display: inline-block; margin-top: 10px; font-size: var(--fs-small); font-weight: 600; color: rgba(255,255,255,.92); }
.hours { margin: 0; display: grid; }
.hours div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 8px; font-size: .92rem; border-bottom: 1px solid rgba(255,255,255,.22); }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours .is-today { background: rgba(255,255,255,.14); font-weight: 700; }
.today-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 3px; font-size: .72rem; font-weight: 800; background: #fff; color: var(--color-coverall); vertical-align: .1em; }
.side__note { margin-top: 8px; font-size: .8rem; color: rgba(255,255,255,.72); }

/* ---------- 작업대 위 종이들 ---------- */
.desk { display: grid; gap: 22px; justify-items: center; padding: 18px 12px 0; min-width: 0; }
.sheet { position: relative; width: 100%; max-width: 1060px; background: var(--color-paper); border: var(--rule); box-shadow: 0 12px 26px -16px rgba(32,37,45,.45); }
.sheet__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 16px; border-bottom: var(--rule); background: var(--color-formtint); font-size: var(--fs-label); color: var(--color-coverall-deep); font-weight: 600; }
.sheet__head b { font-weight: 800; color: var(--color-graphite); margin-left: 4px; }
.sheet__head span { color: var(--color-muted); font-weight: 500; }
.sheet__page { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; }
.sheet__body { container-type: inline-size; padding: clamp(20px, 4.4vw, 44px) clamp(16px, 4.4vw, 44px); }
.sheet__intro { max-width: 40em; margin-bottom: 26px; }
.sheet__intro h2, .location__info h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h2); margin-bottom: 10px; }
.sheet__intro p { color: var(--color-muted); }

/* 서식 칸 */
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 26px; border-top: var(--rule); border-left: var(--rule); font-size: .95rem; }
.form-row > div { display: grid; grid-template-columns: minmax(0, 1fr); border-right: var(--rule); border-bottom: var(--rule); }
.form-row dt { padding: 3px 10px; background: var(--color-formtint); font-size: var(--fs-label); font-weight: 700; border-bottom: 1px solid var(--color-graphite); white-space: nowrap; display: flex; align-items: center; }
@container (min-width: 520px) { .form-row > div { grid-template-columns: auto minmax(0, 1fr); } .form-row dd { padding: 7px 10px; font-size: 1rem; } .form-row dt { padding: 7px 10px; border-bottom: 0; border-right: 1px solid var(--color-graphite); } }
.form-row dd { margin: 0; padding: 4px 10px; font-size: .92rem; font-variant-numeric: tabular-nums; }
@container (min-width: 700px) { .form-row { grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); } .form-row dd { white-space: nowrap; } }

.ticks__box { position: relative; flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid var(--color-graphite); background: #fff; }
.ticks__box svg { position: absolute; left: -2px; top: -7px; width: 26px; height: 26px; fill: none; stroke: var(--color-pen); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 0; }

/* ---------- 1. 히어로 ---------- */
.hero__grid { display: grid; gap: 28px; }
.hero__kicker { display: inline-block; margin-bottom: 14px; padding: 2px 10px; border: 1.5px solid var(--color-coverall); color: var(--color-coverall); font-weight: 700; font-size: var(--fs-small); }
.hero__title { font-family: var(--font-display); font-weight: 900; font-size: var(--fs-h1); line-height: 1.24; letter-spacing: -.035em; margin-bottom: 16px; }
.hero__lead { max-width: 30em; color: #3A424D; margin-bottom: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hero__hours { font-size: .95rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero__hours span { display: block; font-weight: 500; color: var(--color-muted); font-size: var(--fs-small); }

.carcheck { margin: 0; border: var(--rule); background: #fff; align-self: start; }
.carcheck figcaption { padding: 7px 12px; border-bottom: var(--rule); background: var(--color-formtint); font-size: var(--fs-label); font-weight: 700; }
.carcheck figcaption small { margin-left: 6px; font-weight: 500; color: var(--color-muted); }
.carcheck__art { width: 100%; height: auto; padding: 10px 12px 4px; }
.pen-mark path { fill: none; stroke: var(--color-pen); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 360; stroke-dashoffset: 0; }
.pen-note { font-family: var(--font); font-size: 17px; font-weight: 700; fill: var(--color-pen); }
.ticks { list-style: none; margin: 0; padding: 4px 12px 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; font-size: .92rem; font-weight: 600; }
.ticks li { display: flex; align-items: center; gap: 8px; line-height: 1.35; }

.request { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 26px; border: var(--rule); }
.request__label { padding: 7px 12px; background: var(--color-formtint); border-bottom: 1px solid var(--color-graphite); font-size: var(--fs-label); font-weight: 700; }
.request__text { padding: 12px 120px 14px 12px; font-size: 1.05rem; min-height: 4.6em; }
@container (min-width: 700px) {
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: start; gap: 36px; }
  .request { grid-template-columns: 9em minmax(0, 1fr); }
  .request__label { border-bottom: 0; border-right: 1px solid var(--color-graphite); display: flex; align-items: center; }
  .request__text { padding: 14px 140px 14px 16px; min-height: 0; }
}

/* 도장 — 보이는 상태가 기본 */
.stamp { display: inline-grid; place-content: center; justify-items: center; width: 96px; height: 96px; border: 3px solid var(--color-stamp); border-radius: 50%; color: var(--color-stamp); font-family: var(--font-display); font-weight: 900; line-height: 1.1; text-align: center; transform: rotate(-12deg); box-shadow: inset 0 0 0 3px var(--color-paper), inset 0 0 0 4.5px var(--color-stamp); opacity: .9; mix-blend-mode: multiply; pointer-events: none; }
.stamp span { font-size: 1.32rem; letter-spacing: -.03em; }
.stamp small { font-size: .62rem; font-weight: 800; margin-top: 3px; letter-spacing: .02em; }
.stamp--hero { position: absolute; right: 14px; top: 50%; margin-top: -40px; }
.stamp--small { width: 68px; height: 68px; border-width: 2.5px; box-shadow: inset 0 0 0 2.5px #fff, inset 0 0 0 3.5px var(--color-stamp); }
.stamp--small span { font-size: 1.05rem; }

.has-motion .stamp[data-stamp] { opacity: 0; transform: rotate(-12deg) scale(1.7); }
.has-motion .stamp[data-stamp].is-stamped { opacity: .9; transform: rotate(-12deg) scale(1); transition: opacity .12s ease, transform .3s cubic-bezier(.2,.9,.3,1.3); }

/* 히어로 등장 */
.has-motion [data-hero-item] { opacity: 0; transform: translateY(16px); }
.has-motion .is-ready [data-hero-item] { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.has-motion .is-ready [data-hero-item]:nth-child(2) { transition-delay: .07s; }
.has-motion .is-ready [data-hero-item]:nth-child(3) { transition-delay: .14s; }
.has-motion .is-ready [data-hero-item]:nth-child(4) { transition-delay: .21s; }
.has-motion .is-ready [data-hero-item]:nth-child(5) { transition-delay: .28s; }
.has-motion .is-ready .carcheck[data-hero-item] { transition-delay: .3s; }
.has-motion .hero .pen-mark path { stroke-dashoffset: 360; }
.has-motion .hero.is-ready .pen-mark path { stroke-dashoffset: 0; transition: stroke-dashoffset .9s ease .9s; }
.has-motion .hero .ticks li.is-checked svg { stroke-dashoffset: 30; }
.has-motion .hero.is-ready .ticks li.is-checked svg { stroke-dashoffset: 0; transition: stroke-dashoffset .35s ease 1.1s; }
.has-motion .hero.is-ready .ticks li.is-checked:nth-child(2) svg { transition-delay: 1.25s; }
.has-motion .hero.is-ready .ticks li.is-checked:nth-child(4) svg { transition-delay: 1.4s; }

.has-motion .reveal { opacity: 0; transform: translateY(18px); }
.has-motion .reveal.is-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); }

/* ---------- 2. 경고등 확인 ---------- */
.warning__grid { display: grid; gap: 22px; }
.warning__grid > * { min-width: 0; }
.cluster { align-self: start; padding: 14px 14px 12px; border: var(--rule); border-radius: 20px 20px 12px 12px; background: var(--color-dash); color: #DDE3EA; }
.cluster__gauges { width: 100%; max-width: 360px; height: auto; margin: 0 auto 8px; }
.gauge-unit { font-family: var(--font); font-size: 15px; font-weight: 600; fill: #8D97A4; }
.lamps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lamp { --lamp-c: #F5A623; display: grid; justify-items: center; align-content: start; gap: 6px; min-height: 96px; padding: 12px 4px 10px; border: 1.5px solid #3D4652; border-radius: 10px; background: #1A1F26; color: #AEB6C1; font: inherit; font-size: .8125rem; font-weight: 600; line-height: 1.3; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.lamp--red { --lamp-c: #F0503F; }
.lamp svg { width: 42px; height: 42px; color: var(--lamp-c); opacity: .5; transition: opacity .2s; overflow: visible; }
.lamp svg * { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lamp svg .fill { fill: currentColor; stroke: none; }
.lamp svg text { font-family: var(--font); font-size: 9.5px; font-weight: 800; }
.lamp:hover { border-color: #66717F; }
.lamp:hover svg { opacity: .8; }
.lamp[aria-pressed="true"] { background: #0F1318; border-color: var(--lamp-c); color: #fff; }
.lamp[aria-pressed="true"] svg { opacity: 1; filter: drop-shadow(0 0 6px var(--lamp-c)); }
.lamp:focus-visible { outline-color: #fff; }
.cluster__hint { margin-top: 10px; font-size: .8rem; color: #9AA4B0; text-align: center; }

.order { position: relative; border: var(--rule); background: #fff; }
.order__row { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--color-graphite); }
.order__label { padding: 4px 12px; background: var(--color-formtint); border-bottom: 1px solid var(--color-graphite); font-size: var(--fs-label); font-weight: 700; line-height: 1.4; }
@container (min-width: 560px) { .order__row { grid-template-columns: 7em minmax(0, 1fr); } .order__label { padding: 11px 12px; border-bottom: 0; border-right: 1px solid var(--color-graphite); } }
.order__value { position: relative; margin: 0; padding: 10px 12px; min-width: 0; }
.order__value small { font-size: .85em; font-weight: 500; }
.urgency { list-style: none; margin: 0; padding: 0 92px 0 0; display: grid; gap: 4px; font-size: .95rem; font-weight: 600; }
.urgency li { display: flex; align-items: center; gap: 9px; padding: 4px 6px; line-height: 1.35; color: var(--color-muted); transition: background-color .2s, color .2s; }
.urgency li.is-checked { color: var(--color-graphite); font-weight: 800; }
.urgency li[data-level="stop"].is-checked { background: #FBE3E0; }
.urgency li[data-level="soon"].is-checked { background: #FCEFD3; }
.urgency li[data-level="later"].is-checked { background: #DDEFE3; }
.stamp--order { position: absolute; right: 8px; top: 50%; margin-top: -44px; width: 88px; height: 88px; }
.stamp--order span { font-size: .88rem; white-space: nowrap; }
.stamp--order.is-later { --color-stamp: var(--color-go); }
.order .todo { padding-left: 2.2em; margin: 0; }
.todo li + li { margin-top: 4px; }
.checks { list-style: none; display: grid; gap: 6px; font-size: .95rem; }
.checks li { display: flex; gap: 9px; align-items: flex-start; line-height: 1.45; }
.checks li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border: 1.5px solid var(--color-graphite); background: #fff; }
.order__foot { padding: 14px 12px 14px; }
.order__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.order__cta .btn { min-height: 48px; padding: 0 16px; font-size: .97rem; }
.order__disclaimer { font-size: .82rem; color: var(--color-muted); line-height: 1.6; }
@container (min-width: 760px) {
  .warning__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .order__value { padding: 11px 16px; }
}

/* ---------- 3. 정비 항목 ---------- */
.worklist { width: 100%; border-collapse: collapse; border: var(--rule); background: #fff; font-size: .97rem; }
.worklist thead { background: var(--color-formtint); }
.worklist th, .worklist td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid #9AA3AF; }
.worklist thead th { font-size: var(--fs-label); font-weight: 800; border-bottom: var(--rule); }
.worklist tbody th { font-weight: 800; white-space: normal; }
.worklist tbody th .ticks__box { width: 16px; height: 16px; margin-right: 8px; vertical-align: -2px; display: inline-block; }
.worklist td:last-child { white-space: nowrap; font-weight: 700; color: var(--color-coverall); font-variant-numeric: tabular-nums; }
.notes { display: grid; gap: 10px; margin-top: 18px; }
.note { padding: 12px 14px; border: 1.5px dashed var(--color-graphite); background: #fff; font-size: .95rem; }
.note b { display: inline-block; margin-right: 8px; padding: 0 8px; background: var(--color-graphite); color: #fff; font-size: .8rem; }
@container (max-width: 619px) {
  .worklist thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .worklist tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid #9AA3AF; }
  .worklist tr:last-child { border-bottom: 0; }
  .worklist th, .worklist td { border: 0; padding: 0; }
  .worklist tbody th { grid-column: 1; padding: 12px 0 2px 12px; }
  .worklist td:last-child { grid-column: 2; grid-row: 1; padding: 12px 12px 0 8px; font-size: .9rem; }
  .worklist td:nth-child(2) { grid-column: 1 / -1; padding: 0 12px 12px 36px; color: #3A424D; font-size: .95rem; }
}
@container (min-width: 700px) { .notes { grid-template-columns: 1fr 1fr; } }

/* ---------- 4. 진행 순서: 결재란 ---------- */
.approval { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: var(--rule); border-left: var(--rule); background: #fff; }
.approval li { display: grid; grid-template-rows: auto auto 1fr; border-right: var(--rule); border-bottom: var(--rule); min-width: 0; }
.approval__head { padding: 6px 10px; background: var(--color-formtint); border-bottom: 1px solid var(--color-graphite); font-weight: 800; text-align: center; }
.approval__head b { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin-right: 4px; border-radius: 50%; background: var(--color-graphite); color: #fff; font-size: .8rem; vertical-align: .1em; }
.approval__cell { display: grid; place-items: center; height: 104px; border-bottom: 1px dashed #9AA3AF; }
.approval__desc { padding: 10px 12px 14px; font-size: .92rem; line-height: 1.6; color: #3A424D; }
@container (min-width: 620px) { .approval { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (min-width: 940px) { .approval { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---------- 5. 정비사·작업장 ---------- */
.shop__grid { display: grid; gap: 22px; }
.shop__grid > * { min-width: 0; }
.badge { border: var(--rule); background: #fff; align-self: start; }
.badge__label { padding: 7px 12px; background: var(--color-coverall); color: #fff; font-size: var(--fs-label); font-weight: 800; }
.badge__photo { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: end; padding: 14px 14px 0; }
.badge__photo svg { width: 110px; height: auto; border: 1px solid var(--color-graphite); }
.badge__photo .ph { justify-self: start; font-size: .8rem; }
.badge__info { margin: 14px 0 0; border-top: 1px solid var(--color-graphite); }
.badge__info div { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); border-bottom: 1px solid var(--color-graphite); }
.badge__info dt { padding: 8px 10px; background: var(--color-formtint); border-right: 1px solid var(--color-graphite); font-size: var(--fs-label); font-weight: 700; }
.badge__info dd { margin: 0; padding: 7px 10px; }
.badge__quote { padding: 14px; font-size: 1.02rem; }
.bay { display: grid; gap: 16px; }
.bay__art { width: 100%; height: auto; border: var(--rule); }
.bay__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: var(--rule); }
.bay__list li { padding: 11px 2px; border-bottom: 1px solid #9AA3AF; font-size: .97rem; }
.bay__list b { display: block; font-weight: 800; }
@container (min-width: 760px) { .shop__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 32px; } }

/* ---------- 6. 다음 교환 안내 (절취) ---------- */
.stub { position: relative; padding: 28px 0 0; border-top: 2px dashed var(--color-graphite); }
.stub__cut { position: absolute; left: 50%; top: -0.8em; transform: translateX(-50%); padding: 0 10px; background: var(--color-paper); font-size: .78rem; font-weight: 700; color: var(--color-muted); }
.cycle { width: 100%; border-collapse: collapse; border: var(--rule); background: #fff; font-size: .97rem; }
.cycle th, .cycle td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #9AA3AF; vertical-align: top; }
.cycle thead { background: var(--color-formtint); }
.cycle thead th { font-size: var(--fs-label); font-weight: 800; border-bottom: var(--rule); }
.cycle tbody th { font-weight: 800; }
.cycle td { font-variant-numeric: tabular-nums; }
.cycle td.blank { background-image: linear-gradient(transparent calc(100% - 14px), #B9C2CE calc(100% - 14px), #B9C2CE calc(100% - 13px), transparent calc(100% - 13px)); min-width: 9em; }
.stub__note { margin-top: 14px; font-size: .95rem; color: #3A424D; }
@container (max-width: 619px) {
  .cycle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cycle tr { display: grid; grid-template-columns: minmax(0, 1fr); padding: 10px 12px; border-bottom: 1px solid #9AA3AF; }
  .cycle th, .cycle td { padding: 0; border: 0; }
  .cycle td { font-size: .93rem; color: #3A424D; }
  .cycle td.pen { color: var(--color-pen); margin-top: 4px; }
  .cycle td.pen::before { content: "다음 교환: "; color: var(--color-muted); font-weight: 500; }
  .cycle td.blank { display: none; }
}

/* ---------- 7. FAQ ---------- */
.faq__list { border-top: var(--rule); }
.qa { border-bottom: 1px solid var(--color-graphite); }
.qa h3 { font-size: var(--fs-h3); font-family: var(--font); }
.qa button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 40px 12px 0; border: 0; background: none; font: inherit; font-weight: 700; text-align: left; color: var(--color-graphite); cursor: pointer; position: relative; line-height: 1.4; }
.qa button::after { content: ""; position: absolute; right: 10px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border: solid var(--color-graphite); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .25s; }
.qa button[aria-expanded="true"]::after { transform: translateY(4px) rotate(-135deg); }
.qa__q { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--color-graphite); background: var(--color-formtint); font-size: .82rem; font-weight: 800; }
.qa__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.qa__panel > div { overflow: hidden; min-height: 0; }
.qa__panel p { padding: 0 8px 16px 42px; color: #3A424D; }
.qa.is-open .qa__panel { grid-template-rows: 1fr; }
html:not(.js) .qa__panel { grid-template-rows: 1fr; }

/* ---------- 8. 오시는 길 ---------- */
.location__grid { display: grid; gap: 24px; }
.location__grid > * { min-width: 0; }
.location__info h2 { margin-bottom: 18px; }
.info { margin: 0 0 20px; border-top: var(--rule); }
.info div { display: grid; grid-template-columns: 5.4em minmax(0, 1fr); border-bottom: 1px solid var(--color-graphite); }
.info dt { padding: 9px 10px; background: var(--color-formtint); border-right: 1px solid var(--color-graphite); font-size: var(--fs-label); font-weight: 700; }
.info dd { margin: 0; padding: 8px 12px; }
.info a { font-weight: 700; font-variant-numeric: tabular-nums; }
.hours-table { width: 100%; border-collapse: collapse; border: var(--rule); margin-bottom: 20px; background: #fff; font-variant-numeric: tabular-nums; }
.hours-table caption { text-align: left; font-weight: 800; padding-bottom: 6px; }
.hours-table th, .hours-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #9AA3AF; }
.hours-table th { width: 42%; font-weight: 700; background: var(--color-formtint); border-right: 1px solid var(--color-graphite); }
.hours-table tr.is-today td, .hours-table tr.is-today th { font-weight: 800; }
.hours-table tr.is-today td { background: #FCEFD3; }
.hours-table .today-tag { background: var(--color-coverall); color: #fff; }
.location__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map-art { border: var(--rule); align-self: start; }
.map-art svg { width: 100%; height: auto; }
.map-label { font-family: var(--font-display); font-weight: 900; font-size: 26px; fill: #fff; }
.map-sub { font-family: var(--font); font-weight: 700; font-size: 16px; fill: #fff; }
.map-mark { font-family: var(--font); font-weight: 700; font-size: 15px; fill: var(--color-graphite); }
@container (min-width: 760px) { .location__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; } }

/* ---------- 푸터 (작업대 위) ---------- */
.site-footer { width: 100%; max-width: 1060px; padding: 26px 4px 40px; font-size: var(--fs-small); color: #3A424D; line-height: 1.8; }
.site-footer__logo { font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; color: var(--color-graphite); margin-bottom: 6px; }
.site-footer__biz .ph { margin: 2px 8px 2px 2px; }
.site-footer__links { margin: 8px 0; display: flex; gap: 14px; }
.site-footer__links .strong { font-weight: 800; }
.site-footer__credit a { font-weight: 700; }

/* ---------- 모바일 하단 고정 바 ---------- */
.quickbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--color-paper); border-top: var(--rule); }
.quickbar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border: 1.5px solid var(--color-graphite); border-radius: 6px; text-decoration: none; font-weight: 700; font-size: .92rem; background: #fff; }
.quickbar svg { width: 20px; height: 20px; flex: none; }
.quickbar__cta { background: var(--color-lamp) !important; border-width: 2px !important; }
body.nav-open .quickbar { visibility: hidden; }
body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

.toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 70; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 6px; background: var(--color-graphite); color: #fff; font-size: .92rem; font-weight: 600; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); }

/* ---------- 데스크톱: 왼쪽 고정 사이드바 ---------- */
@media (min-width: 1024px) {
  html { scroll-padding-top: 20px; }
  body { padding-bottom: 0; }
  .sample-banner__inner { padding-left: 24px; }
  /* 사이드바 열은 끝까지 작업복 색 (sticky 사이드바 아래가 비지 않게) */
  .shell { grid-template-columns: var(--side-w) minmax(0, 1fr); background: linear-gradient(to right, var(--color-coverall) var(--side-w), var(--color-bench) var(--side-w)); }
  .side { align-self: start; height: calc(100vh - var(--banner-h)); height: calc(100dvh - var(--banner-h)); display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin; padding: 22px 22px 20px; }
  .side__bar { height: auto; padding: 0 0 18px; border-bottom: 2px solid rgba(255,255,255,.5); }
  .logo svg { width: 46px; height: 46px; }
  .logo__text b { font-size: 1.22rem; }
  .side__call-icon, .menu-toggle { display: none; }
  .side__panel { position: static; display: flex; flex-direction: column; gap: 22px; flex: 1; padding: 18px 0 0; overflow: visible; border: 0; background: none; }
  .gnb a { min-height: 40px; padding: 4px 4px; font-size: .97rem; }
  .side__hours { margin-top: auto; }
  .desk { padding: 32px clamp(20px, 3vw, 56px) 0; gap: 30px; }
  .sheet__head { padding: 9px 22px; }
  .quickbar { display: none; }
  .toast { bottom: 28px; }
}
@media (min-width: 1024px) and (max-height: 760px) {
  .gnb a { min-height: 34px; padding: 2px 4px; }
  .side__panel { gap: 16px; }
  .side__note { display: none; }
  .side__num { font-size: 1.45rem; margin-bottom: 8px; }
  .side__bar { padding-bottom: 12px; }
  .logo svg { width: 40px; height: 40px; }
}

/* ---------- 동작 줄이기 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  /* 3단계(색·투명도 피드백, 아코디언)는 남긴다 */
  .lamp, .lamp svg, .urgency li, .gnb a, .qa__panel { transition-duration: .2s !important; }
  .btn:hover { transform: none; }
}
