/* 고객용 홈페이지.
   목표: 실제로 현장에 출동하는 전문업체라는 인상.
   SaaS 랜딩 톤(과한 그라디언트/글래스/애니메이션)을 피하고
   밀도 · 대비 · 현장감으로 신뢰를 만든다. 모바일 우선. */

:root {
  /* 현장 톤: 짙은 청록/네이비 + 안전색 앰버 */
  --ink: #0e1620;
  --ink-2: #33414f;
  --ink-3: #6b7a89;
  --line: #dfe5ec;
  --line-2: #c6d1dc;
  --paper: #ffffff;
  --paper-2: #f4f7fa;
  --paper-3: #eaeff5;

  --brand: #0a5f7a;
  --brand-2: #084b61;
  --brand-3: #063a4c;
  --brand-tint: #e3f0f5;
  --brand-tint-2: #cfe5ed;

  --amber: #f2a20c;
  --amber-2: #d98d05;
  --amber-tint: #fff4dd;

  --danger: #c0392b;
  --ok: #1b7a48;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;

  --sh-1: 0 1px 2px rgba(14, 22, 32, .05), 0 2px 6px rgba(14, 22, 32, .04);
  --sh-2: 0 2px 6px rgba(14, 22, 32, .07), 0 10px 26px rgba(14, 22, 32, .07);
  --sh-3: 0 8px 20px rgba(14, 22, 32, .1), 0 24px 60px rgba(14, 22, 32, .12);

  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI',
          'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;

  --wrap: 1140px;
  --gutter: 18px;
  --bar-h: 62px;          /* 모바일 하단 고정바 높이 */
}

* { box-sizing: border-box; }

