/* =========================================================================
   누수탐지 업체 사이트 — site.css
   스위스 스타일: 12단 격자, 가는 선, 글꼴 1종, 행동색 1개(형광 주황).
   모바일 우선으로 작성하고 넓은 화면에서 격자를 펼칩니다. 토큰은 DESIGN.md 참고.
   ========================================================================= */

:root {
  --paper: #ffffff;
  --panel: #f2f4f6;
  --ink: #15191e;
  --ink-2: #56606b;
  --rule: #d5dae0;
  --pipe: #2457c5;
  --signal: #ff6b1a;
  --water: #e7eef9;
  --kakao: #fee500;      /* 카카오톡 버튼에만 */

  --font: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --step--1: 0.875rem;   /* 14 */
  --step-0: 1.0625rem;   /* 17 본문 */
  --step-1: 1.25rem;     /* 20 */
  --step-2: 1.5625rem;   /* 25 */
  --step-3: clamp(1.75rem, 1.2rem + 1.6vw, 2rem);      /* 28→32 */
  --step-4: clamp(2.375rem, 1.3rem + 3.6vw, 4rem);     /* 38→64 */

  --wrap: 1200px;
  --gutter: 20px;
  --gap: 24px;
  --header-h: 64px;
  --radius: 4px;
}
@media (min-width: 900px) {
  :root { --gutter: 32px; --header-h: 72px; }
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--step-0)/1.75 var(--font);
  word-break: keep-all; overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pipe); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); text-decoration: none; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
h1, h2, h3 { text-wrap: balance; }
html { -webkit-tap-highlight-color: rgba(36, 87, 197, .15); }
a, button, summary, label, select { touch-action: manipulation; }
html { scroll-padding-bottom: 96px; } /* 하단 배너 높이 */

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--radius);
  font-weight: 700; font-size: var(--step-0); line-height: 1.2; text-decoration: none;
  border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--panel); }
