/* 디에이치환경자원 — 밝은 생활 서비스형 (10/21 디렉터: 1-800-GOT-JUNK·비워도 느낌)
   원칙: 흰 바탕 + 초록 하나(행동·브랜드) + 짙은 남색 글자, 둥근 버튼·카드, 실제 현장 사진이 크게.
   색·글자·간격은 아래 :root 토큰만 쓴다(DESIGN.md와 같은 이름). 생성 인물 사진·그라데이션 금지. */
/* Pretendard(OFL) — 사이트에 쓰인 글자만 남긴 가변 글꼴, tools/font-subset.py */
/* Pretendard(OFL) — 사이트에 쓰인 글자만 남긴 가변 글꼴(tools/font-subset.py, 빌드 뒤 다시 돌림).
   optional: 첫 화면 때 아직 안 왔으면 그 쪽은 기기 글꼴 그대로(글자 다시 그리기로 LCP가 늦어지는 것 방지, 10/21 실측 swap 3.8초 → 없을 때 2.2초), 다음 쪽부터 캐시로 Pretendard */
/* 휴대폰(768px 이하)은 기기 한글 글꼴(아이폰 Apple SD 고딕·안드로이드 본고딕)로 보여 글꼴을 받지 않는다(휴대폰 LCP: 글꼴 있음 3.8초 / 없음 2.2초, 10/21 실측). PC는 Pretendard. */
@font-face { font-family: "Pretendard"; font-style: normal; font-weight: 100 900; font-display: optional; src: url("/assets/fonts/pretendard-dheco.woff2") format("woff2"); }
:root {
  --paper: #FFFFFF;
  --paper-2: #F2F6F3;
  --card: #FFFFFF;
  --ink: #13261C;
  --ink-2: #3D4B44;
  --ink-3: #5F6B65;
  --line: #E1E8E3;
  --line-2: #C8D3CC;
  --act: #0F8A47;
  --act-dark: #0B6E38;
  --act-soft: #E6F4EC;
  --act-ink: #FFFFFF;
  --navy: #13261C;
  --ok: #0F8A47;
  --focus: #1F5FBF;
  --f-sans: "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", sans-serif;
  --fs-xs: 0.875rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  --fs-2xl: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem);
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem; --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3.5rem; --sp-8: 5rem;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --lift: 0 10px 30px rgba(19, 38, 28, 0.10);
  --w-max: 1280px;
  --dock-h: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-sans); font-size: var(--fs-md); line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; padding-bottom: var(--dock-h); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--act-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 var(--sp-3); }