/* 가로 스크롤 차단은 html에 건다.
   body에 overflow-x:hidden을 주면 body가 별도 스크롤 컨테이너가 되어
   window 스크롤·sticky 헤더·iOS 스크롤 동작이 어긋난다.
   clip은 스크롤 컨테이너를 만들지 않으므로 우선 사용하고, 미지원 브라우저만 hidden으로 넘긴다. */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  /* 앵커 이동이나 포커스 스크롤 시 상단 고정 헤더와 하단 고정바가
     대상 요소를 가리지 않도록 여백을 확보한다. */
  scroll-padding-top: 100px;
  scroll-padding-bottom: 88px;
}
@media (min-width: 900px) {
  html { scroll-padding-top: 104px; scroll-padding-bottom: 24px; }
}
@supports not (overflow: clip) {
  html { overflow-x: hidden; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;             /* 한글 단어 중간 줄바꿈 방지 */
  overflow-wrap: anywhere;
}
/* 모바일 하단 고정바가 마지막 콘텐츠를 가리지 않게.
   바 높이에 여유를 더해 푸터 마지막 줄이 바에 닿지 않도록 한다. */
@media (max-width: 899px) {
  body { padding-bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom, 0px)); }
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.28; letter-spacing: -.028em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============ 아이콘 ============ */
.ico { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none;
       stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico-lg { width: 30px; height: 30px; }

/* ============ 상단 공지 바 ============ */
.topline {
  background: var(--brand-3); color: #cfe7ef;
  font-size: .82rem; letter-spacing: -.01em;
}
.topline .wrap {
  min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.topline b { color: #fff; font-weight: 700; }
.topline .tl-right { display: none; }
@media (min-width: 700px) { .topline .tl-right { display: flex; gap: 16px; } }

/* ============ 헤더 ============ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  min-height: 62px; display: flex; align-items: center; gap: 14px;
}

.brand-link {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; flex: none;
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-3) 100%);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 3px 10px rgba(8, 75, 97, .3);
}
.brand-mark .ico { width: 21px; height: 21px; stroke-width: 1.9; }
.brand-text { display: grid; line-height: 1.14; }
.brand-name { font-size: 1.16rem; font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.brand-sub {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  color: var(--brand); text-transform: uppercase;
}

.main-nav { display: none; margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; }
.main-nav a {
  display: block; padding: 9px 12px; border-radius: 9px;
  text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .94rem;
}
.main-nav a:hover { background: var(--paper-2); color: var(--brand-2); }
@media (min-width: 900px) { .main-nav { display: block; } }

.header-cta { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 900px) { .header-cta { margin-left: 12px; } }
.header-tel {
  display: none; align-items: center; gap: 7px; text-decoration: none;
  color: var(--brand-2); font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em;
  padding: 7px 10px; border-radius: 9px;
}
.header-tel:hover { background: var(--brand-tint); }
@media (min-width: 640px) { .header-tel { display: inline-flex; } }

/* 모바일 메뉴 */
.nav-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line-2); border-radius: 9px; background: #fff;
  cursor: pointer; color: var(--ink-2);
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.mobile-nav {
  display: none; border-top: 1px solid var(--line); background: #fff;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { padding: 6px var(--gutter) 12px; }
.mobile-nav a {
  display: block; padding: 13px 6px; text-decoration: none;
  font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--paper-3);
}
@media (min-width: 900px) { .mobile-nav { display: none !important; } }

/* ============ 버튼 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 20px; border-radius: 12px;
  font-family: inherit; font-size: 1rem; font-weight: 800; letter-spacing: -.02em;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 20px; height: 20px; }
.btn-amber { background: var(--amber); color: #241900; border-color: var(--amber); }
.btn-amber:hover { background: var(--amber-2); border-color: var(--amber-2); }
.btn-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-brand:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--brand); color: var(--brand-2); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .9rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ============ 히어로 ============ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(10, 95, 122, .55), transparent 62%),
    linear-gradient(168deg, #0b2230 0%, var(--brand-3) 52%, var(--brand-2) 100%);
  color: #e8f4f8;
}
/* 배관/현장 느낌의 미세한 라인 패턴. 이미지 없이도 빈 느낌을 없앤다. */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(80% 70% at 30% 20%, #000 30%, transparent 78%);
}
.hero-inner {
  position: relative; display: grid; gap: 26px;
  padding: 34px 0 40px; align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.08fr .92fr; gap: 44px; padding: 58px 0 64px; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  background: rgba(242, 162, 12, .16); border: 1px solid rgba(242, 162, 12, .4);
  color: #ffce7a; font-size: .82rem; font-weight: 800; letter-spacing: -.01em;
  padding: 6px 12px; border-radius: 999px;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none;
}
.hero h1 {
  color: #fff; font-weight: 800;
  font-size: clamp(1.85rem, 6.4vw, 3.1rem); line-height: 1.2;
  white-space: pre-line; margin-bottom: 14px;
}
.hero-sub {
  color: #b9d8e3; font-size: clamp(.96rem, 2.5vw, 1.1rem);
  white-space: pre-line; max-width: 46ch; margin-bottom: 22px;
}
.hero-actions { display: grid; gap: 9px; grid-template-columns: 1fr; }
@media (min-width: 460px) { .hero-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .hero-actions { display: flex; flex-wrap: wrap; } }
.hero-actions .btn { width: 100%; }
@media (min-width: 900px) { .hero-actions .btn { width: auto; } }

.hero-points {
  display: grid; gap: 8px 18px; margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.hero-points li {
  display: flex; align-items: center; gap: 8px;
  font-size: .89rem; color: #a9cfdc; font-weight: 600;
}
.hero-points .ico { width: 17px; height: 17px; color: var(--amber); stroke-width: 2.4; }

/* 히어로 비주얼 */
.hero-visual { position: relative; }
.hero-photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 4 / 3; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: var(--sh-3);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--visual-hero-image-x, 50%) var(--visual-hero-image-y, 50%); transform: scale(var(--visual-hero-image-scale, 1)); transform-origin: var(--visual-hero-image-x, 50%) var(--visual-hero-image-y, 50%); }
.hero-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 16px 12px;
  background: linear-gradient(transparent, rgba(6, 30, 40, .82));
  color: #dceef4; font-size: .82rem; font-weight: 600;
}
/* 사진이 없을 때: 빈 상자 대신 서비스 요약 패널을 보여준다 */
.hero-panel {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh-3);
}
.hero-panel h2 {
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: #8fc0d1; font-weight: 800; margin-bottom: 12px;
}
.hero-panel-grid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 138px), 1fr));
}
.hero-panel-item {
  display: flex; align-items: center; gap: 9px; padding: 11px 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-sm); color: #dcecf2;
  font-size: .86rem; font-weight: 700; text-decoration: none; min-height: 48px;
  line-height: 1.25;
}
.hero-panel-item:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .3); }
.hero-panel-item .ico { width: 18px; height: 18px; color: var(--amber); }
.hero-note {
  margin-top: 12px; font-size: .78rem; color: #8fb4c3; text-align: center;
}