.btn--call { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn--call:hover { background: #ff8340; border-color: #ff8340; }
.btn--big { min-height: 60px; font-size: var(--step-1); padding: 0 26px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn small { font-weight: 400; font-size: var(--step--1); }

/* ---------- 헤더 ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); }
.hdr__in { display: flex; align-items: center; height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; font-weight: 700; font-size: var(--step-1); letter-spacing: -0.01em; text-decoration: none; margin-right: auto; }
.brand svg { width: 26px; height: 26px; }
.nav { display: none; }
.nav a { text-decoration: none; font-size: var(--step--1); color: var(--ink-2); padding: 8px 0; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.hdr__call { min-height: 44px; padding: 0 14px; font-size: var(--step--1); }
.hdr__call .lbl, .hdr__call .hdr__num { display: none; }
.hdr__call { white-space: nowrap; }
@media (min-width: 480px) { .hdr__call .hdr__num { display: inline; } .hdr__call .hdr__short { display: none; } }
.hdr__menu { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--paper); cursor: pointer; }
.hdr__menu svg { width: 20px; height: 20px; }
.menu { display: none; border-top: 1px solid var(--rule); background: var(--paper); }
.menu.is-open { display: block; }
.menu a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 700; }
@media (min-width: 1000px) {
  .nav { display: flex; gap: 28px; margin-right: 28px; }
  .hdr__menu, .menu { display: none !important; }
  .hdr__call { min-height: 48px; padding: 0 18px; font-size: var(--step-0); }
  .hdr__call .lbl { display: inline; font-weight: 400; font-size: var(--step--1); }
}

/* ---------- 섹션 공통 (왼쪽 4단 제목 / 오른쪽 8단 내용) ---------- */
.sec { border-top: 1px solid var(--rule); padding: 64px 0; }
.sec__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.sec__head h2 { font-size: var(--step-3); line-height: 1.3; letter-spacing: -0.015em; }
.sec__head p { margin-top: 14px; color: var(--ink-2); max-width: 34em; }
@media (min-width: 900px) {
  .sec { padding: 96px 0; }
  .sec__grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .sec__head { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
  .sec__body { grid-column: 5 / span 8; }
}

/* ---------- 히어로 ---------- */
.hero { padding: 36px 0 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.hero__grid > *, .sec__grid > * { min-width: 0; }
.hero h1 { font-size: var(--step-4); line-height: 1.16; letter-spacing: -0.03em; }
.hero__lead { margin-top: 20px; font-size: var(--step-1); line-height: 1.65; color: var(--ink-2); max-width: 27em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__note { margin-top: 14px; font-size: var(--step--1); color: var(--ink-2); }
@media (max-width: 599px) { .hero__actions .btn { flex: 1 1 100%; } }
@media (min-width: 1000px) {
  .hero { padding: 56px 0 0; }
  .hero__grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
  .hero__text { grid-column: 1 / span 5; grid-row: 1; padding-top: 24px; }
  .hero__fig { grid-column: 6 / span 7; grid-row: 1 / span 2; }
  .hero__prom { grid-column: 1 / span 5; grid-row: 2; align-self: end; margin-top: 40px; }
  .hero__prom.promises { grid-template-columns: 1fr; }
  .hero__prom.promises li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .hero__prom.promises li + li { padding-left: 0; border-left: 0; }
}

/* 단면도 */
.sheet { border: 1.5px solid var(--ink); background: var(--paper); }
.sheet__title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.sheet__title h2 { font-size: var(--step-0); line-height: 1.4; }
.sheet__title p { font-size: var(--step--1); color: var(--ink-2); }
@media (max-width: 599px) { .sheet__title { display: block; } .sheet__title p { margin-top: 2px; } }
.dwg { position: relative; }
.dwg svg { width: 100%; height: auto; }
.dwg .wall { stroke: var(--ink); stroke-width: 2; fill: none; }
.dwg .thin { stroke: var(--ink-2); stroke-width: 1; fill: none; }
.dwg .fix { stroke: var(--ink); stroke-width: 1.2; fill: var(--paper); }
.dwg .pipe { stroke: var(--pipe); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dwg .pipe--hidden { stroke-dasharray: 5 4; stroke-width: 2; }
.dwg .heat { stroke: var(--pipe); stroke-width: 1.5; fill: var(--water); }
.dwg .drop { fill: var(--pipe); }
.dwg .stain { fill: var(--water); stroke: var(--pipe); stroke-width: 1; stroke-dasharray: 2 2; }
.dwg .tag { font: 700 12px var(--font); fill: var(--ink-2); }
.dwg .tag--sm { font-weight: 400; font-size: 11px; }
.dwg .lbl { font: 400 12px var(--font); fill: var(--ink); }
@media (max-width: 599px) { .dwg .lbl { display: none; } }

.spot {
  position: absolute; transform: translate(-50%, -50%);
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; text-decoration: none;
}
.spot span {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--signal); border: 1.5px solid var(--ink); color: var(--ink);
  font: 700 13px/1 var(--font); transition: transform .15s;
}
.spot:hover span { transform: scale(1.12); }
.spot[aria-current="true"] span { width: 32px; height: 32px; font-size: 15px; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5.5px var(--ink); }

/* 증상 선택 줄 + 설명 패널 */
.picks { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; padding: 12px 16px; border-top: 1px solid var(--rule); scrollbar-width: thin; }
.picks { flex-wrap: nowrap; }
@media (min-width: 600px) { .picks { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; } .picks button { text-align: left; } }
.picks button {
  flex: none; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper); font-size: var(--step--1); cursor: pointer; white-space: nowrap;
}
.picks button b { font-weight: 700; margin-right: 6px; }
.picks button[aria-pressed="true"] { background: var(--water); border-color: var(--pipe); color: var(--ink); }
/* 설명 칸: 모바일은 제목 옆에 작은 사진, 600px부터는 사진을 왼쪽에 두고 글을 오른쪽에 쌓음 */
.panel {
  display: grid; grid-template-columns: minmax(0, 1fr) 104px; grid-template-areas: "t p" "c c" "a a";
  column-gap: 14px; align-items: start;
  padding: 18px 16px 18px; border-top: 1px solid var(--rule);
}
.panel h3 { grid-area: t; font-size: var(--step-1); line-height: 1.4; }
.panel__img { grid-area: p; aspect-ratio: 4 / 3; background: var(--panel); }
.panel__img img { width: 100%; height: 100%; object-fit: cover; }
.panel__cols { grid-area: c; display: grid; gap: 14px; margin-top: 12px; }
.panel__actions { grid-area: a; }
.panel dt { font-size: var(--step--1); font-weight: 700; color: var(--ink-2); }
.panel dd { font-size: var(--step--1); line-height: 1.7; margin-top: 4px; }
.panel dd ul li { padding-left: 14px; position: relative; }
.panel dd ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 1.5px; background: var(--ink); }
.panel__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.panel__actions .btn { min-height: 44px; padding: 0 14px; font-size: var(--step--1); }
@media (max-width: 599px) { .panel__actions { display: grid; grid-template-columns: 1fr 1fr; } .panel__actions .btn--call { grid-column: 1 / -1; } }
@media (min-width: 600px) {
  .panel { grid-template-columns: 184px minmax(0, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: "p t" "p c" "a a"; column-gap: 20px; }
  .panel__cols { gap: 12px; }
}

/* 약속 줄 */
.promises { display: grid; margin-top: 8px; border-top: 1.5px solid var(--ink); }
.hero { padding-bottom: 8px; }
.promises li { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.promises b { display: block; font-size: var(--step-1); line-height: 1.4; }
.promises span { display: block; margin-top: 4px; color: var(--ink-2); font-size: var(--step--1); }
@media (min-width: 760px) {
  .promises { grid-template-columns: repeat(3, 1fr); }
  .promises li { padding: 22px 24px 26px 0; border-bottom: 0; }
  .promises li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
}

/* ---------- 현장 사진·영상 (업체 제공) ---------- */
.field-media { display: grid; gap: 20px; border-top: 1.5px solid var(--ink); padding-top: 24px; }
.field-media figure { min-width: 0; }
.field-media video, .field-media img { display: block; width: 100%; height: auto; background: var(--panel); }
.field-media video { aspect-ratio: 16 / 9; }
.field-media img { aspect-ratio: 800 / 727; object-fit: cover; }
.field-media figcaption { margin-top: 6px; font-size: var(--step--1); line-height: 1.5; color: var(--ink-2); }
/* 700px부터 영상과 사진을 같은 높이로 나란히 (16:9 영상, 1.1:1 사진) */
@media (min-width: 700px) { .field-media { grid-template-columns: 1.778fr 1.1fr; column-gap: var(--gap); } }

/* ---------- 증상별 안내 ---------- */
.symptom { display: grid; gap: 18px; padding: 28px 0; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 16px); }
.symptom:first-child { border-top: 1.5px solid var(--ink); }
.symptom figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--panel); }
.symptom figcaption { margin-top: 6px; font-size: var(--step--1); line-height: 1.5; color: var(--ink-2); }
.symptom h3 { display: flex; gap: 12px; font-size: var(--step-2); line-height: 1.35; letter-spacing: -0.01em; }
.symptom h3 .k { flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin-top: 2px; border-radius: 50%; background: var(--signal); border: 1.5px solid var(--ink); font-size: 14px; }
.symptom p { margin-top: 10px; color: var(--ink-2); }
.symptom dl { display: grid; gap: 10px; margin-top: 16px; font-size: var(--step--1); }
.symptom dt { font-weight: 700; }
.symptom dd { color: var(--ink); line-height: 1.7; }
.symptom .link:hover { text-decoration-thickness: 2.5px; }
.symptom .link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; font-weight: 700; color: var(--pipe); text-underline-offset: 4px; }
@media (min-width: 700px) {
  .symptom { grid-template-columns: 5fr 7fr; gap: var(--gap); }
  .symptom dl { grid-template-columns: 7em 1fr; column-gap: 16px; }
}

/* ---------- 자가 점검 (순서가 있는 4단계) ---------- */
.steps { display: grid; counter-reset: step; border-top: 1.5px solid var(--ink); }
.steps li { counter-increment: step; padding: 20px 0 22px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 48px 1fr; column-gap: 8px; }
.steps li::before { content: counter(step); font-size: var(--step-3); font-weight: 700; line-height: 1; grid-row: span 2; }
.steps b { font-size: var(--step-1); line-height: 1.4; }
.steps span { color: var(--ink-2); font-size: var(--step--1); line-height: 1.7; margin-top: 4px; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { display: block; padding: 22px 20px 26px 0; border-bottom: 0; }
  .steps li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
  .steps li::before { display: block; margin-bottom: 18px; }
  .steps span { display: block; }
}
.caution { margin-top: 24px; padding: 16px 18px; background: var(--panel); border-left: 3px solid var(--signal); font-size: var(--step--1); line-height: 1.7; }
.caution b { font-weight: 700; }

/* ---------- 다루는 누수 (표) ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: var(--step--1); line-height: 1.6; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); }
.tbl thead th { font-weight: 700; color: var(--ink-2); border-bottom: 1.5px solid var(--ink); padding-top: 0; }
.tbl tbody th { font-weight: 700; font-size: var(--step-0); width: 22%; }
.scope { margin-top: 16px; font-size: var(--step--1); color: var(--ink-2); }
@media (max-width: 699px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; width: auto; }
  .tbl tr { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .tbl tr:first-child { border-top: 1.5px solid var(--ink); }
  .tbl th, .tbl td { border: 0; padding: 2px 0; }
  .tbl td::before { content: attr(data-label) ": "; color: var(--ink-2); font-weight: 700; }
}

/* ---------- 진행 순서 (배관 이음처럼 이어진 5단계) ---------- */
.flow { display: grid; gap: 0; position: relative; }
.flow li { position: relative; padding: 0 0 26px 40px; }
.flow li::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: -6px; width: 3px; background: var(--pipe); }
.flow li:last-child::before { display: none; }
.flow li::after { content: ""; position: absolute; left: 0; top: 4px; width: 21px; height: 21px; border: 3px solid var(--pipe); background: var(--paper); border-radius: 3px; }
.flow b { display: block; font-size: var(--step-1); line-height: 1.4; }
.flow b i { font-style: normal; color: var(--ink-2); font-weight: 400; margin-right: 8px; }
.flow span { display: block; color: var(--ink-2); font-size: var(--step--1); margin-top: 4px; }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(5, 1fr); column-gap: 20px; }
  .flow li { padding: 40px 0 0; }
  .flow li::before { left: 10px; right: -30px; top: 9px; bottom: auto; width: auto; height: 3px; }
  .flow li::after { top: 0; }
}

