/* ============================================================
   모두시공 — 시안 E(플랫폼) 레이아웃·페이지 CSS  (2026-11-27)
   app.css(토큰·리셋) → components.css(기존 컴포넌트) → site.css(이 파일) 순으로 로드.
   규칙: 색 5개 · 라운드 4px · 그림자/그라디언트 0 · 그리드 열은 minmax(0,1fr) · 자식 min-width:0
   ============================================================ */
:root {
    --ink: #17201b;
    --brand: #1f7a55;
    --paper: #f3f4f1;
    --line: #dfe3dd;
    --muted: #67706a;
    --card: #ffffff;
    --r: 4px;
    --wrap: 1160px;
}

/* ---------- 골격: 도면 배경·중앙 시트 제거, 전폭 지면 ---------- */
.app-body { background: var(--paper); color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; }
.app-container { max-width: none; background: var(--paper); box-shadow: none; }
.container { max-width: var(--wrap); }
.container-narrow { max-width: 800px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; min-width: 0; }
.flash-message { max-width: var(--wrap); margin: 12px auto 0; border-radius: var(--r); }

/* ---------- 공통 버튼 (기존 .btn 계열을 E 규칙으로) ---------- */
.btn { border-radius: var(--r); box-shadow: none; }
.btn-accent, .btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-outline { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 20px; border-radius: var(--r); border: 1px solid var(--brand); background: var(--brand); color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; }
.s-btn:hover { background: #18603f; }
.s-btn-ink { background: var(--ink); border-color: var(--ink); }
.s-btn-line { background: var(--card); color: var(--ink); border-color: var(--line); }
.s-btn-line:hover { border-color: var(--ink); background: var(--card); }
.s-btn-block { width: 100%; }
.tag-pill { border-radius: var(--r); background: transparent; border: 1px solid var(--line); color: var(--brand); font-weight: 700; }

/* ---------- 헤더 ---------- */
.site-hd { position: sticky; top: 0; z-index: 50; background: var(--card); border-bottom: 1px solid var(--line); }
.site-hd-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.site-hd-logo { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; color: var(--ink); }
.site-hd-logo b { color: var(--brand); font-weight: 800; }
.site-hd-nav { display: flex; gap: 22px; margin-left: auto; min-width: 0; }
.site-hd-nav a { font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; padding: 21px 0 19px; border-bottom: 2px solid transparent; }
.site-hd-nav a:hover { color: var(--ink); }
.site-hd-nav a.active { color: var(--ink); border-bottom-color: var(--brand); }
.site-hd-act { display: flex; align-items: center; gap: 10px; }
.site-hd-login { font-size: 14px; color: var(--muted); white-space: nowrap; }
.site-hd-login:hover { color: var(--ink); }
.site-hd-cta { background: var(--ink); color: #fff; padding: 9px 14px; border-radius: var(--r); font-weight: 700; font-size: 14px; white-space: nowrap; }
.site-hd-cta:hover { background: var(--brand); }
.site-hd-search { flex: 1; max-width: 380px; min-width: 0; }
.site-hd-search input { width: 100%; padding: 9px 12px; background: var(--paper); border: 1px solid var(--paper); border-radius: var(--r); font-size: 14px; color: var(--ink); }
.site-hd-search input:focus { outline: 0; border-color: var(--ink); background: var(--card); }
.site-hd-sic { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--ink); }
.site-hd-btn { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--ink); }
.site-hd-title { display: none; }