/* ============ 신뢰 스트립 ============ */
.trust-strip { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.trust-strip ul {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border-inline: 1px solid var(--line);
}
@media (min-width: 760px) { .trust-strip ul { grid-template-columns: repeat(4, 1fr); } }
.trust-strip li {
  background: var(--paper-2); padding: 14px 12px;
  display: flex; align-items: center; gap: 10px;
}
.trust-strip .ico { width: 22px; height: 22px; color: var(--brand); }
.trust-strip b { display: block; font-size: .92rem; font-weight: 800; letter-spacing: -.02em; }
.trust-strip span { display: block; font-size: .78rem; color: var(--ink-3); }

/* ============ 섹션 공통 ============ */
.sec { padding: 46px 0; }
@media (min-width: 900px) { .sec { padding: 66px 0; } }
.visual-hero h1 { font-size: clamp(1.9rem, 5vw, var(--visual-hero-title-size, 48px)); font-weight: var(--visual-hero-title-weight, 800); line-height: var(--visual-hero-line-height, 1.18); margin-top: var(--visual-hero-margin-top, 0); margin-bottom: var(--visual-hero-margin-bottom, 18px); color: var(--visual-hero-title-color, #fff); }
.visual-align-center { text-align: center; }
.visual-align-center .hero-actions, .visual-align-center .hero-points { justify-content: center; }
.visual-services { padding-block: var(--visual-services-gap, 66px); }
@media (max-width: 899px) { .visual-services { padding-block: min(var(--visual-services-gap, 66px), 52px); } }
.sec.tint { background: var(--paper-2); }
.sec.dark { background: var(--brand-3); color: #dceef4; }

.sec-head { margin-bottom: 22px; max-width: 62ch; }
.sec-head .kicker {
  display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .12em;
  color: var(--brand); text-transform: uppercase; margin-bottom: 8px;
}
.sec.dark .sec-head .kicker { color: var(--amber); }
.sec-head h2 { font-size: clamp(1.4rem, 4.2vw, 2rem); font-weight: 800; }
.sec-head p { margin-top: 8px; color: var(--ink-3); font-size: .97rem; }
.sec.dark .sec-head p { color: #9dc3d1; }
.sec-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.sec-head-row .sec-head { margin-bottom: 0; }

/* 데이터가 없을 때 쓰는 안내.
   빈 화면을 그대로 두지 않되, 내용이 없는 영역이 화면을 크게 차지하지 않도록 가로형으로 둔다. */
.placeholder {
  display: grid; gap: 6px 18px; align-items: center;
  grid-template-columns: 48px 1fr;
  border: 1.5px dashed var(--line-2); border-radius: var(--r);
  background: var(--paper-2); padding: 20px 22px;
}
.placeholder .ico {
  width: 30px; height: 30px; color: var(--ink-3); grid-row: span 2; justify-self: center;
}
.placeholder b { grid-column: 2; font-size: 1rem; }
.placeholder p { grid-column: 2; color: var(--ink-3); font-size: .9rem; line-height: 1.55; }
.placeholder .btn { grid-column: 2; justify-self: start; margin-top: 10px; }
@media (max-width: 520px) {
  .placeholder { grid-template-columns: 1fr; text-align: left; }
  .placeholder .ico { grid-row: auto; justify-self: start; }
  .placeholder b, .placeholder p, .placeholder .btn { grid-column: 1; }
}

/* ============ 진단 퍼널 ============ */
.diagnose-wrap { margin-top: -30px; position: relative; z-index: 5; }
@media (min-width: 900px) { .diagnose-wrap { margin-top: -40px; } }
.diagnose {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-3);
  padding: 20px 18px 18px;
}
@media (min-width: 700px) { .diagnose { padding: 26px 26px 22px; } }

.dg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dg-head h2 { font-size: clamp(1.14rem, 3.6vw, 1.42rem); font-weight: 800; }
.dg-head p { margin-top: 5px; color: var(--ink-3); font-size: .9rem; }
.dg-steps { display: flex; gap: 5px; flex: none; padding-top: 6px; }
.dg-steps i {
  display: block; width: 26px; height: 4px; border-radius: 2px;
  background: var(--line-2); transition: background-color .2s;
}
.dg-steps i.on { background: var(--brand); }

/* 선택지가 보통 6~7개다. 6열로 두면 7번째가 혼자 남아 어색하므로 4열까지만 쓴다. */
.dg-grid {
  display: grid; gap: 9px; margin-top: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 520px) { .dg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) { .dg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.dg-card {
  appearance: none; font-family: inherit; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  min-height: 104px; padding: 14px 8px;
  /* 브라우저가 이 카드를 화면 안으로 스크롤할 때 고정 바에 가리지 않게 */
  scroll-margin: 100px 0 96px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r);
  color: var(--ink); font-size: .9rem; font-weight: 700; line-height: 1.32;
  transition: border-color .14s, background-color .14s, transform .14s;
}
.dg-card .ico { width: 28px; height: 28px; color: var(--brand); stroke-width: 1.6; }
.dg-card:hover { border-color: var(--brand); background: var(--brand-tint); transform: translateY(-2px); }
.dg-card[aria-pressed='true'] {
  border-color: var(--brand); background: var(--brand-tint);
  color: var(--brand-3); box-shadow: inset 0 0 0 1px var(--brand);
}
.dg-card[aria-pressed='true'] .ico { color: var(--brand-2); }

.dg-nav { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.dg-chosen {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px;
}
.dg-chosen span {
  background: var(--brand-tint); color: var(--brand-3); border: 1px solid var(--brand-tint-2);
  border-radius: 999px; padding: 4px 11px; font-size: .82rem; font-weight: 700;
}

/* 진단 결과 */
.dg-result { display: none; }
.dg-result.show { display: block; }
.dg-result-top {
  display: grid; gap: 16px; align-items: start;
}
@media (min-width: 760px) { .dg-result-top { grid-template-columns: 1.2fr .8fr; } }
.dg-service-name { font-size: clamp(1.24rem, 4vw, 1.62rem); font-weight: 800; margin-bottom: 8px; }
.dg-service-desc { color: var(--ink-2); font-size: .96rem; }
.dg-price {
  background: linear-gradient(160deg, var(--brand-tint), #f2f9fb);
  border: 1px solid var(--brand-tint-2); border-radius: var(--r); padding: 16px 18px;
}
.dg-price .label {
  font-size: .76rem; font-weight: 800; letter-spacing: .08em;
  color: var(--brand); text-transform: uppercase;
}
.dg-price .amount {
  font-size: clamp(1.2rem, 4.4vw, 1.55rem); font-weight: 800;
  letter-spacing: -.03em; margin-top: 4px; color: var(--brand-3);
}
.dg-price .note { font-size: .83rem; color: var(--ink-2); margin-top: 7px; }
.dg-actions { display: grid; gap: 9px; margin-top: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .dg-actions { grid-template-columns: repeat(3, 1fr); } }
.dg-cases { margin-top: 16px; }
.dg-cases h4 { font-size: .84rem; color: var(--ink-3); font-weight: 800; margin-bottom: 8px; }
.dg-cases li {
  display: flex; align-items: center; gap: 8px; padding: 7px 0;
  border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2);
}
.dg-cases .ico { width: 16px; height: 16px; color: var(--brand); }

/* ============ 서비스 카드 ============ */
.svc-grid { display: grid; gap: 10px; }
@media (min-width: 620px) {
  .svc-grid { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
}

/* 좁은 화면에서는 카드 9개가 세로로 지나치게 길어진다.
   모바일은 아이콘 + 텍스트의 가로형 목록으로 바꿔 훑어보기 쉽게 한다. */
.svc-card {
  display: grid; grid-template-columns: 46px 1fr; gap: 4px 13px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; text-decoration: none; color: inherit;
  box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.svc-card .svc-icon { grid-row: span 2; }
.svc-card h3 { grid-column: 2; }
.svc-card p { grid-column: 2; }
.svc-card .svc-tags { display: none; }
.svc-card .svc-foot {
  grid-column: 1 / -1; padding-top: 11px; margin-top: 4px;
}
/* 사진이 있는 서비스 카드만 모바일에서도 사진 비율을 보존한다. */
.svc-card.has-photo {
  display: flex; flex-direction: column; gap: 10px; padding: 18px; align-items: stretch;
}
.svc-card.has-photo .svc-tags { display: flex; }
.svc-card.has-photo .svc-foot { margin-top: 0; }
@media (min-width: 620px) {
  .svc-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; align-items: stretch; }
  .svc-card .svc-tags { display: flex; }
  .svc-card .svc-foot { margin-top: 0; }
}
.svc-card:hover { border-color: var(--brand); box-shadow: var(--sh-2); transform: translateY(-2px); }
.svc-photo {
  margin: -18px -18px 2px; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r) var(--r) 0 0; background: var(--paper-3);
}
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-icon {
  width: 44px; height: 44px; border-radius: 11px; flex: none;
  background: var(--brand-tint); color: var(--brand-2);
  display: grid; place-items: center;
}
.svc-card h3 { font-size: 1.05rem; font-weight: 800; }
.svc-card p { color: var(--ink-3); font-size: .89rem; line-height: 1.5; flex: 1; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.svc-tags span {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 8px; font-size: .76rem; color: var(--ink-3); font-weight: 600;
}
.svc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 11px; border-top: 1px solid var(--line);
}
.svc-price { font-size: .92rem; font-weight: 800; color: var(--brand-2); letter-spacing: -.02em; }
.svc-price.survey { color: var(--ink-3); font-weight: 700; font-size: .86rem; }
.svc-more { font-size: .85rem; font-weight: 700; color: var(--ink-3); display: inline-flex; align-items: center; gap: 3px; }
.svc-card:hover .svc-more { color: var(--brand); }

/* ============ Before / After ============ */
.ba-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.ba-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1);
}
.ba-compare {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--paper-3); touch-action: pan-y; user-select: none; cursor: ew-resize;
}
.ba-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-compare .after-layer {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(0 0 0 var(--split, 50%));
}
.ba-compare .after-layer img { width: 100%; height: 100%; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--split, 50%);
  width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
  pointer-events: none;
}
.ba-handle::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.ba-handle::before {
  content: ''; position: absolute; top: 50%; left: 50%; z-index: 1;
  width: 16px; height: 10px; transform: translate(-50%, -50%);
  background: var(--brand);
  clip-path: polygon(0 50%, 32% 0, 32% 100%, 68% 0, 68% 100%, 100% 50%);
}
.ba-tag {
  position: absolute; top: 10px; z-index: 2;
  background: rgba(14, 22, 32, .78); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  padding: 4px 9px; border-radius: 6px;
}
.ba-tag.before { left: 10px; }
.ba-tag.after { right: 10px; background: rgba(10, 95, 122, .9); }
.ba-range {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.ba-body { padding: 14px 16px 16px; }
.ba-body h3 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.ba-body p { color: var(--ink-3); font-size: .88rem; white-space: pre-line; }

/* ============ 작업사례 ============ */
.case-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.case-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1);
  display: flex; flex-direction: column;
}
.case-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.case-photos figure { position: relative; margin: 0; aspect-ratio: 4 / 3; background: var(--paper-3); }
.case-photos img { width: 100%; height: 100%; object-fit: cover; }
.case-photos figcaption {
  position: absolute; left: 7px; top: 7px;
  background: rgba(14, 22, 32, .76); color: #fff;
  font-size: .7rem; font-weight: 800; padding: 3px 7px; border-radius: 5px;
}
.case-empty-photo { display: grid; place-items: center; color: var(--ink-3); height: 100%; }
.case-empty-photo .ico { width: 26px; height: 26px; }
.case-body { padding: 15px 16px 17px; flex: 1; }
.case-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.case-meta span {
  background: var(--brand-tint); color: var(--brand-3);
  border-radius: 6px; padding: 2px 8px; font-size: .74rem; font-weight: 700;
}
.case-body h3 { font-size: 1rem; font-weight: 800; margin-bottom: 7px; }
.case-body p { color: var(--ink-2); font-size: .88rem; white-space: pre-line; line-height: 1.55; }

