/* 모눈 건축사사무소 — 소규모 건축사사무소 디자인 샘플 (디코랩)
   색은 설계 책상의 실물에서: 트레이싱지, 도면 용지, 연필 흑연, HB 심, 청사진, 빨간 색연필 */
:root {
  --color-vellum: #EEF0EA;     /* 배경 — 트레이싱지 */
  --color-sheet: #FAFAF7;      /* 표·폼·도면 면 */
  --color-graphite: #25282B;   /* 본문 글자·가는 선 */
  --color-lead: #5E636A;       /* 보조 글자 */
  --color-cyanotype: #1E4596;  /* 도면 선, 주 버튼 */
  --color-cyanotype-deep: #163574;
  --color-redline: #B8412A;    /* 계산 결과의 남는 면적·수정 표시만 */
  --line: rgba(37, 40, 43, .22);
  --line-strong: rgba(37, 40, 43, .7);
  --grid-minor: rgba(30, 69, 150, .055);
  --grid-major: rgba(30, 69, 150, .11);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
          "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;

  --fs-h1: clamp(2.1rem, 1.3rem + 3.2vw, 3.9rem);
  --fs-h2: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --fs-h3: 1.15rem;
  --fs-body: 1.0625rem;
  --fs-small: .875rem;

  --radius: 0;
  --header-h: 64px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--color-graphite);
  background: var(--color-vellum);
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.3; letter-spacing: -.025em; margin: 0; text-wrap: balance; font-weight: 500; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-weight: 600; }
small { font-size: .85em; color: var(--color-lead); }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--color-graphite); color: #fff; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--color-cyanotype); outline-offset: 3px; }

/* 실제 정보 자리 */
.ph { display: inline-block; padding: 0 .4em; border: 1px dashed currentColor; opacity: .78; font-size: .92em; line-height: 1.6; }