@media (max-width: 767px) {
    .site-hd-in { height: 56px; gap: 8px; padding: 0 8px 0 4px; }
    .site-hd-btn { display: inline-flex; }
    .site-hd-nav, .site-hd-login { display: none; }
    .site-hd.has-back .site-hd-logo { display: none; }
    .site-hd.has-back .site-hd-title { display: block; flex: 1; min-width: 0; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .site-hd-logo { flex: 1; font-size: 19px; }
    .site-hd-act { margin-left: auto; }
    .site-hd-cta { padding: 8px 12px; font-size: 13px; }
}

/* ---------- 섹션 공통 ---------- */
.s-sec { padding-top: 48px; }
.s-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.s-sec-h h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.s-more { font-size: 14px; color: var(--muted); white-space: nowrap; }
.s-more:hover { color: var(--ink); }
.s-empty { padding: 40px 20px; text-align: center; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.s-empty .s-btn { margin-top: 14px; }

/* ---------- 홈 ---------- */
.h-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; padding-top: 32px; }
.h-ask { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; min-width: 0; }
.h-ask h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.h-ask > p { color: var(--muted); margin: 6px 0 22px; }
.h-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.h-pick a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.h-pick a:hover { border-color: var(--brand); outline: 1px solid var(--brand); }
.h-pick b { display: block; font-size: 18px; font-weight: 700; }
.h-pick span { display: block; font-size: 13px; color: var(--muted); }
.h-pick em { font-style: normal; font-size: 13px; color: var(--brand); font-weight: 700; white-space: nowrap; }
.h-ask-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.h-ask-foot p { font-size: 14px; color: var(--muted); }
.h-live { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; min-width: 0; display: flex; flex-direction: column; }
.h-live h2 { font-size: 16px; font-weight: 800; display: flex; justify-content: space-between; gap: 8px; }
.h-live h2 a { font-size: 13px; color: var(--brand); font-weight: 700; }
.h-live ul { margin-top: 8px; }
.h-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.h-flow li { min-width: 0; }
.h-flow li + li { border-left: 1px solid var(--line); padding-left: 10px; }
.h-flow i { display: block; font-style: normal; font-size: 11px; color: var(--brand); font-weight: 700; }
.h-live ul li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; min-width: 0; }
.h-live ul li:last-child { border-bottom: 0; }
.h-live ul li b { font-weight: 700; margin-right: 6px; }
.h-live ul li p { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 작업 중 현장 — 상담 목록 아래(구분선으로 나눔). 썸네일 + 위치·내용, 시공사례가 있을 때만 링크 */
.h-live .h-live-sub { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); justify-content: flex-start; align-items: baseline; }
.h-live .h-live-sub span { font-size: 12px; font-weight: 600; color: var(--muted); }
.h-work li { padding: 10px 0; }
.h-work-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; color: inherit; min-width: 0; }
a.h-work-row:hover b { text-decoration: underline; }
.h-work-thumb { width: 72px; height: 54px; border-radius: var(--r); background: var(--line); overflow: hidden; }
.h-work-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-work-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.h-work-text b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-work-content { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h-work-more { font-size: 12px; font-weight: 700; color: var(--brand); }
.h-num { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.h-num div { min-width: 0; }
.h-num div + div { border-left: 1px solid var(--line); padding-left: 12px; }
.h-num b { display: block; font-size: 22px; font-weight: 800; }
.h-num span { font-size: 12px; color: var(--muted); }
.h-tabs { display: flex; gap: 6px; overflow-x: auto; min-width: 0; }
.h-tabs button { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; white-space: nowrap; background: var(--card); color: var(--ink); }
.h-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.h-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.h-rail > a { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 0; scroll-snap-align: start; }
.h-rail > a:hover { border-color: var(--ink); }
.h-rail > a[hidden] { display: none; }
.s-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--line); overflow: hidden; }
.s-thumb img { width: 100%; height: 100%; object-fit: cover; }
.s-thumb-none { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 13px; }
.h-rail .h-rail-body { padding: 12px 14px; }
.h-rail b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-rail span { font-size: 13px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.h-guide a { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.h-guide a:hover { border-color: var(--ink); }
.h-guide p { font-size: 13px; color: var(--brand); font-weight: 700; }
.h-guide h3 { font-size: 16px; line-height: 1.45; margin-top: 6px; }
.h-guide span { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 분야 페이지 공통 ---------- */
.c-head { background: var(--card); border-bottom: 1px solid var(--line); padding: 40px 0 28px; }
.c-head-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.c-en { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.c-title { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin: 4px 0 10px; }
.c-desc { max-width: 640px; color: var(--muted); }
.c-count { margin-top: 12px; font-size: 14px; color: var(--muted); }
.c-count b { font-size: 20px; color: var(--ink); margin-right: 2px; }
.c-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0 16px; }
.c-filter button { padding: 7px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; color: var(--ink); }
.c-filter button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
[data-filter-item][hidden] { display: none !important; }

/* 종합건설: 대표 프로젝트 + 실적표 */
.c-feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.c-feature .s-thumb { border-radius: var(--r); }
.c-feature-body { min-width: 0; align-self: center; }
.c-label { font-size: 13px; color: var(--brand); font-weight: 700; }
.c-feature-body h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; margin: 6px 0 16px; }
.c-spec { width: 100%; border-collapse: collapse; }
.c-spec th, .c-spec td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.c-spec th { width: 84px; color: var(--muted); font-weight: 500; }
.c-feature .s-btn { margin-top: 18px; }
.c-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); }
.c-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.c-table td { padding: 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.c-table tbody tr { cursor: pointer; }
.c-table tbody tr:hover td { background: var(--paper); }
.c-table .c-no { width: 56px; color: var(--muted); }
.c-table .c-hit { width: 72px; text-align: right; color: var(--muted); }
.c-table .c-th { width: 104px; }
.c-table .c-th .s-thumb { width: 84px; border-radius: var(--r); }
.c-table .c-loc, .c-table .c-co { width: 150px; }
.c-table .c-ttl a { font-weight: 600; }
.c-table .c-sub { display: none; }

/* 창호: 유형 안내 + 카드 그리드 */
.c-wguide { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-top: 28px; }
.c-wguide div { padding: 16px 18px; border-left: 1px solid var(--line); min-width: 0; }
.c-wguide div:first-child { border-left: 0; }
.c-wguide b { display: block; font-size: 15px; }
.c-wguide span { font-size: 13px; color: var(--muted); }
.c-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.c-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 0; }
.c-card:hover { border-color: var(--ink); }
.c-card-body { padding: 12px 14px 14px; }
.c-type { font-size: 12px; color: var(--brand); font-weight: 700; }
.c-card h3 { font-size: 16px; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 인테리어: 사진 우선 갤러리 */
.c-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 28px; }
.c-g { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; min-width: 0; background: var(--line); border-radius: var(--r); }
.c-g img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.c-g:hover img { transform: scale(1.03); }
.c-g-wide { grid-column: span 2; grid-row: span 2; }
.c-g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; background: rgba(23, 32, 27, .72); color: #fff; }
.c-g-cap h3 { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-g-cap p { font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 부동산: 매물 리스트 */
.c-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.c-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.c-row:last-child { border-bottom: 0; }
.c-row .s-thumb { border-radius: var(--r); }
.c-row-body { min-width: 0; }
.c-row-body h3 { font-size: 18px; margin: 2px 0 8px; }
.c-row-body h3 a:hover { text-decoration: underline; }
.c-row-body dl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 4px 10px; font-size: 13px; margin: 0; }
.c-row-body dt { color: var(--muted); }
.c-row-body dd { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 가이드: 기사 목록 */
.c-articles { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.c-articles li { border-bottom: 1px solid var(--line); }
.c-articles li:last-child { border-bottom: 0; }
.c-articles a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 22px 20px; }
.c-articles a:hover h3 { text-decoration: underline; }
.c-ano { font-size: 20px; font-weight: 800; color: var(--line); }
.c-ameta { font-size: 13px; color: var(--brand); font-weight: 700; }
.c-articles h3 { font-size: 18px; line-height: 1.45; margin: 4px 0 6px; }
.c-asum { color: var(--muted); font-size: 14px; }

/* 분야별 상담 띠 */
.c-consult { margin-top: 56px; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0; }
.c-consult-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 32px; align-items: center; }
.c-consult h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.c-consult p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.c-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); }
.c-steps li { padding: 10px 12px; border-left: 1px solid var(--line); min-width: 0; font-size: 13px; }
.c-steps li:first-child { border-left: 0; }
.c-steps i { display: block; font-style: normal; font-size: 11px; color: var(--brand); font-weight: 700; }
.c-steps b { font-weight: 700; }