/* ============ 작업 과정 ============ */
.process { display: grid; gap: 0; }
.process li {
  position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 14px;
  padding-bottom: 22px;
}
.process li:last-child { padding-bottom: 0; }
.process .step-no {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: var(--paper); border: 1.5px solid var(--brand-tint-2); color: var(--brand-2);
  display: grid; place-items: center; font-weight: 800; font-size: .95rem;
  position: relative; z-index: 1;
}
.sec.dark .process .step-no {
  background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: var(--amber);
}
.process li:not(:last-child)::before {
  content: ''; position: absolute; left: 23px; top: 46px; bottom: 6px;
  width: 2px; background: var(--brand-tint-2);
}
.sec.dark .process li:not(:last-child)::before { background: rgba(255, 255, 255, .16); }
.process h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 4px; padding-top: 10px; }
.process p { color: var(--ink-3); font-size: .9rem; }
.sec.dark .process p { color: #9dc3d1; }

@media (min-width: 900px) {
  .process { grid-template-columns: repeat(3, 1fr); gap: 26px 22px; }
  .process li { grid-template-columns: 1fr; gap: 10px; padding-bottom: 0; }
  .process li:not(:last-child)::before {
    left: 46px; top: 22px; bottom: auto; right: -22px; width: auto; height: 2px;
  }
  .process li:nth-child(3n)::before { display: none; }
  .process h3 { padding-top: 0; }
}

/* ============ 요금표 ============ */
.price-table-wrap {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1);
}
.price-row {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 14px;
  padding: 15px 16px; border-bottom: 1px solid var(--line); align-items: center;
}
.price-row:last-child { border-bottom: 0; }
.price-row:hover { background: var(--paper-2); }
.price-name {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 1rem; letter-spacing: -.02em;
  text-decoration: none; color: var(--ink);
}
.price-name .svc-icon { width: 36px; height: 36px; border-radius: 9px; }
.price-name .svc-icon .ico { width: 20px; height: 20px; }
.price-name:hover { color: var(--brand-2); }
.price-variant { font-size: .82rem; color: var(--ink-3); font-weight: 600; margin-top: 2px; }
.price-value {
  text-align: right; font-weight: 800; font-size: 1rem;
  color: var(--brand-2); letter-spacing: -.02em; white-space: nowrap;
}
.price-value.survey { color: var(--ink-3); font-weight: 700; font-size: .88rem; white-space: normal; }
@media (max-width: 520px) {
  .price-row { grid-template-columns: 1fr; }
  .price-value { text-align: left; }
}
.price-note {
  display: flex; gap: 11px; align-items: flex-start; margin-top: 14px;
  background: var(--amber-tint); border: 1px solid #f3dcae;
  border-radius: var(--r); padding: 14px 16px;
}
.price-note .ico { width: 20px; height: 20px; color: var(--amber-2); margin-top: 1px; }
.price-note p { font-size: .9rem; color: #6b4d07; line-height: 1.55; }

/* 현장 조건형 작업을 한 줄로 묶어 보여줄 때 */
.price-row-survey { background: var(--paper-2); }
.price-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.price-chips a {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 7px 13px; font-size: .87rem; font-weight: 600;
  color: var(--ink-2); text-decoration: none; min-height: 36px;
}
.price-chips a:hover { border-color: var(--brand); color: var(--brand-2); background: var(--brand-tint); }
.price-chips .ico { width: 16px; height: 16px; color: var(--brand); }

/* 금액이 아직 등록되지 않았을 때. 같은 문구를 여러 줄 반복하지 않는다. */
.price-pending {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px; box-shadow: var(--sh-1);
}
.price-pending-head { display: flex; gap: 15px; align-items: flex-start; }
.price-pending-head .svc-icon { width: 52px; height: 52px; border-radius: 13px; }
.price-pending-head b { display: block; font-size: 1.08rem; font-weight: 800; margin-bottom: 6px; }
.price-pending-head p { color: var(--ink-2); font-size: .94rem; line-height: 1.6; max-width: 62ch; }
.price-pending .price-chips { margin-top: 16px; }
.price-pending-actions { display: grid; gap: 9px; margin-top: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .price-pending-actions { grid-template-columns: repeat(2, minmax(0, 220px)); } }

/* ============ 서비스 지역 ============ */
.region-groups { display: grid; gap: 14px; }
.region-group {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh-1);
}
.region-group h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 800; margin-bottom: 12px;
}
.region-group h3 .ico { width: 19px; height: 19px; color: var(--brand); }
.region-group h3 em {
  font-style: normal; font-size: .78rem; font-weight: 700;
  color: var(--ink-3); background: var(--paper-2);
  border-radius: 999px; padding: 2px 9px;
}
.region-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.region-chips span {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 11px; font-size: .87rem;
  color: var(--ink-2); font-weight: 600;
}