h1 { font-size: var(--fs-2xl); font-weight: 800; }
h2 { font-size: var(--fs-xl); font-weight: 800; margin-top: var(--sp-7); }
h3 { font-size: var(--fs-lg); font-weight: 700; margin-top: var(--sp-5); }
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.2em; }
.wrap { max-width: var(--w-max); margin: 0 auto; padding: 0 var(--sp-4); width: 100%; }
.skip { position: absolute; left: var(--sp-2); top: -60px; background: var(--ink); color: #fff; padding: var(--sp-2) var(--sp-3); z-index: 99; }
.skip:focus { top: var(--sp-2); }

/* 머리말 */
.hd { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.hd .wrap { display: flex; align-items: center; gap: var(--sp-4); min-height: 60px; }
.brand { display: flex; align-items: center; gap: var(--sp-2); text-decoration: none; flex: none; }
.brand img { width: 30px; height: 30px; }
.brand b { font-size: 1.1rem; font-weight: 800; color: var(--ink); white-space: nowrap; }
.brand small { display: none; }
.nav { margin-left: auto; display: flex; gap: var(--sp-1); }
.nav a { text-decoration: none; font-size: var(--fs-sm); color: var(--ink-2); padding: var(--sp-2) var(--sp-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: underline; }
.hd-call { font-weight: 800; color: var(--act); text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.hd-call svg { width: 18px; height: 18px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); padding: 6px 12px; font: inherit; font-size: var(--fs-sm); border-radius: var(--r-sm); color: var(--ink); }

/* 첫 화면 */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--sp-6); align-items: center; padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
.hero .wrap > div:only-child { grid-column: 1 / -1; max-width: 46em; }
.eyebrow { font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: var(--sp-3); }
.lead { font-size: var(--fs-lg); color: var(--ink-2); line-height: 1.65; max-width: 36em; }
.hero h1 em { font-style: normal; color: var(--act); }
.crumb ol { list-style: none; padding: 0; margin: 0 0 var(--sp-3); display: flex; flex-wrap: wrap; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--ink-3); }
.crumb li + li::before { content: "›"; margin-right: var(--sp-2); }
.crumb a { color: var(--ink-3); }

/* 버튼 */
.cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-5) 0 var(--sp-3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 50px; padding: 0 var(--sp-5); font: inherit; font-weight: 800; font-size: var(--fs-md); border-radius: var(--r-sm); border: 2px solid transparent; text-decoration: none; cursor: pointer; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-call { background: var(--act); color: var(--act-ink); border-color: var(--act); }
.btn-call:hover { background: var(--act-dark); border-color: var(--act-dark); color: var(--act-ink); }
.btn-sms, .btn-sms.on-light, .btn-ghost { background: var(--card); color: var(--ink); border-color: var(--ink); }
.btn-sms:hover, .btn-ghost:hover { background: var(--ink); color: #fff; }

/* 구획 */
.sec { padding: var(--sp-7) 0; border-bottom: 1px solid var(--line); }
.sec.alt { background: var(--card); }
.sec > .wrap > h2:first-child, .sec h2:first-child { margin-top: 0; }
.sec-head { max-width: 46em; margin-bottom: var(--sp-5); }
.sec-head p, .sec-lead { color: var(--ink-2); max-width: 46em; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-7); align-items: start; }
.prose { min-width: 0; }
.prose h2 { padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.prose > h2:first-child, .prose .answer + h2 { border-top: 0; padding-top: 0; }
.aside { position: sticky; top: 76px; display: grid; gap: var(--sp-4); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 짧은 답 */
.answer { border-left: 4px solid var(--ink); padding: var(--sp-2) 0 var(--sp-2) var(--sp-4); margin: 0 0 var(--sp-6); }
.answer strong { display: block; font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: var(--sp-1); }
.answer p { margin: 0; font-size: var(--fs-lg); line-height: 1.6; }

/* 문의 상자 */
.box { background: var(--card); border: 1px solid var(--line); padding: var(--sp-5); border-radius: var(--r-sm); }
.box h2, .box h3 { font-size: var(--fs-md); margin: 0 0 var(--sp-3); padding: 0; border: 0; }
.box .tel { display: block; font-size: 1.7rem; font-weight: 800; color: var(--act); text-decoration: none; margin-bottom: var(--sp-3); letter-spacing: 0.01em; }
.box .btn { width: 100%; margin-top: var(--sp-2); }
.box-note { font-size: var(--fs-sm); color: var(--ink-2); margin: var(--sp-3) 0 0; }
.copy-ok { font-size: var(--fs-xs); color: var(--ok); min-height: 1.3em; margin: var(--sp-1) 0 0; font-weight: 700; }
.links { list-style: none; padding: 0; margin: 0; }
.links li { border-top: 1px solid var(--line); }
.links li:first-child { border-top: 0; }
.links a { display: block; padding: var(--sp-2) 0; text-decoration: none; font-size: var(--fs-sm); }
.links a:hover { text-decoration: underline; }

/* 지역·관련 링크(알약 대신 글자 목록) */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); }
.chips a { font-size: var(--fs-sm); }

/* 표 */
.table-scroll { overflow-x: auto; margin: 0 0 var(--sp-5); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); background: var(--card); }
.table th, .table td { text-align: left; vertical-align: top; padding: var(--sp-3); border-bottom: 1px solid var(--line); }
.table thead th { border-bottom: 2px solid var(--ink); font-weight: 700; }
.table tbody th { font-weight: 700; white-space: nowrap; }
.table-caption { font-size: var(--fs-xs); color: var(--ink-3); }

/* 절차 */
.steps { list-style: none; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: var(--sp-3) 0 var(--sp-3) 3rem; border-top: 1px solid var(--line); position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: var(--sp-3); font-weight: 800; color: var(--act); font-variant-numeric: tabular-nums; }
.steps b { display: block; }
.steps p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.acts { display: block; }
.chapter { margin-bottom: var(--sp-5); }