/* 페이지네이션 */
.pagination a { border-radius: var(--r); border: 1px solid var(--line); background: var(--card); box-shadow: none; }
.pagination a.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 사례 상세 ---------- */
.d-wrap { padding-top: 24px; }
.d-crumb { font-size: 13px; color: var(--muted); }
.d-crumb a:hover { color: var(--ink); }
.d-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; margin-top: 8px; }
.d-main { min-width: 0; }
.d-title { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.d-sub { color: var(--muted); margin: 8px 0 24px; font-size: 14px; }
.d-body { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-bottom: 24px; line-height: 1.8; overflow-x: auto; }
.d-body table { border-collapse: collapse; width: 100%; }
.d-body th, .d-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; font-size: 14px; }
.d-body th { background: var(--paper); font-weight: 600; white-space: nowrap; }
.d-fig { margin: 0 0 24px; }
.d-fig img { width: 100%; border-radius: var(--r); background: var(--line); }
.d-fig figcaption { font-size: 14px; color: var(--muted); padding-top: 8px; }
.d-side { position: sticky; top: 88px; align-self: start; min-width: 0; }
.d-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.d-card + .d-card { margin-top: 12px; }
.d-card h2 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.d-card p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.d-card .s-btn + .s-btn { margin-top: 8px; }
.d-admin { display: flex; justify-content: flex-end; margin: -12px 0 16px; }