/* ============ 상담 ============ */
.contact-split { display: grid; gap: 16px; }
@media (min-width: 900px) { .contact-split { grid-template-columns: 1fr 1fr; gap: 24px; } }

.channel-list { display: grid; gap: 10px; }
.channel {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; color: inherit; box-shadow: var(--sh-1);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.channel:hover { border-color: var(--brand); box-shadow: var(--sh-2); transform: translateY(-1px); }
.channel-icon {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: #fff;
}
.channel-icon.tel { background: linear-gradient(150deg, var(--brand), var(--brand-3)); }
.channel-icon.sms { background: linear-gradient(150deg, #4a8fa8, #2c6a80); }
.channel-icon.kakao { background: #fee500; color: #191600; }
.channel-icon.ai { background: linear-gradient(150deg, var(--amber), var(--amber-2)); color: #2a1c00; }
.channel-text { flex: 1; min-width: 0; }
.channel-text b { display: block; font-size: 1rem; font-weight: 800; letter-spacing: -.02em; }
.channel-text span { display: block; font-size: .85rem; color: var(--ink-3); margin-top: 1px; }
.channel .ico-arrow { width: 18px; height: 18px; color: var(--ink-3); flex: none; }

/* 상담 위젯 */
.chat {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1);
  min-height: 400px;
}
.chat-head {
  display: flex; align-items: center; gap: 11px; padding: 13px 16px;
  background: var(--brand-3); color: #fff;
}
.chat-head .avatar {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: rgba(255, 255, 255, .16); display: grid; place-items: center;
}
.chat-head b { font-size: .96rem; font-weight: 800; display: block; }
.chat-head span { font-size: .76rem; color: #9dc3d1; display: flex; align-items: center; gap: 5px; }
.chat-head span::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ade80;
}
.chat-log {
  flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto; max-height: 340px; background: var(--paper-2);
}
.bubble {
  max-width: 88%; padding: 11px 14px; font-size: .92rem;
  white-space: pre-line; line-height: 1.55; border-radius: 14px;
}
.bubble.bot {
  align-self: flex-start; background: var(--paper); border: 1px solid var(--line);
  border-bottom-left-radius: 4px; color: var(--ink);
}
.bubble.me {
  align-self: flex-end; background: var(--brand); color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble.typing { color: var(--ink-3); font-style: italic; }
.chat-suggest {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 11px 16px; border-top: 1px solid var(--line); background: var(--paper);
}
.chat-suggest button {
  font-family: inherit; cursor: pointer; font-size: .84rem; font-weight: 600;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-2);
}
.chat-suggest button:hover { border-color: var(--brand); color: var(--brand-2); background: var(--brand-tint); }
.chat-input {
  display: flex; gap: 8px; padding: 11px 16px 14px;
  border-top: 1px solid var(--line); background: var(--paper);
}
.chat-input input {
  flex: 1; min-width: 0; font-family: inherit; font-size: .95rem;
  border: 1.5px solid var(--line); border-radius: 11px; padding: 11px 14px; background: var(--paper);
}
.chat-input input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.chat-input button { flex: none; }

/* ============ 문의 폼 ============ */
.lead-form { display: grid; gap: 12px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; color: var(--ink-2); }
.field label .opt { font-weight: 500; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 11px; padding: 12px 14px;
  background: var(--paper); min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint);
}
.field textarea { min-height: 96px; resize: vertical; }
.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .87rem; color: var(--ink-2); line-height: 1.5; cursor: pointer;
}
.consent input { flex: none; width: 19px; height: 19px; margin-top: 2px; accent-color: var(--brand); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .92rem; padding: 12px 14px; border-radius: 11px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e7f6ee; color: var(--ok); border: 1px solid #b8e2cb; }
.form-status.err { background: #fbeae7; color: var(--danger); border: 1px solid #f0c4bc; }
.form-note { font-size: .82rem; color: var(--ink-3); }

/* ============ FAQ ============ */
.faq-list { display: grid; gap: 8px; }
details.faq {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
}
details.faq[open] { border-color: var(--brand-tint-2); box-shadow: var(--sh-1); }
details.faq summary {
  cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: .98rem;
  list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .ico {
  width: 18px; height: 18px; color: var(--brand); flex: none; transition: transform .18s;
}
details.faq[open] summary .ico { transform: rotate(45deg); }
details.faq .faq-body { padding: 0 18px 17px; color: var(--ink-2); font-size: .93rem; line-height: 1.6; }

/* ============ 후기 ============ */
.review-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.review-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; box-shadow: var(--sh-1);
}
.review-stars { display: flex; gap: 2px; margin-bottom: 10px; color: var(--amber); }
.review-stars .ico { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.review-card p { font-size: .92rem; color: var(--ink-2); line-height: 1.6; }

/* ============ 하단 CTA ============ */
.final-cta {
  background:
    radial-gradient(700px 380px at 20% 0%, rgba(242, 162, 12, .16), transparent 60%),
    linear-gradient(155deg, var(--brand-3), #0b2230);
  color: #e8f4f8; text-align: center; padding: 50px 0;
}
.final-cta h2 { font-size: clamp(1.4rem, 4.6vw, 2.1rem); color: #fff; margin-bottom: 10px; }
.final-cta p { color: #a9cfdc; margin-bottom: 22px; }
.final-cta .actions {
  display: grid; gap: 10px; grid-template-columns: 1fr; max-width: 480px; margin-inline: auto;
}
@media (min-width: 560px) { .final-cta .actions { grid-template-columns: 1fr 1fr; } }

/* ============ 푸터 ============ */
.site-footer {
  background: #0b1620; color: #7f95a5;
  padding: 32px 0 34px; font-size: .86rem;
}
.footer-top {
  display: grid; gap: 22px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #5f93a8; }
.site-footer h4 {
  color: #c3d4de; font-size: .8rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 11px;
}
.site-footer nav a { display: block; padding: 4px 0; color: #93a9b8; text-decoration: none; }
.site-footer nav a:hover { color: #fff; }
.footer-bottom { padding-top: 18px; display: grid; gap: 6px; font-size: .82rem; }
.footer-legal { color: #64798a; }

/* ============ 모바일 고정 CTA ============ */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -3px 16px rgba(14, 22, 32, .1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 900px) { .mobile-bar { display: none; } }
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: var(--bar-h); text-decoration: none;
  font-size: .76rem; font-weight: 800; color: var(--ink-2);
  border-right: 1px solid var(--line);
}
.mobile-bar a:last-child { border-right: 0; }
.mobile-bar a .ico { width: 21px; height: 21px; }
.mobile-bar a.primary { background: var(--brand); color: #fff; }
.mobile-bar a.accent { background: var(--amber); color: #241900; }
.mobile-bar a.kakao { background: #fee500; color: #191600; }

/* ============ 스크롤 등장 (절제) ============ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .svc-card, .dg-card, .channel { transition: none; }
}

/* ============ 서비스 상세 ============ */
.svc-hero { background: linear-gradient(160deg, #0b2230, var(--brand-3)); color: #e8f4f8; }
.svc-hero-inner { padding: 30px 0 36px; display: grid; gap: 20px; }
@media (min-width: 900px) { .svc-hero-inner { grid-template-columns: 1.15fr .85fr; align-items: center; padding: 48px 0 54px; } }
.crumb { font-size: .84rem; color: #8fb4c3; margin-bottom: 12px; }
/* 손가락으로 누를 수 있는 크기를 확보한다 */
.crumb a {
  color: #8fb4c3; text-decoration: none;
  display: inline-block; padding: 6px 2px; min-height: 32px; line-height: 20px;
}
.crumb a:hover { color: #fff; text-decoration: underline; }
.svc-hero h1 { color: #fff; font-size: clamp(1.6rem, 5.4vw, 2.5rem); margin-bottom: 12px; }
.svc-hero p { color: #b9d8e3; font-size: 1.02rem; margin-bottom: 20px; }
.svc-price-card {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-3);
}
.svc-price-card .label {
  font-size: .76rem; font-weight: 800; letter-spacing: .1em;
  color: var(--amber); text-transform: uppercase;
}
.svc-price-card .amount {
  font-size: clamp(1.3rem, 5vw, 1.8rem); font-weight: 800;
  color: #fff; margin: 6px 0 8px; letter-spacing: -.03em;
}
.svc-price-card .note { font-size: .85rem; color: #9dc3d1; line-height: 1.5; }
.svc-detail-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.svc-detail-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; box-shadow: var(--sh-1);
}
.svc-detail-card .ico { width: 24px; height: 24px; color: var(--brand); margin-bottom: 10px; }
.svc-detail-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.svc-detail-card p { color: var(--ink-3); font-size: .89rem; }

/* ============ 개발용 경고 배너 ============ */
.dev-warning {
  background: #7a2318; color: #ffd9d2; font-size: .86rem;
  padding: 10px 0; text-align: center; font-weight: 600;
}
.dev-warning b { color: #fff; }

/* ============================================================
   다중 페이지 구조에서 새로 쓰는 요소
   ============================================================ */

/* --- 이동 경로 --------------------------------------------------------- */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 0 0 14px; font-size: .88rem; color: var(--ink-3);
}
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs > * + *::before { content: '›'; margin-right: 6px; color: var(--line); }
.crumbs [aria-current] { color: var(--ink-2); font-weight: 600; }

/* --- 분류 필터와 검색 ---------------------------------------------------
   화면이 좁으면 필터가 여러 줄로 흐르게 둔다. 가로 스크롤을 만들지 않는다.
   손가락으로 누르는 것이라 높이는 44px 이상 확보한다. */
.svc-filter {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: space-between; margin: 0 0 22px;
}
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink-2); font-size: .93rem; font-weight: 600; cursor: pointer;
}
.cat-pill:hover { border-color: var(--brand); color: var(--brand); }
.cat-pill.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.cat-pill em {
  font-style: normal; font-size: .8rem; opacity: .75;
  background: rgba(0, 0, 0, .08); border-radius: 999px; padding: 1px 7px;
}
.cat-pill.on em { background: rgba(255, 255, 255, .25); }
.cat-pill .ico { width: 16px; height: 16px; }

.svc-search { flex: 1 1 220px; max-width: 320px; }
.svc-search input {
  width: 100%; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 1rem; font-family: inherit; background: #fff;
}
.svc-search input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

.svc-empty {
  display: flex; align-items: center; gap: 8px;
  padding: 18px; border: 1px dashed var(--line); border-radius: 12px;
  color: var(--ink-3); margin: 0 0 20px;
}

/* --- 분류 묶음 --------------------------------------------------------- */
.cat-block { margin: 0 0 34px; }
.cat-head {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: flex-start; justify-content: space-between; margin: 0 0 14px;
}
.cat-head h3 {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 4px; font-size: 1.24rem; letter-spacing: -.01em;
}
.cat-head h3 .ico { width: 20px; height: 20px; color: var(--brand); }
.cat-head p { margin: 0; color: var(--ink-3); font-size: .95rem; }

/* --- 홈의 전용 페이지 안내 카드 ------------------------------------------ */
.quick-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.quick-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s;
}
.quick-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.quick-card b { font-size: 1.06rem; }
.quick-card p { margin: 0; color: var(--ink-3); font-size: .93rem; line-height: 1.55; }
.quick-icon { color: var(--brand); }
.quick-more {
  margin-top: auto; color: var(--brand); font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 4px;
}

.sec-more { margin-top: 22px; text-align: center; }

/* --- 서비스 상세의 증상 목록 --------------------------------------------- */
.symptom-list {
  display: grid; gap: 10px; list-style: none; padding: 0; margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.symptom-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.symptom-list .ico { flex: 0 0 auto; color: var(--brand); margin-top: 2px; }
.symptom-list b { display: block; }
.symptom-list span { display: block; color: var(--ink-3); font-size: .9rem; margin-top: 3px; }

/* --- 좁은 화면 --------------------------------------------------------- */
@media (max-width: 640px) {
  .svc-filter { flex-direction: column; align-items: stretch; }
  .svc-search { max-width: none; }
  .cat-head { flex-direction: column; }
  .cat-head .btn { align-self: flex-start; }
  /* 이동 경로가 길어져도 가로 스크롤이 생기지 않게 줄바꿈한다 */
  .crumbs { font-size: .82rem; }
}

/* 전용 페이지 제목. h1이지만 홈 히어로만큼 크지 않아야 한다.
   구역 제목(h2)과 같은 크기로 맞춘다. */
.sec-head .page-title {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.15rem);
  line-height: 1.25; letter-spacing: -.02em; margin: 0 0 10px;
}
