:root {
  --bg: #f6f4ef;
  --paper: #fffdf8;
  --ink: #1d1c1a;
  --muted: #6b675f;
  --line: #dcd6ca;
  --soft: #ebe5d8;
  --accent: #2f5d50;
  --accent-2: #24493f;
  --accent-ink: #ffffff;
  --warn: #9a3b1e;
  --radius: 10px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-size: 17px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(38px, 7vw, 76px); font-weight: 800; }
h2 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; line-height: 1.3; }
.eyebrow { font-size: 14px; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin-bottom: 14px; }

/* 머리 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(246, 244, 239, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -0.03em; text-decoration: none; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 24px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--accent); color: var(--accent-ink); }
.btn:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.small { padding: 9px 16px; font-size: 15px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
@media (max-width: 760px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* 첫 화면 */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.58) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 64px; width: 100%; }
.hero p.lead { font-size: clamp(18px, 2.2vw, 22px); max-width: 620px; margin: 22px 0 30px; opacity: 0.95; }
.hero .tag { display: inline-block; font-size: 14px; border: 1px solid rgba(255,255,255,0.7); border-radius: 999px; padding: 6px 14px; margin-bottom: 22px; }
.hero .btn { background: #fff; color: var(--ink); }
.hero .btn:hover { background: var(--soft); }

/* 큰 숫자 */
.nums { border-bottom: 1px solid var(--line); }
.nums .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.nums .n { padding: 40px 24px 36px 0; border-right: 1px solid var(--line); }
.nums .n:last-child { border-right: 0; }
.nums .n + .n { padding-left: 28px; }
.nums b { display: block; font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.nums span { color: var(--muted); }
@media (max-width: 760px) {
  .nums .wrap { grid-template-columns: 1fr; }
  .nums .n, .nums .n + .n { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 0; }
  .nums .n:last-child { border-bottom: 0; }
}

section.block { padding: 96px 0; }
section.block.tight { padding: 72px 0; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 44px; }
.head p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .head { grid-template-columns: 1fr; gap: 16px; } section.block { padding: 64px 0; } }

/* 견적 */
.quote { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .quote { grid-template-columns: 1fr; } }
.quote > aside { align-self: stretch; }
.step { border-top: 1px solid var(--ink); padding: 26px 0 34px; }
.step > .sh { display: flex; gap: 14px; align-items: baseline; margin-bottom: 18px; }
.step > .sh i { font-style: normal; font-weight: 800; color: var(--accent); font-size: 15px; }
.step > .sh h3 { font-size: 22px; }
.choices { display: grid; gap: 10px; }
.choices.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .choices.c3, .choices.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .box { display: block; height: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 14px 16px; transition: border-color .15s, box-shadow .15s; }
.opt .box b { display: block; font-size: 17px; }
.opt .box small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 2px; }
.opt .box em { display: block; font-style: normal; font-weight: 700; color: var(--accent); font-size: 15px; margin-top: 6px; }
.opt input:checked + .box { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #f2f6f3; }
.opt input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt.tex .box { padding: 0; overflow: hidden; }
.opt.tex img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.opt.tex .t { display: block; padding: 12px 16px 14px; }
.row { display: grid; gap: 14px; margin-top: 18px; }
.row label.f { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
input[type=text], input[type=tel], input[type=date], select, textarea {
  font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--paper); color: var(--ink); width: 100%;
}
textarea { min-height: 84px; resize: vertical; }
.sub { font-weight: 600; font-size: 15px; margin: 22px 0 10px; }
.note { font-size: 14px; color: var(--muted); margin-top: 10px; }
.warnbox { border-left: 3px solid var(--warn); background: #fbf1ec; padding: 12px 14px; font-size: 15px; margin-top: 12px; }

/* 사진 */
.drop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .drop { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 6px; right: 6px; border: 0; border-radius: 999px; background: rgba(0,0,0,0.65); color: #fff; width: 28px; height: 28px; cursor: pointer; font-size: 16px; line-height: 1; }
.add { aspect-ratio: 1; border: 1px dashed var(--muted); border-radius: 8px; display: grid; place-items: center; text-align: center; cursor: pointer; color: var(--muted); font-size: 14px; background: var(--paper); padding: 8px; }
.add svg { width: 26px; height: 26px; margin: 0 auto 4px; }
.guide { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.guide div { border-top: 2px solid var(--line); padding-top: 8px; }
.guide b { color: var(--ink); display: block; }
@media (max-width: 760px) { .guide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-top: 10px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }

/* 합계 카드 */
.sum { position: sticky; top: 84px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.sum .label { color: var(--muted); font-size: 14px; }
.sum .total { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 4px 0 6px; }
.sum ul { list-style: none; padding: 0; margin: 18px 0; border-top: 1px solid var(--line); }
.sum li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sum li span:last-child { white-space: nowrap; font-weight: 600; }
.sum .promise { background: var(--soft); border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.sum .btn { width: 100%; margin-top: 16px; }
.err { color: var(--warn); font-size: 14px; margin-top: 10px; min-height: 1em; }
@media (max-width: 960px) { .sum { position: static; } }
.bar { display: none; }
@media (max-width: 960px) {
  .bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ink); color: #fff; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); align-items: center; gap: 12px; }
  .bar .t { font-weight: 800; font-size: 22px; }
  .bar .l { font-size: 12px; opacity: 0.75; }
  .bar .btn { margin-left: auto; background: #fff; color: var(--ink); padding: 11px 18px; }
  .bar.hide { display: none; }
  body.has-bar { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* 결과 */
.done { background: var(--paper); border: 1px solid var(--accent); border-radius: 14px; padding: 32px; }
.done .id { font-size: 15px; color: var(--muted); }
.done .id b { color: var(--ink); font-size: 20px; letter-spacing: 0.04em; }
.done ol { padding-left: 20px; }
.done ol li { margin: 8px 0; }
.done .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* 가격표 */
table.price { width: 100%; border-collapse: collapse; font-size: 16px; }
table.price th, table.price td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); }
table.price thead th { font-size: 14px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--ink); }
table.price td.n { font-weight: 700; white-space: nowrap; text-align: right; }
table.price th.n { text-align: right; }
table.price td small { display: block; color: var(--muted); font-size: 13px; }
.tablewrap { overflow-x: auto; }

/* 지그재그 */
.zig { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.zig:nth-child(even) .ph { order: 2; }
.zig .ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.zig .num { font-size: 64px; font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -0.04em; }
.zig h3 { font-size: 28px; margin: 14px 0 12px; }
.zig p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .zig { grid-template-columns: 1fr; gap: 20px; } .zig:nth-child(even) .ph { order: 0; } }

/* 색면 약속 */
.field { background: var(--accent); color: #fff; }
.field blockquote { margin: 0; font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; max-width: 900px; }
.field .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 56px; border-top: 1px solid rgba(255,255,255,0.35); padding-top: 32px; }
.field ul { margin: 10px 0 0; padding-left: 18px; }
.field li { margin: 6px 0; }
.field .cols h3 { font-size: 18px; }
@media (max-width: 760px) { .field .cols { grid-template-columns: 1fr; } }

/* 자주 묻는 것 */
details { border-top: 1px solid var(--line); padding: 20px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: '+'; font-weight: 400; color: var(--muted); }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); margin: 12px 0 0; }

footer { border-top: 1px solid var(--line); padding: 40px 0 60px; font-size: 14px; color: var(--muted); }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin: 10px 0; }

/* 문서 화면(약관·처리방침·약정) */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 12px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc p, .doc li { color: #3a3833; }
.doc ol, .doc ul { padding-left: 20px; }
.doc .meta { color: var(--muted); font-size: 14px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