/* ---------- 다루는 일: 누수 말고 함께 하는 일 (하수구 고압세척, 누수 피해 복구) ---------- */
.works { display: grid; margin-top: 40px; border-top: 1.5px solid var(--ink); }
.works > div { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.works h3 { font-size: var(--step-1); }
.works p { margin-top: 6px; color: var(--ink-2); font-size: var(--step--1); line-height: 1.7; }
@media (min-width: 760px) {
  .works { grid-template-columns: repeat(2, 1fr); }
  .works > div { padding: 22px 20px 26px 0; border-bottom: 0; }
  .works > div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
}

/* ---------- 비용 ---------- */
.costs { display: grid; border-top: 1.5px solid var(--ink); }
.costs > div { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.costs h3 { font-size: var(--step-1); }
.costs p { margin-top: 6px; color: var(--ink-2); font-size: var(--step--1); line-height: 1.7; }
@media (min-width: 760px) {
  .costs { grid-template-columns: repeat(3, 1fr); }
  .costs > div { padding: 22px 20px 26px 0; border-bottom: 0; }
  .costs > div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
}
.pledge { margin-top: 24px; font-size: var(--step-1); font-weight: 700; line-height: 1.5; }
.pledge:empty { display: none; }
.body-text { max-width: 38em; }
.body-text + .body-text { margin-top: 14px; }

/* ---------- 보험 ---------- */
.checks { margin-top: 20px; border-top: 1.5px solid var(--ink); }
.checks li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.checks svg { flex: none; width: 20px; height: 20px; margin-top: 5px; color: var(--pipe); }
.fine { margin-top: 16px; font-size: var(--step--1); color: var(--ink-2); }

/* ---------- 후기·사례 (데이터가 있을 때만 표시) ---------- */
[hidden] { display: none !important; }

/* ---------- 자주 묻는 질문 ---------- */
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 14px 0; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--pipe); }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 40em; }

