/* 꼼꼬미클린 v2.1. 방향: The page is the object. 물건은 이 업체가 보내는 견적서 한 장.
   서체는 Pretendard(한글), 색은 업주 단가표 포스터의 파랑 한 계열. */

@font-face {
  font-family: "Pretendard Variable";
  src: url("../assets/fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #566b72;
  --blue: #62828d;
  --sky: #c3d2d6;
  --mid: #a1b8bf;
  --paper: #f4f3ee;
  --white: #ffffff;
  --ink: #24343a;
  --muted: #52656c;
  --focus: #62828d;

  --margin: clamp(16px, 3vw, 44px);
  --bar: 60px;
  --section: clamp(88px, 10vw, 150px);

  /* 글자 크기는 다섯 단계만 */
  --small: 0.9375rem;
  --body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --lead: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  --head: clamp(2.1rem, 3.6vw, 3.5rem);
  --display: clamp(2.9rem, 5.8vw, 6.2rem);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --imgbg: rgba(36, 52, 58, 0.1);
}
.b-blue, .steps, .price, .contact, .foot { --focus: #ffffff; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 12px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 var(--body) / 1.6 var(--font);
  font-variant-numeric: tabular-nums;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; background: var(--imgbg); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); color: var(--ink); padding: 12px 16px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---- 버튼 ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  background: var(--blue); color: var(--white);
  font-size: var(--body); font-weight: 700; text-decoration: none; text-align: center;
  border: 0; border-radius: 0;
  transition: background-color 0.16s ease, transform 0.16s var(--ease);
}
.btn:hover { background: #506d77; }
.btn:active { transform: scale(0.97); }
.btn-soft { background: var(--sky); color: var(--ink); }
.btn-soft:hover { background: var(--mid); }
.btn-ghost { width: 100%; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-ghost:hover { background: var(--sky); }
.more-guide { display: flex; flex-direction: column; align-items: center; gap: 2px; width: min(100%, 1180px); margin: 20px auto 0; color: var(--white); font-size: var(--small); font-weight: 700; text-align: center; }
.more-guide b { font-size: 1.6rem; line-height: 1; animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .more-guide b { animation: none; } }
.btn-bar { width: 100%; background: var(--navy); color: var(--white); }
.btn-bar:hover { background: #44575d; }

/* ---- 위쪽 줄 ---- */
.top {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--bar); padding: 0 var(--margin);
  background: var(--white); color: var(--ink);
}
.wordmark { font-weight: 800; font-size: var(--lead); letter-spacing: -0.03em; text-decoration: none; }
.links { display: flex; gap: clamp(16px, 2.4vw, 36px); margin-left: auto; font-size: var(--small); font-weight: 600; }
.links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.links a:hover, .top-r:hover { text-decoration: underline; }
.top-r { display: inline-flex; align-items: center; min-height: 44px; padding-left: 8px; font-size: var(--small); font-weight: 700; text-decoration: none; }

/* ---- 1. 첫 화면: 사진 한 장이 화면 전체, 가운데에 칸 하나 ---- */
.hero {
  position: relative; display: grid; place-items: center;
  height: calc(100svh - var(--bar)); min-height: 560px;
  padding: 24px var(--margin); overflow: hidden;
  background: var(--paper);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-box {
  position: relative; width: min(100%, 600px);
  padding: clamp(28px, 4vw, 52px);
  background: var(--white); color: var(--ink);
}
.h1 { font-size: var(--head); font-weight: 800; line-height: 1.12; letter-spacing: -0.045em; }
.hero-sub { margin-top: 16px; font-size: var(--lead); line-height: 1.4; letter-spacing: -0.02em; }
.hero-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 40px; padding: 22px var(--margin); background: var(--white); font-size: var(--body); }
.facts p { margin: 0; }
.facts b { font-weight: 800; letter-spacing: -0.02em; margin-right: 4px; }

/* ---- 공통 ---- */
section { position: relative; }
.js .rise { opacity: 0; transform: translateY(14px); transition: opacity 0.45s var(--ease) var(--d, 0ms), transform 0.45s var(--ease) var(--d, 0ms); }
.js .rise.is-in { opacity: 1; transform: none; }

/* ---- 2. 뜯는 곳: 띠 네 개 ---- */
.work { background: var(--navy); color: var(--white); padding: var(--section) 0 0; }
.wk-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; padding: 0 var(--margin) clamp(48px, 6vw, 88px); }
.wk-h { grid-column: 1 / 7; font-size: var(--head); font-weight: 800; letter-spacing: -0.04em; line-height: 1.12; }
.wk-note { grid-column: 7 / 12; font-size: var(--lead); line-height: 1.45; letter-spacing: -0.02em; max-width: 34ch; }
.band { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; padding: clamp(32px, 4vw, 56px) var(--margin); color: var(--ink); }
.b-sky { background: var(--sky); }
.b-white { background: var(--white); }
.b-blue { background: var(--blue); color: var(--white); }
.b-mid { background: var(--mid); }
.bph { grid-column: 1 / 7; }
.bph img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.btxt { grid-column: 8 / 13; }
.flip .bph { grid-column: 7 / 13; grid-row: 1; }
.flip .btxt { grid-column: 1 / 6; grid-row: 1; }
.btxt h3 { font-size: var(--head); font-weight: 800; letter-spacing: -0.04em; line-height: 1.12; }
.btxt p { margin-top: 16px; max-width: 34ch; font-size: var(--lead); line-height: 1.45; letter-spacing: -0.02em; }
.link { display: inline-flex; align-items: center; min-height: 48px; margin-top: 16px; padding: 8px 0; font-size: var(--body); font-weight: 700; text-decoration: underline; text-decoration-thickness: 0.12em; }

/* ---- 3. 현장 기록 ---- */
.cases { background: var(--sky); padding: var(--section) var(--margin); }
.cs-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: end; margin-bottom: clamp(48px, 5vw, 72px); }
.cs-h { grid-column: 1 / 7; font-size: var(--head); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.cs-lead { grid-column: 8 / 13; }
.cs-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; align-items: start; }
.cs-list { grid-column: 1 / 6; display: grid; gap: 8px; }
.js .pair-fallback { display: none; }
.pair-fallback { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.cs-list li > button {
  display: block; width: 100%; padding: 16px 20px; text-align: left;
  background: var(--paper); color: var(--ink); border: 0; border-radius: 0;
  transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.cs-list li > button:active { transform: scale(0.99); }
.cs-list li > button {
}
.cs-t { display: block; font-weight: 800; letter-spacing: -0.02em; }
.cs-m { display: block; margin-top: 2px; font-size: var(--small); color: var(--muted); }
.cs-list li > button:hover { background: var(--white); }
.cs-list li > button[aria-current="true"] { background: var(--navy); color: var(--white); }
.cs-list li > button[aria-current="true"] .cs-m { color: var(--mid); }
@media (hover: hover) { .cs-list:hover li > button:not(:hover):not([aria-current="true"]) { opacity: 0.55; } }
.compare { grid-column: 7 / 13; position: sticky; top: calc(var(--bar) + 16px); }
.cmp-frame { position: relative; aspect-ratio: 5 / 4; max-height: 76svh; width: 100%; overflow: hidden; background: var(--imgbg); --cut: 50%; touch-action: pan-y; }
.cmp-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-after { clip-path: inset(0 0 0 var(--cut)); }
.cmp-knob { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 6px; margin-left: -3px; background: var(--white); pointer-events: none; }
.cmp-knob::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cpath d='M18 14 10 22l8 8M26 14l8 8-8 8' fill='none' stroke='%2324343a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 44px no-repeat;
  border-radius: 50%;
}
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cmp-frame:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.cmp-tag { position: absolute; top: 14px; padding: 8px 16px; font-size: var(--small); font-weight: 800; background: var(--navy); color: var(--white); }
.cmp-tag-a { left: 14px; }
.cmp-tag-b { right: 14px; background: var(--white); color: var(--navy); }
.cmp-load { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; font-weight: 700; color: var(--white); background: rgba(36, 52, 58, 0.55); pointer-events: none; }
.cmp-frame.is-loading .cmp-load { display: flex; }
.cmp-cap { margin-top: 14px; font-size: var(--body); }
.cmp-cap strong { display: block; font-weight: 800; letter-spacing: -0.02em; }

.tiles-h { margin: clamp(80px, 8vw, 120px) 0 32px; font-size: var(--head); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 12px; }
.tile { overflow: hidden; }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.25s var(--ease); }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.02); } }
.tile p { padding: 12px 14px; font-size: var(--small); font-weight: 700; background: var(--paper); color: var(--ink); }