/* 자주 묻는 질문 */
.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: var(--sp-3) 0; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q. "; color: var(--act); }
.faq p { color: var(--ink-2); padding-bottom: var(--sp-3); margin: 0; }

/* 사진 */
.photo-card { margin: 0 0 var(--sp-5); }
.photo-card figcaption, .case-pics figcaption { font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--sp-1); }
.rp img { width: 100%; height: auto; background: var(--paper-2); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pair img { aspect-ratio: 3 / 4; object-fit: cover; }
.ph-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

/* 홈 첫 화면 사진 비교 */
.hero-home .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ba-slider { position: relative; overflow: hidden; --pos: 50%; aspect-ratio: 4 / 5; width: 100%; background: var(--paper-2); }
.ba-slider .rp, .ba-slider .rp img { width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before .rp, .ba-before img { height: 100%; }
.ba-slider::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; pointer-events: none; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-label { position: absolute; top: var(--sp-2); font-size: var(--fs-xs); font-weight: 700; background: var(--ink); color: #fff; padding: 2px 8px; }
.ba-l { left: var(--sp-2); } .ba-r { right: var(--sp-2); }
.ba-cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: var(--sp-2) var(--sp-3); font-size: var(--fs-xs); color: #fff; background: rgba(0, 0, 0, 0.6); }
.trust-row { list-style: none; padding: 0; margin: var(--sp-3) 0 0; display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); font-size: var(--fs-sm); color: var(--ink-2); }
.trust-row li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.big-tel { display: inline-block; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); font-weight: 800; color: var(--act); text-decoration: none; letter-spacing: 0.01em; margin-top: var(--sp-3); }

/* 상황 목록(카드 대신 줄) */
.situ { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--sp-6); }
.situ a { display: block; padding: var(--sp-4) 0; border-top: 1px solid var(--line); text-decoration: none; }
.situ b { display: block; font-size: var(--fs-lg); }
.situ b::after { content: " →"; color: var(--act); }
.situ span { color: var(--ink-2); font-size: var(--fs-sm); }

/* 현장 기록 */
.case-grid { display: grid; gap: var(--sp-6) var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: var(--sp-4); }
.case { margin: 0; }
.case-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.case-pics.one { grid-template-columns: 1fr; }
.case-pics.three { grid-template-columns: repeat(3, 1fr); }
.case-pics figure { margin: 0; }
.case-pics .rp img { aspect-ratio: 3 / 4; object-fit: cover; }
.case h2, .case h3 { font-size: var(--fs-md); margin: var(--sp-3) 0 var(--sp-1); padding: 0; border: 0; }
.case-meta { font-size: var(--fs-xs); color: var(--ink-3); margin: 0 0 var(--sp-2); font-variant-numeric: tabular-nums; }
.case p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
.more { margin-top: var(--sp-6); }

/* 허가 */
.trust-block { display: grid; gap: var(--sp-6); grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; }
.trust-block > div { min-width: 0; }
.permit { margin: 0; }
.permit img { width: 100%; border: 1px solid var(--line-2); background: #fff; }
.permit figcaption { font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--sp-2); }
.table.facts { table-layout: fixed; }
.table.facts th { width: 8em; }
.table.facts td { overflow-wrap: anywhere; }
.dong-facts { padding-left: 1.1em; }
.dong-facts li { margin-bottom: var(--sp-2); font-size: var(--fs-sm); }

/* 지역 묶음 */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.area-col h3 { margin-top: 0; font-size: var(--fs-md); }
.area-col h3 a { text-decoration: none; }
.area-col p { font-size: var(--fs-sm); color: var(--ink-2); }

/* 기존 카드(허브 쪽) — 테두리 줄만 */
.card { background: transparent; border-top: 1px solid var(--line); padding-top: var(--sp-3); display: flex; flex-direction: column; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: var(--sp-2); }
.card .in { display: flex; flex-direction: column; flex: 1; }
.card .badge { font-size: var(--fs-xs); color: var(--ink-3); margin-bottom: var(--sp-1); }
.card h3 { font-size: var(--fs-md); margin: 0 0 var(--sp-1); }
.card h3 a { text-decoration: none; }
.card p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }

