/* ==========================================================================
   사이트팩토리 생성 사이트 — 공용 스타일
   방향: 다크 인더스트리얼 + 일렉트릭 블루
   · 페이지 전체 다크 고정 (섹션 중간에 라이트로 뒤집지 않는다)
   · 모양 규칙: 버튼은 알약(pill), 카드·사진은 6px, 입력창은 6px
   · 라이트로 되돌리려면 :root 토큰 블록만 교체하면 된다
   ========================================================================== */

/* 레퍼런스(철거의정석)와 같은 SUIT Variable 을 본문 글꼴로 쓴다. */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
/* 대표 서명용 붓글씨. 서명 한 곳에만 쓴다. */
@import url("https://fonts.googleapis.com/css2?family=Nanum+Brush+Script&display=swap");

:root {
  /* 표면 (밝은 톤). 다크로 되돌리려면 assets/style.dark-backup.css 의 :root 를 가져오면 된다. */
  --bg: #ffffff;
  --panel: #f5f7fb;
  --panel-2: #eef1f7;
  --line: #e4e8f0;
  --line-strong: #ccd3e0;

  /* 글자 */
  --ink: #111726;
  --ink-2: #3f4a5c;
  --muted: #6d7891;

  /* 액센트 */
  --accent: #c62828;
  --accent-2: #8e1c1c;
  --accent-dark: #8e1c1c;
  --accent-soft: rgba(198, 40, 40, .08);
  --accent-line: rgba(198, 40, 40, .26);

  /* 남색 강조 블록 */
  --navy: #4b1818;

  --r: 6px;
  --r-sm: 3px;
  --pill: 999px;

  --wrap: 1240px;
  --gut: 24px;

  --sans: "SUIT Variable", "Pretendard Variable", Pretendard, -apple-system,
    BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px; /* 하단 고정 바 자리 */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.24;
  letter-spacing: -0.03em;
  font-weight: 800;
}
p { margin: 0; }

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ---------- 레이아웃 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gut);
}

.sec { padding-block: 96px; }
.sec--tight { padding-block: 64px; }
.sec--panel { background: var(--panel); }