.allposts { margin-top: 64px; background: var(--paper); }
.allposts summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: baseline; padding: 20px 24px; cursor: pointer; font-weight: 800; list-style: none; }
.allposts summary::-webkit-details-marker { display: none; }
.allposts summary em { font-style: normal; font-weight: 400; font-size: var(--small); color: var(--muted); }
.allposts[open] summary { background: var(--navy); color: var(--white); }
.allposts[open] summary em { color: var(--mid); }
.ap-list { padding: 8px 24px 24px; }
.ap-list li { font-size: var(--body); line-height: 1.5; }
.ap-list a { display: block; padding: 11px 0; min-height: 48px; text-decoration: none; }
.ap-list a:hover { text-decoration: underline; }
.ap-list time { display: inline-block; margin-right: 12px; font-size: var(--small); font-weight: 700; color: var(--muted); }
.cs-more { margin-top: 32px; }

/* ---- 4. 고객 리뷰 ---- */
.reviews { background: var(--paper); padding: var(--section) var(--margin); }
.rv-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-bottom: clamp(56px, 6vw, 88px); }
.rv-h { grid-column: 1 / 8; font-size: var(--head); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.rv-score { grid-column: 9 / 13; display: flex; align-items: baseline; gap: 16px; }
.rv-score strong { font-size: var(--head); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.rv-score span { font-size: var(--small); color: var(--muted); line-height: 1.4; }
.letter { width: min(100%, 38ch); margin-left: calc((100% - 38ch) * 0.28); }
.letter-open { font-size: var(--lead); font-weight: 700; line-height: 1.35; letter-spacing: -0.03em; margin-bottom: 28px; }
.letter p { margin-bottom: 20px; font-size: var(--body); line-height: 1.7; }
.letter-by { margin-top: 40px; display: grid; gap: 2px; }
.letter-by strong { font-weight: 800; }
.letter-by span { font-size: var(--small); color: var(--muted); }
.rv-list { columns: 2; column-gap: 56px; margin-top: clamp(72px, 8vw, 112px); }
.rv-list li { break-inside: avoid; margin-bottom: 44px; }
.rv-list p { font-size: var(--body); line-height: 1.65; }
.rv-list li:first-child p { font-size: var(--lead); font-weight: 600; line-height: 1.5; letter-spacing: -0.02em; }
.rv-list footer { margin-top: 10px; font-size: var(--small); font-weight: 700; color: var(--muted); }
.rv-note { margin-top: 8px; font-size: var(--small); color: var(--muted); }

/* ---- 5. 요금: 견적서 한 장 ---- */
.price { background: var(--blue); color: var(--white); padding: var(--section) var(--margin); }
.pc-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.pc-h { grid-column: 1 / 8; font-size: var(--head); font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; }
.pc-p { grid-column: 9 / 13; font-size: var(--body); }
.ticket {
  position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  width: min(100%, 1180px); margin: clamp(40px, 5vw, 64px) auto 0;
  background: var(--white); color: var(--ink);
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; left: 60%; z-index: 2; width: 28px; height: 28px; margin-left: -14px;
  border-radius: 50%; background: var(--blue);
}
.ticket::before { top: -14px; }
.ticket::after { bottom: -14px; }
.tk-main { padding: clamp(24px, 3vw, 44px); display: grid; gap: 24px; align-content: start; }
.tk-title { font-size: var(--lead); font-weight: 800; letter-spacing: -0.03em; }
.tk-stub { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(24px, 3vw, 44px); background: var(--paper); }
.tk-stub::before {
  content: ""; position: absolute; left: -3px; top: 20px; bottom: 20px; width: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='16' viewBox='0 0 6 16'%3E%3Ccircle cx='3' cy='8' r='3' fill='%2362828d'/%3E%3C/svg%3E") repeat-y center top;
}
.out-note { font-size: var(--small); color: var(--muted); }
.out-num { font-size: var(--head); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.stub-tel { align-self: center; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 700; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font-size: var(--small); font-weight: 700; color: var(--muted); }
.opt { display: inline-block; margin: 0 6px 8px 0; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 18px;
  background: var(--paper); font-weight: 600; cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease, transform 0.14s var(--ease);
}
.opt span:hover { background: var(--sky); }
.opt span:active { transform: scale(0.97); }
.opt input:checked + span { background: var(--navy); color: var(--white); }
.opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.opt small { font-size: var(--small); font-weight: 400; opacity: 0.85; }
.size { display: grid; gap: 8px; }
.size > span:first-child { font-size: var(--small); font-weight: 700; color: var(--muted); }
.size-hint { font-size: var(--small); color: var(--muted); }
.size.is-off { opacity: 0.4; pointer-events: none; }
.size-in { display: inline-flex; align-items: baseline; gap: 8px; }
.size-in input { width: 7.5ch; padding: 6px 12px; font: 800 var(--lead) var(--font); background: var(--paper); color: var(--ink); border: 0; border-bottom: 3px solid var(--navy); border-radius: 0; }
.size-in em { font-style: normal; font-weight: 700; }
.size.is-bad .size-hint { color: #b3261e; font-weight: 700; }
.size.is-bad .size-in input { border-bottom-color: #b3261e; }
.out-lines { display: grid; gap: 6px; font-size: var(--body); }
.out-lines li { display: flex; justify-content: space-between; gap: 16px; }
.out-lines li span:last-child { font-weight: 700; white-space: nowrap; }
.btn[aria-disabled="true"] { background: #6f7f93; color: var(--white); cursor: not-allowed; }

.more { width: min(100%, 1180px); margin: 24px auto 0; background: var(--sky); color: var(--ink); }
.more > summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: baseline; padding: 22px 28px; cursor: pointer; font-size: var(--lead); font-weight: 800; letter-spacing: -0.03em; list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary em { font-style: normal; font-weight: 400; font-size: var(--small); color: var(--muted); }
.more[open] > summary { background: var(--navy); color: var(--white); }
.more[open] > summary em { color: var(--mid); }
.more-body { padding: 28px; background: var(--white); }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.more-col { display: grid; gap: 22px; align-content: start; }
.sel { display: grid; gap: 6px; }
.sel > span { font-size: var(--small); font-weight: 700; color: var(--muted); }
.sel select, .sel input, #sumText {
  width: 100%; min-height: 48px; padding: 8px 12px; font: 400 var(--body) var(--font); color: var(--ink);
  background: var(--paper); border: 2px solid var(--paper); border-radius: 0;
}
.sel select:focus, .sel input:focus, #sumText:focus { outline: 3px solid var(--blue); outline-offset: 2px; border-color: var(--navy); }
.more-out { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; margin-top: 32px; }
.sum-l { display: block; margin-bottom: 6px; font-size: var(--small); font-weight: 700; color: var(--muted); }
#sumText { resize: vertical; line-height: 1.55; }
.more-hints { display: grid; gap: 8px; font-size: var(--body); }
.more-hints li { padding-left: 14px; position: relative; }
.more-hints li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.out-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.extras { margin-top: 16px; }
.extras-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.extras-list b { display: block; color: var(--blue); }
@media (max-width: 760px) { .extras-list { grid-template-columns: 1fr; } }
.more-fine { margin-top: 12px; font-size: var(--small); color: var(--muted); }
.pc-fine { width: min(100%, 1180px); margin: 32px auto 0; font-size: var(--small); color: var(--white); max-width: 70ch; }

/* ---- 6. 작업 순서 ---- */
.steps { background: var(--navy); color: var(--white); padding: var(--section) var(--margin) calc(var(--section) + 24px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px 24px; align-items: start; }
.st-left { grid-column: 1 / 7; }
.st-h { font-size: var(--head); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.st-p { margin-top: 24px; max-width: 34ch; font-size: var(--lead); line-height: 1.45; letter-spacing: -0.02em; }
.st-photo { margin-top: 40px; }
.st-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.slip { grid-column: 8 / 13; position: relative; padding: 36px 32px 36px; background: var(--paper); color: var(--ink); }
.slip::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 0h28L14 14z' fill='%2362828d'/%3E%3C/svg%3E") repeat-x left top / 28px 14px;
}
.slip h3 { margin-top: 28px; font-size: var(--lead); font-weight: 800; letter-spacing: -0.03em; }
.slip h3:first-child { margin-top: 0; }
.lines { margin-top: 10px; display: grid; gap: 8px; font-size: var(--body); }
.slip-end { margin: 32px -32px 0; padding: 16px 32px; min-height: 52px; background: var(--blue); color: var(--white); font-size: var(--lead); font-weight: 800; letter-spacing: -0.03em; }

/* ---- 7. 질문 ---- */
.faq { background: var(--paper); padding: var(--section) var(--margin); }
.fq-h { font-size: var(--head); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; width: min(100%, 860px); margin: 0 auto 56px; }
.cards { width: min(100%, 860px); margin: 0 auto; display: grid; gap: 8px; }
.card { background: var(--sky); }
.card[open] { background: var(--white); }
.card summary { display: flex; align-items: center; min-height: 64px; padding: 16px 28px; font-size: var(--lead); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; cursor: pointer; list-style: none; }
.card summary::-webkit-details-marker { display: none; }
.card summary::after { content: ""; margin-left: auto; width: 14px; height: 14px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s var(--ease-in-out); flex: none; }
.card[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.card:hover:not([open]) { background: var(--mid); }
.q { padding-right: 16px; }
.ans { padding: 0 28px 28px; max-width: 54ch; }
.ans p + p { margin-top: 14px; }
.ans-link { font-weight: 700; }

/* ---- 8. 연락 ---- */
.contact { background: var(--blue); color: var(--white); overflow: hidden; padding: clamp(72px, 8vw, 120px) var(--margin) 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; align-items: end; }
.ct-ask { grid-column: 1 / 7; font-size: var(--head); font-weight: 800; line-height: 1.2; letter-spacing: -0.04em; padding-bottom: 0; align-self: start; }
.reply {
  grid-column: 7 / 13; margin-bottom: -48px; padding: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 96px;
  background: var(--paper); color: var(--ink); text-align: center;
  display: grid; gap: 18px; justify-items: center;
}
.rp-h { font-size: var(--head); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.rp-p { font-size: var(--body); }
.rp-num { font-size: var(--lead); font-weight: 800; text-decoration: none; }
.reply .btn { width: 100%; }
.rp-links { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: center; font-size: var(--body); font-weight: 600; }
.rp-links a, .rp-links button { display: inline-flex; align-items: center; min-height: 44px; }
.rp-links button { background: none; border: 0; padding: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.ct-copied { min-height: 1.5em; font-size: var(--small); margin: -8px 0 -40px; }

/* ---- 푸터 ---- */
.foot { background: var(--navy); color: var(--white); padding: 72px var(--margin) 56px; }
.back { width: 100%; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 56px; }
.bk-h { font-size: var(--lead); font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; margin-bottom: 14px; }
.bk-msg p:last-child { max-width: 40ch; }
.bk-addr { display: grid; gap: 4px; font-size: var(--body); font-weight: 600; }
.bk-addr a { display: inline-flex; align-items: center; min-height: 44px; }
.imprint { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: var(--small); color: var(--mid); }
.imprint a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- 견적 신청 칸 ---- */
.apply { border: 0; padding: 0; width: min(calc(100% - 32px), 560px); max-height: calc(100svh - 32px); overflow: auto; background: var(--white); color: var(--ink); }
.apply { opacity: 0; transform: scale(0.96); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), overlay 0.2s allow-discrete, display 0.2s allow-discrete; }
.apply[open] { opacity: 1; transform: none; }
@starting-style { .apply[open] { opacity: 0; transform: scale(0.96); } }
.apply::backdrop { background: rgba(36, 52, 58, 0.62); opacity: 0; transition: opacity 0.2s ease, overlay 0.2s allow-discrete, display 0.2s allow-discrete; }
.apply[open]::backdrop { opacity: 1; }
@starting-style { .apply[open]::backdrop { opacity: 0; } }
.apply form, .ap-done { padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.apply form[hidden] { display: none; }
.apply h2 { font-size: var(--lead); font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; }
.ap-sum { padding: 14px 16px; background: var(--paper); font-size: var(--small); line-height: 1.55; }
.ap-field { display: grid; gap: 6px; }
.ap-field label { font-size: var(--small); font-weight: 700; color: var(--muted); }
.ap-field em { font-style: normal; color: #b3261e; margin-left: 4px; }
.ap-field input, .ap-field textarea, .ap-field select { width: 100%; min-height: 48px; padding: 10px 12px; font: 400 var(--body) var(--font); color: var(--ink); background: var(--paper); border: 2px solid var(--paper); border-radius: 0; }
.ap-field input:focus, .ap-field textarea:focus, .ap-field select:focus { outline: 3px solid var(--blue); outline-offset: 2px; border-color: var(--navy); }
.ap-consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; cursor: pointer; }
.ap-consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); }
.ap-consent small { display: block; margin-top: 4px; font-size: var(--small); color: var(--muted); }
.ap-note { font-size: var(--small); line-height: 1.55; color: var(--ink); }
.ap-err { min-height: 0; font-size: var(--small); font-weight: 700; color: #b3261e; }
.ap-status { font-size: var(--small); font-weight: 700; }
.ap-hp { position: absolute; left: -9999px; width: 2px; height: 2px; opacity: 0; }
.ap-act { display: flex; flex-wrap: wrap; gap: 10px; }
.ap-act .btn { flex: 1 1 140px; }
.ap-done p { font-size: var(--body); }

/* ---- 폰에서만 보이는 전화 바 ---- */
.callbar { display: none; }

/* ---- 단순 페이지(404, 개인정보 안내) ---- */
.plain { min-height: calc(100svh - var(--bar)); padding: clamp(48px, 8vw, 112px) var(--margin) 96px; background: var(--paper); }
.plain-in { width: min(100%, 68ch); margin: 0 auto; }
.plain h1 { font-size: var(--head); font-weight: 800; letter-spacing: -0.04em; line-height: 1.12; margin-bottom: 32px; }
.plain h2 { margin: 40px 0 10px; font-size: var(--lead); font-weight: 800; letter-spacing: -0.03em; }
.plain p, .plain li { margin-bottom: 12px; }
.plain ul { list-style: disc; padding-left: 1.2em; }
.plain .btn { margin-top: 24px; }
.plain-note { margin-top: 40px; font-size: var(--small); color: var(--muted); }

/* ---- 폰 ---- */
@media (max-width: 800px) {
  :root { --display: clamp(2.6rem, 14.5vw, 4.2rem); --head: clamp(1.9rem, 8vw, 2.6rem); --section: 72px; --bar: 56px; }
  .links { display: none; }
  .wordmark { font-size: var(--body); }
  .hero { min-height: 520px; padding: 16px var(--margin); }
  .hero-box { padding: 28px 22px 26px; }
  .hero-sub { font-size: var(--body); }
  .hero-act .btn { flex: 1 1 100%; }
  .facts { flex-direction: column; align-items: center; gap: 4px; padding: 18px var(--margin); text-align: center; }
  .wk-head, .cs-head, .rv-top, .pc-top, .steps, .contact { display: block; }
  .wk-note { margin-top: 20px; }
  .band { display: block; padding: 32px var(--margin) 36px; }
  .btxt { margin-top: 20px; }
  .btxt p { font-size: var(--body); }
  .cs-lead, .pc-p { margin-top: 16px; }
  .cs-grid { display: flex; flex-direction: column; }
  .compare { position: sticky; top: var(--bar); z-index: 5; order: -1; margin: 0 calc(var(--margin) * -1); padding: 8px var(--margin) 12px; background: var(--sky); }
  .cmp-frame { max-height: 42svh; aspect-ratio: 4 / 3; }
  .cmp-cap { margin-top: 8px; font-size: var(--small); }
  .cs-list { margin-top: 8px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 16px 8px; }
  .rv-score { margin-top: 20px; }
  .letter { margin-left: 0; }
  .rv-list { columns: 1; }
  .ticket { grid-template-columns: 1fr; }
  .ticket::before, .ticket::after { top: calc(100% - var(--stub-h, 330px) - 14px); bottom: auto; }
  .ticket::before { left: -14px; margin-left: 0; }
  .ticket::after { left: auto; right: -14px; margin-left: 0; }
  .tk-stub::before { left: 20px; right: 20px; top: -3px; bottom: auto; width: auto; height: 6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='6' viewBox='0 0 16 6'%3E%3Ccircle cx='8' cy='3' r='3' fill='%2362828d'/%3E%3C/svg%3E") repeat-x left center; }
  .more-grid, .more-out { grid-template-columns: 1fr; }
  .st-photo { max-width: none; }
  .slip { margin-top: 48px; padding: 28px 20px 32px; }
  .card summary { font-size: var(--body); padding: 16px 20px; }
  .ans { padding: 0 20px 24px; }
  .ct-ask { padding-bottom: 32px; font-size: 1.375rem; line-height: 1.35; }
  .reply { width: 100%; margin-bottom: -40px; padding-bottom: 96px; }
  .back { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { padding-bottom: 72px; }
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--navy);
    transform: translateY(110%); transition: transform 0.25s var(--ease-drawer);
  }
  .callbar.is-on { transform: none; }
  .callbar.is-on.is-hid { transform: translateY(110%); }
  .callbar a { display: flex; align-items: center; justify-content: center; min-height: 60px; font-weight: 800; color: var(--white); text-decoration: none; }
  .callbar .cb-tel { background: var(--blue); }
  .callbar .cb-calc { background: #44575d; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .slot img, .tile img, .btn, .opt span, .callbar, .apply, .apply::backdrop, .card summary::after { transition: none; }
  .btn:active, .opt span:active, .cs-list li > button:active { transform: none; }
  .tile:hover img { transform: none; }
}
.bizinfo { margin-top: 28px; font-size: var(--small); line-height: 1.6; opacity: 0.8; max-width: 60ch; }

/* 후기 안내 줄의 링크: 누르는 영역을 24px 이상으로 (키보드 점검 2026-11-03) */
.rv-note a{display:inline-block;padding:4px 2px;min-height:24px;line-height:16px}