/* ---------- 가이드 상세 ---------- */
.g-wrap { padding-top: 28px; }
.g-art { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 36px 40px; }
.g-art h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; margin: 6px 0 8px; }
.g-upd { font-size: 13px; color: var(--muted); padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.g-art .guide-body { font-size: 16px; line-height: 1.85; }
.g-related { margin-top: 24px; }
.g-related h2 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--card); border-top: 1px solid var(--line); color: var(--muted); margin-top: 64px; }
.site-footer-inner { max-width: var(--wrap); }
.site-footer-brand { color: var(--ink); }
.site-footer-brand b { color: var(--brand); }
.site-footer-links a:hover { color: var(--ink); }

/* ---------- 모바일 하단 탭·사이드 메뉴·광고 (E 톤) ---------- */
.bottom-nav { background: var(--card); border-top: 1px solid var(--line); box-shadow: none; }
.bottom-nav-item { color: var(--muted); }
.bottom-nav-item.active { color: var(--ink); font-weight: 700; }
.bottom-nav-item.active .material-icons-round { color: var(--brand); }
.side-menu { background: var(--card); box-shadow: none; border-right: 1px solid var(--line); }
.side-menu-brand { color: var(--ink); }
.side-menu-brand b { color: var(--brand); }
.side-menu-item { border-radius: var(--r); }
.ad-banner { background: var(--paper); border-top: 1px solid var(--line); }

/* ---------- 검색 ---------- */
.sr-form { display: flex; gap: 8px; max-width: 640px; margin-top: 6px; }
.sr-form input { flex: 1; min-width: 0; padding: 12px 14px; font-size: 16px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--card); }
.sr-k { font-size: 15px !important; color: var(--brand) !important; }
.sr-n { font-size: 15px; color: var(--brand); margin-left: 4px; }
.sr-hint { margin-top: 28px; color: var(--muted); }
.sr-ex { padding: 7px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; color: var(--ink); }
.sr-ex:hover { border-color: var(--ink); }
.s-empty b { color: var(--ink); }
.s-empty div { margin-top: 4px; }

/* ---------- 정적 페이지 (회사소개·연락처·문의안내·약관) ---------- */
.pg-tabs { background: var(--card); border-bottom: 1px solid var(--line); justify-content: center; }
.pg-tabs .tab { border-radius: 0; }
.pg-tabs .tab.active { color: var(--ink); border-bottom-color: var(--brand); }
.pg-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; line-height: 1.8; }
.pg-method { grid-template-columns: 56px minmax(0, 1fr) auto; }
.pg-method .c-row-body h3 { margin-bottom: 2px; }
.pg-faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.pg-faq details + details { border-top: 1px solid var(--line); }
.pg-faq summary { padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: '+'; color: var(--muted); font-weight: 400; }
.pg-faq details[open] summary::after { content: '−'; }
.pg-faq details > div { padding: 0 20px 18px; color: var(--muted); line-height: 1.8; }