/* 문자 문안 만들기(문의 쪽) */
.sms-maker { display: grid; gap: var(--sp-3); background: var(--card); border: 1px solid var(--line); padding: var(--sp-5); }
.sms-maker label { font-size: var(--fs-sm); font-weight: 700; display: grid; gap: var(--sp-1); }
.sms-maker select, .sms-maker input, .sms-maker textarea { font: inherit; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; color: var(--ink); }
.sms-preview { white-space: pre-wrap; background: var(--paper); border: 1px dashed var(--line-2); padding: var(--sp-3); font-size: var(--fs-sm); margin: 0; }

/* 아래 띠 */
.band { background: var(--card); border-top: 2px solid var(--ink); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-5); align-items: center; padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
.band h2 { margin: 0 0 var(--sp-2); font-size: var(--fs-lg); }
.band p { color: var(--ink-2); margin: 0; }
.band .big { display: block; font-size: 2rem; font-weight: 800; color: var(--act); text-decoration: none; }
.band .cta-row { margin: var(--sp-2) 0 0; }

/* 꼬리말 */
.ft { background: var(--paper-2); color: var(--ink-2); font-size: var(--fs-sm); padding: var(--sp-7) 0 var(--sp-6); }
.ft .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-6); }
.ft b { color: var(--ink); display: block; margin-bottom: var(--sp-2); }
.ft ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: var(--sp-4); }
.ft li { margin-bottom: 2px; break-inside: avoid; }
.ft a { color: var(--ink-2); text-decoration: none; }
.ft a:hover { text-decoration: underline; }
.ft .copy { grid-column: 1 / -1; border-top: 1px solid var(--line-2); padding-top: var(--sp-4); font-size: var(--fs-xs); }

/* 휴대폰 아래 막대 */
.dock { display: none; }
.rv { opacity: 1; }