/* 샘플 안내 띠 */
.sample-banner { background: var(--color-graphite); color: #E6E8E3; font-size: var(--fs-small); line-height: 1.6; }
.sample-banner__inner { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; }
.sample-banner__tag { flex: none; padding: 0 8px; border: 1px solid #E6E8E3; font-weight: 600; font-size: .78rem; }
.sample-banner a { color: #fff; font-weight: 600; }

/* 헤더 — backdrop-filter 를 쓰지 않는다(모바일 메뉴가 헤더 높이로 잘리는 문제) */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-vellum); border-bottom: 1px solid var(--line-strong); }
.site-header__inner { display: flex; align-items: center; gap: 14px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo svg { width: 34px; height: 34px; }
.logo b { font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.logo b span { margin-left: 6px; font-weight: 400; color: var(--color-lead); }
.gnb { display: flex; align-items: center; gap: 2px; }
.gnb a { position: relative; padding: 8px 11px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--color-lead); transition: color .18s ease; }
.gnb a:hover { color: var(--color-graphite); }
.gnb a.is-active { color: var(--color-graphite); }
.gnb a.is-active:not(.gnb__cta)::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 1px; height: 1.5px; background: var(--color-cyanotype); }
.gnb__cta { margin-left: 10px; background: var(--color-cyanotype); color: #fff !important; padding: 8px 16px !important; }
.gnb__cta:hover { background: var(--color-cyanotype-deep); }
.gnb__cta.is-active { box-shadow: inset 0 0 0 2px var(--color-sheet), 0 0 0 1px var(--color-cyanotype); }
.header-tel { display: flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.header-tel svg { width: 18px; height: 18px; color: var(--color-cyanotype); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.menu-toggle__bar, .menu-toggle__bar::before, .menu-toggle__bar::after { position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--color-graphite); content: ""; transition: transform .25s ease, opacity .2s ease; }
.menu-toggle__bar { top: 21px; }
.menu-toggle__bar::before { left: 0; top: -7px; }
.menu-toggle__bar::after { left: 0; top: 7px; }
.site-header.is-open .menu-toggle__bar { background: transparent; }
.site-header.is-open .menu-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .menu-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

/* 버튼 — 모서리 0, 그림자 없음 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid var(--color-graphite); cursor: pointer; font-family: inherit; background: transparent; color: var(--color-graphite); transition: background-color .18s ease, color .18s ease; }
.btn--blue { background: var(--color-cyanotype); border-color: var(--color-cyanotype); color: #fff; }
.btn--blue:hover { background: var(--color-cyanotype-deep); }
.btn--line:hover { background: var(--color-sheet); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }

/* 섹션 공통 — 섹션 여백은 여기서만 정한다 */
.section { padding: clamp(72px, 9vw, 128px) 0; }
/* 섹션 머리: 양 끝에 45° 틱이 있는 치수선 */
.sec-head { position: relative; display: grid; gap: 14px; padding-top: 22px; margin-bottom: 40px; border-top: 1px solid var(--line-strong); }
.sec-head::before, .sec-head::after { content: ""; position: absolute; top: -6px; width: 1px; height: 12px; background: var(--color-graphite); transform: rotate(45deg); }
.sec-head::before { left: 0; }
.sec-head::after { right: 0; }
.sec-head h2 { font-size: var(--fs-h2); font-weight: 400; letter-spacing: -.035em; }
.sec-head__text { display: grid; gap: 8px; max-width: 36em; color: var(--color-lead); }
.note { font-size: var(--fs-small); color: var(--color-cyanotype); }
.note::before { content: ""; display: inline-block; width: 18px; height: 0; border-top: 1px dashed currentColor; vertical-align: middle; margin-right: 8px; }

/* 모눈 배경 (모눈종이 — 장식이 아니라 상호와 도면 재료) */
.hero, .board {
  background-color: var(--color-sheet);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
}

/* 1. 히어로 */
.hero { position: relative; padding: 56px 0 48px; border-bottom: 1px solid var(--line-strong); }
.hero__grid { display: grid; gap: 40px; }
.hero__kicker { font-size: var(--fs-small); font-weight: 600; color: var(--color-cyanotype); margin-bottom: 18px; }
.hero__title { font-size: var(--fs-h1); font-weight: 300; line-height: 1.2; letter-spacing: -.04em; margin-bottom: 22px; }
.hero__lead { max-width: 31em; color: var(--color-lead); margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hero__actions .btn--line { background: var(--color-sheet); font-variant-numeric: tabular-nums; }
.hero__more { font-size: .95rem; font-weight: 500; color: var(--color-cyanotype); text-underline-offset: 4px; }

/* 표제란 */
.tblock { align-self: end; background: var(--color-sheet); border: 1.5px solid var(--color-graphite); font-size: .92rem; }
.tblock table th, .tblock table td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.tblock table th { width: 7.2em; font-weight: 500; font-size: .8rem; color: var(--color-lead); border-right: 1px solid var(--line); }
.tblock__name { font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.tblock__foot { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; padding: 10px 14px; color: var(--color-graphite); }
.tblock__north { width: 40px; height: 46px; }
.tblock__north text, .tblock__scale text { font: 600 10px var(--font); fill: currentColor; }
.tblock__scale { width: 150px; height: 30px; }
.tblock__meta { font-size: .78rem; line-height: 1.5; color: var(--color-lead); text-align: right; }

/* 2. 프로젝트 인덱스 */
.projects { padding-top: clamp(48px, 4.5vw, 64px); }
.projects .sec-head { margin-bottom: 28px; }
.idx__cols { display: none; }
.idx__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.idx__row { border-bottom: 1px solid var(--line); }
/* 모바일: 번호·이름·＋ 한 줄, 그 아래 용도·연도·지역을 한 줄로 접는다 */
.idx__head { display: flex; flex-wrap: wrap; align-items: baseline; width: 100%; padding: 16px 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: color .18s ease, background-color .18s ease; }
.idx__no { width: 2.6em; font-variant-numeric: tabular-nums; font-size: .9rem; color: var(--color-lead); }
.idx__name { flex: 0 0 calc(100% - 2.6em - 24px); font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.45; }
.idx__use, .idx__year, .idx__region { order: 2; font-size: .85rem; color: var(--color-lead); font-variant-numeric: tabular-nums; }
.idx__use { margin-left: 2.6em; }
.idx__use::after, .idx__year::after { content: "·"; margin: 0 6px; }
.idx__mark { order: 1; position: relative; width: 14px; height: 14px; margin-left: auto; align-self: center; }
.idx__mark::before, .idx__mark::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1px; background: currentColor; transition: transform .2s ease; }
.idx__mark::after { transform: rotate(90deg); }
.idx__row.is-active .idx__mark::after { transform: rotate(0deg); }
.idx__row.is-active .idx__name { color: var(--color-cyanotype); }
.idx__row.is-active .idx__no { color: var(--color-cyanotype); }

.idx__preview { margin: 0 0 22px; }
.js .idx__row:not(.is-active) .idx__preview { display: none; }

/* 도면 미리보기 */
.dwg { width: 100%; height: auto; background: var(--color-sheet); border: 1px solid var(--line-strong); color: var(--color-cyanotype); }
.dwg path, .dwg circle { fill: none; stroke: var(--color-cyanotype); stroke-linejoin: miter; }
.dwg .w { stroke-width: 2.6; }
.dwg .fillw { fill: rgba(30, 69, 150, .07); }
.dwg .t { stroke-width: 1.1; }
.dwg .g { stroke: var(--color-graphite); stroke-width: 2; }
.dwg .d { stroke: var(--color-graphite); stroke-width: .8; opacity: .8; }
.dwg .nb { stroke: var(--color-graphite); stroke-width: 1; stroke-dasharray: 5 4; opacity: .55; }
.dwg .bnd { stroke: var(--color-graphite); stroke-width: 1; stroke-dasharray: 14 4 2 4; opacity: .7; }
.dwg .sun { stroke: var(--color-redline); stroke-width: 1; stroke-dasharray: 4 4; }
.dwg .lv { fill: var(--color-graphite); stroke: none; }
.dwg text { font: 500 12px var(--font); fill: var(--color-cyanotype); stroke: none; }
.dwg text.sm { font-size: 11px; }
.dwg text.lbl { fill: var(--color-graphite); font-weight: 600; }
.dwg text.dim { fill: var(--color-graphite); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.dwg text.sunt { fill: var(--color-redline); }
.dwg .na circle { stroke: var(--color-graphite); stroke-width: .9; }
.dwg .na path { fill: var(--color-graphite); stroke: none; }
.dwg .na text { fill: var(--color-graphite); font-size: 10px; font-weight: 700; }
.dwg .sb path { stroke: var(--color-graphite); stroke-width: .9; }
.dwg .sb .sb__fill { fill: var(--color-graphite); stroke: none; }
.dwg .sb text { fill: var(--color-graphite); font-size: 10px; }

.pv { padding-top: 14px; }
.pv__title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.pv__virtual { flex: none; padding: 0 7px; border: 1px dashed var(--color-cyanotype); color: var(--color-cyanotype); font-size: .75rem; font-weight: 600; }
.pv__desc { color: var(--color-lead); font-size: .97rem; margin-bottom: 12px; }
.pv__facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.pv__facts div { padding: 7px 0; border-bottom: 1px solid var(--line); }
.pv__facts dt { font-size: .78rem; color: var(--color-lead); }
.pv__facts dd { margin: 0; font-size: .92rem; font-weight: 500; }

/* 대표 모션: 고른 도면이 펜 플로터처럼 그려진다 */
@keyframes plot { from { stroke-dasharray: 1 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1 1; stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.has-motion .idx__preview.is-drawing .draw { animation: plot .9s cubic-bezier(.45, .05, .3, 1) both; }
.has-motion .idx__preview.is-drawing .draw.t { animation-delay: .25s; }
.has-motion .idx__preview.is-drawing text,
.has-motion .idx__preview.is-drawing .d,
.has-motion .idx__preview.is-drawing .na,
.has-motion .idx__preview.is-drawing .sb { animation: fade-in .5s ease .55s both; }
.idx__preview.is-fading { animation: fade-in .25s ease both; }

/* 3. 진행 순서 */
.steps { font-size: .98rem; background: var(--color-sheet); border-top: 1px solid var(--line-strong); }
.steps thead { display: none; }
.steps tr { display: grid; gap: 4px; padding: 16px 14px; border-bottom: 1px solid var(--line); }
.steps th[scope="row"] { font-size: 1.08rem; font-weight: 600; }
.steps__no { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border: 1px solid var(--color-cyanotype); border-radius: 50%; color: var(--color-cyanotype); font-size: .82rem; font-variant-numeric: tabular-nums; vertical-align: 1px; }
.steps td { color: var(--color-lead); }
.steps td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 6.5em; font-size: .8rem; font-weight: 600; color: var(--color-graphite); }
.steps td:nth-of-type(1)::before { display: none; }
.steps td small { display: block; }

/* 4. 대지 검토 */
.board { display: grid; gap: 28px; padding: 22px 18px 26px; border: 1px solid var(--line-strong); }
.field { display: grid; gap: 8px; }
.field > label, .zones legend { font-weight: 600; font-size: .95rem; }
.field label small, .zones legend small { font-weight: 400; margin-left: 6px; }
.area-input { display: flex; align-items: baseline; gap: 8px; }
.area-input input { width: 6.2em; padding: 6px 10px; font: 300 2rem/1.2 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--color-cyanotype); background: var(--color-sheet); border: 1px solid var(--line-strong); border-radius: 0; }
.area-input__unit { font-size: 1.1rem; }
.area-input__py { margin-left: auto; color: var(--color-lead); font-size: .95rem; }
.range { width: 100%; height: 34px; margin: 4px 0 0; accent-color: var(--color-cyanotype); background: transparent; cursor: pointer; }
.range__scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--color-lead); }
.zones { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; }
.zones legend { margin-bottom: 8px; padding: 0; }
.zone-opt { position: relative; display: block; cursor: pointer; }
.zone-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.zone-opt span { display: grid; gap: 1px; padding: 10px 14px 10px 40px; border: 1px solid var(--line-strong); background: var(--color-sheet); transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.zone-opt span::before { content: ""; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border: 1px solid var(--color-graphite); border-radius: 50%; background: var(--color-sheet); }
.zone-opt b { font-weight: 600; font-size: .98rem; }
.zone-opt input:checked + span { border-color: var(--color-cyanotype); background: #E3E9F4; }
.zone-opt input:checked + span::before { border: 4px solid var(--color-cyanotype); }
.zone-opt input:focus-visible + span { outline: 2px solid var(--color-cyanotype); outline-offset: 2px; }
.zone-opt:hover span { border-color: var(--color-cyanotype); }

.result { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 14px; border-top: 1px solid var(--line-strong); }
.result div { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
.result dt { font-size: .8rem; color: var(--color-lead); }
.result dd { margin: 0; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.75rem); font-weight: 300; letter-spacing: -.03em; color: var(--color-cyanotype); line-height: 1.3; }
.result small { font-size: .78rem; }
.section-dwg { background: var(--color-sheet); border: 1px solid var(--line-strong); }
#sec-svg { width: 100%; height: auto; }
#sec-svg text { font: 500 12px var(--font); font-variant-numeric: tabular-nums; fill: var(--color-graphite); }
.sec__ground { stroke: var(--color-graphite); stroke-width: 2; }
.sec__dir { font-weight: 700 !important; fill: var(--color-lead) !important; }
.sec__bnd { stroke: var(--color-graphite); stroke-width: 1; stroke-dasharray: 14 4 2 4; opacity: .7; fill: none; }
#sec-svg .sec__small { font-size: 10.5px; fill: var(--color-lead); }
.sec__floor rect { fill: rgba(30, 69, 150, .1); stroke: var(--color-cyanotype); stroke-width: 1.6; }
#sec-svg .sec__floor text { fill: var(--color-cyanotype); }
.sec__floor--part rect { fill: rgba(184, 65, 42, .07); stroke: var(--color-redline); stroke-dasharray: 5 3; }
#sec-svg .sec__floor--part text, #sec-svg .sec__red { fill: var(--color-redline); }
.sec__slab { stroke: var(--color-cyanotype); stroke-width: 3; }
.sec__dim { stroke: var(--color-graphite); stroke-width: .9; fill: none; }
.sec__person circle { fill: var(--color-graphite); }
.sec__person path { stroke: var(--color-graphite); stroke-width: 1.3; fill: none; }
.sec__scale path { stroke: var(--color-graphite); stroke-width: .9; fill: none; }
.sec__scale .sec__scale-fill { fill: var(--color-graphite); stroke: none; }
#sec-svg .sec__scale text { font-size: 10.5px; }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.has-motion .sec__floor.is-rising { transform-box: fill-box; transform-origin: 50% 100%; animation: rise .42s cubic-bezier(.3, .7, .3, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
.floors { margin-top: 14px; font-size: .92rem; background: var(--color-sheet); }
.floors th, .floors td { padding: 6px 12px; border-bottom: 1px solid var(--line); text-align: right; }
.floors th:first-child, .floors td:first-child { text-align: left; }
.floors thead th { font-size: .78rem; font-weight: 500; color: var(--color-lead); border-bottom-color: var(--line-strong); }
.floors tr.is-part td { color: var(--color-redline); }
.floors tr.is-total th { padding: 8px 12px; font-weight: 600; text-align: right; border-top: 1px solid var(--line-strong); border-bottom: 0; }
.floors tr.is-total th:first-child { text-align: left; }
.board__foot { display: grid; gap: 16px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.caution { padding-left: 14px; border-left: 2px solid var(--color-redline); font-size: .95rem; color: var(--color-lead); }
.caution b { color: var(--color-redline); font-weight: 700; }

/* 5. 설계비 */
.fee__grid { display: grid; gap: 36px; }
.fee-table { background: var(--color-sheet); border-top: 1px solid var(--line-strong); font-size: .98rem; }
.fee-table thead { display: none; }
.fee-table tr { display: grid; gap: 4px; padding: 14px; border-bottom: 1px solid var(--line); }
.fee-table th[scope="row"] { font-weight: 600; font-size: 1.05rem; }
.fee-table td { color: var(--color-lead); }
.fee__side h3 { font-size: var(--fs-h3); margin: 0 0 10px; }
.fee__side h3 + * { margin-bottom: 28px; }
.dash-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dash-list li { padding: 8px 0 8px 22px; border-bottom: 1px solid var(--line); position: relative; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 12px; border-top: 1px solid var(--color-graphite); }
.pay { list-style: none; margin: 0; padding: 0; counter-reset: pay; border-top: 1px solid var(--line); }
.pay li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); counter-increment: pay; }
.pay li span:first-child::before { content: counter(pay) "."; display: inline-block; width: 1.6em; color: var(--color-lead); }

/* 6. 사무소 */
.office__grid { display: grid; gap: 40px; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.principles li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.principles h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 6px; }
.principles p { color: var(--color-lead); }
.facts { background: var(--color-sheet); border: 1px solid var(--line-strong); align-self: start; font-size: .97rem; }
.facts th, .facts td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.facts th { width: 7.5em; font-weight: 500; font-size: .85rem; color: var(--color-lead); border-right: 1px solid var(--line); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }

/* 7. FAQ */
.faq__list { border-top: 1px solid var(--line-strong); }
.qa { border-bottom: 1px solid var(--line); }
.qa h3 { font-size: 1.08rem; font-weight: 500; }
.qa button { display: flex; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.qa button::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: .45em; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.qa button[aria-expanded="true"]::after { transform: rotate(225deg); }
.qa__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .25s ease; }
.js .qa h3:has(button[aria-expanded="false"]) + .qa__panel { grid-template-rows: 0fr; }
.qa__panel > div { overflow: hidden; min-height: 0; }
.qa__panel p { padding: 0 32px 20px 0; color: var(--color-lead); max-width: 40em; }

/* 8. 상담·오시는 길 */
.contact__grid { display: grid; gap: 40px; }
.cform { display: grid; gap: 16px; padding: 22px 18px; background: var(--color-sheet); border: 1px solid var(--line-strong); }
.cform__row { display: grid; gap: 16px; }
.cform input:not([type="checkbox"]), .cform select, .cform textarea { width: 100%; padding: 11px 12px; font: 400 1rem/1.5 var(--font); color: var(--color-graphite); background: #fff; border: 1px solid var(--line-strong); border-radius: 0; }
.cform textarea { resize: vertical; }
.unit-input { display: flex; align-items: center; gap: 8px; }
.consent label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.consent input { width: 18px; height: 18px; accent-color: var(--color-cyanotype); }
.consent details { margin-top: 6px; font-size: var(--fs-small); color: var(--color-lead); }
.consent summary { cursor: pointer; }
.cform__error { color: var(--color-redline); font-weight: 600; }
.cform__done { padding: 12px 14px; border: 1px dashed var(--color-cyanotype); color: var(--color-cyanotype); font-size: .95rem; }
.contact__info { display: grid; gap: 22px; align-content: start; }
.tel-big { display: grid; text-decoration: none; font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); font-weight: 300; letter-spacing: -.03em; color: var(--color-cyanotype); line-height: 1.2; }
.tel-big small { font-size: .85rem; font-weight: 600; letter-spacing: 0; color: var(--color-lead); }
.hours { border-top: 1px solid var(--line-strong); }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { width: 8em; font-weight: 500; color: var(--color-lead); font-size: .95rem; }
.hours small { margin-left: 8px; }
.info { margin: 0; }
.info div { display: grid; grid-template-columns: 6em 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.info dt { font-weight: 500; color: var(--color-lead); font-size: .95rem; }
.info dd { margin: 0; }
.map { margin: 0; display: grid; gap: 12px; }
.map svg { width: 100%; height: auto; }
.map__paper { fill: var(--color-sheet); stroke: var(--color-graphite); stroke-width: 1; }
.map__road { stroke: #fff; stroke-width: 28; fill: none; }
.map__edge { stroke: var(--color-graphite); stroke-width: .9; fill: none; }
.map__blk { fill: rgba(37, 40, 43, .06); stroke: var(--color-graphite); stroke-width: .7; }
.map__me { fill: rgba(30, 69, 150, .14); stroke: var(--color-cyanotype); stroke-width: 2; }
.map__me-t { font: 700 13px var(--font); fill: var(--color-cyanotype); }
.map__st { fill: var(--color-sheet); stroke: var(--color-graphite); stroke-width: 1.2; }
.map__st-t { font: 700 11px var(--font); fill: var(--color-graphite); }
.map__walk { fill: none; stroke: var(--color-cyanotype); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.map__t { font: 500 11px var(--font); fill: var(--color-lead); }
.map__na circle { fill: none; stroke: var(--color-graphite); stroke-width: .9; }
.map__na path { fill: var(--color-graphite); }
.map__na text, .map__sb text { font: 700 10px var(--font); fill: var(--color-graphite); }
.map__sb path { stroke: var(--color-graphite); stroke-width: .9; fill: none; }

/* 푸터 */
.site-footer { background: var(--color-sheet); border-top: 1px solid var(--line-strong); color: var(--color-lead); font-size: var(--fs-small); padding: 40px 0 calc(40px + 64px + env(safe-area-inset-bottom)); }
.site-footer__inner { display: grid; gap: 18px; }
.site-footer__logo { font-size: 1.05rem; font-weight: 700; color: var(--color-graphite); margin-bottom: 8px; }
.site-footer__biz { line-height: 2; }
.site-footer__biz .ph { margin-right: 6px; }
.site-footer__links { margin-top: 10px; display: flex; gap: 16px; }
.site-footer__links .strong { font-weight: 800; color: var(--color-graphite); }
.site-footer__credit a { color: var(--color-cyanotype); font-weight: 600; }

/* 모바일 하단 고정 바 */
.quickbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 1.3fr; background: var(--color-sheet); border-top: 1px solid var(--line-strong); padding-bottom: env(safe-area-inset-bottom); }
.quickbar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 56px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.quickbar a + a { border-left: 1px solid var(--line); }
.quickbar svg { width: 20px; height: 20px; color: var(--color-cyanotype); }
.quickbar__cta { background: var(--color-cyanotype); color: #fff; }
body.nav-open .quickbar { visibility: hidden; }

/* 모바일 메뉴 */
@media (max-width: 1023px) {
  .header-tel span { display: none; }
  .header-tel { width: 42px; height: 42px; justify-content: center; border: 1px solid var(--line-strong); }
  .menu-toggle { display: block; }
  .gnb { position: fixed; z-index: 45; left: 0; right: 0; top: var(--menu-top, var(--header-h)); bottom: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 40px; background: var(--color-vellum); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; }
  .site-header.is-open .gnb { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .gnb a { padding: 15px 2px; font-size: 1.1rem; color: var(--color-graphite); border-bottom: 1px solid var(--line); }
  .gnb a.is-active:not(.gnb__cta)::after { left: auto; right: 2px; top: 50%; bottom: auto; width: 18px; height: 1.5px; }
  .gnb a.is-active:not(.gnb__cta) { color: var(--color-cyanotype); }
  .gnb__cta { margin: 20px 0 0; text-align: center; border-bottom: 0 !important; }
}

/* 휴대폰: 도면이 작아지는 만큼 도면 글자를 키운다 */
@media (max-width: 719px) {
  .dwg text { font-size: 15px; }
  .dwg text.sm { font-size: 14px; }
  .dwg text.dim, .dwg .na text, .dwg .sb text { font-size: 13px; }
  #sec-svg text { font-size: 17px; }
  #sec-svg .sec__small, #sec-svg .sec__scale text { font-size: 15px; }
}

@media (max-width: 420px) {
  .area-input input { font-size: 1.7rem; width: 5.4em; }
  .tblock__foot { grid-template-columns: 44px 1fr; }
  .tblock__meta { grid-column: 1 / -1; text-align: left; }
}

@media (min-width: 720px) {
  .sec-head { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 40px; align-items: start; }
  .steps thead { display: table-header-group; }
  .steps tr { display: table-row; padding: 0; }
  .steps th, .steps td { padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
  .steps thead th { padding: 10px 14px; font-size: .8rem; font-weight: 500; color: var(--color-lead); border-bottom: 1px solid var(--line-strong); }
  .steps th[scope="row"] { width: 13em; }
  .steps td[data-label]::before { display: none; }
  .steps td:nth-of-type(2) { width: 8.5em; color: var(--color-graphite); }
  .steps td:nth-of-type(3) { width: 14em; }
  .fee-table thead { display: table-header-group; }
  .fee-table tr { display: table-row; padding: 0; }
  .fee-table th, .fee-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
  .fee-table thead th { padding: 10px 14px; font-size: .8rem; font-weight: 500; color: var(--color-lead); border-bottom: 1px solid var(--line-strong); }
  .fee-table td:last-child { width: 13em; color: var(--color-graphite); }
  .cform__row { grid-template-columns: 1fr 1fr; }
  .board { padding: 28px; }
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: end; }
}

/* 데스크톱 인덱스: 왼쪽 목록 + 오른쪽 미리보기 판 (li 를 풀어 한 그리드에 놓는다) */
@media (min-width: 900px) {
  .idx { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: repeat(8, auto) 1fr; column-gap: 56px; }
  .idx__cols { grid-column: 1; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) 10rem 4.2rem 6.8rem; column-gap: 12px; padding: 0 0 10px; font-size: .78rem; font-weight: 500; color: var(--color-lead); border-bottom: 1px solid var(--line-strong); }
  .idx__list, .idx__row { display: contents; }
  .idx__head { grid-column: 1; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) 10rem 4.2rem 6.8rem; column-gap: 12px; align-items: center; padding: 19px 0; border-bottom: 1px solid var(--line); }
  .idx__head > span { order: 0; margin: 0; width: auto; flex: none; }
  .idx__use::after, .idx__year::after { content: none; }
  .idx__name { font-size: 1.22rem; }
  .idx__use, .idx__year, .idx__region { font-size: .93rem; }
  .idx__head:hover { background: var(--color-sheet); }
  .idx__head:hover .idx__name { color: var(--color-cyanotype); }
  .idx__row.is-active .idx__head { background: var(--color-sheet); box-shadow: inset 3px 0 0 var(--color-cyanotype); }
  .idx__no { transition: transform .2s ease, color .18s ease; }
  .idx__row.is-active .idx__no { transform: translateX(14px); }
  .idx__preview { grid-column: 2; grid-row: 1 / -1; align-self: start; margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
  .idx__row:not(.is-active) .idx__preview { display: none; }
  .idx__mark { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 64px; align-items: end; }
  .hero { padding: 52px 0 44px; }
  .hero__title { margin-bottom: 18px; }
  .hero__lead { margin-bottom: 24px; }
  .board { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: 40px; padding: 32px; }
  .board__foot { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; column-gap: 40px; }
  .fee__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; }
  .office__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; }
  .contact__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; }
  .cform { padding: 28px; }
}

@media (min-width: 1024px) {
  :root { --header-h: 72px; }
  .quickbar { display: none; }
  .site-footer { padding-bottom: 40px; }
  .menu-toggle { display: none; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .header-tel span { display: none; }
  .gnb a { padding: 8px 8px; font-size: .9rem; }
}

/* 동작 줄이기 — 마지막 안전망. 3단계(색·투명도 피드백)는 다시 살린다 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .idx__preview.is-fading { animation-duration: .2s !important; }
  .btn, .gnb a, .idx__head, .zone-opt span, .qa__panel { transition-duration: .2s !important; }
}