/* 액센트 밴드 — 페이지에서 가장 색이 강한 구간 */
.sec--ink {
  background:
    radial-gradient(120% 180% at 85% 0%, var(--accent-2) 0%, var(--accent) 42%, var(--accent-dark) 100%);
  color: #fff;
}

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* 라틴 라벨 전용. 한글은 절대 mono 금지(윈도우에서 바탕체 폴백으로 깨짐) */
.label-en {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* 제목 위 한 줄 소개. 레퍼런스처럼 파란 굵은 한글로 쓴다. */
.eyebrow {
  font-size: 16px; font-weight: 700; color: var(--accent);
  letter-spacing: -.02em;
}
.eyebrow b { font-weight: 800; }

.h-xl { font-size: clamp(31px, 4.8vw, 54px); }
.h-lg { font-size: clamp(26px, 3.3vw, 38px); }
.h-md { font-size: clamp(20px, 2.3vw, 26px); }

.lead {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 62ch;
}
/* 글자만 가운데 두면 max-width 때문에 상자가 왼쪽에 남는다 */
.lead--center { text-align: center; margin-inline: auto; }
.muted { color: var(--muted); }
.sm { font-size: 14px; }

/* 형광펜 강조 */
.mark {
  background: var(--accent);
  color: #fff;
  padding: 0 .16em;
  border-radius: var(--r-sm);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hl { color: var(--accent-2); }

/* ---------- 버튼 (알약) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  padding: 15px 30px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
    border-color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 24px rgba(43, 107, 255, .32);
}
.btn--primary:hover { background: var(--accent-dark); box-shadow: 0 8px 30px rgba(43, 107, 255, .45); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

.btn--light { background: #fff; color: #0a0c0f; }
.btn--light:hover { background: #dfe4ec; }

.btn--onink { background: #fff; color: var(--accent-dark); }
.btn--onink:hover { background: #e7edff; }

.btn--onink-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--onink-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 헤더 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-in { height: 72px; display: flex; align-items: center; gap: 28px; }

/* 로고 이미지는 비율을 유지한 채 높이만 맞춘다 (자르지 않는다).
   가로로 긴 워드마크(로고에 이미 상호가 들어간 형태)면 옆의 텍스트 상호를 숨긴다. */
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img {
  width: auto; height: 32px; max-width: 190px;
  object-fit: contain; border-radius: 0;
}
.brand b { font-size: 20px; font-weight: 800; letter-spacing: -0.035em; }
.brand.is-wordmark b { display: none; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.head-tel {
  display: flex; flex-direction: column; line-height: 1.15; flex: none;
  padding-left: 22px; border-left: 1px solid var(--line);
}
.head-tel span { font-size: 11px; color: var(--muted); font-weight: 600; }
.head-tel b { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: var(--r);
  background: transparent; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle i { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle i::before,
.nav-toggle i::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle i::before { top: -6px; }
.nav-toggle i::after { top: 6px; }

/* ---------- 사진 슬롯 ----------
   assets/photos/ 에 파일을 넣으면 자동으로 사진이 뜨고,
   없으면 라벨이 그대로 보인다. 가짜 스톡 사진은 쓰지 않는다. */
.shot {
  margin: 0; position: relative;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot[data-ratio="wide"] { aspect-ratio: 16 / 9; }
.shot[data-ratio="tall"] { aspect-ratio: 3 / 4; }
.shot[data-ratio="square"] { aspect-ratio: 1 / 1; }
.shot[data-ratio="hero"] { aspect-ratio: 5 / 4; }

.shot.is-empty::after {
  content: "사진 자리 " attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; text-align: center;
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: repeating-linear-gradient(135deg,
    transparent 0 14px, rgba(17,23,38,.045) 14px 28px);
}

.shot-cap { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- 히어로 (풀블리드 다크 미디어) ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; background: #0a0c0f; }
.hero-bg img,
.hero-bg video { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.hero-bg video { pointer-events: none; position: absolute; inset: 0; }
.hero-bg.has-video::before { content: none; }
/* 영상이 잘 보이도록 최소한만 덮는다. 글자 가독성은 텍스트 쪽 그림자로 확보. */
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 50% 46%, rgba(6,8,11,.62) 0%, rgba(6,8,11,.22) 60%, transparent 78%),
    linear-gradient(180deg, rgba(10,12,15,.55) 0%, rgba(10,12,15,.10) 34%, rgba(10,12,15,.20) 66%, rgba(10,12,15,.92) 100%);
}
.hero-bg.is-empty {
  background:
    radial-gradient(80% 62% at 50% 38%, rgba(43,107,255,.26) 0%, transparent 62%),
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.022) 22px 44px),
    #0a0c0f;
}
.hero-bg.is-empty::before {
  content: "배경 사진 자리 (assets/photos/hero.jpg)";
  position: absolute; left: 0; right: 0; bottom: 22px;
  text-align: center; font-size: 12px; color: var(--muted);
}

.hero-in {
  position: relative; z-index: 1;
  width: 100%;
  text-align: center;
  padding-block: 116px 104px;
}
.hero h1 {
  font-size: clamp(31px, 5.2vw, 60px);
  letter-spacing: -0.04em;
  line-height: 1.2;
  text-shadow: 0 2px 28px rgba(0,0,0,.85), 0 1px 4px rgba(0,0,0,.6);
}
.hero .lead {
  margin: 22px auto 0; font-size: 19px; color: #eef2f7;
  text-shadow: 0 2px 18px rgba(0,0,0,.85), 0 1px 3px rgba(0,0,0,.7);
}
.hero-tel { text-shadow: 0 2px 20px rgba(0,0,0,.85); }

/* 영상 위에 얹히는 보조 버튼은 배경을 깔아야 읽힌다 */
.hero .btn--ghost {
  background: rgba(10, 12, 15, .55);
  backdrop-filter: blur(6px);
  border-color: rgba(255, 255, 255, .72);
  color: #fff;
}
.hero .btn--ghost:hover {
  background: rgba(10, 12, 15, .78);
  border-color: #fff;
  color: #fff;
}

.hero-tel {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 26px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800; letter-spacing: -0.035em;
}
.hero-tel::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 6px rgba(91, 140, 255, .22);
}
.hero .btn-row { margin-top: 30px; justify-content: center; }

.hero-fade { animation: fadeUp .7s cubic-bezier(.16,1,.3,1) both; }
.hero-fade:nth-child(2) { animation-delay: .08s; }
.hero-fade:nth-child(3) { animation-delay: .16s; }
.hero-fade:nth-child(4) { animation-delay: .24s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- 하위 페이지 헤드 ---------- */
.pagehead {
  position: relative;
  padding-block: 76px 60px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(78% 140% at 10% 0%, rgba(43,95,227,.10) 0%, transparent 62%),
    var(--bg);
  overflow: hidden;
}
.pagehead::after {
  content: "";
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 96px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* ---------- 약속 스트립 ---------- */
.promise {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.promise-in {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.promise-in > div {
  padding: 30px 26px;
  border-left: 1px solid var(--line);
}
.promise-in > div:first-child { border-left: 0; padding-left: 0; }
.promise b { display: block; font-size: 19px; font-weight: 800; }
.promise b em { font-style: normal; color: var(--accent-2); }
.promise span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }

/* ---------- 대표 사업 (가로 전면) ---------- */
.svc-lead {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: center;
  margin-top: 40px;
  padding: 34px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r);
  background:
    radial-gradient(90% 150% at 100% 0%, rgba(43,107,255,.14) 0%, transparent 58%),
    var(--panel);
}
.svc-lead .shot { border-color: var(--line-strong); }

/* 구조물 철거 종류 목록 */
.svc-kinds { margin: 0; padding: 0; list-style: none; }
.svc-kinds li { padding: 15px 0; border-top: 1px solid var(--line); }
.svc-kinds li:first-child { border-top: 0; padding-top: 0; }
.svc-kinds b { display: block; font-size: 18px; font-weight: 800; }
.svc-kinds span { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; }

/* 현장 사진 4장 : 넓은 1장 + 정사각 3장 */
.shot-grid4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.shot-grid4 > :first-child { grid-column: 1 / -1; }

/* 관할 지역 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips span, .chips a {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  background: #fff;
}

/* 다른 지역 링크 */
.region-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.region-links a {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  transition: border-color .15s ease, color .15s ease;
}
.region-links a:hover { border-color: var(--accent); color: var(--accent-2); }

/* 같은 크기 4장 (2 x 2) */
.shot-grid-even {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

/* ---------- 홈 히어로 (좌 카피 / 우 영상) ---------- */
.hero2 {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 88% 8%, rgba(43,95,227,.10) 0%, transparent 60%),
    radial-gradient(50% 60% at 4% 96%, rgba(20,39,92,.07) 0%, transparent 62%),
    linear-gradient(180deg, #f7f9fd 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero2-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding-block: 76px 84px; }
/* 히어로 배지: 가로로 길고 크게 */
.hero2-mark {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent) 0%, #1b3fb5 100%);
  color: #fff; font-size: 23px; font-weight: 800; letter-spacing: -.02em;
  box-shadow: 0 10px 26px rgba(43, 95, 227, .32);
}
.hero2-mark b { font-weight: 800; color: #ffe66b; }
.hero2-copy h1 { margin-top: 20px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.24; }
.hero2-copy .lead { margin-top: 18px; }
.hero2-copy .btn-row { margin-top: 28px; }
/* 배경 사진: 아주 옅게 깔고 위에서 흰색으로 덮는다 */
.hero2-bgimg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .16;
  filter: blur(2px) saturate(.7);
  z-index: 0;
}
.hero2::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.82) 62%, #fff 100%);
}
.hero2-in { position: relative; z-index: 1; }

.hero2-media { margin: 0; }
.hero2-media .hero-bg {
  position: relative; inset: auto;
  aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 22px 50px rgba(20, 39, 92, .16);
}
.hero2-media .hero-bg::after { content: none; }
.hero2-media .hero-bg img,
.hero2-media .hero-bg video { opacity: 1; }
.hero2-media figcaption {
  margin-top: 12px; padding-left: 12px;
  border-left: 3px solid var(--accent);
  font-size: 14.5px; font-weight: 700; color: var(--accent-2);
}

/* ---------- 숫자 스트립 ---------- */
.stats {
  background:
    radial-gradient(70% 120% at 12% 0%, rgba(43,95,227,.55) 0%, transparent 60%),
    linear-gradient(120deg, #14275c 0%, #331010 100%);
  color: #fff;
}
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-in > div { padding: 44px 20px; text-align: center; border-left: 1px solid rgba(255,255,255,.14); }
.stats-in > div:first-child { border-left: 0; }
/* 흰 타일 위에 그림을 얹는다. 남색 띠 위라 배경을 빼면 그림이 묻힌다. */
.si { display: block; margin: 0 auto 14px; }
.si img {
  display: block; width: 72px; height: 72px; margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .3);
}
.stats b { display: block; font-size: 52px; font-weight: 800; color: #fff; letter-spacing: -.04em; line-height: 1.05; }
.stats b em { font-style: normal; font-size: 22px; margin-left: 3px; color: #9dbcff; }
.stats span { display: block; margin-top: 10px; font-size: 15px; font-weight: 600; color: #b9c8e6; }

/* ---------- 작업 종류 아이콘 행 ---------- */
.cats-in { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cats-in a {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 22px 10px 18px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line);
  font-size: 15.5px; font-weight: 700; color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cats-in a::after {
  content: "›"; font-size: 17px; font-weight: 800; color: var(--accent);
  opacity: 0; transform: translateY(-4px); transition: opacity .18s ease, transform .18s ease;
}
.cats-in a:hover { transform: translateY(-5px); border-color: var(--accent-line); box-shadow: 0 16px 32px rgba(20,39,92,.12); }
.cats-in a:hover::after { opacity: 1; transform: none; }
.ci {
  width: 62px; height: 62px; border-radius: 18px;
  background: linear-gradient(160deg, #3f74ff 0%, #2b5fe3 60%, #1d47c4 100%);
  position: relative; display: block;
  box-shadow: 0 8px 18px rgba(43,95,227,.28);
}
.ci::before, .ci::after { content: ""; position: absolute; background: #fff; }
.ci-store::before { left: 18px; top: 20px; width: 26px; height: 4px; border-radius: 2px; }
.ci-store::after  { left: 20px; top: 28px; width: 22px; height: 15px; border-radius: 2px; opacity: .55; }
.ci-office::before { left: 19px; top: 19px; width: 10px; height: 24px; border-radius: 2px; }
.ci-office::after  { left: 33px; top: 24px; width: 10px; height: 19px; border-radius: 2px; opacity: .55; }
.ci-build::before { left: 18px; top: 18px; width: 12px; height: 26px; border-radius: 2px; }
.ci-build::after  { left: 32px; top: 26px; width: 12px; height: 18px; border-radius: 2px; opacity: .55; }
.ci-cut::before { left: 16px; top: 29px; width: 30px; height: 4px; border-radius: 2px; transform: rotate(-18deg); }
.ci-cut::after  { left: 16px; top: 29px; width: 30px; height: 4px; border-radius: 2px; transform: rotate(18deg); opacity: .55; }
.ci-won::before { left: 20px; top: 22px; width: 22px; height: 4px; border-radius: 2px; }
.ci-won::after  { left: 20px; top: 31px; width: 22px; height: 4px; border-radius: 2px; opacity: .55; }
.ci-fast::before { left: 18px; top: 28px; width: 26px; height: 5px; border-radius: 3px; }
.ci-fast::after  { left: 26px; top: 19px; width: 5px; height: 24px; border-radius: 3px; opacity: .55; }

/* ---------- 한 장씩 넘어가는 카드 ---------- */
.steps-sec { background: var(--bg); }
/* 끊어 넘기지 않고 가로로 천천히 흐른다. 카드가 3장 + 복제 3장이라
   절반 + 간격 절반만큼 밀면 이음매 없이 무한 반복된다. */
/* 넓은 화면에서는 첫 카드가 제목과 같은 선에서 시작하도록 맞춘다 */
.step-vp {
  overflow: hidden; margin-top: 34px;
  padding-inline: max(var(--gut), calc((100vw - 1240px) / 2));
}
.step-track {
  display: flex; gap: 20px; width: max-content;
  animation: step-slide 44s linear infinite;
}
.step-vp:hover .step-track { animation-play-state: paused; }
@keyframes step-slide { to { transform: translateX(calc(-50% - 10px)); } }
.step-card {
  flex: 0 0 calc((min(100vw, 1240px) - var(--gut) * 2 - 40px) / 3);
  box-sizing: border-box;
  border: 1px solid transparent; border-radius: 24px;
  padding: 40px 28px 34px; text-align: center;
}
/* 카드마다 색을 달리해 리듬을 준다 */
.step-card.is-a { background: #eef1f7; border-color: #e2e7f0; }
.step-card.is-b { background: var(--navy); }
.step-card.is-b > b { color: #fff; }
.step-card.is-b p { color: #b9c8e6; }
.step-card.is-c { background: #e8f0ff; border-color: #d6e3ff; }
.step-card > b { display: block; font-size: 23px; font-weight: 800; letter-spacing: -.03em; }
.step-ico { display: block; margin: 26px auto 24px; }
.step-ico img {
  width: 104px; height: 104px; display: block; margin: 0 auto;
  filter: drop-shadow(0 12px 20px rgba(20, 39, 92, .18));
}
/* 남색 카드 위에서는 어두운 그림자가 얼룩처럼 보여 푸른 빛으로 바꾼다 */
.step-card.is-b .step-ico img { filter: drop-shadow(0 12px 22px rgba(99, 102, 241, .45)); }
.step-card p { font-size: 15.5px; color: var(--muted); line-height: 1.7; }

.step-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.step-dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: var(--line-strong); cursor: pointer;
  transition: width .25s ease, background-color .25s ease;
}
.step-dot.is-on { width: 26px; border-radius: 99px; background: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .step-track { animation: none; }
  .step-vp { overflow-x: auto; }
}

/* ---------- 고객 문제 3카드 ---------- */
.probs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.prob {
  position: relative;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  padding: 40px 26px 30px; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.prob { display: flex; flex-direction: column; }
.prob-no {
  position: absolute; left: 50%; top: -19px; transform: translateX(-50%);
  min-width: 46px; height: 38px; padding: 0 12px; border-radius: var(--pill);
  background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 16px; font-weight: 800; line-height: 38px;
  letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(43,95,227,.34);
}
/* 카드마다 마지막 한 줄로 답을 못박는다 */
.prob-key {
  display: block; margin-top: auto; padding-top: 20px;
  font-size: 15.5px; font-weight: 800; color: var(--accent);
}
.prob-key::before {
  content: ""; display: block; width: 34px; height: 2px; margin: 0 auto 14px;
  background: var(--accent-line);
}
.prob:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: 0 16px 34px rgba(20,39,92,.10); }
.prob b { display: block; font-size: 21px; font-weight: 800; line-height: 1.4; }
.prob p { margin-top: 14px; font-size: 15px; color: var(--muted); line-height: 1.7; }

/* ---------- 남색 책임 섹션 ---------- */
.navy { background: var(--navy); color: #fff; padding-block: 90px; }
.navy h2 { color: #fff; }
.navy-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.navy-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 30px 26px; }
.navy-tag {
  display: inline-block; padding: 5px 12px; border-radius: var(--pill);
  background: rgba(255,255,255,.14); font-size: 12.5px; font-weight: 700; color: #d7e2ff;
}
.navy-card b { display: block; margin-top: 16px; font-size: 23px; font-weight: 800; line-height: 1.35; }
.navy-card .hl2 { color: #8fb2ff; }
.navy-card p { margin-top: 14px; font-size: 15px; color: #c2cfe8; line-height: 1.7; }
/* 남색 위에서는 흰 버튼에 남색 글자를 쓴다 */
.navy .btn--onink { background: #fff; color: var(--navy); }
.navy .btn--onink:hover { background: #dde5f7; color: var(--navy); }

/* ---------- 우측 고정 상담 패널 ---------- */
.side {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 35; width: 186px; padding: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(20,39,92,.14);
  display: flex; flex-direction: column; gap: 8px;
}
.side > b { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.side a {
  display: block; text-align: center; padding: 11px 8px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  font-size: 14px; font-weight: 700; color: var(--ink-2);
}
.side a:hover { border-color: var(--accent); color: var(--accent-2); }
.side .side-main { background: var(--accent); border-color: var(--accent); color: #fff; }
.side .side-main:hover { background: var(--accent-dark); color: #fff; }
.side .side-tel { border: 0; font-size: 21px; font-weight: 800; color: var(--accent); padding: 6px 0 0; }
.side .side-note { text-align: center; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---------- 모바일 플로팅 상담 버튼 ---------- */
.fab {
  display: none;
  position: fixed; right: 12px; bottom: 84px; z-index: 36;
  flex-direction: column; gap: 8px;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fab a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; width: 54px; height: 54px; border-radius: 16px;
  background: rgba(20, 39, 92, .9); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: -.03em;
  box-shadow: 0 6px 16px rgba(20, 39, 92, .26);
  backdrop-filter: blur(6px);
}
.fab a:first-child { background: var(--accent); box-shadow: 0 8px 20px rgba(43, 95, 227, .38); }
.fab a:active { transform: translateY(1px); }
.fab-i { display: block; width: 20px; height: 20px; position: relative; }
.fab-i::before, .fab-i::after { content: ""; position: absolute; background: #fff; }
.fab-tel::before {
  left: 3px; top: 2px; width: 16px; height: 18px; border-radius: 5px;
  clip-path: polygon(0 0,45% 0,55% 30%,38% 42%,62% 74%,80% 60%,100% 90%,100% 100%,60% 100%,0 45%);
}
.fab-tel::after { content: none; }
.fab-work::before { left: 1px; top: 5px; width: 9px; height: 13px; border-radius: 2px; }
.fab-work::after  { left: 12px; top: 9px; width: 9px; height: 9px; border-radius: 2px; opacity: .75; }
.fab-won::before { left: 2px; top: 6px; width: 18px; height: 3px; border-radius: 2px; }
.fab-won::after  { left: 2px; top: 13px; width: 18px; height: 3px; border-radius: 2px; opacity: .75; }

/* ---------- 첫 방문 안내 팝업 ---------- */
.pop { position: fixed; inset: 0; z-index: 60; background: rgba(12,20,40,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
/* display:flex 가 hidden 속성을 덮어써서 닫아도 안 사라진다. 그래서 따로 막는다. */
.pop[hidden] { display: none; }
.pop-box { width: 100%; max-width: 380px; background: #fff; border-radius: 18px; padding: 30px 26px 0; text-align: center; overflow: hidden; }
.pop-box { position: relative; }
.pop-x {
  position: absolute; right: 14px; top: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--panel); border: 0; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--muted);
}
.pop-x:hover { background: var(--panel-2); color: var(--ink); }
.pop-ico {
  display: flex; align-items: center; justify-content: center;
  width: 66px; height: 66px; margin: 6px auto 16px;
  border-radius: 50%; background: #e8402f; color: #fff;
  font-size: 36px; font-weight: 800; line-height: 1;
  box-shadow: 0 10px 24px rgba(232, 64, 47, .3);
}
.pop-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.pop-box > b { display: block; margin-top: 10px; font-size: 22px; font-weight: 800; }
.pop-box p { margin-top: 14px; font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.pop-box .pop-small { margin-top: 10px; font-size: 13px; color: var(--muted); }
.pop-box .btn { width: 100%; margin: 20px 0; }
.pop-foot { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin: 0 -26px; }
.pop-foot button { padding: 15px 8px; background: none; border: 0; cursor: pointer; font-size: 14.5px; color: var(--muted); }
.pop-foot button + button { border-left: 1px solid var(--line); }
.pop-foot button:hover { color: var(--ink); }

/* ---------- 홈 대표 소개 (사진 반 / 글 반) ---------- */
.intro { border-bottom: 1px solid var(--line); }
.intro-in {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* 사진 반, 글 반 */
  gap: 56px;
  align-items: center;
}
.intro-photo { margin: 0; }

/* 사진 아래 대표 서명 */
.sign { margin-top: 20px; }
.sign-role {
  display: block;
  font-size: 15px; font-weight: 700; color: var(--ink-2);
  letter-spacing: -0.01em;
}
.sign-name {
  display: block; margin-top: 2px;
  font-family: "Nanum Brush Script", "SUIT Variable", cursive;
  font-size: 52px; line-height: 1.1; color: var(--ink);
  letter-spacing: .02em;
}
.intro-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--line);
}

/* 옆에서 날아 들어오는 등장 */
.rv.fly { transform: translateX(72px) scale(.98); }
.rv.fly.is-in {
  transform: none;
  transition: opacity 1s ease, transform 1.15s cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 평수별 비용 예시 카드 ---------- */
.cases-mq { --gap: 18px; }
.cases-mq .mq-track { gap: var(--gap); animation-duration: 200s; }
/* 1240px 안에 4장이 딱 들어가는 폭 */
.cases-mq .case-card { flex: 0 0 calc((min(100vw, 1240px) - var(--gut) * 2 - var(--gap) * 3) / 4); }
.case-card {
  display: flex; flex-direction: column;
  flex: 0 0 288px;
  min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.case-card:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: 0 16px 34px rgba(20,39,92,.12); }
.case-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; background: var(--panel-2); }
.case-photo img { width: 100%; height: 100%; object-fit: cover; }
.case-py {
  position: absolute; right: 12px; bottom: -14px;
  padding: 7px 16px; border-radius: var(--pill);
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(20,39,92,.28);
}
.case-body { padding: 24px 16px 14px; }
.case-body > b { display: block; font-size: 16px; font-weight: 800; }
.case-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  margin-top: 12px; font-size: 14px; color: var(--muted);
}
.case-row > span { white-space: nowrap; }
.case-row em { white-space: nowrap; }
.case-row em { font-style: normal; font-size: 16px; font-weight: 700; color: var(--ink-2); }
.case-row.is-sub em { color: var(--accent); }
.case-foot {
  margin-top: auto; padding: 12px 16px; text-align: center;
  background: var(--accent); color: #fff; font-size: 14.5px; font-weight: 800;
}

/* ---------- 사업 영역 : 고정 격자 ---------- */
.svc-grid3 > .mq-card { flex: none; }
.svc-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }

/* ---------- 사업 영역 카드(격자·캐러셀 공용) ---------- */
.mq { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
      mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.mq-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: mq-slide 80s linear infinite;
}
.mq:hover .mq-track { animation-play-state: paused; }

@keyframes mq-slide {
  to { transform: translateX(-50%); }
}

/* 2행짜리 카드 흐름용. 간격(12px)의 절반을 더 밀어야 복제본과 정확히 맞물린다. */
@keyframes mq-slide-2row {
  to { transform: translateX(calc(-50% - 6px)); }
}

.mq-card {
  display: block;
  flex: 0 0 330px;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.mq-card:hover { border-color: var(--accent-line); transform: translateY(-4px); box-shadow: 0 16px 34px rgba(20,39,92,.10); }
.mq-card .shot { border-radius: 10px; }
.mq-card b { display: block; margin-top: 18px; font-size: 20px; font-weight: 800; }
.mq-card p { margin-top: 10px; font-size: 15px; color: var(--muted); line-height: 1.65; }

/* 카드 색은 한 가지로 통일한다. 색을 번갈아 주면 산만해 보인다. */

@media (prefers-reduced-motion: reduce) {
  .mq { overflow-x: auto; }
  .mq-track { animation: none; }
}

/* ---------- 사업 영역 그리드 ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 36px; }
.svc h3 { font-size: 22px; margin-top: 18px; }
.svc p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.svc .tag {
  display: inline-block; margin-top: 12px;
  font-size: 13.5px; font-weight: 700; color: var(--accent-2);
}
.svc .tag:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 원칙(번호 행) ---------- */
.principles { border-top: 1px solid var(--line); }
.principle {
  display: grid; grid-template-columns: 92px 1fr 1.35fr; gap: 28px;
  align-items: start; padding-block: 36px;
  border-bottom: 1px solid var(--line);
  transition: background-color .2s ease;
}
.principle:hover { background: rgba(43,107,255,.05); }
.principle .num {
  font-family: var(--mono); font-size: 22px; font-weight: 600;
  color: var(--accent); padding-top: 2px; letter-spacing: -0.02em;
}
.principle h3 { font-size: 24px; }
.principle p { color: var(--ink-2); font-size: 16px; }

/* ---------- 사례 ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.work-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px;
  font-size: 14px; color: var(--muted);
}
.work-meta b { color: var(--accent-2); font-weight: 700; }

.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ba-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  color: var(--accent-2); margin-bottom: 6px; display: block;
}

/* ---------- 스플릿 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--narrow { grid-template-columns: 1fr 1.15fr; }

.steps { counter-reset: st; margin: 0; padding: 0; list-style: none; }
.steps li {
  counter-increment: st; position: relative;
  padding: 18px 0 18px 50px;
  border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(st, decimal-leading-zero);
  position: absolute; left: 0; top: 19px;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  color: var(--accent-2);
}
.steps b { display: block; font-size: 17px; }
.steps span { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }

/* ---------- CTA 밴드 ---------- */
.band-in {
  display: grid; grid-template-columns: 1.2fr auto; gap: 36px;
  align-items: center; padding-block: 70px;
}
.sec--ink .lead { color: rgba(255,255,255,.86); }
.sec--ink .label-en { color: rgba(255,255,255,.72); }

/* ---------- 표 ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl th, .tbl td { text-align: left; padding: 15px 12px; vertical-align: top; }
.tbl th { width: 168px; color: var(--muted); font-weight: 700; font-size: 15px; }
.tbl td { color: var(--ink-2); }
.tbl tr + tr { border-top: 1px solid var(--line); }

/* ---------- 폼 ---------- */
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field > label { font-size: 15px; font-weight: 700; }
.field .help { font-size: 13.5px; color: var(--muted); }
.field .err { font-size: 13.5px; color: #b42318; font-weight: 600; display: none; }
.field.is-bad .err { display: block; }
.field.is-bad input,
.field.is-bad textarea,
.field.is-bad select { border-color: #b42318; }

input[type="text"], input[type="tel"], input[type="number"], textarea, select {
  width: 100%;
  padding: 14px 15px;
  font: inherit; font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
input::placeholder, textarea::placeholder { color: #97a1b4; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { min-height: 130px; resize: vertical; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  font-size: 15.5px; font-weight: 600;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.choice input:hover + span { border-color: var(--accent-2); }
.choice input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-2);
}
.choice input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.agree input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.agree a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

.form-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.form-status {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--r);
  font-size: 15px; font-weight: 600; display: none;
}
.form-status.ok { display: block; background: var(--accent-soft); color: var(--accent-2); border: 1px solid var(--accent-line); }
.form-status.bad { display: block; background: #fdecec; color: #b42318; border: 1px solid #f3c4c4; }

/* ---------- 견적 계산기 ---------- */
.calc {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  overflow: hidden;
}
.calc-head {
  padding: 20px 26px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--panel-2);
}
.calc-body { padding: 28px 26px 30px; }
.calc-step { display: none; }
.calc-step.is-on { display: block; }
.calc-q { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.calc-sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.calc-choices { display: grid; gap: 10px; margin-top: 22px; }
.calc-opt {
  width: 100%; text-align: left;
  padding: 18px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  font-size: 17px; font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .12s ease;
}
.calc-opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.calc-opt:active { transform: translateY(1px); }
.calc-opt small { display: block; font-weight: 500; font-size: 14px; color: var(--muted); margin-top: 3px; }

.calc-progress {
  height: 4px; width: 170px;
  background: var(--line); border-radius: var(--pill); overflow: hidden;
}
.calc-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .3s ease;
}

.result-box { border: 1px solid var(--accent-line); border-radius: var(--r); overflow: hidden; }
.result-top {
  padding: 26px;
  background: radial-gradient(130% 190% at 88% 0%, var(--accent-2) 0%, var(--accent) 44%, var(--accent-dark) 100%);
  color: #fff;
}
.result-top .amount {
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 800; letter-spacing: -0.04em; margin-top: 6px;
}
.result-rows { padding: 8px 26px 20px; background: var(--panel); }
.result-rows div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; font-size: 16px; color: var(--ink-2);
}
.result-rows div + div { border-top: 1px solid var(--line); }
.result-rows b { font-weight: 700; white-space: nowrap; color: var(--ink); }

.calc-back {
  background: none; border: 0; padding: 0;
  color: var(--muted); font-size: 14.5px; font-weight: 600;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.calc-back:hover { color: var(--accent-2); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 22px 40px 22px 0;
  font-size: 17.5px; font-weight: 700;
  cursor: pointer; list-style: none; position: relative;
  transition: color .15s ease;
}
.faq summary:hover { color: var(--accent-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 32px;
  width: 10px; height: 10px;
  border-right: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary { color: var(--accent-2); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 36px; }
.faq .a { padding: 0 40px 24px 0; color: var(--ink-2); font-size: 16px; }

/* ---------- 푸터 ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding-block: 58px 40px;
  font-size: 15px;
}
.foot-top {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px;
  padding-bottom: 34px; border-bottom: 1px solid var(--line);
}
/* 푸터 머리글: 영문 표기 대신 로고를 쓴다 */
.foot-logo { display: block; width: auto; height: 34px; margin-bottom: 14px; }

.foot-tel {
  font-size: 32px; font-weight: 800; letter-spacing: -0.04em;
  margin-top: 10px; display: block;
}
.foot-tel:hover { color: var(--accent-2); }
.foot-links { display: grid; gap: 10px; align-content: start; }
.foot-links b { font-size: 13px; color: var(--accent-2); font-weight: 700; letter-spacing: .04em; }
.foot-links a { color: var(--ink-2); }
.foot-links a:hover { color: var(--accent-2); }
.foot-biz { padding-top: 24px; font-size: 13.5px; color: var(--muted); line-height: 1.9; }

/* ---------- 하단 고정 CTA 바 ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  height: 60px; padding-inline: var(--gut);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid var(--line);
}
.callbar .cb-msg { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.callbar .cb-msg em { font-style: normal; color: var(--accent-2); }
.callbar a {
  display: inline-flex; align-items: center;
  padding: 10px 22px; border-radius: var(--pill);
  font-size: 15px; font-weight: 700;
  border: 1px solid var(--line-strong);
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.callbar a:hover { border-color: var(--accent-2); color: var(--accent-2); }
.callbar a.cb-main {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 4px 18px rgba(43,107,255,.35);
}
.callbar a.cb-main:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* ---------- 스크롤 리빌 ---------- */
.rv { opacity: 0; transform: translateY(16px); }
.rv.is-in {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.16,1,.3,1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .rv.is-in { opacity: 1; transform: none; transition: none; }
  .hero-fade { animation: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- 지역 페이지 ---------- */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent-2); }
.crumb > * + *::before { content: "›"; margin-right: 8px; color: var(--line-strong); }
.crumb span:last-child { color: var(--ink-2); font-weight: 600; }

.badge {
  display: inline-block; padding: 6px 14px;
  border: 1px solid var(--accent-line); border-radius: var(--pill);
  background: var(--accent-soft); color: var(--accent-2);
  font-size: 13px; font-weight: 700;
}

.callout {
  border: 1px solid var(--accent-line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(43,107,255,.10), rgba(43,107,255,.03));
  padding: 24px 26px;
}
.callout > b { display: block; font-size: 18px; font-weight: 800; color: var(--accent-2); }
.callout p b { color: var(--ink); font-weight: 800; }
.callout p { margin-top: 10px; font-size: 16px; color: var(--ink-2); line-height: 1.75; }
.callout a { color: var(--accent-2); }

.sido-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.sido-card {
  display: block; padding: 28px 26px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel);
  transition: border-color .16s ease, background-color .16s ease, transform .12s ease;
}
.sido-card:hover { border-color: var(--accent); background: var(--panel-2); transform: translateY(-2px); }
.sido-card b { display: block; font-size: 22px; font-weight: 800; }
.sido-card span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--muted); }

/* 키워드 카드 5장 */
.kw-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 24px; }
.kw-cards figure { margin: 0; min-width: 0; }
.kw-cards img { width: 100%; height: auto; border-radius: 14px; }
.kw-cards figcaption {
  margin-top: 12px; text-align: center;
  font-size: 15px; font-weight: 700; color: var(--ink-2);
}

/* 지역 키워드 */
.kw { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.kw span {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 14px; color: var(--muted);
}

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  .nav { gap: 20px; }
  .nav a { font-size: 15px; }
  .head-tel b { font-size: 18px; }
}

@media (max-width: 900px) {
  body { font-size: 16.5px; padding-bottom: 66px; }
  .sec { padding-block: 66px; }
  .sec--tight { padding-block: 48px; }

  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 18px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent-2); }
  .head-tel { display: none; }

  .hero { min-height: 0; }
  .hero-in { padding-block: 76px 72px; }
  .hero2-in { grid-template-columns: 1fr; gap: 26px; padding-block: 40px 48px; }
  /* 히어로 버튼은 한 줄에 두 개 */
  .hero2-copy .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero2-copy .btn-row .btn { width: auto; padding: 14px 8px; font-size: 15px; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stats-in > div:nth-child(3) { border-left: 0; }
  .stats-in > div { border-top: 1px solid var(--line); padding: 24px 12px; }
  .stats-in > div:nth-child(-n+2) { border-top: 0; }
  .stats b { font-size: 36px; }
  .stats-in > div { padding: 28px 12px; }
  .si { margin-bottom: 8px; }
  .si img { width: 54px; height: 54px; border-radius: 14px; }
  .hero2-mark { font-size: 18px; padding: 10px 20px; }
  .eyebrow { font-size: 14px; }
  .probs { grid-template-columns: 1fr; }
  .step-card { flex: 0 0 calc(100vw - var(--gut) * 2 - 34px); padding: 32px 22px 28px; border-radius: 18px; }
  .step-card > b { font-size: 20px; }
  .step-ico { margin: 20px auto 18px; }
  .step-ico img { width: 84px; height: 84px; }
  .step-card p { font-size: 14.5px; }
  .navy { padding-block: 60px; }
  .navy-cards { grid-template-columns: 1fr; }
  .side { display: none; }

  /* 모바일 플로팅 상담 버튼 */
  .fab { display: flex; }
  .promise-in { grid-template-columns: 1fr; }
  .promise-in > div { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0; }
  .promise-in > div:first-child { border-top: 0; }

  .svc-lead { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .shot-grid4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .shot-grid4 > :first-child { grid-column: 1 / -1; }
  .shot-grid-even { grid-template-columns: 1fr; gap: 12px; }
  .sido-cards { grid-template-columns: 1fr; gap: 12px; }
  /* 좁은 화면에서는 5장을 한 줄에 두고 옆으로 밀어서 본다 */
  .kw-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(var(--gut) * -1);
    padding-inline: var(--gut);
  }
  .kw-cards::-webkit-scrollbar { display: none; }
  .kw-cards figure { flex: 0 0 46%; scroll-snap-align: start; }
  .kw-cards figcaption { font-size: 13.5px; }
  .sido-card { padding: 20px; }
  .callout { padding: 18px 20px; }
  /* 좁은 화면에서는 사진을 가로로 꽉 채우고, 서명은 오른쪽, 글은 그 아래에 둔다. */
  .intro-in { grid-template-columns: 1fr; gap: 26px; }
  .intro-photo img { aspect-ratio: 4 / 3; }
  .sign { margin-top: 14px; text-align: right; }
  .sign-role { font-size: 13px; }
  .sign-name { font-size: 40px; }
  .rv.fly { transform: translateY(24px); }
  .rv.fly.is-in { transition: opacity 1.1s ease, transform 1.3s cubic-bezier(.16, 1, .3, 1); }
  .rv.is-in { transition: opacity .8s ease, transform .9s cubic-bezier(.16, 1, .3, 1); }
  .mq { -webkit-mask-image: none; mask-image: none; }
  .svc-grid3 { grid-template-columns: 1fr; gap: 16px; }
  .mq-card { flex: 0 0 250px; padding: 14px; border-radius: 14px; }
  /* 좁은 화면: 2행 격자로 쌓아 한 화면에 4장, 옆으로 천천히 흐른다.
     카드가 12장 + 복제 12장이라 절반만큼 밀면 이음매 없이 무한 반복된다. */
  .cases-mq { overflow: hidden; padding-inline: var(--gut); }
  .cases-mq .mq-track {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: calc((100vw - var(--gut) * 2 - 12px) / 2);
    gap: 12px;
    width: max-content;
    animation: mq-slide-2row 78s linear infinite;
  }
  .cases-mq .case-card { flex: none; width: auto; }
  .case-body { padding: 22px 12px 12px; }
  .case-body > b { font-size: 14.5px; }
  .case-row { font-size: 11.5px; margin-top: 9px; gap: 4px; }
  .case-row > span { letter-spacing: -.04em; }
  .case-row em { font-size: 14px; }
  .case-py { font-size: 12.5px; padding: 6px 12px; right: 8px; }
  .case-foot { font-size: 13.5px; padding: 10px 8px; }
  .case-body { padding: 24px 14px 14px; }
  .case-body > b { font-size: 15.5px; }
  .case-row { font-size: 13px; }
  .case-row em { font-size: 15px; }
  .case-foot { font-size: 14px; padding: 11px 14px; }
  .mq-card b { font-size: 17px; margin-top: 14px; }
  .mq-card p { font-size: 13.5px; }
  .mq-track { gap: 14px; animation-duration: 66s; }
  .svc-grid { grid-template-columns: 1fr; gap: 34px; }
  .principle { grid-template-columns: 1fr; gap: 10px; padding-block: 28px; }
  .principle .num { padding-top: 0; }
  .works-grid { grid-template-columns: 1fr; }
  .split, .split--narrow { grid-template-columns: 1fr; gap: 34px; }
  .band-in { grid-template-columns: 1fr; gap: 26px; padding-block: 50px; }
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
  .tbl th { width: 118px; font-size: 14px; }
  .calc-body { padding: 22px 20px 24px; }
  .calc-head { padding: 16px 20px; }

  .callbar { gap: 10px; padding-inline: 14px; }
  .callbar .cb-msg { display: none; }
  .callbar a { flex: 1; justify-content: center; padding: 11px 12px; }
}

@media (max-width: 520px) {
  :root { --gut: 18px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .callbar a { width: auto; }
  .ba-pair { grid-template-columns: 1fr; }
  .calc-progress { width: 110px; }
}

@media print {
  .site-head, .callbar, .btn-row { display: none; }
}


/* ==========================================================================
   사이트팩토리 정제 레이어 (redesign - preserve)
   뼈대·마크업은 그대로 두고 타이포·여백·색·그림자·촉감만 다듬는다.
   색은 전부 --accent / --accent-rgb 토큰. 빌더가 업체 색으로 바꾼다.
   빌드 때 style.css 뒤에 붙는다. 되돌리려면 builder 에서 이 파일 연결만 빼면 된다.
   ========================================================================== */
:root {
  --accent-rgb: 198, 40, 40;
  --sans: "Pretendard Variable", Pretendard, "SUIT Variable", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Malgun Gothic", sans-serif;
  --r: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 39, 92, .05), 0 6px 18px -8px rgba(20, 39, 92, .10);
  --shadow-md: 0 2px 4px rgba(20, 39, 92, .05), 0 18px 40px -16px rgba(20, 39, 92, .18);
  --shadow-accent: 0 8px 24px -8px rgba(var(--accent-rgb), .45);
}
::selection { background: rgba(var(--accent-rgb), .18); }
body { font-size: 16.5px; letter-spacing: -.005em; -webkit-font-smoothing: antialiased; }

/* 타이포: 헤드라인은 촘촘하게, 본문은 여유 있게 */
h1, h2, h3, .h-xl, .h-lg, .h-md { letter-spacing: -.035em; line-height: 1.18; font-weight: 800; }
.h-xl { font-size: clamp(32px, 4.6vw, 56px); }
.h-lg { font-size: clamp(26px, 3.2vw, 40px); }
.lead { font-size: 17.5px; line-height: 1.8; color: var(--ink-2); }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--accent-2); letter-spacing: 0; }
.hl { color: var(--accent); }

/* 리듬 */
.sec { padding-block: 108px; }
.sec--tight { padding-block: 72px; }
@media (max-width: 900px) { .sec { padding-block: 72px; } .sec--tight { padding-block: 52px; } }

/* 버튼: 눌리는 촉감, 액센트 틴트 그림자 */
.btn { padding: 15px 28px; font-size: 15.5px; font-weight: 700; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { background: linear-gradient(180deg, rgb(var(--accent-rgb)) 0%, var(--accent-dark) 100%); box-shadow: var(--shadow-accent); }
.btn--primary:hover { background: var(--accent-dark); box-shadow: 0 12px 28px -8px rgba(var(--accent-rgb), .55); }
.btn--ghost { background: #fff; border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--accent-soft); border-color: rgba(var(--accent-rgb), .45); color: var(--accent-2); }
.btn--onink { box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); }

/* 헤더 */
.site-head { background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px); border-bottom-color: rgba(20,39,92,.08); }
.head-in { height: 68px; }
.nav a { font-weight: 600; }
.nav a[aria-current="page"] { border-bottom-color: rgb(var(--accent-rgb)); }

/* 히어로: 배지는 조용한 칩으로, 사진은 크게 */
.hero2 {
  background:
    radial-gradient(55% 65% at 90% 6%, rgba(var(--accent-rgb), .12) 0%, transparent 60%),
    radial-gradient(40% 50% at 0% 100%, rgba(20,39,92,.06) 0%, transparent 60%),
    linear-gradient(180deg, #f8fafd 0%, var(--bg) 100%);
}
.hero2-in { gap: 64px; padding-block: 72px 88px; }
.hero2-mark {
  padding: 13px 28px; border-radius: 12px;
  background: linear-gradient(90deg, rgb(var(--accent-rgb)) 0%, var(--accent-dark) 100%);
  color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.02em;
  box-shadow: 0 10px 26px -6px rgba(var(--accent-rgb), .55);
}
.hero2-mark b { color: #ffe66b; }
.hero2-copy h1 { margin-top: 22px; font-size: clamp(32px, 3.9vw, 50px); line-height: 1.16; }
.hero2-copy .lead { margin-top: 20px; }
.hero2-copy .btn-row { margin-top: 30px; }
.hero2-media .hero-bg { border-radius: 22px; border-color: rgba(20,39,92,.10); box-shadow: var(--shadow-md), 0 30px 60px -30px rgba(var(--accent-rgb), .35); }
.hero2-bgimg { opacity: .22; filter: blur(1.5px) saturate(.75); }
.hero2::after { background: linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.72) 62%, #fff 100%); }

/* 숫자 스트립: 남색 → 액센트 방향 */
.stats { background: radial-gradient(70% 120% at 12% 0%, rgba(var(--accent-rgb), .55) 0%, transparent 60%), linear-gradient(120deg, var(--navy) 0%, #331010 100%); }
.stats-in > div { padding: 46px 20px; border-left-color: rgba(255,255,255,.10); }
.stats b { font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.stats b em { color: rgba(255,255,255,.7); }
.stats span { color: rgba(255,255,255,.72); font-weight: 500; }
.si img { border-radius: 20px; box-shadow: 0 14px 28px -10px rgba(0,0,0,.45); }

/* 카드 공통: 얇은 선 + 틴트 그림자, 호버 시 살짝 뜸 */
.prob, .mq-card, .sido-card, .callout, .case-card, .navy-card, .step-card { border-radius: 18px; }
.prob, .mq-card, .sido-card, .case-card { box-shadow: var(--shadow-sm); border-color: rgba(20,39,92,.09); }
.prob:hover, .mq-card:hover, .sido-card:hover, .case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(var(--accent-rgb), .35); }
.prob-no { box-shadow: 0 6px 16px -4px rgba(var(--accent-rgb), .5); }
.prob-key { color: var(--accent-2); }
.prob-key::before { background: rgba(var(--accent-rgb), .3); }
.step-card.is-a { background: #f3f5fa; border-color: rgba(20,39,92,.08); }
.step-card.is-c { background: rgba(var(--accent-rgb), .08); border-color: rgba(var(--accent-rgb), .18); }
.step-card.is-b .step-ico img { filter: drop-shadow(0 12px 22px rgba(var(--accent-rgb), .45)); }
.mq-card .shot, .shot { border-radius: 14px; border-color: rgba(20,39,92,.08); }
.callout { border: 1px solid rgba(var(--accent-rgb), .22); background: linear-gradient(180deg, rgba(var(--accent-rgb), .07), rgba(var(--accent-rgb), .03)); }

/* 남색 블록: 미세 그라데이션, 카드 유리감 */
.navy { background: linear-gradient(135deg, var(--navy) 0%, #331010 60%, rgba(var(--accent-rgb), .9) 160%); }
.navy-card { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.12); backdrop-filter: blur(6px); transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.navy-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22); }
.navy-card .hl2 { color: #cfe0ff; }
.navy-tag { color: #cfe0ff; }

/* 표·목록·FAQ */
.tbl th, .tbl td { padding: 16px 14px; }
.tbl th { font-weight: 600; }
.tbl tr + tr { border-top-color: rgba(20,39,92,.08); }
.principle { border-bottom-color: rgba(20,39,92,.08); border-radius: 12px; padding-inline: 10px; }
.principle:hover { background: rgba(var(--accent-rgb), .05); }
.principle .num { color: var(--accent); }
.steps li { border-bottom-color: rgba(20,39,92,.08); }
.steps li::before { color: var(--accent-2); }
.faq summary { font-weight: 700; }
.faq details[open] { background: linear-gradient(180deg, rgba(var(--accent-rgb), .04), transparent); border-radius: 12px; }
.faq details { transition: background-color .2s ease; }
.chips span, .chips a, .region-links a { background: #fff; border-color: rgba(20,39,92,.12); transition: all .15s ease; }
.chips a:hover, .region-links a:hover { background: var(--accent-soft); border-color: rgba(var(--accent-rgb), .45); color: var(--accent-2); transform: translateY(-1px); }
.kw span { border-color: rgba(20,39,92,.12); }

/* 페이지 헤드·CTA 밴드·콜바 */
.pagehead { background: radial-gradient(70% 140% at 8% 0%, rgba(var(--accent-rgb), .10) 0%, transparent 60%), var(--bg); border-bottom-color: rgba(20,39,92,.08); }
.pagehead::after { background: linear-gradient(90deg, rgb(var(--accent-rgb)), transparent); }
.sec--ink { background: radial-gradient(120% 180% at 85% 0%, rgba(var(--accent-rgb), 1) 0%, var(--accent) 42%, var(--accent-dark) 100%); }
.callbar { backdrop-filter: saturate(180%) blur(14px); }

/* 리빌: 더 부드럽게 */
.rv { transition-duration: .7s; transition-timing-function: cubic-bezier(.16, 1, .3, 1); }
@media (prefers-reduced-motion: reduce) {
  .btn, .prob, .mq-card, .sido-card, .case-card, .navy-card, .rv { transition: none !important; transform: none !important; }
}

/* 기존 홈페이지에서 그대로 옮긴 사업영역 조각 */
.svc-import h2 { margin-top: 56px; font-size: clamp(24px, 2.8vw, 34px); }
.svc-import h2:first-child { margin-top: 0; }
.svc-import h3, .svc-import h4 { margin-top: 28px; font-size: 20px; }
.svc-import p { margin-top: 12px; font-size: 17px; line-height: 1.8; color: var(--ink-2); }
.svc-import ul, .svc-import ol { margin-top: 12px; padding-left: 22px; color: var(--ink-2); line-height: 1.8; }
.svc-import img { display: block; width: 100%; height: auto; margin: 22px 0; border-radius: 14px; border: 1px solid rgba(20,39,92,.08); }
.svc-import table { width: 100%; margin-top: 16px; border-collapse: collapse; }
.svc-import td, .svc-import th { padding: 12px; border-top: 1px solid rgba(20,39,92,.08); text-align: left; }
.chips a { color: var(--accent-2); border-color: rgba(var(--accent-rgb), .35); font-weight: 700; }
.chips a::after { content: " ›"; opacity: .6; }

/* 히어로 사진: 자르지 않고 통째로 (블로그 사진이 정사각이라 16:10 틀에서는 잘린다) */
.hero2-media .hero-bg { aspect-ratio: 1 / 1; background: #eef1f7; max-width: 440px; margin-left: auto; }
.hero2-in { grid-template-columns: 1.15fr .85fr; }
.hero2-media .hero-bg img { object-fit: cover; }
