/* 비로소정리 — 섹션마다 색 띠로 나누고, 내용은 흰 카드에 담는다.
   한 가지 산세리프(Pretendard), 굵은 제목, 둥근 카드, 알약 모양 칩 */

:root {
  color-scheme: light;
  --paper: #FFFFFF;
  --sheet: #FFFFFF;
  --ink: #15201B;
  --text: #3A4540;
  --muted: #66716B;
  --rule: #E3E6E2;
  --rule-strong: #CCD3CE;
  --pine: #24493B;
  --pine-dark: #1B3A2F;
  --pine-tint: #E3EDE6;
  --umber: #7A5C3E;
  --gold: #F1CF73;
  --error: #A33A2C;

  /* 섹션 색 띠 */
  --band-sage: #EAF1EC;
  --band-cream: #F8F3E7;
  --band-sky: #E9F0F5;
  --band-dark: #1B3A2F;

  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --voice: var(--sans);

  --gutter: 20px;
  --max: 1160px;
  --head-h: 60px;
  --r-lg: 20px;
  --r: 14px;
  --shadow: 0 1px 2px rgba(21, 32, 27, .04), 0 8px 24px -16px rgba(21, 32, 27, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16.5px/1.75 var(--sans);
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
body.no-dock { padding-bottom: 0; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }
p { margin: 0 0 14px; text-wrap: pretty; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 800; }
h1, h2 { text-wrap: balance; }
h1 { font-size: 30px; line-height: 1.3; letter-spacing: -0.035em; }
h2 { font-size: 24px; line-height: 1.38; letter-spacing: -0.03em; margin-bottom: 20px; }
h3 { font-size: 17px; line-height: 1.5; letter-spacing: -0.02em; font-weight: 700; }
strong { color: var(--ink); font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + var(--gutter) * 2); margin-left: max(0px, calc((100% - var(--max)) / 2)); }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted); line-height: 1.6; }
.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; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.label { font-size: 13.5px; font-weight: 700; line-height: 1.4; color: var(--pine); margin: 0 0 10px; }
.label-gap { margin-top: 28px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--pine); background: var(--pine-tint); border-radius: 999px; padding: 4px 12px; margin: 0 0 14px; line-height: 1.5; }
.lede { font-size: 17.5px; line-height: 1.75; color: var(--text); }
.desk-only { display: none; }
.mob-only { display: block; }
.num { font-variant-numeric: tabular-nums; }