/* ---------- 상담 신청 ---------- */
.consult { background: var(--panel); }
.contact { display: grid; gap: 10px; margin-top: 24px; }
.contact .btn { width: 100%; justify-content: flex-start; }
.contact dl { margin-top: 14px; display: grid; grid-template-columns: 6em 1fr; gap: 6px 12px; font-size: var(--step--1); }
.contact dt { color: var(--ink-2); }
.form { background: var(--paper); border: 1.5px solid var(--ink); padding: 24px 20px; }
.form h3 { font-size: var(--step-1); }
.form > p { margin-top: 4px; font-size: var(--step--1); color: var(--ink-2); }
.field { margin-top: 18px; }
.field label, .field .lbl { display: block; font-weight: 700; font-size: var(--step--1); margin-bottom: 6px; }
.field label i, .field .lbl i { font-style: normal; font-weight: 400; color: var(--ink-2); margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #9aa3ad; border-radius: var(--radius);
  background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.5;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pipe); box-shadow: 0 0 0 3px rgba(36, 87, 197, .25); }
.field [aria-invalid="true"] { border-color: #c0341d; }
.err { display: none; margin-top: 6px; font-size: var(--step--1); color: #b42318; font-weight: 700; }
.field.has-error .err { display: block; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: var(--step--1); line-height: 1.6; }
.agree input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--pipe); }
.form .btn { width: 100%; margin-top: 22px; }
.form__status { margin-top: 12px; font-size: var(--step--1); min-height: 1.6em; }
.form__status.is-error { color: #b42318; font-weight: 700; }
/* 상담 신청을 전화로 받는 동안 신청서 자리에 두는 안내 (신청서는 build_site.py consult_form()에 보관) */
.call-guide { background: var(--paper); border: 1.5px solid var(--ink); padding: 24px 20px; }
.call-guide h3 { font-size: var(--step-1); }
.call-guide > p { margin-top: 4px; font-size: var(--step--1); color: var(--ink-2); }
.call-guide .checks li:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 900px) {
  .consult .sec__body { display: grid; grid-template-columns: 1fr; }
  .form, .call-guide { padding: 32px 32px; }
  .form__row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
}

