/* 손볼집 출장가전수리 — N6 입력 위젯 히어로 / 웜그레이 + 안전 주황, 나눔고딕 + 나눔고딕코딩 */
:root {
  --bg: #EEECE6;
  --paper: #FBFAF7;
  --ink: #1C1F21;
  --ink-2: #4A5054;
  --line: #D3D0C7;
  --steel: #2F3A3F;
  --orange: #E8561E;
  --orange-soft: #FCE6DB;
  --ok: #2E7D4F;
  --sans: 'Nanum Gothic', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --mono: 'Nanum Gothic Coding', ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 var(--sans); word-break: keep-all; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* 헤더 */
.top { background: var(--steel); color: #F1EFE9; }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 58px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; text-decoration: none; white-space: nowrap; }
.logo small { font-size: 13px; font-weight: 700; opacity: .7; }
.logo__mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; background: var(--orange); color: #fff; font: 700 18px/1 var(--mono); }
.top__meta { margin: 0; font-size: 14px; opacity: .78; }
.top__meta .sep { margin: 0 8px; opacity: .5; }
.top__tel { margin-left: auto; font: 700 18px/1 var(--mono); text-decoration: none; color: #fff; padding: 9px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; }
.top__tel:hover { background: var(--orange); border-color: var(--orange); }

/* 첫 화면: 접수 폼 */
.intake { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "lead ticket" "side ticket"; gap: 0 56px; padding-top: 48px; padding-bottom: 64px; align-items: start; }
.intake__lead { grid-area: lead; }
.intake__side { grid-area: side; margin-top: 28px; }
.ticket { grid-area: ticket; }
.intake__kicker { display: flex; align-items: baseline; gap: 8px; margin: 0 0 18px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.dot { position: relative; top: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(46,125,79,.16); flex: none; }
.dot.is-off { background: #9A9A94; box-shadow: 0 0 0 4px rgba(0,0,0,.06); }
.intake h1 { font-size: clamp(34px, 4.3vw, 52px); }
.nb { white-space: nowrap; }
.intake__sub { margin: 18px 0 0; font-size: 17px; color: var(--ink-2); max-width: 30em; }

.urgent { display: block; padding: 16px 18px; border-left: 4px solid var(--orange); background: var(--paper); text-decoration: none; }
.urgent small { display: block; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.urgent strong { display: block; margin-top: 2px; font: 700 30px/1.2 var(--mono); letter-spacing: -0.01em; }
.urgent:hover strong { color: var(--orange); }
.intake__photo { margin: 18px 0 0; }
.intake__photo img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.today { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.today .mono { color: var(--ink); font-weight: 700; margin-right: 6px; }
.today small { font-size: 12.5px; opacity: .8; }

/* 접수증 */
.ticket { background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--orange); border-radius: 4px; box-shadow: 0 18px 40px -24px rgba(28,31,33,.35); padding: 0 32px 28px; }
.ticket__head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0 14px; border-bottom: 1px dashed var(--line); font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: .02em; }
.step { margin: 0; padding: 22px 0 20px; border: 0; border-bottom: 1px solid var(--line); min-width: 0; }
.step--last { border-bottom: 0; }
.step legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font-size: 18px; font-weight: 800; }
.step legend b { display: inline-block; margin-right: 8px; color: var(--orange); font-size: 15px; }
.step legend + * { clear: both; }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; font-weight: 700; font-size: 15.5px; text-align: center; transition: border-color .15s, background .15s; }
.chips input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.hints { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hints button { min-height: 36px; padding: 6px 12px; border: 1px dashed #B9B5AA; border-radius: 99px; background: transparent; font: 400 14px/1.3 var(--sans); color: var(--ink-2); cursor: pointer; }
.hints button:hover { border-color: var(--orange); color: var(--orange); }
textarea, input[type="tel"], select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; font: 400 16px/1.5 var(--sans); color: var(--ink); }
textarea { resize: vertical; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--ink); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field span { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.ticket__err { margin: 4px 0 0; padding: 10px 12px; background: var(--orange-soft); color: #9A3412; font-size: 14.5px; font-weight: 700; border-radius: 4px; }
.ticket__go { display: block; width: 100%; min-height: 58px; margin-top: 14px; border: 0; border-radius: 6px; background: var(--orange); color: #fff; font: 800 19px/1 var(--sans); cursor: pointer; }
.ticket__go:hover { background: #C9440F; }
.ticket__note { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.ticket__done { margin-top: 18px; padding: 18px; background: #F3F1EA; border-radius: 4px; }
.ticket__done-h { margin: 0 0 8px; font-weight: 800; }
.ticket__done pre { margin: 0 0 14px; white-space: pre-wrap; font-size: 14px; line-height: 1.7; }
.ticket__done-btns { display: flex; flex-wrap: wrap; gap: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border: 1.5px solid var(--ink); border-radius: 6px; background: transparent; color: var(--ink); font: 700 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink); color: #fff; }
.btn--fill { background: var(--ink); color: #fff; }
.btn--fill:hover { background: var(--orange); border-color: var(--orange); }

/* 왜 우리인가 */
.why { padding-top: 24px; padding-bottom: 72px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
.why h2 { font-size: 26px; padding-top: 40px; }
.why__list { list-style: none; margin: 0; padding: 0; }
.why__list li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.why__list li:last-child { border-bottom: 0; }
.why__list b { font-size: 28px; line-height: 1.2; color: var(--orange); }
.why__list p { margin: 0; font-size: 16.5px; color: var(--ink-2); }
.why__list strong { display: block; margin-bottom: 4px; font-size: 19px; color: var(--ink); }

/* 수리 기록 */
.log { background: var(--steel); color: #EDEBE4; padding: 72px 0; }
.log__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.log__head h2 { font-size: 30px; color: #fff; }
.log__head p { margin: 0; opacity: .78; }
.log__head small { opacity: .8; }
.log__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.log__photo { margin: 0; }
.log__photo img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.log__photo figcaption { margin-top: 10px; font-size: 13.5px; opacity: .72; }
.log__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.log__table th { text-align: left; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; opacity: .6; padding: 0 12px 10px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.log__table td { padding: 15px 12px 15px 0; border-bottom: 1px solid rgba(255,255,255,.12); vertical-align: top; line-height: 1.55; }
.log__table td:first-child { color: #FFB08F; white-space: nowrap; width: 64px; }
.log__table td:nth-child(2) { font-weight: 700; color: #fff; width: 42%; }

/* 요금 */
.fee { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; padding-top: 80px; padding-bottom: 72px; align-items: center; }
.fee h2 { font-size: 30px; margin-bottom: 22px; }
.fee__list { margin: 0; }
.fee__list div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.fee__list div:last-child { border-bottom: 1px solid var(--line); }
.fee__list dt { font-weight: 800; }
.fee__list dd { margin: 0; color: var(--ink-2); }
.fee__list dd .mono { display: block; font-size: 22px; font-weight: 700; color: var(--ink); }
.fee__note { margin: 14px 0 0; font-size: 13px; color: var(--ink-2); }
.fee__photo { margin: 0; }
.fee__photo img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }

/* FAQ */
.faq { padding-bottom: 64px; }
.faq > * { max-width: 780px; }
.faq h2 { font-size: 26px; margin-bottom: 16px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 56px; align-items: center; padding: 12px 0; font-weight: 700; font-size: 17px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 700 22px/1 var(--mono); color: var(--orange); flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); max-width: 44em; }

/* 알림 */
.notice { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-top: 20px; padding-bottom: 64px; }
.notice__h { font-size: 15px; padding-top: 14px; color: var(--ink-2); }
.notice ul { list-style: none; margin: 0; padding: 0; }
.notice li { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.notice time { flex: none; color: var(--orange); font-weight: 700; font-size: 14.5px; padding-top: 1px; }

/* 위치 */
.where { background: var(--paper); border-top: 1px solid var(--line); padding: 72px 0; }
.where__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.where h2 { font-size: 30px; }
.where__lead { margin: 10px 0 24px; color: var(--ink-2); }
.where__dl { display: grid; grid-template-columns: 96px 1fr; gap: 12px 16px; margin: 0 0 26px; }
.where__dl dt { font-weight: 800; }
.where__dl dd { margin: 0; color: var(--ink-2); }
.where__dl a { color: var(--ink); font-weight: 700; }
.where__dl small { font-size: 13.5px; }
.badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: #DCEFE3; color: var(--ok); font-size: 12.5px; font-weight: 800; }
.badge.is-off { background: #E5E3DD; color: #66645E; }
.copy { margin-left: 6px; padding: 3px 10px; min-height: 30px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font: 700 12.5px/1 var(--sans); cursor: pointer; }
.where__btns { display: flex; flex-wrap: wrap; gap: 10px; }
/* 출장 지역 약도(글자만, 지도 아님) */
.area { position: relative; aspect-ratio: 1 / 1; border: 1.5px solid var(--ink); border-radius: 50%; background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(28,31,33,.06) 31px 32px), repeating-linear-gradient(90deg, transparent 0 31px, rgba(28,31,33,.06) 31px 32px); }
.area span { position: absolute; padding: 6px 12px; background: #fff; border: 1.5px solid var(--ink); border-radius: 4px; font-weight: 800; font-size: 15px; white-space: nowrap; }
.area__a { left: 12%; top: 30%; }
.area__b { left: 42%; top: 46%; background: var(--orange) !important; border-color: var(--orange) !important; color: #fff; }
.area__b i { display: block; font-style: normal; font-size: 11.5px; font-weight: 700; opacity: .85; }
.area__c { left: 46%; top: 14%; }
.area__d { left: 16%; top: 72%; }

.foot { background: var(--ink); color: #BDBAB2; padding: 28px 0 32px; font-size: 13.5px; }
.foot p { margin: 0 0 4px; }

/* 퀵메뉴: PC 오른쪽 세로 / 모바일 하단 바 */
.quick { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 50; display: flex; flex-direction: column; width: 92px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px -14px rgba(0,0,0,.35); overflow: hidden; }
.quick a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; padding: 8px 6px; text-decoration: none; text-align: center; border-bottom: 1px solid var(--line); }
.quick a:last-child { border-bottom: 0; }
.quick b { font-size: 14px; font-weight: 800; }
.quick small { font-size: 10.5px; color: var(--ink-2); line-height: 1.3; font-family: var(--mono); }
.quick a:hover { background: var(--orange-soft); }
.quick__go { background: var(--orange); color: #fff; }
.quick__go small { color: rgba(255,255,255,.85); }
.quick a.quick__go:hover { background: #C9440F; }

@media (max-width: 1360px) and (min-width: 961px) { .wrap { padding-right: 124px; } }

@media (max-width: 960px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .top__meta { display: none; }
  .intake { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lead" "ticket" "side"; padding-top: 28px; padding-bottom: 40px; }
  .intake__lead { margin-bottom: 22px; }
  .intake__sub { font-size: 16px; }
  .ticket { padding: 0 18px 22px; }
  .why, .log__grid, .fee, .where__in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .why { padding-bottom: 48px; }
  .why h2 { padding-top: 32px; }
  .log { padding: 56px 0; }
  .log__table thead { display: none; }
  .log__table, .log__table tbody, .log__table tr, .log__table td { display: block; width: auto !important; }
  .log__table tr { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .log__table td { border: 0; padding: 2px 0; }
  .fee { padding-top: 56px; padding-bottom: 48px; }
  .fee__photo { order: -1; }
  .fee__photo img { aspect-ratio: 16 / 10; }
  .area { max-width: 340px; width: 100%; margin: 8px auto 0; }
  .quick { top: auto; bottom: 0; left: 0; right: 0; transform: none; width: auto; flex-direction: row; border-radius: 0; border-width: 1px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .quick a { flex: 1 1 0; min-height: 60px; border-bottom: 0; border-right: 1px solid var(--line); }
  .quick a:last-child { border-right: 0; }
  .quick a:nth-child(3) small, .quick a:nth-child(2) small { display: none; }
  .quick__go { flex: 1.5 1 0 !important; }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
  .top__in { gap: 12px; min-height: 54px; }
  .logo small { display: none; }
  .top__tel { font-size: 15px; padding: 8px 10px; }
  .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .chips span { font-size: 14.5px; padding: 6px 4px; }
  .row { grid-template-columns: 1fr; }
  .urgent strong { font-size: 26px; }
  .log__head h2, .fee h2, .where h2 { font-size: 25px; }
  .why h2, .faq h2 { font-size: 23px; }
  .why__list li { grid-template-columns: 34px 1fr; }
  .fee__list div { grid-template-columns: 1fr; gap: 2px; }
  .notice { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .notice__h { padding-top: 0; }
  .faq { padding-bottom: 48px; }
  .notice li { flex-direction: column; gap: 2px; }
  .where__dl { grid-template-columns: 1fr; gap: 2px; }
  .where__dl dd { margin-bottom: 10px; }
  .area span { font-size: 13px; padding: 5px 9px; }
}