@media (max-width: 1020px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--card); border-bottom: 1px solid var(--line); flex-direction: column; padding: var(--sp-2) var(--sp-4); }
  .nav.open { display: flex; }
  .nav a { padding: var(--sp-3) 0; border-top: 1px solid var(--line); font-size: var(--fs-md); }
  .menu-btn { display: inline-block; }
  .hd-call { display: none; }
  .cols { grid-template-columns: 1fr; gap: var(--sp-6); }
  .aside { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .areas { grid-template-columns: repeat(2, 1fr); }
  .ft .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --dock-h: 64px; }
  .hero .wrap, .hero-home .wrap { grid-template-columns: 1fr; gap: var(--sp-4); padding-top: var(--sp-4); }
  .hero-home .ba-slider { order: -1; aspect-ratio: 4 / 3; margin: 0 calc(-1 * var(--sp-4)); width: calc(100% + 2 * var(--sp-4)); }
  .situ, .grid-2, .grid-3, .areas, .ph-pair { grid-template-columns: 1fr; }
  .trust-block { grid-template-columns: 1fr; }
  .permit { max-width: 340px; }
  .band .wrap { grid-template-columns: 1fr; }
  .lead { font-size: var(--fs-md); }
  .dock { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; height: var(--dock-h); background: var(--card); border-top: 1px solid var(--line-2); z-index: 30; padding: 8px; gap: 8px; }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; text-decoration: none; border-radius: var(--r-sm); }
  .dock svg { width: 18px; height: 18px; }
  .d-call { background: var(--act); color: #fff; }
  .d-sms { border: 2px solid var(--ink); color: var(--ink); }
}
@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .table.facts, .table.facts tbody, .table.facts tr, .table.facts th, .table.facts td { display: block; width: auto; }
  .table.facts th { padding-bottom: 0; border-bottom: 0; }
  .ft ul { columns: 1; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { .dock, .hd, .band { display: none; } }
.sms-maker, .sms-maker label { min-width: 0; }
.sms-maker select, .sms-maker input, .sms-maker textarea { width: 100%; max-width: 100%; min-width: 0; }

/* ───────── 밝은 생활 서비스형 구성요소 (위 규칙을 덮어씀) ───────── */
h1 { letter-spacing: -0.03em; font-weight: 800; }
h2 { letter-spacing: -0.025em; }
.kicker { display: inline-block; font-size: var(--fs-sm); font-weight: 800; color: var(--act); margin: 0 0 var(--sp-2); }

/* 맨 위 띠·머리말 */
.topbar { background: var(--ink); color: #DDE7E1; font-size: var(--fs-xs); }
.topbar .wrap { display: flex; justify-content: space-between; gap: var(--sp-4); min-height: 34px; align-items: center; }
.hd { background: #fff; border-bottom: 1px solid var(--line); }
.hd .wrap { min-height: 72px; }
.brand b { font-size: 1.2rem; letter-spacing: -0.02em; }
.nav a { font-weight: 600; color: var(--ink); padding: var(--sp-2) var(--sp-3); border-radius: var(--r-pill); }
.nav a:hover { background: var(--act-soft); color: var(--act-dark); }
.nav a[aria-current="page"] { text-decoration: none; color: var(--act-dark); background: var(--act-soft); }
.hd-call { color: var(--ink); }
.hd-call svg { color: var(--act); }
.hd-sms { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-5); border-radius: var(--r-pill); background: var(--act); color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; }
.hd-sms:hover { background: var(--act-dark); color: #fff; }

/* 버튼 */
.btn { border-radius: var(--r-pill); min-height: 54px; padding: 0 var(--sp-6); }
.btn-call { background: var(--act); border-color: var(--act); }
.btn-sms, .btn-sms.on-light, .btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-sms:hover, .btn-ghost:hover { background: var(--act-soft); border-color: var(--act); color: var(--act-dark); }

/* 홈 첫 화면: 큰 사진 + 흰 상자 */
.hx { position: relative; background: var(--paper-2); }
.hx-stage.ba-slider { aspect-ratio: auto; height: clamp(560px, 78vh, 760px); }
.hx-wrap { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; }
.hx-card { pointer-events: auto; background: #fff; border-radius: var(--r-lg); box-shadow: var(--lift); padding: var(--sp-6) var(--sp-6) var(--sp-5); max-width: 540px; position: relative; z-index: 4; }
.hx-card h1 { font-size: var(--fs-2xl); margin-bottom: var(--sp-3); }
.hx-card h1 em { font-style: normal; color: var(--act); }
.hx-kicker { font-size: var(--fs-sm); font-weight: 700; color: var(--act-dark); background: var(--act-soft); display: inline-block; padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: var(--sp-3); }
.hx-card .lead { font-size: var(--fs-md); color: var(--ink-2); }
.hx-card .cta-row { margin: var(--sp-4) 0 var(--sp-3); }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.checks li { display: flex; align-items: center; gap: 6px; }
.checks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--act) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; flex: none; }

/* 비교 손잡이 */
.ba-slider::after { width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.ba-slider::before { content: "◀ ▶"; position: absolute; top: 50%; left: var(--pos); transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--act); font-size: 13px; letter-spacing: -1px; display: grid; place-items: center; box-shadow: var(--lift); z-index: 2; pointer-events: none; }
.ba-range { z-index: 3; }
.ba-label { border-radius: var(--r-pill); padding: 4px 12px; top: var(--sp-4); background: rgba(19,38,28,.85); z-index: 1; }
.ba-l { left: var(--sp-4); }
.ba-r { right: var(--sp-4); background: var(--act); }
.ba-hint { position: absolute; left: var(--pos); bottom: 56px; transform: translateX(-50%); background: #fff; color: var(--ink); font-size: var(--fs-xs); font-weight: 700; padding: 6px 14px; border-radius: var(--r-pill); white-space: nowrap; pointer-events: none; z-index: 2; box-shadow: var(--lift); }
.ba-cap { background: none; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); text-align: right; z-index: 1; }

/* 스크롤로 걷히는 전·후 */
.scrub { --wipe: 100%; height: 230vh; position: relative; background: var(--paper-2); }
.scrub + .scrub { background: #fff; }
.scrub-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.scrub-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--sp-7); align-items: center; }
.scrub-grid.rev { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
.scrub-grid.rev .scrub-txt { order: 2; }
.scrub-txt h2 { margin-top: 0; font-size: var(--fs-xl); }
.scrub-txt p { color: var(--ink-2); }
.scrub-txt .scrub-meta { font-size: var(--fs-sm); color: var(--ink-3); }
.scrub-state { display: flex; gap: var(--sp-2); margin: var(--sp-4) 0 0; }
.scrub-state span { padding: 6px 16px; border-radius: var(--r-pill); font-weight: 800; font-size: var(--fs-sm); background: #fff; color: var(--ink-3); border: 1px solid var(--line-2); transition: background-color .3s, color .3s; }
.scrub .s-b { background: var(--ink); color: #fff; border-color: var(--ink); }
.scrub.is-after .s-b { background: #fff; color: var(--ink-3); border-color: var(--line-2); }
.scrub.is-after .s-a { background: var(--act); color: #fff; border-color: var(--act); }
.scrub-img { position: relative; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--lift); max-height: 78vh; }
.scrub-img.wide { aspect-ratio: 4 / 3; }
.scrub-img.tall { aspect-ratio: 3 / 4; max-width: 470px; justify-self: center; width: 100%; }
.scrub-img .rp, .scrub-img img { width: 100%; height: 100%; object-fit: cover; }
.scrub-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--wipe)) 0 0); }
.scrub-line { position: absolute; top: 0; bottom: 0; left: var(--wipe); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.scrub-static { height: auto; }
.scrub-static .scrub-pin { position: static; height: auto; padding: var(--sp-7) 0; }
.scrub-static .scrub-before { position: static; clip-path: none; margin-top: var(--sp-2); }
.scrub-static .scrub-img { aspect-ratio: auto; max-height: none; }
.scrub-static .scrub-line { display: none; }

/* 맡기시는 일 카드 */
.svc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.svc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--lift); color: var(--ink); }
.svc-card .rp img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.svc-card b { display: block; font-size: var(--fs-lg); padding: var(--sp-4) var(--sp-4) var(--sp-1); }
.svc-card b::after { content: " →"; color: var(--act); }
.svc-card span { padding: 0 var(--sp-4) var(--sp-4); font-size: var(--fs-sm); color: var(--ink-2); }