/* ---------- 푸터 ---------- */
.ftr { border-top: 1.5px solid var(--ink); padding: 40px 0 120px; font-size: var(--step--1); color: var(--ink-2); }
.ftr__grid { display: grid; gap: 20px; }
.ftr strong { color: var(--ink); font-size: var(--step-0); }
.ftr__logo { width: 96px; height: 96px; margin-bottom: 12px; border-radius: var(--radius); }
.ftr dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.ftr dt { color: var(--ink-2); }
.ftr dd { color: var(--ink); }
.ftr nav { display: flex; gap: 18px; flex-wrap: wrap; }
.ftr nav a { min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 900px) {
  .ftr { padding-bottom: 128px; }
  .ftr__grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .ftr__brand { grid-column: 1 / span 4; }
  .ftr__info { grid-column: 5 / span 5; }
  .ftr nav { grid-column: 10 / span 3; justify-content: flex-end; align-self: start; }
}

/* ---------- 하단 가로 배너 (전화 연결) ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1.5px solid var(--ink); }
.dock .btn { min-height: 52px; padding: 0 12px; font-size: var(--step-0); white-space: nowrap; }
.dock__text, .dock__num { display: none; }
@media (min-width: 600px) { .dock__num { display: inline; } }
@media (min-width: 1000px) {
  .dock { grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
  .dock__text { display: block; font-size: var(--step-0); line-height: 1.5; }
  .dock__text span { color: var(--ink-2); }
  .dock .btn { padding: 0 22px; }
}

/* ---------- 오른쪽 고정 버튼 (카카오톡, 전화) ---------- */
.side { position: fixed; right: 12px; bottom: calc(82px + env(safe-area-inset-bottom)); z-index: 30; display: grid; gap: 8px; justify-items: end; }
.side__btn {
  display: grid; place-content: center; justify-items: center; gap: 4px; width: 58px; height: 58px; padding: 0;
  border: 1.5px solid var(--ink); border-radius: var(--radius); color: var(--ink);
  font: 700 12px/1.2 var(--font); text-decoration: none; cursor: pointer;
}
.side__btn svg { width: 22px; height: 22px; }
.side__btn--kakao { background: var(--kakao); }
.side__btn--kakao:hover { background: #ffec4d; }
.side__btn--call { background: var(--signal); }
.side__btn--call:hover { background: #ff8340; }
.side__msg { max-width: min(260px, calc(100vw - 24px)); padding: 10px 14px; background: var(--ink); color: #fff; border-radius: var(--radius); font-size: var(--step--1); line-height: 1.5; }
.side__msg:empty { padding: 0; }
/* 데스크톱: 세로 가운데. 본문 옆 여백이 좁은 1000~1399px은 화면 끝에 붙여 본문을 덜 가림 */
@media (min-width: 1000px) {
  .side { right: 0; top: 50%; bottom: auto; transform: translateY(-50%); }
  .side__btn { width: 60px; height: 64px; border-right: 0; border-radius: var(--radius) 0 0 var(--radius); }
  .side__btn svg { width: 24px; height: 24px; }
  .side__msg { position: absolute; right: 72px; top: 0; width: max-content; }
}
@media (min-width: 1400px) {
  .side { right: 16px; }
  .side__btn { width: 76px; height: 72px; border-right: 1.5px solid var(--ink); border-radius: var(--radius); font-size: 13px; }
  .side__btn svg { width: 26px; height: 26px; }
  .side__msg { right: 88px; }
}
/* 좁은 화면에서 신청서를 쓰는 동안에는 입력칸을 가리지 않게 숨김 */
@media (max-width: 999px) { body:has(.form :focus) .side { display: none; } }

/* ---------- 단 한 번의 등장 연출: 단면도 배관이 그려짐 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .dwg .pipe:not(.pipe--hidden) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s cubic-bezier(.4, 0, .2, 1) .15s forwards; }
  .js .dwg .spot { opacity: 0; animation: fade .35s ease-out 1.1s forwards; }
  .js .dwg .spot:nth-of-type(2) { animation-delay: 1.18s; } .js .dwg .spot:nth-of-type(3) { animation-delay: 1.26s; }
  .js .dwg .spot:nth-of-type(4) { animation-delay: 1.34s; } .js .dwg .spot:nth-of-type(5) { animation-delay: 1.42s; }
  .js .dwg .spot:nth-of-type(6) { animation-delay: 1.5s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- 부가 페이지 ---------- */
.page { padding: 56px 0 96px; }
.page h1 { font-size: var(--step-3); line-height: 1.3; }
.page h2 { font-size: var(--step-1); margin-top: 32px; }
.page p, .page li { margin-top: 10px; color: var(--ink); max-width: 44em; }
.page ul { list-style: disc; padding-left: 1.2em; }
.draft-note { margin-top: 16px; padding: 12px 16px; background: var(--water); border-left: 3px solid var(--pipe); font-size: var(--step--1); }

/* ---------- 지역별 누수 칼럼 ---------- */
.column-page { padding: 48px 0 120px; }
.column-page__head { display: grid; gap: 16px; padding-bottom: 32px; border-bottom: 1.5px solid var(--ink); }
.column-page__head h1 { font-size: var(--step-3); line-height: 1.25; max-width: 18em; }
.column-page__head p { max-width: 46em; color: var(--ink-2); }
.column-list { display: grid; gap: 0; }
.column-card { display: grid; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.column-card__image { aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); }
.column-card__image img { width: 100%; height: 100%; object-fit: cover; }
.column-card__body { display: grid; gap: 10px; align-content: start; }
.column-card__meta, .column-meta { color: var(--ink-2); font-size: var(--step--1); }
.column-card h2 { font-size: var(--step-1); line-height: 1.35; }
.column-card h2 a { text-decoration: none; }
.column-card h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.column-card__body p { color: var(--ink-2); }
.column-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.column-tags span { padding: 4px 8px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); font-size: 13px; }
.column-article { padding: 48px 0 120px; }
.column-article__head { display: grid; gap: 16px; padding-bottom: 28px; border-bottom: 1.5px solid var(--ink); }
.column-article__head h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.15; max-width: 18em; }
.column-article__lead { font-size: var(--step-1); color: var(--ink-2); max-width: 42em; }
.column-article__hero { margin-top: 28px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); }
.column-article__hero img { width: 100%; height: 100%; object-fit: cover; }
.column-article__body { max-width: 46em; margin-top: 36px; }
.column-article__body h2 { margin-top: 36px; font-size: var(--step-1); line-height: 1.35; }
.column-article__body p { margin-top: 14px; }
.column-article__body ul { margin-top: 14px; padding-left: 1.2em; list-style: disc; }
.column-article__body li + li { margin-top: 8px; }
.column-gallery { display: grid; gap: 14px; margin-top: 28px; }
.column-gallery figure { margin: 0; }
.column-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--panel); }
.column-gallery figcaption { margin-top: 6px; color: var(--ink-2); font-size: var(--step--1); }
.column-cta { display: grid; gap: 12px; margin-top: 40px; padding: 24px; background: var(--panel); border: 1.5px solid var(--ink); }
.column-cta p { margin: 0; color: var(--ink-2); }
.column-cta .btn { width: fit-content; }
.column-back { display: inline-flex; margin-top: 28px; color: var(--ink-2); }
@media (min-width: 700px) {
  .column-card { grid-template-columns: minmax(240px, 0.85fr) 1.15fr; align-items: start; column-gap: 28px; }
  .column-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .column-page, .column-article { padding-top: 72px; }
  .column-list { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .column-card { grid-template-columns: 1fr; }
  .column-card__image { aspect-ratio: 16 / 10; }
  .column-article__body { margin-left: 8.333%; }
}

/* 시안 표시 (정식 사이트에는 없음) */
.draft-bar { margin: 0; padding: 10px 20px; background: var(--ink); color: #fff; font-size: var(--step--1); line-height: 1.5; text-align: left; }