/* ---------- 빠른상담 (2단: 진행 안내 | 신청서) ---------- */
.qe-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 48px; padding-top: 36px; align-items: start; }
.qe-page > .qe-done { grid-column: 1 / -1; }
.qe-aside { position: sticky; top: 88px; min-width: 0; }
.qe-head { padding: 0 0 20px; }
.qe-head-title { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.qe-head-desc { font-size: 15px; }
.qe-head-case { display: block; }
.qe-head-case strong { display: block; }
.qe-steps { border-top: 1px solid var(--ink); }
.qe-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.qe-steps i { grid-row: span 2; font-style: normal; font-weight: 800; color: var(--brand); }
.qe-steps b { font-weight: 700; }
.qe-steps span { font-size: 13px; color: var(--muted); }
.qe-aside-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.qe-main { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 28px 28px; }
.qe-section { border-bottom-color: var(--line); }
.qe-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qe-type-box { align-items: flex-start; gap: 2px; padding: 14px; border-color: var(--line); }
.qe-type-name { font-size: 15px; font-weight: 700; color: var(--ink); text-align: left; }
.qe-type-desc { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.qe-type input:checked + .qe-type-box { background: var(--card); border-color: var(--brand); outline: 1px solid var(--brand); }
.qe-type input:checked + .qe-type-box .qe-type-name { color: var(--brand); }
.qe-req { color: var(--brand); border-color: var(--brand); }
.qe-consent-box { background: var(--paper); border-color: var(--line); border-radius: var(--r); }
.qe-submit { margin-top: 20px; padding: 15px 20px; font-size: 16px; }
.qe-done { background: var(--card); border: 1px solid var(--brand); border-radius: var(--r); box-shadow: none; }
.qe-done-icon { color: var(--brand); }

/* ---------- 반응형 ---------- */
@media (max-width: 1023px) {
    .site-hd-nav { gap: 16px; }
    .site-hd-search { display: none; }
    .site-hd-sic { display: inline-flex; }
    .site-hd-nav { margin-left: auto; }
    .h-top { grid-template-columns: minmax(0, 1fr); }
    .h-rail { grid-auto-columns: calc((100% - 16px) / 2.3); }
    .h-guide { grid-template-columns: minmax(0, 1fr); }
    .c-feature, .d-grid { grid-template-columns: minmax(0, 1fr); }
    .d-side { position: static; }
    .c-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .c-wguide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .c-wguide div:nth-child(3) { border-left: 0; }
    .c-wguide div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .c-consult-in { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .qe-page { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
    .qe-aside { position: static; }
    .qe-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
    .qe-steps li { display: block; padding: 10px 12px; border-bottom: 0; border-left: 1px solid var(--line); font-size: 13px; }
    .qe-steps li:first-child { border-left: 0; }
    .qe-steps i { display: block; font-size: 11px; }
    .qe-steps span { display: none; }
}
@media (max-width: 767px) {
    .wrap { padding: 0 16px; }
    .s-sec { padding-top: 36px; }
    .s-sec-h h2 { font-size: 19px; }
    .h-top { padding-top: 16px; }
    .h-ask { padding: 20px; }
    .h-ask h1 { font-size: 23px; }
    .h-pick a { padding: 14px; grid-template-columns: minmax(0, 1fr); }
    .h-pick b { font-size: 16px; }
    .h-ask-foot { flex-direction: column; align-items: stretch; }
    .h-rail { grid-auto-columns: 72%; }
    .s-sec-h.has-tabs { flex-direction: column; align-items: flex-start; }
    .h-tabs { max-width: 100%; }
    .c-head { padding: 24px 0 20px; }
    .c-head-in { flex-direction: column; align-items: flex-start; }
    .c-title { font-size: 26px; }
    .c-feature { padding: 14px; gap: 16px; }
    .c-feature-body h2 { font-size: 21px; }
    .c-table thead, .c-table .c-no, .c-table .c-loc, .c-table .c-co { display: none; }
    .c-table .c-th { width: 96px; padding-right: 0; }
    .c-table .c-hit { width: 56px; }
    .c-table .c-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
    .c-grid { grid-template-columns: minmax(0, 1fr); }
    .c-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .c-row { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 14px; }
    .c-row-act { grid-column: 1 / -1; }
    .c-row-act .s-btn { width: 100%; }
    .c-row-body h3 { font-size: 15px; }
    .c-articles a { grid-template-columns: 36px minmax(0, 1fr); padding: 18px 14px; gap: 10px; }
    .c-articles h3 { font-size: 16px; }
    .c-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .c-steps li:nth-child(3) { border-left: 0; }
    .c-steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
    .c-consult .s-btn { width: 100%; }
    .pg-method { grid-template-columns: 36px minmax(0, 1fr); }
    .pg-tabs { justify-content: flex-start; }
    .qe-head-title { font-size: 24px; }
    .qe-head { padding-bottom: 14px; }
    .qe-main { padding: 4px 16px 20px; }
    .qe-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qe-aside-note { display: none; }
    .d-title { font-size: 24px; }
    .d-body { padding: 16px; }
    .g-art { padding: 22px 18px; }
    .g-art h1 { font-size: 23px; }
}
.pg-contact th { width: 96px; } .pg-contact tr:last-child th, .pg-contact tr:last-child td { border-bottom: 0; } .pg-contact a { color: var(--brand); font-weight: 600; }

/* ---------- 마이페이지·메뉴 목록 (E: 그라디언트 띠·반복 아이콘 제거) ---------- */
.profile-header { background: var(--card); color: var(--ink); text-align: left; border-bottom: 1px solid var(--line); padding: 28px 20px; max-width: none; }
.profile-header > * { max-width: 800px; margin-left: auto; margin-right: auto; }
.profile-avatar { display: none; }
.profile-name { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.profile-id { color: var(--muted); }
.menu-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-top: 20px; }
.menu-item { border-bottom: 1px solid var(--line); }
.menu-list .menu-item:last-child { border-bottom: 0; }
.menu-item-icon { display: none; }
.menu-item-danger .menu-item-text strong, .menu-item-danger .menu-item-text { color: var(--ink); }
.menu-item-danger:last-child .menu-item-text strong { color: #b42318; }
.modal { border-radius: var(--r); box-shadow: none; border: 1px solid var(--line); }