/* ── 링크 · 버튼 */
.arr { display: inline-block; transition: transform .12s; }
.textlink { color: var(--pine); font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: baseline; }
.textlink:hover { color: var(--pine-dark); text-decoration: underline 2px; text-underline-offset: 5px; }
.textlink:hover .arr, .situ:hover .arr, .linklist a:hover .arr { transform: translateX(4px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 12px; border: 1.5px solid var(--pine-dark); background: var(--pine-dark); color: #fff; font: 700 16px/1 var(--sans); letter-spacing: -0.02em; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; box-shadow: 0 6px 16px -8px rgba(27, 58, 47, .55); }
.btn:hover { background: var(--pine); border-color: var(--pine); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-ghost { background: transparent; color: var(--pine-dark); box-shadow: none; }
.btn-ghost:hover { background: #fff; color: var(--pine-dark); border-color: var(--pine-dark); }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16.5px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; box-shadow: none; }
.btn-pill { border-radius: 999px; }
.after-link { margin-top: 24px; }
.link-stack { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; margin-top: 24px; }

/* ── 헤더 */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; justify-content: space-between; height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.brand-name { font: 800 20px/1 var(--sans); letter-spacing: -0.05em; }
.brand-sub { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-left: -2px; }
.nav-desk { display: none; }
.head-m { display: flex; align-items: center; gap: 4px; margin-right: -10px; }
.head-cta { font-size: 14px; font-weight: 700; color: #fff; background: var(--pine-dark); border-radius: 999px; text-decoration: none; padding: 0 14px; min-height: 36px; display: inline-flex; align-items: center; }
.menu-btn { width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-content: center; gap: 6px; }
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .15s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.sheet { position: fixed; z-index: 55; left: 0; right: 0; top: var(--head-h); bottom: 0; background: var(--paper); overflow: auto; box-shadow: 0 16px 40px rgba(21, 32, 27, .12); padding: 8px 0 40px; }
.sheet a:not(.btn) { display: flex; align-items: center; min-height: 60px; border-bottom: 1px solid var(--rule); font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.03em; }
.sheet a[aria-current] { color: var(--pine); }
.sheet-note { margin: 28px 0 12px; font-size: 15px; }

/* ── 모바일 하단 바 */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; visibility: visible; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--rule); box-shadow: 0 -6px 20px -12px rgba(21, 32, 27, .25); transition: transform .2s, visibility 0s; }
.dock.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform .2s, visibility 0s .2s; }
body.menu-open .dock { display: none; }
.dock p { margin: 0; display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.dock strong { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock span { font-size: 13px; color: var(--muted); }
.dock .btn { min-height: 46px; padding: 0 18px; white-space: nowrap; flex: none; }

/* ── 섹션: 색 띠로 구분 */
.sec { padding: 56px 0; border-top: 1px solid var(--rule); }
.sec-tight { padding-top: 32px; }
.sec-stone, .sec-cream { background: var(--band-cream); }
.sec-line, .sec-sage { background: var(--band-sage); }
.sec-rule, .sec-sky { background: var(--band-sky); }
.sec-stone, .sec-line, .sec-rule { border-top-color: transparent; }
.sec-intro { color: var(--text); margin-top: -8px; }
.sec-head { margin-bottom: 28px; max-width: 720px; }
.sec-head h2 { margin-bottom: 0; }
.sec-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.sec-head-row > p { margin: 0; }
.cols { display: grid; gap: 28px; }
.side-lead { color: var(--text); }
.h-sub { font-size: 20px; line-height: 1.45; margin-bottom: 14px; }
.block-h { font-size: 17px; margin: 0 0 12px; }
.group-gap { margin-top: 48px; }
.guides-h { margin-top: 48px; }
.small-gap { margin-top: 16px; font-size: 14px; }

/* 흰 카드 공통 */
.panel, .form-card, .situs, .rows, .steps, .asks li, .faq, .linklist a, .principles > div, .svc3 article, .rgroup, .plain-lines, .article-end {
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg);
}
.sec-stone .panel, .sec-line .panel, .sec-rule .panel, .hero .panel { border-color: transparent; box-shadow: var(--shadow); }

/* ── 첫 화면 */
.hero { background: var(--band-sage); padding: 32px 0 48px; }
.hero-grid { display: grid; gap: 32px; }
.kicker { font-size: 14px; font-weight: 700; color: var(--pine); margin: 0 0 12px; }
.hero h1 { font-size: 34px; line-height: 1.24; letter-spacing: -0.045em; margin-bottom: 18px; font-weight: 800; }
.hero .lede { margin-bottom: 18px; max-width: 34em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; }
.tags li { font-size: 13.5px; font-weight: 600; color: var(--pine-dark); background: rgba(255, 255, 255, .8); border: 1px solid rgba(36, 73, 59, .14); border-radius: 999px; padding: 4px 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.hero-actions .btn { flex: 1 1 180px; }
.hero-fact { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0; max-width: 36em; }
.panel { padding: 22px 20px 18px; }
.panel-h { font-size: 20px; margin-bottom: 4px; }
.panel > .small { margin-bottom: 14px; }
.situ-foot { margin: 14px 0 0; }

/* ── 숫자 띠 */
.stats { background: var(--band-dark); color: #fff; padding: 28px 0; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
.stat-row li { display: flex; flex-direction: column; gap: 4px; }
.stat-row strong { color: #fff; font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat-row small { font-size: 17px; font-weight: 700; margin-left: 2px; color: var(--gold); letter-spacing: -0.02em; }
.stat-row span { font-size: 13.5px; color: rgba(255, 255, 255, .72); line-height: 1.45; }

/* ── 상황 문장 */
.situs { overflow: hidden; }
.situs > li + li { border-top: 1px solid var(--rule); }
.situ { display: grid; gap: 4px; padding: 16px 20px; min-height: 64px; color: inherit; text-decoration: none; transition: background .15s; }
.situ:hover, .situ:active { background: var(--pine-tint); }
.situ-text { font: 600 17px/1.55 var(--voice); color: var(--ink); letter-spacing: -0.025em; }
.situ-svc { font-size: 13.5px; font-weight: 700; color: var(--pine); }
.panel .situs { border-radius: var(--r); border-color: var(--rule); }

/* ── 서비스 카드 */
.svc3 { display: grid; gap: 14px; }
.svc3 article { padding: 24px 22px; display: flex; flex-direction: column; }
.svc3 h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.svc3 p { flex: 1; }
.svc3 .ph { margin: 0 0 18px; }
.svc-num { font-size: 13px; font-weight: 800; color: var(--pine); background: var(--pine-tint); border-radius: 999px; padding: 2px 10px; align-self: flex-start; margin-bottom: 14px; }

/* ── 진행 과정: 번호 단계 */
.steps { padding: 6px 20px; }
.steps > li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 20px 0; }
.steps > li + li { border-top: 1px solid var(--rule); }
.step-n { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--pine); color: var(--pine); display: grid; place-items: center; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.step-stage { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--umber); background: var(--band-cream); border-radius: 999px; padding: 1px 10px; margin: 0 0 6px; }
.steps h3 { margin: 4px 0 4px; }
.steps p:not(.step-stage) { margin: 0; font-size: 15.5px; }

/* ── 네 가지 원칙 */
.principles { display: grid; gap: 12px; }
.principles > div { padding: 22px 20px; border-color: transparent; box-shadow: var(--shadow); }
.p-num { display: block; font-size: 22px; font-weight: 800; color: var(--pine); letter-spacing: -0.03em; margin-bottom: 8px; line-height: 1; }
.p-lead { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.025em; }
.principles p:not(.p-lead) { margin: 0; font-size: 15.5px; }
.doc-col { margin-top: 4px; }

/* ── dl 행 (카드 안 표) */
.rows { padding: 4px 20px; }
.rows > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }
.rows > div + div { border-top: 1px solid var(--rule); }
.rows dt { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.rows dd { margin: 0; font-size: 15px; color: var(--text); }
.rows.facts { margin: 24px 0; }
.rows.facts > div { grid-template-columns: 88px 1fr; gap: 12px; padding: 12px 0; }
.rows.facts dt { font-size: 14px; font-weight: 500; color: var(--muted); }
.rows.facts dd { color: var(--ink); font-weight: 600; }

/* ── 예시 문서 */
.doc { margin: 0; max-width: 440px; }
.paper { background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 6px; padding: 22px; box-shadow: 0 1px 0 var(--rule), 0 16px 32px -20px rgba(21, 32, 27, .35); }
.doc-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1.5px solid var(--ink); padding-bottom: 10px; margin-bottom: 6px; }
.doc-head strong { font-size: 16px; font-weight: 800; }
.doc-tag { font-size: 12px; font-weight: 700; color: var(--umber); border: 1px solid var(--umber); border-radius: 999px; padding: 1px 8px; line-height: 1.4; }
.doc-meta { font-size: 13px; color: var(--umber); margin: 0 0 4px; }
.doc-rows li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.doc-item { flex: 1; }
.doc-note { font-size: 13px; color: var(--muted); text-align: right; }
.doc-note.umber { color: var(--umber); }
.doc-box { width: 15px; height: 15px; border: 1.5px solid var(--umber); border-radius: 3px; flex: none; }
.doc-rows li.lead .doc-item { display: flex; align-items: baseline; }
.doc-rows li.lead .doc-item::after { content: ''; flex: 1; border-bottom: 1px dotted var(--rule-strong); margin: 0 0 0 10px; min-width: 40px; }
.doc-total { border-top: 1.5px solid var(--ink); border-bottom: 0 !important; margin-top: -1px; }
.doc-foot { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.doc figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* ── 업체에 물어볼 것 */
.asks { display: grid; gap: 10px; counter-reset: ask; }
.asks li { padding: 18px 20px 18px 56px; position: relative; counter-increment: ask; }
.asks li::before { content: counter(ask); position: absolute; left: 18px; top: 18px; width: 26px; height: 26px; border-radius: 50%; background: var(--pine-dark); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.ask-q { font: 700 17px/1.55 var(--voice); color: var(--ink); letter-spacing: -0.025em; margin: 0 0 4px; }
.ask-a { font-size: 15px; margin: 0; }
.asks + .muted { margin-top: 18px; font-size: 15px; }

/* ── 링크 카드 목록 */
.linklist { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.linklist a { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; min-height: 60px; padding: 16px 18px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.linklist a:hover { border-color: var(--pine); box-shadow: var(--shadow); }
.linklist strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.linklist small { display: block; font-size: 14px; color: var(--muted); line-height: 1.55; margin-top: 4px; }
.linklist .arr { color: var(--pine); flex: none; }
.linklist a:hover strong { color: var(--pine); }
.inline-list { font-size: 15px; color: var(--ink); line-height: 1.8; }
.inline-list li { display: inline; }
.inline-list li:not(:last-child)::after { content: ', '; color: var(--muted); }
.plain-lines { padding: 4px 20px; }
.plain-lines p { font-size: 16.5px; font-weight: 600; color: var(--ink); padding: 14px 0; margin: 0; }
.plain-lines p + p { border-top: 1px solid var(--rule); }

/* ── 접고 펴는 것 (FAQ, 지역 묶음) 공통 + / − */
.pm { position: relative; width: 14px; height: 14px; flex: none; }
.pm::before, .pm::after { content: ''; position: absolute; background: var(--pine); left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; }
.pm::after { transition: transform .15s; transform: rotate(90deg); }
details[open] > summary .pm::after { transform: rotate(0); }

.faqs { display: grid; gap: 10px; }
.faq { border-radius: var(--r); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; min-height: 44px; font-size: 16.5px; font-weight: 700; color: var(--ink); line-height: 1.5; letter-spacing: -0.02em; }
.faq[open] { border-color: var(--rule-strong); }
.faq-a { padding: 0 20px 20px; }
.faq-a p { margin: 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.faq-a .linklist { padding-top: 4px; }
@media (prefers-reduced-motion: no-preference) { .faq[open] .faq-a { animation: fadein .16s ease-out; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ── 동네 찾기 */
.search { position: relative; display: block; max-width: 480px; margin-bottom: 14px; }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 54px; padding: 0 16px 0 44px; font: 400 16.5px var(--sans); color: var(--ink); background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 999px; }
.search input:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px var(--pine-tint); }
.finder-hint { font-size: 14px; color: var(--pine); margin: 0 0 8px; }
.finder-empty { margin-top: 16px; }
.finder .rgroup + .rgroup, .main > .rgroup + .rgroup { margin-top: 10px; }
.rgroup { padding: 0 18px; }
.rgroup summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 16px; font-weight: 800; color: var(--ink); min-height: 54px; }
.rgrid { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 18px; }
.rgrid li[hidden] { display: none; }
.rgrid a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none; background: #F4F6F4; border: 1px solid var(--rule); border-radius: 999px; transition: background .15s, color .15s; }
.rgrid a:hover { background: var(--pine-dark); border-color: var(--pine-dark); color: #fff; }
mark { background: var(--gold); color: inherit; padding: 0 1px; border-radius: 2px; }

/* ── 하위 페이지 머리 (색 띠) */
.crumbs, .page-head, .rs-top { background: var(--band-sage); box-shadow: 0 0 0 100vmax var(--band-sage); clip-path: inset(0 -100vmax); }
.rs-top .page-head { box-shadow: none; clip-path: none; }
.page-head { padding-top: 16px; padding-bottom: 40px; }
.page-head h1 { margin-bottom: 18px; }
.answer { font-size: 17px; line-height: 1.8; font-weight: 500; color: var(--ink); }
.page-head .lede { color: var(--text); }
.page-head .mob-only .btn { margin-top: 8px; }
.page-head .rows.facts { margin-bottom: 0; }
.rs-top { padding-bottom: 40px; }
.rs-main > .page-head { padding-left: 0; padding-right: 0; padding-bottom: 8px; }
.rs-aside { background: var(--sheet); border-radius: var(--r-lg); padding: 22px 20px; box-shadow: var(--shadow); }
.rs-aside .label { color: var(--pine); }
.rs-aside p:not(.label) { font-size: 15px; }
.page-head + .sec, .rs-top + .sec { border-top: 0; }

/* ── 이동 경로 */
.crumbs { padding-top: 16px; font-size: 13px; color: var(--muted); }
.crumbs ol { display: flex; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.crumbs ol::-webkit-scrollbar { display: none; }
.crumbs li + li::before { content: '›'; color: var(--muted); margin: 0 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ── 사진 */
.ph { margin: 0; }
.ph img { width: 100%; object-fit: cover; border-radius: var(--r); background: var(--band-cream); }
.ph-45 img { aspect-ratio: 4 / 5; }
.ph-32 img { aspect-ratio: 3 / 2; }
.ph figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.strip { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 8px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip .ph { flex: 0 0 78vw; max-width: 340px; scroll-snap-align: start; }
.works { display: grid; gap: 32px; }
.ba { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r); background: var(--band-cream); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ba .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba .bar { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.ba .knob { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: #fff; border: 1px solid var(--ink); }
.ba .knob::before, .ba .knob::after { content: ''; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px; border: solid var(--ink); border-width: 0 0 1.5px 1.5px; }
.ba .knob::before { left: 9px; transform: rotate(45deg); }
.ba .knob::after { right: 9px; transform: rotate(-135deg); }
.ba .tag { position: absolute; top: 10px; font-size: 13px; background: rgba(21, 32, 27, .72); color: #fff; padding: 2px 10px; border-radius: 999px; pointer-events: none; }
.ba .tag.l { left: 10px; } .ba .tag.r { right: 10px; }

/* ── 신청서 */
.form-card { padding: 24px 20px; border-color: transparent; box-shadow: var(--shadow); }
.form { max-width: 600px; }
.form-card .form { max-width: none; }
.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 8px; padding: 0; }
.req { font-size: 13px; font-weight: 500; color: var(--muted); }
.hint { font-size: 14px; color: var(--muted); margin: -2px 0 10px; line-height: 1.55; }
.hint-after { margin: 8px 0 0; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: 400 16.5px/1.5 var(--sans); color: var(--ink);
  background: #FAFBFA; border: 1px solid var(--rule-strong); border-radius: 12px; appearance: none; -webkit-appearance: none;
}
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--pine); background: #fff; box-shadow: 0 0 0 3px var(--pine-tint); }
.form [aria-invalid="true"] { border-color: var(--error) !important; }
.err { font-size: 14px; color: var(--error); margin: 8px 0 0; }
.two { display: grid; gap: 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--sheet); font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; transition: background .15s; }
.chip input:checked + span { background: var(--pine-dark); border-color: var(--pine-dark); color: #fff; font-weight: 700; }
.chip input:checked + span::before { content: ''; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-2px); }
.chip input:focus-visible + span { outline: 2px solid var(--pine); outline-offset: 2px; }
.prefill-note { background: var(--pine-tint); color: var(--pine); font-size: 14px; padding: 10px 14px; border-radius: 10px; margin: 0 0 8px; }
.more { border: 1px solid var(--rule); border-radius: var(--r); padding: 0 16px; margin: 0 0 22px; background: #FAFBFA; }
.more summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; font-size: 15px; font-weight: 700; color: var(--ink); min-height: 52px; }
.more-body { padding: 4px 0 2px; }
.memo { margin: 4px 0 22px; }
.memo h3 { font-size: 14px; margin-bottom: 8px; }
.memo .rows { background: #FAFBFA; }
.memo .rows > div { grid-template-columns: 72px 1fr; gap: 12px; padding: 10px 0; }
.memo dt { font-size: 14px; font-weight: 500; color: var(--muted); }
.memo dd.empty { color: var(--muted); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text); line-height: 1.6; margin: 4px 0 8px; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--pine); flex: none; }
.form .btn-block { margin-top: 18px; }
.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.form-status { margin: 14px 0 0; font-size: 15px; }
.form-status.err { color: var(--error); }
.form-done { padding: 8px 0; }
.form-done h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.form-done:focus { outline: none; }
.after-h { font-size: 15px; margin: 32px 0 10px; }
.after { counter-reset: after; }
.after p { margin: 0; padding: 12px 0 12px 36px; position: relative; font-size: 15px; counter-increment: after; }
.after p + p { border-top: 1px solid var(--rule-strong); }
.after p::before { content: counter(after); position: absolute; left: 0; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--pine-dark); color: #fff; font-size: 12.5px; font-weight: 800; display: grid; place-items: center; line-height: 1; }

/* ── 안내서 글 */
.article { max-width: calc(36em + var(--gutter) * 2); margin-left: max(0px, calc((100% - var(--max)) / 2)); padding-bottom: 72px; }
.article .page-head { padding-left: 0; padding-right: 0; margin-bottom: 40px; }
.prose { font-size: 17px; line-height: 1.85; }
.prose h2 { font-size: 22px; margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--rule); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 18px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 6px 0; padding-left: 4px; }
.prose li::marker { color: var(--pine); }
.article-end { margin-top: 48px; padding: 24px 22px; background: var(--band-sage); border-color: transparent; }
.article-end > p:first-child { font-weight: 800; color: var(--ink); font-size: 18px; }
.article-end .btn { margin: 4px 0 20px; }
.article-end > p:last-child { margin: 0; }

/* ── 푸터 */
.site-foot { background: var(--band-dark); color: rgba(255, 255, 255, .78); padding: 56px 0 40px; font-size: 15px; }
.foot-brand { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 12px; font: 800 20px/1 var(--sans); letter-spacing: -0.05em; color: #fff; }
.foot-line { color: rgba(255, 255, 255, .72); max-width: 36em; }
.foot-cols { display: grid; gap: 28px; margin: 36px 0; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .14); }
.foot-cols h2 { font-size: 15px; margin: 0 0 12px; color: #fff; font-weight: 800; }
.foot-cols li { padding: 3px 0; }
.site-foot a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.fgroup { border-top: 1px solid rgba(255, 255, 255, .14); }
.fgroup summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; font-weight: 800; color: #fff; }
.fgroup .pm::before, .fgroup .pm::after { background: #fff; }
.fgroup-all { margin: 0 0 8px; font-size: 14px; }
.fgroup-all a { color: var(--gold); }
.foot-areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; padding-bottom: 16px; }
.foot-areas li { padding: 4px 0; font-size: 14px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 20px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.foot-bottom p { margin: 6px 0 0; }

/* ── 600px 이상 */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .two { grid-template-columns: 1fr 1fr; }
  .foot-areas { grid-template-columns: repeat(4, 1fr); }
  .strip .ph { flex-basis: 300px; }
  .works { grid-template-columns: 1fr 1fr; }
  .paper { padding: 28px; }
  .principles { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .form-card { padding: 32px 30px; }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* ── 960px 이상 */
@media (min-width: 960px) {
  :root { --head-h: 72px; }
  body, body.no-dock { padding-bottom: 0; font-size: 17px; line-height: 1.8; }
  .dock, .head-m, .sheet { display: none !important; }
  .desk-only { display: block; }
  .mob-only { display: none; }
  .nav-desk { display: flex; align-items: center; gap: 26px; }
  .nav-desk a:not(.btn) { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
  .nav-desk a:not(.btn):hover, .nav-desk a[aria-current] { color: var(--pine); border-bottom-color: var(--pine); }
  .nav-desk .btn { margin-left: 4px; }
  h1 { font-size: 42px; line-height: 1.26; }
  h2 { font-size: 32px; line-height: 1.32; margin-bottom: 28px; }
  h3 { font-size: 18px; }
  .lede { font-size: 18.5px; }
  .answer { font-size: 18px; }
  .sec { padding: 96px 0; }
  .sec-tight { padding-top: 40px; }
  .sec-head { margin-bottom: 40px; }

  .cols { grid-template-columns: repeat(12, 1fr); column-gap: 40px; row-gap: 0; }
  .cols > .side { grid-column: 1 / 5; align-self: start; position: sticky; top: 104px; }
  .cols > .main { grid-column: 5 / 13; }
  .cols > .main-form { grid-column: 6 / 13; }
  .cols > .half { grid-column: span 6; }
  .cols > .wide { grid-column: 1 / 8; }
  .cols > .doc-col { grid-column: 8 / 13; margin-top: 0; align-self: start; }
  .sec-stone .cols > .half:first-child { grid-column: 1 / 7; }
  .sec-stone .cols > .doc-col, #cost .cols > .doc-col { grid-column: 8 / 13; }
  #cost .cols > .half:first-child { grid-column: 1 / 7; }
  .sec-stone .cols > .half + .half, .sec .cols > .half + .half { padding-left: 0; }

  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
  .hero h1 { font-size: 56px; line-height: 1.18; letter-spacing: -0.05em; margin-bottom: 24px; }
  .kicker { font-size: 15px; margin-bottom: 18px; }
  .panel { padding: 30px 28px 24px; }
  .panel-h { font-size: 22px; }
  .stats { padding: 40px 0; }
  .stat-row strong { font-size: 46px; }
  .stat-row small { font-size: 20px; }
  .stat-row span { font-size: 14.5px; }
  .stat-row li + li { border-left: 1px solid rgba(255, 255, 255, .14); padding-left: 28px; }
  .situ { grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 18px 24px; }
  .situ-text { font-size: 18px; }
  .panel .situ { grid-template-columns: 1fr; gap: 2px; padding: 15px 18px; }
  .panel .situ-text { font-size: 16.5px; }

  .svc3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .svc3 article { padding: 32px 28px; }
  .svc3 h3 { font-size: 23px; }

  .steps { padding: 8px 32px; }
  .steps > li { grid-template-columns: 40px 1fr; gap: 20px; padding: 24px 0; }
  .step-n { width: 40px; height: 40px; font-size: 16px; }

  .principles { gap: 16px; }
  .principles > div { padding: 28px 26px; }

  .rows { padding: 6px 28px; }
  .rows-cost > div { grid-template-columns: 180px 1fr; gap: 20px; }

  .rs-top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 40px; padding-bottom: 56px; }
  .rs-main { grid-column: 1 / 9; max-width: 700px; }
  .rs-aside { grid-column: 9 / 13; position: sticky; top: 104px; align-self: start; margin-top: 72px; padding: 28px 26px; }
  .page-head { padding-top: 24px; padding-bottom: 56px; }
  .finder .search { margin-bottom: 20px; }
  .works { grid-template-columns: repeat(3, 1fr); }
  .strip { padding-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); }
  .form-card { padding: 40px 40px; }
  .foot-cols { grid-template-columns: 1fr 1fr 1.6fr 1.6fr; gap: 40px; }
  .foot-areas { grid-template-columns: repeat(3, 1fr); }
  .fgroup { border-top: 0; }
  .fgroup summary { pointer-events: none; min-height: 0; margin-bottom: 12px; }
  .fgroup summary .pm { display: none; }
  .foot-bottom { display: flex; justify-content: space-between; }
  .foot-bottom p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print { .site-head, .dock, .site-foot { display: none; } }
.side > h1 { margin-bottom: 16px; }
.situ-plain { grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
.situ-plain .situ-svc { color: var(--pine); font-size: 16px; }
.sec-line .eyebrow, .hero .eyebrow { background: #fff; }
.sec-guides .linklist { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
@media (max-width: 380px) { .brand-sub { display: none; } .hero h1 { font-size: 30px; } }

/* ── 카카오톡 상담 */
:root { --kakao: #FEE500; --kakao-ink: #191600; }
.btn-kakao { background: var(--kakao); border-color: var(--kakao); color: var(--kakao-ink); box-shadow: 0 6px 16px -10px rgba(120, 100, 0, .6); }
.btn-kakao:hover { background: #F5DC00; border-color: #F5DC00; color: var(--kakao-ink); }
.btn-kakao .kk-ic { flex: none; }
.btn-sm.btn-kakao .kk-ic { width: 17px; height: 17px; }
.hero-more { margin: -6px 0 18px; font-size: 15px; }
.kakao-alt { margin-top: 28px; padding: 20px; background: rgba(255, 255, 255, .7); border: 1px dashed var(--rule-strong); border-radius: var(--r); }
.kakao-alt p { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--ink); }
.sheet-kakao { margin-top: 10px; }
.aside-kakao { margin-top: 8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 20px; }
.article-end .btn-row .btn { margin: 0; }
.foot-kakao { margin-top: 6px; min-height: 46px; }
.dock-2 .btn-kakao { padding: 0 14px; }
.dock-2 .btn-kakao .kk-ic { width: 18px; height: 18px; }
@media (max-width: 479px) {
  .dock-2 { gap: 8px; }
  .dock-2 p { display: none; }
  .dock-2 .btn { flex: 1 1 0; }
}
.kakao-float { display: none; }
@media (min-width: 960px) {
  .kakao-float { position: fixed; right: 24px; bottom: 24px; z-index: 45; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 68px; height: 68px; border-radius: 50%; background: var(--kakao); color: var(--kakao-ink); text-decoration: none; font-size: 11.5px; font-weight: 800; letter-spacing: -0.03em; box-shadow: 0 10px 24px -8px rgba(21, 32, 27, .45); transition: transform .15s; }
  .kakao-float:hover { transform: translateY(-2px); }
  .kakao-float .kk-ic { width: 24px; height: 24px; }
  .nav-desk .btn-kakao { margin-left: 4px; }
  .nav-desk .btn-kakao + .btn { margin-left: -14px; }
}
@media print { .kakao-float { display: none; } }
.dock-2 p { margin-right: auto; }
.dock-2 { gap: 8px; }
.site-foot .btn-kakao, .site-foot .btn-kakao:hover { color: var(--kakao-ink); text-decoration: none; }

/* 960~1199px(태블릿 가로·작은 노트북): 상단 메뉴가 두 줄로 깨지지 않게 간격과 글자를 줄임 */
.brand-name, .nav-desk a { white-space: nowrap; }
@media (min-width: 960px) and (max-width: 1199px) {
  .brand-sub { display: none; }
  .nav-desk { gap: 18px; }
  .nav-desk a:not(.btn) { font-size: 14.5px; }
  .nav-desk .btn { padding-left: 16px; padding-right: 16px; }
}
.foot-biz { font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, .55); margin: 0 0 16px; }
.foot-biz a { color: inherit; }
