@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

/* ============================================================
   수성운반기계 — 공통 스타일
   색상이나 크기를 바꾸려면 아래 :root 값만 고치면 전체에 반영됩니다.
   ============================================================ */

:root {
  --ink:        #16181d;   /* 본문 검정 */
  --navy:       #213070;   /* (주)수성 로고 남색 — 어두운 배경 */
  --navy-2:     #1a2757;
  --brand-navy: #213070;   /* (주)수성 CI 남색 */
  --bg:         #ffffff;   /* 페이지 바탕 */
  --surface:    #ffffff;   /* 카드 바탕 */
  --warm:       #f2f5fa;   /* 사진 자리 */
  --line:       #e2e6ee;   /* 테두리 */
  --line-2:     #eef1f6;
  --muted:      #5d6472;   /* 보조 글자 */
  --muted-2:    #8a919e;
  --accent:     #213070;   /* 강조 — CI 남색 */
  --accent-dk:  #16204d;
  --accent-lt:  #f1f4fb;
  --accent-sand:#9db0e0;   /* 어두운 배경 위 강조 */
  --ok:         #1f7a4d;
  --maxw:       1200px;
  --pad:        40px;
  --radius:     4px;
}

* { box-sizing: border-box; }

/* .card 의 display:flex 가 hidden 속성을 이기지 않도록 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.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;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px; font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 상단 유틸리티 바 ---------- */
.util {
  background: var(--navy);
  color: #c3cbe8;
  font-size: 13px;
}
.util .wrap {
  height: 42px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.util .hours { color: #a4ade0; }
.util .tel { color: #fff; font-weight: 700; }
.util .right { display: flex; align-items: center; gap: 24px; }

/* ---------- 헤더 ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 90;
}
.site-header .wrap {
  min-height: 84px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { flex-shrink: 0; }
.brand-logo { height: 34px; width: auto; flex-shrink: 0; }
.brand-div { width: 1px; height: 30px; background: var(--line); flex-shrink: 0; }
.brand-name { font-size: 20px; font-weight: 900; letter-spacing: -0.04em; display: block; }
.brand-sub { font-size: 11px; color: var(--muted-2); letter-spacing: 0.06em; display: block; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 15px; font-weight: 500; color: #3d4452;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 3px;
  font-size: 15px; font-weight: 700; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); color: #fff; }
.btn-dark { background: var(--navy-2); color: #fff; }
.btn-dark:hover { background: #121c42; color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #eef2f9; color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: #4d5c9c; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
/* 밝은 히어로 위에서는 외곽선 남색 버튼으로 */
.hero .btn-ghost, .page-head .btn-ghost {
  background: #fff; color: var(--accent); border-color: #c8d1e8; }
.hero .btn-ghost:hover, .page-head .btn-ghost:hover {
  background: var(--accent-lt); color: var(--accent-dk); border-color: var(--accent); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}

/* ---------- 히어로 ---------- */
.hero { background: linear-gradient(180deg, #f5f8fd 0%, #ffffff 100%); border-bottom: 1px solid var(--line); }
.hero .wrap {
  padding-top: 80px; padding-bottom: 76px;
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 56px; align-items: center;
}
.hero h1 { font-size: 50px; font-weight: 900; line-height: 1.24; text-wrap: pretty; }
.hero h1 { color: var(--ink); }
.hero p { font-size: 18px; line-height: 1.75; color: var(--muted); max-width: 480px; text-wrap: pretty; }
.hero-col { display: flex; flex-direction: column; gap: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.hero-figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }

.dealer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dealer-badge {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 12px; background: var(--brand-navy); border-radius: 3px;
  font-size: 13px; font-weight: 900; color: #fff; letter-spacing: -0.02em;
}
.dealer-area { font-size: 13px; font-weight: 700; color: var(--accent-sand); }

/* ---------- 페이지 헤드 ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head.dark { background: linear-gradient(180deg, #f5f8fd 0%, #ffffff 100%); }
.page-head .wrap { padding-top: 56px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { font-size: 40px; }
.page-head p { font-size: 16px; color: var(--muted); line-height: 1.75; max-width: 720px; }
.page-head.dark p { color: var(--muted); }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-2); }
.crumb a { color: var(--muted-2); }
.crumb a:hover { color: var(--ink); }
.crumb .now { color: #3d4452; }
.page-head.dark .crumb, .page-head.dark .crumb a { color: var(--muted-2); }
.page-head.dark .crumb .now { color: #3d4452; }

/* ---------- 섹션 ---------- */
.section { padding-top: 80px; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 34px; }
.section-head.row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); }
.section h2 { font-size: 33px; }
.section-head p { font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 740px; }
.band { background: #f5f8fd; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap { padding-top: 64px; padding-bottom: 64px; }
.band-dark { background: var(--navy); color: #fff; }
.band-dark .wrap { padding-top: 68px; padding-bottom: 68px; }
.band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.band-dark .eyebrow { color: var(--accent-sand); }
.band-dark p { color: #c3cbe8; }
/* 남색 배경 위의 기본 버튼은 흰 버튼으로 */
.band-dark .btn-primary, .cta .btn-primary, .coverage-side .btn-primary, .maker .btn-primary {
  background: #fff; color: var(--accent); }
.band-dark .btn-primary:hover, .cta .btn-primary:hover,
.coverage-side .btn-primary:hover, .maker .btn-primary:hover {
  background: #e8edf9; color: var(--accent-dk); }

/* ---------- 그리드 ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.g5 { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }

/* ---------- 카드 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card-pad { padding: 30px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.card h3 { font-size: 21px; }
.card h4 { font-size: 18px; }
.card p { font-size: 15px; line-height: 1.75; color: var(--muted); }
.card-media { position: relative; background: var(--warm); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4-3 { aspect-ratio: 4/3; }
.ratio-16-10 { aspect-ratio: 16/10; }
.card-media .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #98a1b2; text-align: center; padding: 12px;
}
.more { font-size: 14px; font-weight: 700; color: var(--accent); margin-top: auto; padding-top: 6px; }

.tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  height: 26px; padding: 0 10px; display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 700; color: #fff; border-radius: 2px;
}
.tag-new { background: var(--navy); }
.tag-used { background: var(--accent); }
.tag-other { background: var(--muted); }
.tag-sale { background: var(--ok); }
.tag-sold { background: var(--muted-2); }

.spec { display: flex; flex-direction: column; gap: 7px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.spec-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.spec-row dt { color: var(--muted-2); margin: 0; }
.spec-row dd { color: #3d4452; font-weight: 500; margin: 0; text-align: right; }

/* ---------- 신뢰 지표 ---------- */
.stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats .wrap { padding-top: 34px; padding-bottom: 34px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.stat b { display: block; font-size: 29px; font-weight: 900; letter-spacing: -0.03em; }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- 칩 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  height: 32px; padding: 0 13px; display: inline-flex; align-items: center;
  background: #f2f5fa; color: #3d4452; font-size: 14px; border-radius: 3px;
}
.chip-hi { background: var(--accent-lt); color: #213070; font-weight: 500; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  height: 40px; padding: 0 18px; display: inline-flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line); color: #3d4452;
  font-size: 14px; border-radius: 999px; cursor: pointer;
}
.filter:hover { border-color: var(--muted-2); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }

/* ---------- 표 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
thead th {
  background: var(--warm); text-align: left; font-size: 14px; font-weight: 700;
  padding: 16px 22px; border-bottom: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
thead th.hi { color: var(--accent); }
tbody td { padding: 16px 22px; font-size: 14px; color: #3d4452; border-bottom: 1px solid var(--line-2); }
tbody th {
  padding: 16px 22px; font-size: 14px; color: var(--muted); font-weight: 400;
  text-align: left; border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }

/* ---------- 요금제 ---------- */
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan.hi { border: 2px solid var(--accent); }
.plan-flag {
  position: absolute; top: -13px; left: 30px; height: 26px; padding: 0 12px;
  display: inline-flex; align-items: center; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; border-radius: 2px;
}
.plan-term { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; }
.plan h3 { font-size: 23px; }
.plan-price { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.plan-price span { font-size: 13px; color: var(--muted-2); }
.plan-price b { font-size: 23px; font-weight: 900; letter-spacing: -0.03em; }
.ticks { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #3d4452; }
.tick { display: flex; gap: 8px; align-items: flex-start; }
.tick svg { flex-shrink: 0; margin-top: 3px; }
.plan .note { font-size: 13px; line-height: 1.7; color: var(--muted-2); margin-top: auto; padding-top: 4px; }

/* ---------- 단계 ---------- */
.steps { display: grid; gap: 16px; }
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 3px solid var(--line); }
.step.on { border-top-color: var(--accent); }
.step b { font-size: 12px; font-weight: 900; letter-spacing: 0.08em; color: var(--muted-2); }
.step.on b { color: var(--accent); }
.step h4 { font-size: 18px; }
.step p { font-size: 14px; line-height: 1.75; color: var(--muted); }

/* ---------- 문답 ---------- */
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.qa + .qa { margin-top: 12px; }
.qa summary {
  padding: 22px 26px; font-size: 17px; font-weight: 700; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; width: 10px; height: 10px; flex-shrink: 0;
  border-right: 2px solid var(--muted-2); border-bottom: 2px solid var(--muted-2);
  transform: rotate(45deg) translateY(-3px); transition: transform .15s;
}
.qa[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.qa .a { padding: 0 26px 24px; font-size: 14px; line-height: 1.85; color: var(--muted); }

/* ---------- 강조 배너 ---------- */
.cta { background: var(--accent); border-radius: var(--radius); padding: 50px 52px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { font-size: 28px; color: #fff; }
.cta p { font-size: 16px; color: #ccd6ee; line-height: 1.7; margin-top: 10px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn-ghost { border-color: #8e9fd4; }

.callout { background: var(--accent-lt); border: 1px solid #ccd6ee; border-radius: var(--radius); padding: 20px 24px; display: flex; gap: 12px; align-items: flex-start; }
.callout svg { flex-shrink: 0; margin-top: 3px; }
.callout p { font-size: 14px; line-height: 1.8; color: #1e2c63; }

.note-sm { font-size: 13px; color: var(--muted-2); line-height: 1.8; }

/* ---------- 폼 ---------- */
.form-grid { display: grid; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 700; }
.req { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid #d3dae8; border-radius: 3px; background: #fcfdff;
  padding: 0 14px; height: 48px; width: 100%;
}
.field textarea { height: 130px; padding: 14px; line-height: 1.7; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a3abbb; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label {
  height: 42px; padding: 0 18px; display: inline-flex; align-items: center;
  background: var(--surface); border: 1px solid #d3dae8; color: #3d4452;
  font-size: 14px; font-weight: 400; border-radius: 3px; cursor: pointer;
}
.radio-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-row input:checked + span { color: #fff; }
.radio-row label:has(input:checked) { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.radio-row label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; padding: 16px 18px; background: #f5f7fb; border-radius: 3px; }
.consent input { width: 18px; height: 18px; flex-shrink: 0; margin: 2px 0 0; accent-color: var(--accent); }
.consent p { font-size: 13px; line-height: 1.7; color: var(--muted); }
.form-status { font-size: 14px; line-height: 1.7; padding: 14px 18px; border-radius: 3px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #eaf6ef; color: #145c38; }
.form-status.err { background: #fdeeee; color: #8c2020; }

/* ---------- 연락 카드 ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; display: flex; align-items: center; gap: 18px; }
.contact-card.dark { background: var(--ink); border-color: var(--ink); }
.contact-card small { font-size: 13px; color: var(--muted-2); display: block; }
.contact-card b { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; display: block; margin-top: 4px; }
.contact-card.dark b { color: #fff; }
.contact-card svg { flex-shrink: 0; }

/* ---------- 지역 ---------- */
.coverage { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 20px; }
.coverage-side { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.coverage-side h3 { font-size: 22px; color: #fff; }
.coverage-side p { font-size: 14px; line-height: 1.8; color: #b3bde6; }
.coverage-tel { margin-top: auto; padding-top: 18px; border-top: 1px solid #3a4a8e; }
.coverage-tel small { font-size: 13px; color: #97a2d6; display: block; }
.coverage-tel b { font-size: 19px; font-weight: 900; color: #fff; letter-spacing: -0.02em; }
.coverage-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 24px; }
.coverage-group { display: flex; flex-direction: column; gap: 12px; }
.coverage-group h4 { font-size: 14px; }
.coverage-group h4 span { font-weight: 400; color: var(--muted-2); }

/* ---------- 본사 배너 ---------- */
.maker { background: var(--brand-navy); border-radius: var(--radius); padding: 50px 52px; display: grid; grid-template-columns: minmax(0,1fr) 400px; gap: 52px; align-items: center; color: #fff; }
.maker h2 { font-size: 29px; color: #fff; }
.maker p { font-size: 16px; line-height: 1.85; color: #c3cbe8; }
.maker .sub { font-size: 14px; color: #97a2d6; }
.maker-flag { display: inline-flex; align-self: flex-start; align-items: center; height: 30px; padding: 0 12px; background: rgba(255,255,255,.12); border-radius: 3px; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.maker-list { display: flex; flex-direction: column; gap: 12px; }
.maker-item { background: rgba(255,255,255,.07); border-radius: 3px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.maker-item svg { flex-shrink: 0; margin-top: 3px; }
.maker-item b { font-size: 15px; color: #fff; display: block; }
.maker-item span { font-size: 13px; line-height: 1.6; color: #b3bde6; }

/* ---------- 본문 문서 ---------- */
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 52px; }
.doc h2 { font-size: 21px; margin-top: 40px; margin-bottom: 14px; }
.doc h2:first-child { margin-top: 0; }
.doc p { font-size: 15px; line-height: 1.9; color: #3d4452; margin-bottom: 12px; }
.doc ol, .doc ul { padding-left: 20px; margin: 0 0 12px; }
.doc ol { list-style: decimal; }
.doc ul { list-style: disc; }
.doc li { font-size: 15px; line-height: 1.9; color: #3d4452; margin-bottom: 6px; }
.doc .table-wrap { margin: 18px 0 24px; }
.doc table { min-width: 520px; }

/* ---------- 푸터 ---------- */
.site-footer { margin-top: 80px; background: var(--navy); color: #aab4dd; }
.site-footer .wrap { padding-top: 52px; padding-bottom: 40px; display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 52px; }
.foot-logo { height: 26px; width: auto; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand b { font-size: 18px; font-weight: 900; color: #fff; letter-spacing: -0.03em; }
.foot-info { font-size: 13px; line-height: 1.95; margin-top: 16px; }
.foot-info a { color: #c3cbe8; }
.foot-info a:hover { color: #fff; }
.foot-nav { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; font-size: 13px; }
.foot-nav h4 { color: #fff; font-size: 14px; margin-bottom: 4px; }
.foot-nav a { color: #aab4dd; display: block; padding: 5px 0; }
.foot-nav a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid #33417d; }
.foot-bottom .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; font-size: 12px; color: #8d97c8; }
.foot-bottom a { color: #c3cbe8; font-weight: 700; }

/* ---------- 모바일 하단 고정 바 ---------- */
.callbar { display: none; }

/* ============================================================
   반응형
   ============================================================ */

@media (max-width: 1080px) {
  :root { --pad: 28px; }
  .nav { gap: 20px; }
  .nav a { font-size: 14px; }
  .hero h1 { font-size: 42px; }
  .maker { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
  .coverage { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .brand-logo { height: 28px; }
  .brand-div { display: none; }
  .brand-name { font-size: 17px; }
  .util .hours { display: none; }
  /* 좁은 화면에서는 유틸바에 전화번호만 남긴다 */
  .util .wrap > span:first-child { display: none; }
  .util .wrap { justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.08); padding: 8px 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px var(--pad); border-bottom: 0; font-size: 16px; }
  .nav a[aria-current="page"] { border-bottom: 0; background: var(--accent-lt); }
  .site-header { position: relative; }
  .site-header .wrap { position: relative; min-height: 64px; }
  .header-cta { display: none; }

  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 40px; gap: 28px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15px; }
  .hero-figure { aspect-ratio: 16/10; }

  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .g5 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats .wrap { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
  .stat b { font-size: 22px; }

  .section { padding-top: 48px; }
  .section h2 { font-size: 25px; }
  .section-head.row { flex-direction: column; align-items: flex-start; }
  .band .wrap, .band-dark .wrap { padding-top: 44px; padding-bottom: 44px; }
  .page-head .wrap { padding-top: 36px; padding-bottom: 32px; }
  .page-head h1 { font-size: 30px; }

  .cta { padding: 32px 26px; }
  .cta h2 { font-size: 22px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }

  .contact-cards { grid-template-columns: 1fr; }
  .doc { padding: 28px 22px; }
  .foot-nav { grid-template-columns: repeat(2, minmax(0,1fr)); }

  body { padding-bottom: 78px; }
  .callbar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px;
  }
  .callbar .btn { height: 54px; font-size: 16px; }
  .callbar .btn-primary { flex: 1 1 auto; }
  .callbar .btn-dark { flex: 0 0 130px; }
}

@media (max-width: 420px) {
  :root { --pad: 18px; }
  .hero h1 { font-size: 28px; }
  .g5 { grid-template-columns: 1fr; }
  .callbar .btn-dark { flex: 0 0 110px; }
}

@media print {
  .util, .site-header, .callbar, .cta, .site-footer { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- 2단 분할 레이아웃 ---------- */
.split { display: grid; gap: 52px; align-items: start; }
.split-l { grid-template-columns: 380px minmax(0, 1fr); }
.split-r { grid-template-columns: minmax(0, 1fr) 400px; }
.split-r.split-tight { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; }
.split-r.split-mid { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: center; }
.split-r.split-narrow { grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; align-items: center; }

.prog-row { display: grid; grid-template-columns: 280px minmax(0, 1fr) 170px; gap: 32px; align-items: center; }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.logo-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }

@media (max-width: 1080px) {
  .split, .split-l, .split-r,
  .split-r.split-tight, .split-r.split-mid, .split-r.split-narrow { grid-template-columns: 1fr; gap: 32px; }
  .prog-row { grid-template-columns: 1fr; gap: 22px; }
  .prog-row .btn { width: 200px; }
  .steps-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .g4 { grid-template-columns: 1fr; }
  .steps-4, .steps-5 { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .maker { padding: 32px 24px; }
  .split { gap: 28px; }
  .cta { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- 문의 페이지 (폼 없음) ---------- */
.contact-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: stretch; }
.contact-hero-main {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 44px 48px; display: flex; flex-direction: column; gap: 14px;
}
.contact-hero-main h2 { font-size: 30px; color: #fff; }
.contact-hero-main p { font-size: 15px; line-height: 1.8; color: #c3cbe8; max-width: 520px; }
.tel-big {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 12px;
  font-size: 38px; font-weight: 900; letter-spacing: -0.03em; color: #fff;
}
.tel-big:hover { color: var(--accent-sand); }
.tel-big svg { flex-shrink: 0; }
.contact-hero-side { display: flex; flex-direction: column; gap: 12px; }
.contact-hero-side .contact-card { flex: 1 1 0; }

.tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tip {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; display: flex; gap: 16px; align-items: flex-start;
}
.tip-n {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-lt); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900;
}
.tip b { display: block; font-size: 16px; margin-bottom: 5px; }
.tip span { display: block; font-size: 14px; line-height: 1.7; color: var(--muted); }

@media (max-width: 1080px) {
  .contact-hero { grid-template-columns: 1fr; }
  .contact-hero-side { flex-direction: row; flex-wrap: wrap; }
  .contact-hero-side > * { flex: 1 1 220px; }
}
@media (max-width: 860px) {
  .contact-hero-main { padding: 30px 24px; }
  .contact-hero-main h2 { font-size: 24px; }
  .tel-big { font-size: 28px; }
  .tips { grid-template-columns: 1fr; }
  .contact-hero-side { flex-direction: column; }
}

/* ---------- 전화번호 두 개 ---------- */
.util .tel-pair { display: inline-flex; align-items: center; gap: 14px; }
.util .tel-pair a + a { position: relative; padding-left: 15px; }
.util .tel-pair a + a::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 12px; background: #3a4a8e;
}
.tel-set { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.tel-set + .tel-set { margin-top: 4px; }
.tel-tag { font-size: 13px; font-weight: 500; color: #9aa4d4; }
.tel-big.tel-sub { font-size: 26px; color: #d5dcf2; }
.tel-big.tel-sub:hover { color: var(--accent-sand); }
@media (max-width: 860px) {
  .tel-big { font-size: 26px; }
  .tel-big.tel-sub { font-size: 22px; }
}

/* ---------- 주문 제작 사례 갤러리 ---------- */
.cus-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cus { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
       overflow: hidden; display: flex; flex-direction: column; }
.cus-img { aspect-ratio: 4/3; background: var(--warm); overflow: hidden; }
.cus-img img { width: 100%; height: 100%; object-fit: cover; }
.cus figcaption { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; }
.cus figcaption b { font-size: 14.5px; font-weight: 700; line-height: 1.45; letter-spacing: -.02em; }
.cus figcaption span { font-size: 12.5px; color: var(--muted-2); }

@media (max-width: 1080px) { .cus-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .cus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* ---------- 제품 카탈로그 상세 (사진 클릭) ---------- */
.card-media { position: relative; }
.media-open {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: transparent; border: 0; padding: 0; margin: 0; cursor: zoom-in;
  display: flex; align-items: flex-end; justify-content: center;
  font-family: inherit; color: #fff;
}
.media-open > span {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 12px; padding: 7px 14px; border-radius: 999px;
  background: rgba(33, 48, 112, .92); font-size: 13px; font-weight: 700;
  opacity: 0; transform: translateY(6px); transition: opacity .16s, transform .16s;
}
.media-open:hover > span, .media-open:focus-visible > span { opacity: 1; transform: none; }
.media-open:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
@media (hover: none) {            /* 휴대폰에서는 항상 보이게 */
  .media-open > span { opacity: 1; transform: none; }
}

.more-btn {
  background: none; border: 0; padding: 6px 0 0; cursor: pointer;
  font-family: inherit; text-align: left; margin-top: auto;
}

/* 카드 안의 상세 내용은 숨겨두고 모달에 복제해 띄운다 */
.card > .pdetail { display: none; }

.pmodal { position: fixed; inset: 0; z-index: 200; display: flex;
          align-items: center; justify-content: center; padding: 24px; }
.pmodal-back { position: absolute; inset: 0; background: rgba(14, 18, 34, .62); }
.pmodal-box {
  position: relative; background: #fff; border-radius: 6px;
  width: min(940px, 100%); max-height: min(88vh, 900px); overflow: auto;
  box-shadow: 0 30px 70px rgba(0,0,0,.28);
}
.pmodal-x {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink); cursor: pointer;
}
.pmodal-x:hover { background: var(--accent-lt); border-color: var(--accent); color: var(--accent); }
.pmodal-body { padding: 34px 36px 32px; }
.pmodal-body .pdetail { display: block; }

.pd-name { font-size: 26px; line-height: 1.35; padding-right: 44px; }
.pd-sub-t { font-size: 15px; font-weight: 500; color: var(--muted-2); }
.pd-top { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px;
          align-items: start; margin-top: 20px; }
.pd-fig { background: var(--warm); border: 1px solid var(--line); border-radius: 4px;
          aspect-ratio: 4/3; overflow: hidden; }
.pd-fig img { width: 100%; height: 100%; object-fit: cover; }
.pd-lead { font-size: 15px; line-height: 1.8; color: #3d4452; }
.pd-feat { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.pd-feat li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.7; color: #3d4452; }
.pd-feat li::before { content: ""; position: absolute; left: 0; top: 9px;
                      width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pd-h { font-size: 17px; margin-top: 30px; margin-bottom: 12px; }
.pd-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
.pd-table table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 13.5px; }
.pd-table th, .pd-table td {
  border-bottom: 1px solid var(--line-2); padding: 10px 12px; text-align: center; white-space: nowrap; }
.pd-table thead th { background: var(--navy); color: #fff; font-weight: 700; border-bottom: 0; }
.pd-table tbody th { text-align: left; font-weight: 500; color: #3d4452; background: #f7f9fd; }
.pd-table .pd-unit { color: var(--muted-2); font-size: 12.5px; }
.pd-table tbody tr:last-child th, .pd-table tbody tr:last-child td { border-bottom: 0; }
.pd-note { font-size: 13px; line-height: 1.75; color: var(--muted); margin-top: 12px; }
.pd-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px;
          padding-top: 22px; border-top: 1px solid var(--line-2); }

body.modal-open { overflow: hidden; }

@media (max-width: 760px) {
  .pmodal { padding: 0; }
  .pmodal-box { width: 100%; max-height: 100vh; height: 100%; border-radius: 0; }
  .pmodal-body { padding: 22px 20px 28px; }
  .pd-name { font-size: 21px; }
  .pd-top { grid-template-columns: 1fr; gap: 18px; }
  .pd-cta .btn { flex: 1 1 100%; }
}

/* ---------- 비어 있는 목록 안내 ---------- */
.empty-box { grid-column: 1 / -1; background: #f5f8fd; border: 1px solid var(--line);
             border-radius: var(--radius); padding: 44px 36px; text-align: center;
             display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-box b { font-size: 19px; letter-spacing: -.02em; }
.empty-box p { font-size: 15px; line-height: 1.8; color: var(--muted); max-width: 460px; }
.empty-box .btn { margin-top: 8px; }

/* ---------- 지도 대신 쓰는 주소 링크 카드 ---------- */
.card-media:has(> .map-link) { background: transparent; border: 0 !important; }
.map-link { display: flex; align-items: center; justify-content: center; gap: 16px;
            width: 100%; height: 100%; min-height: inherit;
            background: #f5f8fd; border: 1px solid var(--line); border-radius: var(--radius);
            padding: 28px 30px; color: var(--ink); text-align: left; }
.map-link:hover { background: var(--accent-lt); border-color: var(--accent); color: var(--ink); }
.map-link svg { flex-shrink: 0; }
.map-link b { display: block; font-size: 17px; line-height: 1.6; letter-spacing: -.02em; }
.map-link small { display: block; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--accent); }

/* ---------- 인사말 옆 연락처 ---------- */
.greet-side { background: #f5f8fd; border: 1px solid var(--line); border-radius: var(--radius);
              padding: 32px 30px; display: flex; flex-direction: column; gap: 10px; }
.greet-tel { font-size: 27px; font-weight: 900; letter-spacing: -.03em; }
.greet-tel a { color: var(--ink); }
.greet-side p { font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.greet-addr { padding-top: 14px; border-top: 1px solid var(--line-2); }
.greet-side .btn { margin-top: 6px; }
