/* BK크린 — 레이아웃: 좌측 정렬 본문 + 업종 카드 그리드, 포인트는 호박색 상담 버튼 하나 */
:root {
  --bg: #F3F8F6;
  --surface: #FFFFFF;
  --surface-2: #E8F1EE;
  --fg: #10292B;
  --muted: #4F6568;
  --line: #D3E1DD;
  --accent: #0E7C6E;
  --accent-ink: #0A5A50;
  --accent-soft: #DAF0EA;
  --cta: #F5A524;
  --cta-ink: #1A1200;
  --cta-hover: #E3961A;
  --shadow: 0 10px 30px rgba(16, 41, 43, 0.08);
  --font-display: "Gothic A1", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1A1B; --surface: #142526; --surface-2: #1A3031; --fg: #E7F1EF; --muted: #A3B9B6; --line: #26423F;
    --accent: #3BC9B4; --accent-ink: #9AEBDF; --accent-soft: #173B37; --cta: #F7B64A; --cta-ink: #1A1200; --cta-hover: #FFC65E;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1A1B; --surface: #142526; --surface-2: #1A3031; --fg: #E7F1EF; --muted: #A3B9B6; --line: #26423F;
  --accent: #3BC9B4; --accent-ink: #9AEBDF; --accent-soft: #173B37; --cta: #F7B64A; --cta-ink: #1A1200; --cta-hover: #FFC65E;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35); color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.7rem); font-weight: 900; }
h2 { font-size: clamp(1.35rem, 1.05rem + 1.3vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 800; }
p { margin: 0; }
.wrap { max-width: 1100px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 0.9em; }
.eyebrow { font-family: var(--font-display); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }

/* 헤더 */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; color: var(--fg); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 0.8rem; font-weight: 900; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 8px 10px; border-radius: 8px; font-weight: 500; color: var(--fg); font-size: 0.95rem; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--fg); font: inherit; cursor: pointer; }
.header-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--cta); color: var(--cta-ink); font-weight: 700; padding: 10px 14px; border-radius: 10px; white-space: nowrap; }
.header-cta:hover { background: var(--cta-hover); text-decoration: none; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-left, 0px)) 12px; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
  .header-cta .label { display: none; }
}

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 12px; font-weight: 700; font-size: 1rem; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; min-width: 0; }
.btn:hover { text-decoration: none; }
.btn-cta { background: var(--cta); color: var(--cta-ink); }
.btn-cta:hover { background: var(--cta-hover); }
.btn-outline { background: var(--surface); color: var(--fg); border-color: var(--line); }
.btn-outline:hover { background: var(--surface-2); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-kakao { background: #FEE500; color: #191919; border-color: #FEE500; }
.btn-kakao:hover { background: #F2D900; }
.cta-band .btn-kakao { background: #FEE500; color: #191919; border-color: #FEE500; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* 히어로 */
.hero { padding-block: clamp(36px, 6vw, 72px); background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero-copy p.lead { font-size: 1.12rem; color: var(--muted); max-width: 64ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hero-card h2 { font-size: 1.05rem; }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fact-list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.fact-list .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.fact-list .ico svg { width: 20px; height: 20px; }
.fact-list strong { display: block; font-weight: 700; }
.fact-list span { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* 섹션 */
.section { padding-block: clamp(40px, 6vw, 72px); }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; max-width: 68ch; }
.section-head p { color: var(--muted); }

/* 업종 카드 */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.service-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); min-width: 0; transition: transform .15s ease, border-color .15s ease; }
.service-card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.service-grid.compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.service-grid.compact .service-card { padding: 14px; gap: 6px; }
.service-grid.compact .service-card .ico { width: 34px; height: 34px; }
.service-grid.compact .service-card h3 { font-size: 1rem; }
.service-grid.compact .service-card p { font-size: 0.88rem; }
.service-card .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.service-card .ico svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.05rem; }
.service-card p { color: var(--muted); font-size: 0.92rem; }
.service-card .more { color: var(--accent-ink); font-weight: 600; font-size: 0.9rem; margin-top: auto; }

/* 특징 */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.why { padding: 20px; border-radius: var(--radius); background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.why .ico { color: var(--accent); }
.why .ico svg { width: 28px; height: 28px; }
.why p { color: var(--muted); font-size: 0.95rem; }

/* 절차 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; color: var(--accent); line-height: 1; }
.steps li p { color: var(--muted); font-size: 0.95rem; }

/* 지역 */
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.region-chip { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--fg); min-width: 0; }
.region-chip:hover { border-color: var(--accent); text-decoration: none; }
.region-chip strong { font-weight: 700; }
.region-chip span { color: var(--muted); font-size: 0.85rem; }
.link-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.link-list a { display: inline-block; padding: 7px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--fg); font-size: 0.92rem; }
.link-list a:hover { border-color: var(--accent); text-decoration: none; }
details.fold { margin-top: 10px; }
details.fold summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px dashed var(--accent); color: var(--accent-ink); font-size: 0.92rem; font-weight: 600; list-style: none; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after { content: "+"; font-weight: 800; }
details.fold[open] summary::after { content: "−"; }
details.fold[open] summary { margin-bottom: 10px; }
.dong-list { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 0.93rem; }
.dong-list li::after { content: "·"; margin-left: 10px; color: var(--line); }
.dong-list li:last-child::after { content: ""; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 76ch; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-weight: 800; color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 16px; color: var(--muted); }

/* CTA 밴드 */
.cta-band { background: var(--accent); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-block: 36px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); }
.cta-band .btn-outline { background: #fff; color: var(--accent-ink); border-color: #fff; }
.cta-band .btn-outline:hover { background: #F2FBF9; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* 푸터 */
.site-footer { padding-block: 32px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.site-footer .wrap { display: grid; gap: 18px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.footer-cols h3 { font-size: 0.95rem; color: var(--fg); margin-bottom: 8px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-cols a { color: var(--muted); }
.biz-info { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.biz-info mark { background: var(--cta); color: var(--cta-ink); padding: 0 6px; border-radius: 4px; font-weight: 600; }

/* 내부 페이지 */
.page-head { padding-block: clamp(28px, 5vw, 56px) clamp(20px, 3vw, 36px); background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: flex; flex-direction: column; gap: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 0.88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.page-head .lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); display: grid; gap: 14px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; }
.side-card h3 { font-size: 1rem; }
.phone-big { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; letter-spacing: -0.01em; color: var(--fg); }
.content-block { display: grid; gap: 12px; margin-top: 30px; }
.content-block:first-child { margin-top: 0; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.check-list li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A5A50' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.callout { border-left: 4px solid var(--accent); background: var(--surface-2); padding: 14px 16px; border-radius: 0 12px 12px 0; color: var(--fg); }
.notice { font-size: 0.9rem; color: var(--muted); }
.content-block.trait .prose { max-width: none; }
.guide-body { display: block; max-width: 70ch; }
.guide-body h2 { font-size: 1.35rem; margin: 34px 0 10px; }
.guide-body h2:first-child { margin-top: 0; }
.guide-body h3 { font-size: 1.08rem; margin: 22px 0 8px; color: var(--accent-ink); }
.guide-body p { margin: 0 0 12px; }
.guide-body ul, .guide-body ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 6px; }
.guide-body .table-wrap { margin: 6px 0 16px; }
.content-block.trait .prose p + p { margin-top: 0.7em; }
.zone-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.zone-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.zone-list .zone-no { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--accent); line-height: 1; padding-top: 2px; }
.zone-list h3 { font-size: 1.02rem; margin: 0 0 4px; }
.zone-list p { margin: 0; font-size: 0.95rem; }
.zone-list p + p { margin-top: 4px; }
.problem-list { display: grid; gap: 12px; }
.problem { padding: 14px 16px; border-left: 4px solid var(--cta); background: var(--surface-2); border-radius: 0 12px 12px 0; }
.problem h3 { font-size: 1.02rem; margin: 0 0 8px; }
.problem p { margin: 0; font-size: 0.95rem; }
.problem p + p { margin-top: 6px; }
.problem .tag { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--fg); margin-right: 8px; vertical-align: 1px; }
.problem .tag-fix { background: var(--accent-soft); color: var(--accent-ink, #0A5A50); }
.req-list { display: grid; gap: 10px; }
.req { padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.req h3 { font-size: 1rem; margin: 0 0 6px; color: var(--accent-ink); font-weight: 700; }
.req p { margin: 0; font-size: 0.94rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.freq-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.freq-table th, .freq-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.freq-table th { font-size: 0.85rem; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.freq-table td:first-child { font-weight: 600; white-space: nowrap; color: var(--accent); }
.split-cols, .cl-cols { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.cl-cols { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.split-cols h3, .cl-cols h3 { font-size: 0.98rem; margin: 0 0 8px; }
.x-list, .plus-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.94rem; }
.x-list li, .plus-list li { padding-left: 22px; position: relative; }
.x-list li::before { content: "–"; position: absolute; left: 4px; color: var(--muted); font-weight: 700; }
.plus-list li::before { content: "+"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
@media (max-width: 640px) {
  .split-cols { grid-template-columns: 1fr; }
  .freq-table thead { display: none; }
  .freq-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .freq-table td { display: block; padding: 2px 0; border: 0; }
  .freq-table td::before { content: attr(data-l); display: block; font-size: 0.78rem; color: var(--muted); }
  .freq-table td:first-child::before { display: none; }
  .freq-table td:first-child { font-size: 1.02rem; margin-bottom: 2px; }
}
.trait-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.trait-list li { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.trait-list li:first-child { border-top: 0; padding-top: 0; }
.trait-list li a { font-weight: 600; }
.trait-list li span { color: var(--muted); }
@media (max-width: 640px) { .trait-list li { grid-template-columns: 1fr; gap: 4px; } }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; background: var(--surface-2); }

/* 문의 폼 */
.form { display: grid; gap: 14px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.msg-preview { background: var(--surface-2); border-radius: 12px; padding: 14px; white-space: pre-wrap; font-size: 0.93rem; color: var(--fg); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 0.9rem; z-index: 50; }

/* 모바일 하단 상담 바 */
.mobile-bar { display: none; }
@media (max-width: 640px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--surface); border-top: 1px solid var(--line); z-index: 30; }
  .mobile-bar .btn { padding: 12px 10px; font-size: 0.95rem; }
  body { padding-bottom: 76px; }
}

/* 현장 기록 */
.case-list { display: grid; gap: 12px; }
.case-card { display: grid; gap: 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); min-width: 0; }
.case-card:hover { border-color: var(--accent); text-decoration: none; }
.case-card strong { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.case-card p { color: var(--muted); font-size: 0.95rem; }
.case-card .more { color: var(--accent-ink); font-weight: 600; font-size: 0.9rem; }
.case-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 0.88rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.photo-grid figure { margin: 0; display: grid; gap: 6px; }
.photo-grid img { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.photo-grid figcaption { font-size: 0.85rem; color: var(--muted); }
