/* 가지런 이사 — N5 견적 계산기 주도. 남색 담요·크라프트 상자색, Sunflower + 나눔고딕 */
:root {
  --paper: #f3efe7;
  --card: #fffdf8;
  --ink: #1b2233;
  --navy: #22305a;
  --kraft: #c69a62;
  --kraft-soft: #ead9bf;
  --line: #d9d1c3;
  --muted: #5d6270;
  --ok: #2f7a4f;
  --warn: #b5562a;
  --head: 'Sunflower', 'Nanum Gothic', sans-serif;
  --body: 'Nanum Gothic', -apple-system, sans-serif;
  --num: 'Nanum Gothic Coding', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.7 var(--body); word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2 { font-family: var(--head); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin: 0; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.m-br { display: none; }

/* 헤더 */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 21px var(--head); text-decoration: none; }
.logo__box { width: 22px; height: 18px; background: var(--kraft); border-radius: 2px; position: relative; }
.logo__box::after { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 4px; background: var(--navy); }
.top__nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.top__nav a { text-decoration: none; color: var(--muted); }
.top__nav a:hover { color: var(--ink); }
.top__tel { display: flex; flex-direction: column; text-decoration: none; font: 700 19px var(--num); line-height: 1.15; padding: 8px 14px; background: var(--navy); color: #fff; border-radius: 6px; }
.top__tel small { font: 400 11px var(--body); opacity: .8; }

/* 히어로 = 계산기 */
.hero { padding: 36px 0 56px; }
.hero__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px; margin-bottom: 22px; }
.hero__kicker { margin: 0 0 6px; color: var(--muted); font-size: 15px; width: 100%; }
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.hero__meta a { font: 700 15px var(--num); color: var(--ink); }
.open { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.open::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.open.is-open::before { background: var(--ok); }
.open.is-closed::before { background: var(--warn); }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) 340px; border: 2px solid var(--ink); border-radius: 10px; background: var(--card); overflow: hidden; box-shadow: 6px 6px 0 var(--kraft-soft); }
.calc__form { display: grid; grid-template-columns: 1fr 1fr; }
.stepnav, .stepbtns { display: none; }
.q { margin: 0; border: 0; padding: 22px 26px 24px; border-bottom: 1px solid var(--line); min-width: 0; }
.q:nth-of-type(2), .q:nth-of-type(4) { border-right: 1px solid var(--line); }
.q--wide { grid-column: 1 / -1; }
.q[data-step="5"] { grid-column: 2; grid-row: 3; border-bottom: 0; }
.q[data-step="4"] { border-bottom: 0; }
legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; font: 700 17px var(--head); margin-bottom: 14px; padding: 0; }
legend b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 13px var(--num); }
.chips { clear: both; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chips--col { grid-template-columns: 1fr 1fr; }
.chips--two { grid-template-columns: 1fr 1fr; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.chips span { display: flex; flex-direction: column; justify-content: center; min-height: 48px; height: 100%; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 7px; font-weight: 700; font-size: 15px; line-height: 1.35; background: #fff; transition: border-color .15s, background .15s; }
.chips small { font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.chips label:hover span { border-color: var(--kraft); }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips input:checked + span small { color: #cfd6ea; }
.chips input:focus-visible + span { outline: 3px solid var(--kraft); outline-offset: 2px; }

.range { clear: both; }
.range output { display: block; font: 700 40px/1 var(--num); margin-bottom: 12px; }
.range input { width: 100%; accent-color: var(--navy); height: 28px; margin: 0; }
.range__ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.hint { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.pair { clear: both; display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 8px 10px; }
.pair p { margin: 0; font-size: 14px; color: var(--muted); }
.checks { clear: both; display: grid; gap: 4px; }
.checks label { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 15px; cursor: pointer; }
.checks input { width: 19px; height: 19px; accent-color: var(--navy); margin: 0; flex: none; }
.date { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.date input { font: 400 15px var(--body); padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); min-height: 42px; flex: 1; min-width: 0; }

/* 결과 */
.result { background: var(--navy); color: #fff; padding: 26px 24px 24px; position: relative; display: flex; flex-direction: column; }
.result::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--kraft); }
.result__label { margin: 6px 0 2px; font-size: 14px; color: #c6cde0; }
.result__sum { margin: 0 0 14px; font: 700 44px/1.1 var(--num); letter-spacing: -0.03em; }
.result__sum small { font: 700 18px var(--body); margin-left: 4px; letter-spacing: 0; }
.result__rows { list-style: none; margin: 0 0 14px; padding: 12px 0 0; border-top: 1px dashed rgba(255,255,255,.3); font-size: 14px; }
.result__rows li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.result__rows li span:last-child { font-family: var(--num); white-space: nowrap; }
.result__note { margin: 0 0 16px; font-size: 12.5px; line-height: 1.6; color: #c6cde0; }
.result__msg { margin: 0 0 16px; padding: 10px 12px; background: rgba(255,255,255,.07); border-radius: 6px; }
.result__msg p { margin: 0 0 4px; font-size: 12px; color: var(--kraft); font-weight: 700; }
.result__msg pre { margin: 0; font: 400 12.5px/1.6 var(--body); color: #e3e7f1; white-space: pre-wrap; word-break: keep-all; }
.result__act { display: grid; gap: 8px; margin-top: auto; }
.btn { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 14px; border-radius: 7px; border: 1.5px solid rgba(255,255,255,.55); background: transparent; color: #fff; font: 700 15px var(--body); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: rgba(255,255,255,.08); }
.btn--main { background: var(--kraft); border-color: var(--kraft); color: var(--ink); }
.btn--main:hover { background: #d4aa74; }
.result__mail { margin: 12px 0 0; font-size: 13px; color: #c6cde0; }

/* 공통 섹션 머리 */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 40px; align-items: end; margin-bottom: 24px; }
.sec-head h2, .faq h2, .steps h2 { font-size: clamp(25px, 3vw, 32px); }
.sec-head p { margin: 0; color: var(--muted); }
.sec-head em { font-style: normal; color: var(--warn); }

/* 단가표 */
.rates { padding: 56px 0; border-top: 1px solid var(--line); }
.rates__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px 32px; }
.tbl { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.tbl caption { text-align: left; font: 700 16px var(--head); padding: 0 0 10px; }
.tbl th, .tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl thead th { font-size: 13px; color: var(--muted); font-weight: 700; background: var(--paper); }
.tbl td { font-family: var(--num); white-space: nowrap; }
.tbl tbody th { font-weight: 700; }
.rates__fig { grid-column: 1 / -1; margin: 8px 0 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: end; }
.rates__fig img { border-radius: 8px; aspect-ratio: 16 / 7; object-fit: cover; width: 100%; }
.rates__fig figcaption { font-size: 14.5px; color: var(--muted); border-left: 3px solid var(--kraft); padding-left: 14px; }

/* 진행 순서 */
.steps { background: var(--ink); color: #eef0f5; padding: 64px 0; }
.steps__in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.flow { list-style: none; counter-reset: s; margin: 28px 0 0; padding: 0; }
.flow li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); }
.flow li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font: 700 15px var(--num); color: var(--kraft); padding-top: 2px; }
.flow b { font: 700 17px var(--head); }
.flow span { font-size: 15px; color: #b9bfcd; }
.steps__pics { display: grid; gap: 14px; }
.steps__pics img { border-radius: 8px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.steps__pics img + img { width: 72%; margin-left: auto; margin-top: -60px; border: 6px solid var(--ink); border-radius: 12px; }

/* 예약 현황 */
.month { padding: 60px 0 24px; }
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.days li { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--ok); border-radius: 6px; padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.days time { font: 700 17px var(--num); }
.days span { font-size: 13.5px; color: var(--muted); }
.days .few { border-top-color: var(--kraft); }
.days .full { border-top-color: var(--line); background: transparent; }
.days .full time, .days .full span { color: #9a9890; }
.notice { margin: 16px 0 0; padding: 12px 16px; background: var(--kraft-soft); border-radius: 6px; font-size: 15px; }
.notice b { font-family: var(--head); margin-right: 8px; }

/* FAQ */
.faq { padding: 40px 0 56px; max-width: 760px; margin-left: max(16px, (100% - 1080px) / 2); }
.faq h2 { margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 700 20px/1 var(--num); color: var(--kraft); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* 연락 */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px 56px; padding: 48px 0 64px; border-top: 2px solid var(--ink); }
.contact__tel { display: inline-block; margin: 14px 0 10px; font: 700 clamp(32px, 4vw, 42px)/1.1 var(--num); text-decoration: none; border-bottom: 3px solid var(--kraft); }
.contact__main p { margin: 0; color: var(--muted); }
.contact__info { display: grid; grid-template-columns: 88px 1fr; gap: 12px 16px; margin: 0; font-size: 15px; }
.contact__info dt { font-weight: 700; color: var(--muted); }
.contact__info dd { margin: 0; }
.foot { background: #e9e3d8; font-size: 13px; color: var(--muted); padding: 22px 0 28px; }
.foot p { margin: 2px 0; }

/* 퀵메뉴: PC 오른쪽 세로 */
.quick { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 30; display: flex; flex-direction: column; background: var(--card); border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; width: 74px; }
.quick a { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; text-decoration: none; border-bottom: 1px solid var(--line); text-align: center; }
.quick a:last-child { border-bottom: 0; }
.quick a:first-child { background: var(--navy); color: #fff; }
.quick b { font: 700 14px var(--head); }
.quick small { font-size: 10px; color: var(--muted); line-height: 1.3; }
.quick a:first-child small { color: #cfd6ea; font-family: var(--num); font-size: 9px; }
.quick a:hover { background: var(--kraft-soft); }
.dock { display: none; }
@media (max-width: 1260px) { .quick { display: none; } .dock { display: block; } }

/* 하단 고정: 예상 금액 + 전화·길찾기·카톡 */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 1.5px solid var(--ink); padding-bottom: env(safe-area-inset-bottom); }
.dock__est { display: flex; align-items: center; gap: 10px; padding: 8px 16px; text-decoration: none; background: var(--navy); color: #fff; font-size: 13px; }
.dock__est b { font: 700 18px var(--num); }
.dock__est em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--kraft); }
.dock__bar { display: grid; grid-template-columns: 1.3fr 1fr 1fr; }
.dock__bar a { display: flex; align-items: center; justify-content: center; min-height: 50px; font-weight: 700; text-decoration: none; border-left: 1px solid var(--line); }
.dock__bar a:first-child { border-left: 0; background: var(--kraft); }
@media (max-width: 1260px) { body { padding-bottom: 110px; } }

/* 태블릿 */
@media (max-width: 960px) {
  .top__nav { display: none; }
  .top__tel { margin-left: auto; }
  .calc { grid-template-columns: 1fr; }
  .rates__grid, .steps__in, .contact, .sec-head { grid-template-columns: 1fr; }
  .days { grid-template-columns: repeat(3, 1fr); }
}

/* 모바일: 한 화면에 한 질문 */
@media (max-width: 720px) {
  .m-br { display: inline; }
  .top__in { min-height: 56px; gap: 12px; }
  .logo { font-size: 19px; }
  .top__tel { font-size: 16px; padding: 6px 10px; }
  .hero { padding: 22px 0 36px; }
  .hero__head { margin-bottom: 16px; }
  .hero h1 { font-size: 29px; }
  .hero__meta { margin-top: 4px; }
  .hero__meta span:not(.open) { width: 100%; }
  .calc { box-shadow: 4px 4px 0 var(--kraft-soft); }
  .calc__form { display: block; }
  .q, .q:nth-of-type(2), .q:nth-of-type(4) { border-right: 0; padding: 20px 18px; }
  .chips { grid-template-columns: 1fr 1fr; }
  .js .q { display: none; border-bottom: 0; min-height: 214px; }
  .js .q.is-on { display: block; }
  .js .stepnav { display: block; padding: 14px 18px 0; font: 700 13px var(--num); color: var(--muted); }
  .js .stepbtns { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 0 18px 18px; }
  .stepbtns button { min-height: 48px; border-radius: 7px; border: 1.5px solid var(--ink); background: #fff; font: 700 15px var(--body); color: var(--ink); cursor: pointer; }
  .stepbtns [data-next] { background: var(--ink); color: #fff; }
  .stepbtns button:disabled { opacity: .35; cursor: default; }
  .result { padding: 24px 18px 20px; }
  .result__sum { font-size: 40px; }
  .result__msg { display: none; }
  .rates, .month { padding-top: 44px; }
  .tbl { font-size: 14px; }
  .tbl th, .tbl td { padding: 10px 10px; }
  .rates__fig { grid-template-columns: 1fr; }
  .rates__fig img { aspect-ratio: 3 / 2; }
  .steps { padding: 48px 0; }
  .steps__pics img + img { margin-top: -40px; width: 78%; }
  .days { grid-template-columns: 1fr 1fr; }
  .faq { margin-inline: auto; width: calc(100% - 32px); }
  .contact__info { grid-template-columns: 1fr; gap: 2px; }
  .contact__info dd { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
