/* 수리남 누수설비 — 라이트 단일 테마, 모바일 우선 */
:root {
  color-scheme: light only;
  --brand: #1667d9; --brand-dark: #0d4aa6; --brand-soft: #eaf2fe; --brand-100: #dbe8fd; --accent: #ff8a00;
  --ink: #0f172a; --ink-2: #334155; --ink-3: #64748b; --ink-4: #94a3b8;
  --line: #e2e8f0; --line-soft: #eef2f7; --bg: #ffffff; --bg-soft: #f5f8fc; --bg-dark: #0b1424;
  --radius: 16px; --radius-sm: 10px; --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(12,32,64,.06), 0 2px 8px rgba(12,32,64,.05);
  --shadow: 0 8px 24px rgba(12,32,64,.08), 0 2px 6px rgba(12,32,64,.05);
  --shadow-lg: 0 24px 60px rgba(8,22,48,.18);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --hd: 64px; --hero-ov: linear-gradient(180deg, rgba(8,16,32,.55), rgba(8,16,32,.82));
  --ease: cubic-bezier(.22,.61,.36,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 16px); background: var(--bg); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink-2); background: var(--bg); letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.3; letter-spacing: -0.03em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ico { flex: none; }

/* ---------- 3D 아이콘 타일 ---------- */
.i3d { --s: 56px; width: var(--s); height: var(--s); flex: none; display: inline-grid; place-items: center; border-radius: calc(var(--s) * .3); position: relative;
  background: linear-gradient(145deg, #4b95ff 0%, #1667d9 55%, #0c4bb0 100%);
  box-shadow: inset 0 2px 1px rgba(255,255,255,.45), inset 0 -4px 8px rgba(5,30,80,.35), 0 10px 18px -6px rgba(22,103,217,.55), 0 3px 6px rgba(12,32,64,.12); }
.i3d::after { content: ''; position: absolute; inset: 4% 10% 52% 10%; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,0)); pointer-events: none; }
.i3d svg { position: relative; z-index: 1; filter: drop-shadow(0 2px 2px rgba(4,30,80,.35)); }
.i3d-sky { background: linear-gradient(145deg, #7cc4ff 0%, #2f8cf0 55%, #1a63c9 100%); }
.i3d-navy { background: linear-gradient(145deg, #3b4f75 0%, #1b2a48 60%, #0d1830 100%); box-shadow: inset 0 2px 1px rgba(255,255,255,.3), inset 0 -4px 8px rgba(0,0,0,.4), 0 10px 18px -6px rgba(15,23,42,.55); }
.i3d-orange { background: linear-gradient(145deg, #ffb457 0%, #ff8a00 55%, #e06d00 100%); box-shadow: inset 0 2px 1px rgba(255,255,255,.45), inset 0 -4px 8px rgba(120,50,0,.3), 0 10px 18px -6px rgba(255,138,0,.5); }
.i3d-green { background: linear-gradient(145deg, #5ee0a0 0%, #16b46c 55%, #0b8a50 100%); box-shadow: inset 0 2px 1px rgba(255,255,255,.45), inset 0 -4px 8px rgba(0,60,30,.3), 0 10px 18px -6px rgba(22,180,108,.5); }

/* ---------- 버튼 ---------- */
.btn { --cta-bg: var(--brand); --cta-fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; font-weight: 700; font-size: 16px; line-height: 1.2; border: 1px solid transparent; transition: transform .15s var(--ease), box-shadow .15s, background .15s; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn.cta { background: var(--cta-bg); color: var(--cta-fg); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--cta-bg) 70%, transparent); }
.btn.cta:hover { filter: brightness(1.06); }
.btn .cta-s { font-weight: 500; font-size: 12px; opacity: .85; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost.cta { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); box-shadow: none; backdrop-filter: blur(4px); }
.btn-ghost-dark.cta { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btns.col { flex-direction: column; }
.btns.center { justify-content: center; flex-direction: row; }

/* ---------- 헤더 ---------- */
.announce { background: var(--bg-dark); color: #cbd5e1; font-size: 13px; padding: 8px 16px; display: flex; gap: 8px; align-items: center; justify-content: center; text-align: center; }
.announce em { color: #8fc2ff; font-style: normal; font-weight: 700; }
.hd { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line-soft); }
.hd-in { height: var(--hd); display: flex; align-items: center; gap: 16px; }
.logo img { height: 40px; width: auto; }
.gnb { display: none; margin-left: auto; }
.gnb > ul { display: flex; gap: 4px; }
.gnb a { display: flex; align-items: center; gap: 2px; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.gnb a:hover, .gnb a[aria-current] { color: var(--brand); background: var(--brand-soft); }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: none; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { font-weight: 500; }
.hd-act { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hd-tel { display: none; align-items: center; gap: 6px; font-weight: 800; color: var(--ink); font-size: 17px; }
.hamb { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--ink); border-radius: 10px; }
.mnav { position: fixed; inset: 0; z-index: 60; background: rgba(8,16,32,.5); }
.mnav-in { position: absolute; right: 0; top: 0; bottom: 0; width: min(88vw, 360px); background: #fff; padding: 64px 20px 24px; overflow-y: auto; box-shadow: var(--shadow-lg); }
.mnav-x { position: absolute; right: 12px; top: 10px; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); }
.mnav li a { display: block; padding: 12px 4px; font-weight: 700; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.mnav li li a { font-weight: 500; font-size: 15px; padding: 9px 12px; color: var(--ink-2); border: 0; }
.mnav-cta { display: grid; gap: 8px; margin-top: 20px; }

/* ---------- 섹션 공통 ---------- */
.sec { padding: 64px 0; }
.sec.soft { background: var(--bg-soft); }
.sec.dark { background: var(--bg-dark); color: #cbd5e1; }
.sec-head { margin-bottom: 32px; }
.sec-head h2 { font-size: 28px; }
.sec-head h2 em, .hero h1 em, .final h2 em { font-style: normal; color: var(--brand); }
.sec-head .sub { margin-top: 12px; color: var(--ink-3); font-size: 16px; }
.sec-head.light h2 { color: #fff; }
.sec-head.light h2 em { color: #8fc2ff; }
.sec-head.light .sub { color: #94a3b8; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--brand); margin-bottom: 10px; text-transform: uppercase; }
.h2 { font-size: 24px; margin-bottom: 18px; }
.h3 { font-size: 18px; margin: 24px 0 12px; }
.p { margin: 12px 0; color: var(--ink-2); }
.p.local { background: var(--brand-soft); border-radius: 12px; padding: 14px 16px; display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }
.note { font-size: 14px; color: var(--ink-3); margin-top: 12px; }
.grid { display: grid; gap: 16px; }
.grid + .center, .grid + .pager { margin-top: 32px; }

/* ---------- 카드 ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; display: block; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.svc-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.svc-card h3 { font-size: 19px; margin-top: 4px; }
.svc-card p { color: var(--ink-3); font-size: 15px; flex: 1; }
.svc-card.sm h3 { font-size: 17px; }
.more { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-weight: 700; font-size: 14px; }
.case-card { overflow: hidden; }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
a.card:hover .card-img img { transform: scale(1.04); }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.card-img .tag { position: absolute; left: 12px; top: 12px; }
.tag-line { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.card-b { padding: 16px 18px 20px; }
.card-b .meta { display: flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: 13px; margin-bottom: 6px; }
.card-b h3 { font-size: 17px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-b .desc { margin-top: 8px; color: var(--ink-3); font-size: 14px; }
.guide-card { padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.guide-card .q { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 900; display: grid; place-items: center; }
.guide-card h3 { font-size: 17px; line-height: 1.45; }
.guide-card p { color: var(--ink-3); font-size: 14px; margin: 6px 0 8px; }
.pain-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.pain-card h3 { font-size: 18px; }
.pain-card h3 em { font-style: normal; color: var(--brand); }
.pain-card p { color: var(--ink-3); font-size: 15px; margin-top: 8px; }
.eq-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.eq-card h3 { font-size: 17px; }
.eq-card p { font-size: 14px; color: var(--ink-3); }
.ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--brand-soft), #fff); }

/* ---------- 히어로 ---------- */
.hero { position: relative; color: #fff; background: var(--bg-dark); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: var(--hero-ov); }
.hero-in { position: relative; padding: 40px 16px 48px; display: grid; gap: 24px; align-items: end; }
.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.hero h1 { color: #fff; font-size: 34px; line-height: 1.22; letter-spacing: -0.04em; }
.hero h1 em { color: #8fc2ff; }
.hero-sub { margin-top: 16px; color: #dbe4f0; font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.stats strong { display: block; font-size: 22px; font-weight: 800; color: #8fc2ff; letter-spacing: -0.02em; }
.stats span { font-size: 12px; color: #cbd5e1; }
.hero .btns .btn { flex: 1 1 100%; }
.hero-char { display: none; }
.hero-char img { width: 100%; max-width: 380px; margin-left: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }

.phero { background: linear-gradient(180deg, var(--bg-soft), #fff); padding: 24px 0 36px; border-bottom: 1px solid var(--line-soft); }
.phero h1 { font-size: 28px; margin-top: 8px; }
.phero p { color: var(--ink-3); margin-top: 12px; }
.phero .lead { font-size: 17px; color: var(--ink-2); }
.phero-grid { display: grid; gap: 24px; align-items: center; }
.phero-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.phero-ico { display: none; justify-content: center; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--ink-3); }
.crumbs li:not(:last-child)::after { content: '›'; margin-left: 6px; color: var(--ink-4); }
.crumbs a:hover { color: var(--brand); }

/* ---------- 신뢰 스트립 ---------- */
.trust { padding: 24px 0; background: #fff; border-bottom: 1px solid var(--line-soft); }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trust-list li { display: flex; align-items: center; gap: 12px; }
.trust-list strong { display: block; color: var(--ink); font-size: 15px; }
.trust-list span { font-size: 13px; color: var(--ink-3); }

/* ---------- 답변 박스 / 사실 표 ---------- */
.answer { margin: 28px 0 8px; border: 1px solid var(--brand-100); background: linear-gradient(180deg, var(--brand-soft), #fff); border-radius: var(--radius); padding: 18px 20px; position: relative; }
.answer-l { display: inline-block; font-size: 12px; font-weight: 800; color: #fff; background: var(--brand); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.answer p { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.6; }
.facts { margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts dl { margin: 0; display: grid; }
.facts dl > div { display: grid; grid-template-columns: 96px 1fr; border-bottom: 1px solid var(--line-soft); }
.facts dl > div:last-child { border-bottom: 0; }
.facts dt { background: var(--bg-soft); padding: 12px 14px; font-weight: 700; color: var(--ink); font-size: 14px; }
.facts dd { margin: 0; padding: 12px 14px; font-size: 15px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.checks li .ico { color: var(--brand); margin-top: 3px; }

/* ---------- 과정 ---------- */
.steps { display: grid; gap: 12px; counter-reset: s; }
.steps li { display: flex; gap: 16px; padding: 18px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.sec:not(.dark) .steps li { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.step-n { flex: none; font-weight: 900; font-size: 20px; color: #8fc2ff; width: 40px; }
.sec:not(.dark) .step-n { color: var(--brand); }
.steps h3 { font-size: 17px; color: inherit; }
.sec.dark .steps h3 { color: #fff; }
.steps p { font-size: 14px; margin-top: 4px; }

/* ---------- 표 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
thead th { background: var(--bg-soft); color: var(--ink); font-weight: 700; font-size: 14px; white-space: nowrap; }
tbody th { color: var(--ink); font-weight: 700; }
td strong { color: var(--brand); }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { margin: 48px 0; }
.faq > h2 { font-size: 24px; margin-bottom: 16px; }
.faq-list { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 16px; font-weight: 700; line-height: 1.5; }
.faq summary h3::before { content: 'Q. '; color: var(--brand); }
.faq summary .ico { transition: transform .2s; color: var(--ink-3); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq-a { padding: 0 18px 18px; color: var(--ink-2); }

/* ---------- 지역 ---------- */
.area-chips, .kw-links, .dongs, .filter { display: flex; flex-wrap: wrap; gap: 8px; }
.area-chips a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.area-chips a:hover { border-color: var(--brand); color: var(--brand); }
.kw-links { margin-top: 16px; }
.kw-links a { font-size: 14px; color: var(--ink-3); padding: 4px 8px; border-radius: 6px; background: var(--bg-soft); }
.kw-links a:hover { color: var(--brand); }
.dongs span { padding: 6px 12px; border-radius: 8px; background: var(--bg-soft); font-size: 14px; }
.area-group { padding: 24px 0; border-bottom: 1px solid var(--line-soft); }
.area-group h2 { margin-bottom: 14px; }
.filter { margin-bottom: 24px; }
.filter a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; background: #fff; }
.filter a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; }
.pager a[aria-current] { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- 갤러리 ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gal { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--line-soft); }
.gal img { width: 100%; height: 100%; object-fit: cover; }
.gal span { position: absolute; inset: auto 0 0 0; padding: 28px 12px 12px; background: linear-gradient(180deg, transparent, rgba(8,16,32,.85)); color: #8fc2ff; font-size: 12px; font-weight: 700; }
.gal b { display: block; color: #fff; font-size: 14px; line-height: 1.35; margin-top: 2px; }

/* ---------- 소개 ---------- */
.about-in { display: grid; gap: 32px; align-items: center; }
.about-img { width: 100%; max-width: 380px; margin: 0 auto; border-radius: var(--radius-lg); background: #fdfdfb; box-shadow: var(--shadow); }
.prose p { margin: 0 0 14px; line-height: 1.85; }
.prose h2 { font-size: 22px; line-height: 1.4; margin: 48px 0 16px; }
.prose h3 { font-size: 18px; margin: 32px 0 12px; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
@media (min-width: 1024px) { .prose h2 { font-size: 26px; margin: 56px 0 18px; } }

/* ---------- 본문 (사례·가이드) ---------- */
.post-hd { background: linear-gradient(180deg, var(--bg-soft), #fff); padding: 20px 0 8px; }
.post-tags { display: flex; gap: 6px; margin: 14px 0 10px; flex-wrap: wrap; }
.post-hd h1 { font-size: 27px; line-height: 1.35; }
.post-meta { display: flex; gap: 12px; color: var(--ink-3); font-size: 14px; margin-top: 12px; flex-wrap: wrap; }
.toc { margin: 24px 0; padding: 16px 20px; border-radius: var(--radius); background: var(--bg-soft); }
.toc strong { color: var(--ink); }
.toc ol { list-style: decimal; padding-left: 20px; margin-top: 8px; display: grid; gap: 4px; font-size: 15px; }
.toc a:hover { color: var(--brand); }
.article { font-size: 17px; line-height: 1.85; color: var(--ink-2); }
.article h2 { font-size: 23px; margin: 48px 0 16px; padding-top: 8px; line-height: 1.4; }
.article h3 { font-size: 19px; margin: 32px 0 12px; }
.article p { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 20px; padding-left: 22px; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin: 6px 0; }
.article strong { color: var(--ink); }
.article blockquote { margin: 24px 0; padding: 16px 20px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 12px 12px 0; }
.article figure { margin: 28px 0; }
.article figure img { border-radius: 14px; width: 100%; background: var(--bg-soft); }
.article figcaption { font-size: 14px; color: var(--ink-3); margin-top: 8px; text-align: center; }
.article table { margin: 20px 0; display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.article a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.post-cta { margin: 40px 0; padding: 22px; border-radius: var(--radius); background: var(--bg-dark); color: #cbd5e1; }
.post-cta strong { color: #fff; display: block; font-size: 18px; margin-bottom: 4px; }
.post-cta .btns { margin-top: 16px; }
.rel-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 32px 0 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.rel-links strong { width: 100%; color: var(--ink); }
.rel-links a { padding: 8px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 14px; }
.link { color: var(--brand); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }

/* ---------- 문의 폼 ---------- */
.contact-in { display: grid; gap: 32px; }
.contact-points { display: grid; gap: 12px; margin: 8px 0 16px; }
.contact-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.contact-points.big li { font-size: 18px; }
.contact-points a { color: var(--brand); font-weight: 800; }
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.f-grid { display: grid; gap: 14px; }
.f span { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.f b { color: #e11d48; }
.f input, .f select, .f textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); -webkit-appearance: none; appearance: none; }
.f select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { margin: 16px 0; display: grid; gap: 8px; font-size: 14px; }
.chk { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.chk input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.consent-d { font-size: 13px; color: var(--ink-3); padding-left: 28px; }
.consent-d summary { cursor: pointer; color: var(--ink-3); text-decoration: underline; }
.consent-d p { margin-top: 6px; }
.f-msg { margin-top: 10px; font-weight: 600; min-height: 1.4em; }
.f-msg.err { color: #e11d48; }
.f-msg.ok { color: #16a34a; }

/* ---------- 최종 CTA ---------- */
.final { background: radial-gradient(1200px 400px at 80% 0%, #1f4fa3 0%, transparent 60%), var(--bg-dark); color: #cbd5e1; padding: 56px 0 0; overflow: hidden; }
.final-in { display: grid; gap: 16px; align-items: end; }
.final h2 { color: #fff; font-size: 28px; }
.final h2 em { color: #8fc2ff; }
.final-txt { padding-bottom: 48px; }
.final-txt > p { margin-top: 12px; }
.final-tel { margin-top: 16px; font-size: 14px; }
.final-tel a { color: #fff; font-weight: 800; font-size: 20px; }
.final-char { display: none; width: 300px; justify-self: end; }

/* ---------- 푸터 ---------- */
.ft { background: #060d1a; color: #94a3b8; padding: 48px 0 calc(96px + env(safe-area-inset-bottom)); font-size: 14px; }
.ft-top { display: grid; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ft-brand img { height: 48px; width: auto; margin-bottom: 14px; }
.ft-soc { display: flex; gap: 8px; margin-top: 16px; }
.ft-soc a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: #cbd5e1; }
.ft-soc a:hover { background: var(--brand); color: #fff; }
.ft-col h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.ft-col ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.ft-col a:hover { color: #fff; }
.ft-biz { padding-top: 24px; display: grid; gap: 6px; }
.ft-biz span { margin-right: 10px; display: inline-block; }
.ft-biz strong { color: #fff; margin-right: 10px; }
.ft-legal a { color: #cbd5e1; }
.copy { color: #64748b; margin-top: 8px; }

/* ---------- 모바일 하단 고정 CTA ---------- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.mbar .btn { flex: 1; min-height: 50px; font-size: 16px; padding: 0 10px; }
.mbar .btn .cta-s { display: none; }

/* ---------- 모바일 중앙 정렬 (소제목·히어로·섹션 제목) — 본문 문단·목록·표는 가독성을 위해 왼쪽 정렬 유지 ---------- */
@media (max-width: 767px) {
  .sec-head, .hero-txt, .phero .wrap > *, .phero-grid > div, .post-hd .wrap, .final-txt, .h2, .h3, .faq > h2,
  .article h2, .article h3, .prose h2, .prose h3, .area-group h2, .ft-brand, .ft-biz, .ft-col h3 { text-align: center; }
  .hero-txt .btns, .phero .btns, .final .btns, .post-cta .btns { justify-content: center; }
  .stats { text-align: center; }
  .crumbs ol, .post-tags, .post-meta, .filter, .area-chips, .kw-links, .dongs, .ft-soc { justify-content: center; }
  .svc-card, .eq-card { align-items: center; text-align: center; }
  .trust-list li { flex-direction: column; text-align: center; gap: 8px; }
  .about-in > div, .contact-in > div:first-child { text-align: center; }
  .about-in .btn, .contact-in .btns { margin-left: auto; margin-right: auto; }
  .contact-points { justify-items: center; }
  .post-cta { text-align: center; }
  .rel-links { justify-content: center; text-align: center; }
  .ft-col ul { justify-items: center; text-align: center; }
  .final-tel { text-align: center; }
}
/* ---------- 반응형 ---------- */
@media (max-width: 639px) {
  .grid.g4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .g4 .svc-card, .g4 .eq-card { padding: 16px 14px; gap: 8px; }
  .g4 .i3d { --s: 44px !important; }
  .g4 .i3d svg { width: 25px; height: 25px; }
  .g4 .svc-card h3, .g4 .eq-card h3 { font-size: 16px; }
  .g4 .svc-card p, .g4 .eq-card p { font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .case-card { display: grid; grid-template-columns: 112px 1fr; min-height: 120px; }
  .case-card .card-img { aspect-ratio: auto; min-height: 120px; height: auto; }
  .case-card .card-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .case-card .card-b { display: flex; flex-direction: column; justify-content: center; }
  .case-card .card-img .tag { left: 6px; top: 6px; font-size: 11px; padding: 2px 7px; }
  .case-card .card-b { padding: 12px 14px; }
  .case-card .card-b h3 { font-size: 15px; }
  .case-card .card-b .desc { display: none; }
  .pain-card { flex-direction: row; align-items: center; gap: 14px; padding: 20px 18px; }
  .pain-card h3 br { display: none; }
  .pain-card > div, .pain-card h3 { flex: 1; }
  .pain { gap: 10px; }
}
@media (min-width: 640px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .trust-list { grid-template-columns: repeat(4, 1fr); }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .f-full { grid-column: 1 / -1; }
  .hero .btns .btn { flex: 0 1 auto; }
  .facts dl > div { grid-template-columns: 140px 1fr; }
}
@media (min-width: 1024px) {
  :root { --hd: 76px; }
  .gnb { display: block; }
  .hd-tel { display: inline-flex; }
  .hamb { display: none; }
  .hd-act { margin-left: 16px; }
  .sec { padding: 112px 0; }
  .sec-head { margin-bottom: 48px; }
  .sec-head h2 { font-size: 42px; }
  .sec-head .sub { font-size: 18px; }
  .g3 { grid-template-columns: repeat(3, 1fr); }
  .g4 { grid-template-columns: repeat(4, 1fr); }
  .g4.g3-lg { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .hero-in { grid-template-columns: 1.3fr .7fr; padding: 96px 16px 0; min-height: 640px; }
  .hero-txt { padding-bottom: 96px; }
  .hero h1 { font-size: 60px; }
  .hero-sub { font-size: 19px; }
  .stats strong { font-size: 30px; }
  .stats span { font-size: 14px; }
  .hero-char { display: block; align-self: end; }
  .phero { padding: 40px 0 56px; }
  .phero h1 { font-size: 44px; }
  .phero-grid { grid-template-columns: 1.2fr .8fr; }
  .phero-ico { display: flex; }
  .h2 { font-size: 30px; }
  .post-hd h1 { font-size: 38px; }
  .article h2 { font-size: 27px; }
  .about-in { grid-template-columns: 1.2fr .8fr; }
  .contact-in { grid-template-columns: .8fr 1.2fr; align-items: start; }
  .lead-form { padding: 32px; }
  .steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .steps li { flex-direction: column; }
  .final { padding-top: 88px; }
  .final h2 { font-size: 44px; }
  .final-in { grid-template-columns: 1fr auto; }
  .final-char { display: block; }
  .final-txt { padding-bottom: 88px; }
  .ft { padding-bottom: 48px; }
  .ft-top { grid-template-columns: 1.4fr 1fr 1fr .8fr; }
  .ft-col ul { grid-template-columns: 1fr; }
  .mbar { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .hd, .mbar, .ft, .final, .post-cta { display: none; } }