/* 구획·카드 공통 */
.sec { border-bottom: 0; padding: var(--sp-8) 0; }
.sec.alt { background: var(--paper-2); }
.box { border-radius: var(--r-md); border-color: var(--line); box-shadow: var(--lift); }
.box .tel, .big-tel { color: var(--ink); }
.answer { border-left: 0; background: var(--act-soft); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); }
.answer strong { color: var(--act-dark); }
.case { background: #fff; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); padding-bottom: var(--sp-4); }
.case h2, .case h3, .case-meta, .case p { padding: 0 var(--sp-4); }
.case-pics { gap: 2px; }
.steps li { padding-left: 3.2rem; }
.steps li::before { color: #fff; background: var(--act); width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-sm); }
.table thead th { border-bottom-color: var(--act); }
.permit img { border-radius: var(--r-sm); }
.chips { gap: var(--sp-2); }
.chips a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: var(--r-pill); text-decoration: none; background: #fff; }
.chips a:hover { border-color: var(--act); color: var(--act-dark); background: var(--act-soft); }
.band { background: var(--act); border-top: 0; color: #fff; }
.band h2, .band p, .band .big { color: #fff; }
.band .btn-call { background: #fff; color: var(--act-dark); border-color: #fff; }
.band .btn-sms { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.band .btn-sms:hover { background: rgba(255,255,255,.12); color: #fff; }
.ft { background: var(--ink); color: #C9D5CE; }
.ft b { color: #fff; }
.ft a { color: #DDE7E1; }
.ft .copy { border-top-color: rgba(255,255,255,.18); }
.sms-maker { border-radius: var(--r-md); }

/* 떠 있는 전화·문자(넓은 화면) */
.float { position: fixed; right: 22px; bottom: 22px; display: grid; gap: 12px; z-index: 40; }
.float a { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--lift); color: #fff; transition: transform .2s; }
.float svg { width: 24px; height: 24px; }
.fl-call { background: var(--act); }
.fl-sms { background: var(--ink); }
.float a:hover { transform: scale(1.06); color: #fff; }

@media (max-width: 1020px) {
  .hd-sms { display: none; }
  .svc-cards { grid-template-columns: repeat(2, 1fr); }
  .scrub-grid, .scrub-grid.rev { gap: var(--sp-5); }
}
@media (max-width: 768px) {
  .topbar span + span { display: none; }
  .float { display: none; }
  .hx-stage.ba-slider { height: auto; aspect-ratio: 4 / 3; }
  .hx-wrap { position: static; display: block; margin-top: -28px; pointer-events: auto; }
  .hx-card { max-width: none; padding: var(--sp-5) var(--sp-4); }
  .ba-hint { bottom: 40px; }
  .ba-cap { font-size: var(--fs-xs); }
  .scrub { height: 200vh; }
  .scrub-grid, .scrub-grid.rev { grid-template-columns: 1fr; gap: var(--sp-4); }
  .scrub-grid.rev .scrub-txt { order: 0; }
  .scrub-txt .scrub-story { display: none; }
  .scrub-img { max-height: 56vh; }
  .scrub-img.tall { aspect-ratio: 4 / 5; max-width: none; }
  .d-call { background: var(--act); border-radius: var(--r-pill); }
  .d-sms { border-color: var(--ink); border-radius: var(--r-pill); }
  .sec { padding: var(--sp-7) 0; }
}
@media (prefers-reduced-motion: reduce) { .svc-card, .float a, .scrub-state span { transition: none; } }
/* 10/21 2차 손질: 메뉴 한 줄·제목 크기·사진 설명 자리·스크롤 사진 크기 */
.nav { gap: 0; }
.nav a { white-space: nowrap; font-size: var(--fs-sm); padding: var(--sp-2) 10px; }
.hx-card { max-width: 580px; }
.hx-card h1 { font-size: clamp(1.9rem, 1.2rem + 2vw, 2.7rem); }
.ba-cap { right: 100px; left: auto; padding-right: 0; }
@media (min-width: 769px) {
  .scrub-grid { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); }
  .scrub-grid.rev { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
}
.scrub-img { max-height: 82vh; }
.scrub-img.tall { max-width: 560px; }
@media (max-width: 1180px) { .hd-call { display: none; } }
@media (max-width: 768px) { .ba-cap { right: 0; left: 0; padding: var(--sp-2) var(--sp-3); } .scrub-img { max-height: 56vh; } }

/* 글자 다듬기: Pretendard 기준 자간·굵기 */
body { letter-spacing: -0.012em; font-weight: 450; }
h1, h2, h3, .btn, .nav a, .hd-sms, .brand b, .checks { letter-spacing: -0.03em; }
h1 { font-weight: 800; letter-spacing: -0.045em; line-height: 1.22; }
h2 { font-weight: 750; }
.hx-card .lead, .sec-lead { letter-spacing: -0.02em; }
/* 색 다듬기(10/21 3차): 차가운 민트 회색 → 따뜻한 미색, 초록은 한 단계 깊게, 노랑은 강조 한 점 */
:root { --paper-2: #F5F3EC; --ink: #111C16; --ink-2: #39443E; --line: #E4E1D6; --line-2: #CFCBBE; --act: #0C7A40; --act-dark: #095F31; --act-soft: #E5F2E8; --hi: #FFD43B; }
.topbar { background: var(--act-dark); color: #E5F2E8; }
.hx-card h1 em { color: var(--act); box-shadow: inset 0 -0.3em 0 var(--hi); }
.ft { background: #0E1A13; }
@media (max-width: 768px) {
  .topbar .wrap { justify-content: center; }
  .topbar span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hx .ba-cap { display: none; }
  .ba-hint { bottom: 44px; }
  .scrub-pin { align-items: flex-start; padding-top: 88px; }
  .scrub-txt h2 { font-size: 1.5rem; }
}
@media (max-width: 768px) { .scrub-img.wide, .scrub-img.tall { aspect-ratio: 4 / 5; max-height: 62vh; } }

/* PC(769px 이상)만 Pretendard — 위 :root 기본값을 덮도록 파일 맨 끝에 둔다 */
@media (min-width: 769px) { :root { --f-sans: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; } }

/* 하단 막대: 문자 앱 미리 채우기가 안 되는 기기용 '문안 복사'(10/22 SEO 2 점검 — 41쪽에 복사 대체가 없던 문제) */
@media (max-width: 768px) {
  .dock { grid-template-columns: 1fr 1fr auto; }
  .d-copy { font: inherit; font-weight: 700; font-size: var(--fs-xs); padding: 0 12px; min-height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: #fff; color: var(--ink); }
  .dock-copy-ok { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 4px); margin: 0; text-align: center; background: #fff; border-radius: var(--r-sm); }
  .dock-copy-ok:empty { display: none; }
}
