/* ─────────────────────────────────────────────────────────────
   피오디맨 공개 사이트 — 디자인 시스템 v2 (2026-09-18)
   근거: 디자인/VEED/DESIGN.md (대표 선택) + 확정 BI(네이비 #0F206F · 골드 #FCB502)
   규율: 흰 캔버스 · 텍스트 #0c0a09(순검정 금지) · 헤어라인 #e6e6e7 · 표면 #f2f1f0
         풀블리드 다크 밴드 #121212 · 그림자 금지(테두리·면 대비) · 라운드 10/16/9999
         본문 Pretendard 400/500 · 버튼 600 · 표제 Pretendard 700 (자간 -0.03~-0.04em · 행간 1.0~1.1, 세리프 없음)
         액센트 = 네이비 1색 + 골드 극소량. 라임·추가 색 없음.
   ───────────────────────────────────────────────────────────── */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  /* 중립 (VEED) */
  --paper: #ffffff;
  --ink: #0c0a09;
  --ink-2: #323232;
  --graphite: #292a2e;
  --onyx: #121212;
  --slate: #4d4d51;
  --muted: #71737a;
  --mist: #f2f1f0;
  --line: #e6e6e7;
  /* 액센트 (확정 BI) */
  --navy: #0F206F;
  --navy-hover: #0b1a5c;
  --gold: #FCB502;
  /* 라운드 · 간격 */
  --r-btn: 10px;
  --r-card: 16px;
  --r-pill: 9999px;
  --gap: 16px;
  --section: 80px;
  --page: 1200px;
  /* 서체 */
  --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', sans-serif;
}

/* ── 리셋 ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.016em;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
b, strong { font-weight: 600; }
::selection { background: var(--navy); color: #fff; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ── 타이포 ───────────────────────────────────────── */
.display {
  font-weight: 700;
  font-size: clamp(40px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -0.04em;
  color: var(--ink);
}
.sec-title {
  font-weight: 700;
  font-size: 40px; line-height: 1.05; letter-spacing: -0.03em; color: var(--ink);
}
.sec-title.sm { font-weight: 700; font-size: 28px; line-height: 1.15; letter-spacing: -0.025em; }
@media (max-width: 640px) {
  .sec-title { font-weight: 700; font-size: 28px; line-height: 1.15; letter-spacing: -0.025em; }
  .sec-title.sm { font-size: 24px; }
}
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.eyebrow.gold { color: var(--gold); }
.lead { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.sec-desc { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 640px; margin-top: 16px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.sec-head > div { min-width: 0; }
@media (max-width: 640px) { .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 28px; } }
.link-more { font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; border-bottom: 1px solid var(--ink-2); padding-bottom: 1px; }
.link-more:hover { color: var(--navy); border-color: var(--navy); }
.caption { font-size: 12px; line-height: 1.5; letter-spacing: 0.01em; color: var(--muted); }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; } .mt-64 { margin-top: 64px; }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 버튼 ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--r-btn); border: 1px solid transparent;
  font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: -0.005em;
  transition: background-color .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-hover); border-color: var(--navy-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--mist); border-color: var(--ink-2); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--graphite); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--mist); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: #fff; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── 헤더 ─────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand .brand-mark { height: 32px; width: auto; }
.brand .brand-word { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.gnb { display: flex; gap: 28px; flex: 1; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.gnb a { padding: 6px 0; border-bottom: 1px solid transparent; }
.gnb a:hover { color: var(--ink); }
.gnb a.active { color: var(--ink); border-bottom-color: var(--ink); }
.hdr-cta { flex: none; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: var(--r-btn); border: 1px solid var(--line); position: relative; flex: none; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ''; position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle::before { top: 13px; } .nav-toggle span { top: 19px; } .nav-toggle::after { top: 25px; }
.site-header.open .nav-toggle::before { transform: translateY(6px) rotate(45deg); }
.site-header.open .nav-toggle span { opacity: 0; }
.site-header.open .nav-toggle::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  .site-header .wrap { height: 56px; gap: 12px; justify-content: space-between; }
  .brand .brand-mark { height: 28px; }
  .brand .brand-word { font-size: 17px; }
  .nav-toggle { display: block; order: 3; }
  .hdr-cta { order: 2; margin-left: auto; padding: 10px 14px; font-size: 13px; }
  .gnb { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 16px 16px; font-size: 16px; }
  .gnb a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .gnb a:last-child { border-bottom: 0; }
  .gnb a.active { color: var(--navy); }
  .site-header.open .gnb { display: flex; }
}

/* ── 섹션 · 밴드 ──────────────────────────────────── */
section.block { padding: var(--section) 0; }
section.block.tight { padding: 48px 0; }
section.block.surface { background: var(--mist); }
.band-dark { background: var(--onyx); color: #fff; padding: var(--section) 0; }
.band-dark .sec-title, .band-dark .display { color: #fff; }
.band-dark .lead, .band-dark .sec-desc { color: rgba(255,255,255,.64); }
.band-dark .eyebrow { color: rgba(255,255,255,.5); }
.band-dark .eyebrow.gold { color: var(--gold); }
.hairline { border: 0; border-top: 1px solid var(--line); }
@media (max-width: 640px) { section.block, .band-dark { padding: 56px 0; } }

/* ── 그리드 ───────────────────────────────────────── */
.grid { display: grid; gap: var(--gap); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .cols-5 { grid-template-columns: repeat(3, 1fr); } .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .cols-3, .cols-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cols-2, .cols-3, .cols-4, .cols-5 { grid-template-columns: 1fr; } }

/* ── 미디어 · 카드 ────────────────────────────────── */
.media { border-radius: var(--r-card); overflow: hidden; background: var(--mist); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.r-3-2 { aspect-ratio: 3/2; } .media.r-4-5 { aspect-ratio: 4/5; } .media.r-1-1 { aspect-ratio: 1/1; } .media.r-16-9 { aspect-ratio: 16/9; } .media.r-4-3 { aspect-ratio: 4/3; } .media.r-3-4 { aspect-ratio: 3/4; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); }
.card.pad { padding: 28px; }
a.card:hover { border-color: var(--ink-2); }
.photo { border-radius: var(--r-card); width: 100%; object-fit: cover; display: block; background: var(--mist); }
.photo-cap { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.5; }

/* 사례 카드 */
.case-card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: border-color .15s; }
.case-card:hover { border-color: var(--ink-2); }
.case-thumb { aspect-ratio: 4/3; background: var(--mist); }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 16px 18px 18px; }
.case-no { font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); }
.case-title { font-size: 16px; font-weight: 600; margin-top: 4px; line-height: 1.4; letter-spacing: -0.016em; }
.case-tags { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--mist); border-radius: 4px; padding: 3px 8px; }
.tag.warm { color: var(--ink); background: var(--mist); border: 1px solid var(--line); }
.cols-5 .case-title { font-size: 14px; }
.cols-5 .case-tags .tag:nth-child(n+3) { display: none; }
@media (max-width: 640px) {
  .grid.scroll-x { display: flex; overflow-x: auto; gap: 12px; margin: 0 -16px; padding: 0 16px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .grid.scroll-x::-webkit-scrollbar { display: none; }
  .grid.scroll-x > * { flex: 0 0 76%; scroll-snap-align: start; }
}

/* 유형 카드 (VEED use-case card) */
.type-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }
.type-card { position: relative; display: block; aspect-ratio: 220/330; border-radius: var(--r-card); overflow: hidden; background: var(--mist); }
.type-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.type-card:hover img { transform: scale(1.03); }
.type-card .lbl { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 500; color: #fff; background: rgba(0,0,0,.42); padding: 4px 8px; border-radius: 4px; }
.type-card .foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 16px 16px; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55)); }
.type-card .foot b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.016em; }
.type-card .foot span { display: block; font-size: 12px; opacity: .8; margin-top: 4px; }
@media (max-width: 1100px) { .type-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .type-row { display: flex; overflow-x: auto; margin: 0 -16px; padding: 0 16px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; } .type-row::-webkit-scrollbar { display: none; } .type-card { flex: 0 0 62%; scroll-snap-align: start; } }

/* 칩 (진짜 필) */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-pill); padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: all .15s; }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.static { cursor: default; }

/* ── 홈 히어로 ────────────────────────────────────── */
.hero { padding: 72px 0 var(--section); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero .lead { margin-top: 24px; }
.hero .cta-row { margin-top: 32px; }
.hero .facts { margin-top: 40px; display: flex; gap: 28px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }
.hero .facts div { font-size: 13px; color: var(--muted); line-height: 1.5; }
.hero .facts b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.hero .media { aspect-ratio: 4/3; }
@media (max-width: 900px) { .hero { padding: 40px 0 56px; } .hero .wrap { grid-template-columns: 1fr; gap: 32px; } .hero .media { order: -1; aspect-ratio: 3/2; } }

/* ── 서비스 카드 (편집비 + 제작비) ───────────────── */
.svc-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; display: flex; flex-direction: column; }
.svc-card.featured { border-color: var(--navy); }
.svc-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.svc-card .svc-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.svc-card ul { margin: 20px 0 22px; display: grid; gap: 9px; }
.svc-card ul li { font-size: 14px; color: var(--ink-2); padding-left: 16px; position: relative; line-height: 1.5; }
.svc-card ul li::before { content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--navy); }
.svc-card .svc-price { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.svc-card .svc-price b { display: block; color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; }
.svc-card .btn { margin-top: auto; }
.formula { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.formula .f { border: 1px solid var(--line); border-radius: var(--r-btn); padding: 12px 16px; background: var(--paper); font-size: 14px; }
.formula .f b { display: block; font-size: 15px; font-weight: 600; }
.formula .f span { color: var(--muted); font-size: 12px; }
.formula .op { font-size: 20px; color: var(--muted); }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .two-up { grid-template-columns: 1fr; gap: 32px; } }

/* ── 다크 밴드 (반기획 패키지) ────────────────────── */
.pkg-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.pkg-band .price { font-weight: 700; font-size: 44px; letter-spacing: -0.03em; line-height: 1; margin-top: 24px; }
.pkg-band .price small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: rgba(255,255,255,.64); margin-left: 8px; }
.pkg-band .spec { font-size: 14px; color: rgba(255,255,255,.72); margin-top: 12px; }
.pkg-steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.pkg-steps-grid div { border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-btn); padding: 16px; }
.pkg-steps-grid b { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--gold); margin-bottom: 6px; }
.pkg-steps-grid p { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.78); }
@media (max-width: 900px) { .pkg-band .wrap { grid-template-columns: 1fr; gap: 32px; } .pkg-band .price { font-size: 40px; } }
@media (max-width: 480px) { .pkg-steps-grid { grid-template-columns: 1fr; } }

/* ── 플로우 스트립 ────────────────────────────────── */
.flow-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: fs; }
.flow-item { border: 1px solid var(--line); border-radius: var(--r-btn); padding: 18px 16px; background: var(--paper); }
.flow-item::before { counter-increment: fs; content: counter(fs, decimal-leading-zero); display: block; font-size: 12px; font-weight: 500; color: var(--navy); letter-spacing: 0.04em; margin-bottom: 10px; }
.flow-item b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.016em; }
.flow-item span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
@media (max-width: 1000px) { .flow-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .flow-strip { grid-template-columns: repeat(2, 1fr); } }

/* ── 가이드 카드 · FAQ ────────────────────────────── */
.guide-card { border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; background: var(--paper); }
.guide-card .k { font-size: 12px; font-weight: 500; color: var(--navy); letter-spacing: 0.04em; }
.guide-card h3 { font-size: 18px; font-weight: 600; margin-top: 8px; letter-spacing: -0.02em; line-height: 1.35; }
.guide-card p { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.6; }
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-size: 16px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { color: var(--muted); font-size: 15px; line-height: 1.7; padding: 0 0 20px; max-width: 680px; }

/* ── 푸터 ─────────────────────────────────────────── */
.site-footer { background: var(--onyx); color: rgba(255,255,255,.64); padding: 56px 0 32px; font-size: 14px; }
.site-footer .cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.site-footer .f-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 17px; }
.site-footer .f-brand img { height: 26px; width: auto; }
.site-footer p { line-height: 1.7; }
.site-footer .note { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,.45); }
.site-footer a:hover { color: #fff; }
.site-footer .f-right { text-align: right; }
@media (max-width: 640px) { .site-footer .f-right { text-align: left; } }

/* ── 페이지 헤드 (서브페이지) ─────────────────────── */
.page-head { padding: 56px 0 40px; }
.page-head .display { font-size: clamp(40px, 4vw, 48px); }
.page-hero { padding: 56px 0 var(--section); }
.page-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.page-hero .media { aspect-ratio: 3/2; }
@media (max-width: 900px) { .page-hero { padding: 32px 0 56px; } .page-hero .wrap { grid-template-columns: 1fr; gap: 28px; } }

/* 사례 목록: 유형 배너 필터 */
.type-filter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 32px; }
.type-filter button { position: relative; display: block; text-align: left; aspect-ratio: 3/2; border-radius: var(--r-card); overflow: hidden; background: var(--mist); border: 2px solid transparent; }
.type-filter button img { width: 100%; height: 100%; object-fit: cover; }
.type-filter button span { position: absolute; left: 12px; bottom: 12px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(0,0,0,.45); padding: 5px 9px; border-radius: 4px; }
.type-filter button.on { border-color: var(--navy); }
.type-filter button.on span { background: var(--navy); }
@media (max-width: 900px) { .type-filter { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .type-filter { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.type-desc { font-size: 14px; color: var(--muted); margin-top: 14px; min-height: 1.5em; }

/* ── 사례 상세 ────────────────────────────────────── */
.type-banner { margin-top: 24px; }
.type-banner a { display: block; position: relative; aspect-ratio: 1200/320; border-radius: var(--r-card); overflow: hidden; background: var(--mist); }
.type-banner img { width: 100%; height: 100%; object-fit: cover; }
.type-banner .lbl { position: absolute; left: 20px; bottom: 18px; color: #fff; }
.type-banner .lbl small { display: block; font-size: 12px; opacity: .85; letter-spacing: 0.04em; }
.type-banner .lbl b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; text-shadow: none; }
.type-banner .lbl { background: rgba(0,0,0,.42); padding: 10px 14px; border-radius: 4px; }
@media (max-width: 640px) { .type-banner a { aspect-ratio: 3/2; } }
.detail-head { padding-top: 40px; padding-bottom: 28px; }  /* 좌우는 .wrap 의 24px 유지 — shorthand 로 덮지 말 것 */
.detail-head .case-no { font-size: 13px; }
.detail-head h1 { font-weight: 700; font-size: clamp(40px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; margin-top: 12px; max-width: 900px; }
@media (max-width: 640px) { .detail-head h1 { font-size: 26px; line-height: 1.25; letter-spacing: -0.025em; } }
.blk { padding: 56px 0; border-top: 1px solid var(--line); }
.blk-label { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--navy); }
.blk h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 10px 0 16px; line-height: 1.3; }
.blk p { color: var(--ink-2); max-width: 720px; font-size: 16px; line-height: 1.7; }
.spec-card { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; max-width: 720px; }
.spec-card .row { display: grid; grid-template-columns: 150px 1fr; border-bottom: 1px solid var(--line); }
.spec-card .row:last-child { border-bottom: 0; }
.spec-card .k { background: var(--mist); padding: 12px 16px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.spec-card .v { padding: 12px 16px; font-size: 14px; }
@media (max-width: 480px) { .spec-card .row { grid-template-columns: 96px 1fr; } }
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 24px; }
.process-grid .media { aspect-ratio: 3/2; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.process-steps div { border: 1px solid var(--line); border-radius: var(--r-btn); padding: 14px 16px; }
.process-steps b { display: block; font-size: 12px; color: var(--navy); letter-spacing: 0.04em; font-weight: 500; margin-bottom: 4px; }
.process-steps span { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 900px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.cta-card { background: var(--onyx); color: #fff; border-radius: var(--r-card); overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; }
.cta-card .txt { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.cta-card .cap { font-size: 12px; letter-spacing: 0.06em; color: var(--gold); font-weight: 500; }
.cta-card .amount { font-weight: 700; font-size: 40px; letter-spacing: -0.03em; line-height: 1; margin-top: 12px; }
.cta-card .sub { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 12px; line-height: 1.6; }
.cta-card .btn { margin-top: 24px; align-self: flex-start; }
.cta-card .media { border-radius: 0; aspect-ratio: auto; min-height: 260px; }
@media (max-width: 800px) { .cta-card { grid-template-columns: 1fr; } .cta-card .media { order: -1; aspect-ratio: 3/2; min-height: 0; } .cta-card .txt { padding: 28px 24px; } .cta-card .amount { font-size: 34px; } }
.related { padding: 56px 0 var(--section); border-top: 1px solid var(--line); }

/* ── 폼 ───────────────────────────────────────────── */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field label .req { color: var(--navy); }
.field input[type=text], .field input[type=tel], .field input[type=email], .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-btn); padding: 13px 14px; font-size: 15px;
  background: var(--paper); transition: border-color .13s; -webkit-appearance: none; appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--navy); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.field.agree { display: flex; gap: 10px; align-items: flex-start; }
.field.agree input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.field.agree label { font-weight: 400; font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.6; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
.form-msg { border: 1px solid var(--line); border-radius: var(--r-btn); padding: 14px 16px; font-size: 14px; line-height: 1.6; background: var(--mist); color: var(--ink-2); }
.form-msg.err { border-color: var(--ink); background: var(--paper); }
.thanks { border: 1px solid var(--line); border-radius: var(--r-card); padding: 40px 32px; text-align: center; }
.thanks h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.thanks p { color: var(--muted); margin-top: 10px; line-height: 1.7; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.trust-card { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--paper); }
.trust-card .media { border-radius: 0; aspect-ratio: 3/2; }
.trust-card .txt { padding: 20px; }
.trust-card b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.016em; }
.trust-card p { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
@media (max-width: 640px) { .trust-grid { grid-template-columns: 1fr; } }
.notice { border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--mist); }
.notice p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.est-box { border: 1px solid var(--navy); border-radius: var(--r-card); padding: 20px 24px; }
.est-box .k { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--navy); }
.est-box .s { font-size: 14px; color: var(--ink-2); margin-top: 8px; line-height: 1.6; }
.est-box .r { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-top: 8px; }

/* ── 견적기 (estimate.html) ───────────────────────── */
.est-head { padding-top: 48px; padding-bottom: 8px; }
.wizard { display: grid; grid-template-columns: 240px 1fr 300px; gap: 32px; align-items: start; padding-top: 32px; padding-bottom: 96px; }
.rail { position: sticky; top: 88px; display: grid; gap: 2px; }
.rail-item { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-btn); align-items: flex-start; border: 1px solid transparent; }
.rail-item .dot { width: 26px; height: 26px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; border: 1px solid var(--line); color: var(--muted); background: var(--paper); position: relative; }
.rail-item b { font-size: 14px; font-weight: 500; display: block; color: var(--muted); line-height: 1.4; }
.rail-item span { font-size: 12px; color: var(--muted); }
.rail-item.now { border-color: var(--line); background: var(--mist); }
.rail-item.now .dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.rail-item.now b { color: var(--ink); font-weight: 600; }
.rail-item.done { cursor: pointer; }
.rail-item.done .dot { border-color: var(--ink); color: transparent; }
.rail-item.done .dot::after { content: ''; position: absolute; left: 8px; top: 6px; width: 6px; height: 10px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); }
.rail-item.done b { color: var(--ink-2); }
.stage { min-width: 0; }
.stage h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; }
.stage .stage-desc { color: var(--muted); margin-top: 8px; margin-bottom: 28px; font-size: 15px; }
.stage-body { display: block; }
.q-group { margin-bottom: 32px; }
.q-group > label.q { display: block; font-size: 16px; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.016em; }
.q-sub { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.q-help { font-size: 13px; color: var(--muted); margin: 6px 0 12px; line-height: 1.6; }
.q-help a { color: var(--navy); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.opt-grid { display: grid; gap: 10px; }
.opt-grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .opt-grid.two { grid-template-columns: 1fr; } }
.opt { border: 1px solid var(--line); border-radius: var(--r-btn); padding: 14px 16px; background: var(--paper);
  display: flex; align-items: center; gap: 12px; transition: border-color .13s, background-color .13s; text-align: left; font-size: 15px; cursor: pointer; }
.opt:hover { border-color: var(--ink-2); }
.opt.on { border-color: var(--navy); background: var(--mist); }
.opt .o-main { flex: 1; min-width: 0; }
.opt .o-main b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.016em; }
.opt .o-main span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.opt .o-main .meta { display: block; margin-top: 6px; font-size: 12px; color: var(--navy); font-weight: 500; }
.opt .o-price { font-size: 13px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.opt .o-price.free { color: var(--muted); font-weight: 500; }
.opt .o-price.talk { color: var(--ink); background: var(--gold); padding: 3px 8px; border-radius: 4px; font-size: 12px; }
.opt input { accent-color: var(--navy); width: 18px; height: 18px; flex: none; }
.img-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.img-opt { align-items: flex-start; }
.img-opt .thumb { width: 84px; height: 84px; flex: none; border-radius: var(--r-btn); overflow: hidden; background: var(--mist); position: relative; display: flex; align-items: center; justify-content: center; }
.img-opt .thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-opt .thumb .ph-txt { display: none; font-size: 12px; color: var(--ink-2); font-weight: 500; text-align: center; padding: 6px; }
.img-opt .thumb.ph .ph-txt { display: block; }
.img-opt .o-main b { white-space: normal; line-height: 1.35; }
.img-opt .o-price { align-self: flex-start; }
.img-opt .grade { font-style: normal; font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: 4px; background: var(--mist); color: var(--ink-2); margin-left: 6px; vertical-align: 2px; }
.img-opt .grade.prm { background: var(--ink); color: #fff; }
.img-opt .pc { font-size: 12px; color: var(--ink-2); margin-top: 4px; line-height: 1.5; }
.img-opt .pc i { font-style: normal; font-weight: 600; color: var(--navy); margin-right: 6px; }

.track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.track-card { text-align: left; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.track-card:hover { border-color: var(--ink-2); }
.track-card.on { border-color: var(--navy); }
.track-card .track-img { aspect-ratio: 3/2; background: var(--mist); }
.track-card .track-img img { width: 100%; height: 100%; object-fit: cover; }
.track-card .track-txt { padding: 20px 22px 22px; display: grid; gap: 6px; }
.track-card .num { font-size: 12px; color: var(--navy); font-weight: 500; letter-spacing: 0.06em; }
.track-card b { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.track-card .d { font-size: 14px; color: var(--ink-2); }
.track-card small { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
@media (max-width: 720px) { .track-grid { grid-template-columns: 1fr; } }

.size-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 720px) { .size-grid { grid-template-columns: repeat(2, 1fr); } }
.size-card { border: 1px solid var(--line); border-radius: var(--r-btn); padding: 14px 12px; background: var(--paper); display: grid; gap: 3px; cursor: pointer; text-align: center; position: relative; }
.size-card input { position: absolute; opacity: 0; pointer-events: none; }
.size-card:hover { border-color: var(--ink-2); }
.size-card.on { border-color: var(--navy); background: var(--mist); }
.size-card b { font-size: 15px; font-weight: 600; }
.size-card span { font-size: 12px; color: var(--ink-2); }
.size-card small { font-size: 11px; color: var(--muted); }
.slider-wrap { display: grid; grid-template-columns: 1fr 150px; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--paper); }
.slider-wrap input[type=range] { width: 100%; accent-color: var(--navy); }
.pages-num { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.pages-num input { width: 90px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-btn); font-size: 16px; font-weight: 600; text-align: right; color: var(--ink); }
.pages-num input:focus { outline: 0; border-color: var(--navy); }
@media (max-width: 480px) { .slider-wrap { grid-template-columns: 1fr; } }
.qty-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 720px) { .qty-grid { grid-template-columns: repeat(3, 1fr); } }
.qty-btn { border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--paper); padding: 14px 8px; font-size: 16px; font-weight: 600; color: var(--ink); display: grid; gap: 2px; }
.qty-btn small { font-size: 11px; font-weight: 400; color: var(--muted); }
.qty-btn:hover { border-color: var(--ink-2); }
.qty-btn.on { border-color: var(--navy); background: var(--mist); }

.nav-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; }
.btn-prev { background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); padding: 14px 22px; font-size: 14px; font-weight: 600; border-radius: var(--r-btn); }
.btn-prev:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-next { background: var(--navy); color: #fff; padding: 14px 28px; font-size: 14px; font-weight: 600; border-radius: var(--r-btn); }
.btn-next:hover { background: var(--navy-hover); }

.panel { position: sticky; top: 88px; }
.panel-card { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); padding: 22px; }
.panel-card h4 { font-size: 14px; font-weight: 600; letter-spacing: -0.016em; }
.panel-card .cart { margin-top: 12px; display: grid; gap: 8px; }
.panel-card .cart .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); gap: 10px; }
.panel-card .cart .row b { color: var(--ink); font-weight: 500; }
.panel-card .cart .row .amt { font-weight: 600; color: var(--ink); white-space: nowrap; }
.panel-card .cart .grp { font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 8px; letter-spacing: 0.06em; text-transform: uppercase; }
.panel-card .cart .row.sum-row { border-top: 1px solid var(--line); padding-top: 8px; }
.panel-card .cart .empty { font-size: 13px; color: var(--muted); }
.panel-card .sum { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.panel-card .sum .total { font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.panel-card .sum .cap { font-size: 12px; color: var(--muted); }
.panel-card .missing { margin-top: 12px; display: grid; gap: 6px; }
.panel-card .missing div { font-size: 12px; color: var(--muted); padding-left: 12px; position: relative; }
.panel-card .missing div::before { content: ''; position: absolute; left: 0; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.talk-amt { color: var(--ink); background: var(--gold); padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; }

/* 결과 */
.result-hero { background: var(--onyx); color: #fff; border-radius: var(--r-card); overflow: hidden; display: grid; grid-template-columns: 1.15fr 1fr; }
.result-hero .txt { padding: 36px 32px; }
.result-hero .cap { font-size: 12px; color: var(--gold); font-weight: 500; letter-spacing: 0.06em; }
.result-hero .amount { font-weight: 700; font-size: clamp(34px, 3.6vw, 44px); letter-spacing: -0.03em; line-height: 1; margin-top: 12px; }
.result-hero .sub { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.6; }
.result-hero .sub b { color: #fff; }
.result-hero .media { border-radius: 0; aspect-ratio: auto; min-height: 220px; }
@media (max-width: 720px) { .result-hero { grid-template-columns: 1fr; } .result-hero .media { order: -1; aspect-ratio: 3/2; min-height: 0; } .result-hero .txt { padding: 24px 20px; } }
.result-detail { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-card); padding: 8px 20px; }
.result-detail h5 { font-size: 11px; font-weight: 500; color: var(--muted); margin: 16px 0 4px; letter-spacing: 0.06em; text-transform: uppercase; }
.result-detail h5 small { font-weight: 400; margin-left: 6px; text-transform: none; letter-spacing: 0; }
.result-detail .row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; gap: 14px; }
.result-detail .row:last-child { border-bottom: 0; }
.result-detail .row .amt { font-weight: 600; color: var(--ink); white-space: nowrap; }
.result-detail .row small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.badge-talk { display: inline-block; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 600; border-radius: 4px; padding: 2px 8px; }
.note-box { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-btn); background: var(--mist); color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.disclaimer { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-btn); padding: 14px 16px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.disclaimer b { color: var(--ink); }
.save-row { margin-top: 16px; font-size: 13px; color: var(--muted); }
.save-row a { color: var(--navy); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.consult-box { margin-top: 48px; border: 1px solid var(--navy); border-radius: var(--r-card); padding: 32px 28px; background: var(--paper); }
.consult-box h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.consult-box > p { color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.6; }
@media (max-width: 640px) { .consult-box { padding: 24px 18px; } }

.pkg-card { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--paper); }
.pkg-card .pkg-img { aspect-ratio: 3/1; background: var(--mist); }
.pkg-card .pkg-img img { width: 100%; height: 100%; object-fit: cover; }
.pkg-card .pkg-body { padding: 32px 28px; }
.pkg-card .cap { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); font-weight: 500; }
.pkg-card h2 { font-weight: 700; font-size: 40px; letter-spacing: -0.03em; line-height: 1.05; margin-top: 10px; }
.pkg-card > .pkg-body > p { color: var(--muted); margin-top: 12px; line-height: 1.6; }
.pkg-card .spec { margin-top: 16px; font-weight: 500; font-size: 15px; }
.pkg-card .price { font-size: 34px; font-weight: 600; color: var(--ink); margin-top: 8px; letter-spacing: -0.02em; }
.pkg-card .price small { font-size: 14px; color: var(--ink-2); font-weight: 500; letter-spacing: 0; }
.pkg-card .dur { font-size: 14px; color: var(--muted); margin-top: 4px; }
.pkg-steps { margin: 20px 0 0; display: grid; gap: 8px; }
.pkg-steps li { border: 1px solid var(--line); border-radius: var(--r-btn); padding: 12px 14px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.pkg-steps li b { display: block; font-size: 11px; color: var(--navy); letter-spacing: 0.06em; margin-bottom: 3px; font-weight: 500; }
@media (max-width: 640px) { .pkg-card h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.025em; } .pkg-card .pkg-body { padding: 24px 18px; } }

/* 모바일: 견적기 레일·패널·하단 바 */
.mobile-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--paper); border-top: 1px solid var(--line); padding: 10px 16px; align-items: center; justify-content: space-between; gap: 12px; }
.mobile-bar .mb-cap { font-size: 11px; color: var(--muted); }
.mobile-bar .mb-total { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.mobile-bar .btn { padding: 10px 14px; font-size: 13px; }
@media (max-width: 1020px) {
  .wizard { grid-template-columns: 1fr; padding-top: 16px; gap: 20px; }
  .est-head { padding-top: 32px; }
  .rail, .panel { position: static; }
  .rail { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail-item { flex: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); align-items: center; gap: 8px; background: var(--paper); }
  .rail-item .dot { width: 20px; height: 20px; font-size: 11px; }
  .rail-item.done .dot::after { left: 6px; top: 3px; width: 5px; height: 9px; }
  .rail-item b { font-size: 13px; }
  .rail-item span { display: none; }
  .rail-item.now { background: var(--ink); border-color: var(--ink); }
  .rail-item.now b { color: #fff; }
  .rail-item.now .dot { background: #fff; border-color: #fff; color: var(--ink); }
  .panel { order: 3; }
  .mobile-bar { display: flex; }
  body.has-mobile-bar { padding-bottom: 72px; }
}

/* ── 404 ─────────────────────────────────────────── */
.nf { min-height: 70vh; padding: 64px 0; display: flex; align-items: center; }
.nf .code { font-weight: 700; font-size: 64px; line-height: 1.05; letter-spacing: -0.04em; }
.nf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 40px; }
.nf-grid .media { aspect-ratio: 1/1; }
@media (max-width: 640px) { .nf-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } .nf .code { font-size: 40px; } }

/* ── 소개 페이지 ─────────────────────────────────── */
.story { max-width: 820px; }
.story .body { margin-top: 28px; font-size: 16px; line-height: 1.9; color: var(--ink-2); display: grid; gap: 18px; }
.story .body b { color: var(--ink); }
.principle { border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; }
.principle .n { font-size: 12px; color: var(--navy); letter-spacing: 0.06em; font-weight: 500; }
.principle h3 { font-size: 22px; font-weight: 600; margin-top: 10px; letter-spacing: -0.02em; }
.principle .s { font-size: 14px; color: var(--muted); margin-top: 4px; }
.principle p { font-size: 14px; color: var(--ink-2); margin-top: 14px; line-height: 1.7; }
.facility { border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; }
.facility .k { font-size: 12px; color: var(--navy); font-weight: 500; letter-spacing: 0.04em; }
.facility b { display: block; font-size: 15px; font-weight: 600; margin-top: 6px; }
.facility p { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.map-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gap); align-items: start; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; border-radius: var(--r-card); display: block; background: var(--mist); }
@media (max-width: 900px) { .map-wrap { grid-template-columns: 1fr; } .map-wrap iframe { height: 320px; } }
.loc-bg { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3/2; }
.loc-bg img { width: 100%; height: 100%; object-fit: cover; }

/* ── 견적기 결과 저장줄 · 단계 안내 · 접수 번호 (2026-09-22 여정 점검 후) ── */
.save-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.btn-mini { font: inherit; font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line, #e6e6e7); background: #fff; color: var(--ink, #0c0a09); cursor: pointer; }
.btn-mini:hover { border-color: #0F206F; color: #0F206F; } .btn-mini:disabled { opacity: .6; cursor: default; }
#saveBtn { background: #0F206F; color: #fff; border-color: #0F206F; } #saveBtn:disabled { background: #6b7280; border-color: #6b7280; }
.save-help { font-size: 13px; color: #57534e; flex-basis: 100%; }
.step-msg { margin: 18px 0 -6px; padding: 10px 14px; border-radius: 10px; background: #fff4d6; color: #7a4b00; font-size: 14px; font-weight: 600; }
.step-msg.shake { animation: pm-shake .35s; } @keyframes pm-shake { 0%,100% { transform: translateX(0) } 25% { transform: translateX(-4px) } 75% { transform: translateX(4px) } }
.thanks-no { display: inline-block; margin: 6px 0 10px; padding: 4px 10px; border-radius: 20px; background: #ECEEF7; color: #0F206F; font-size: 13px; }
.thanks-no b { font-size: 15px; }
@media print { header, footer, .rail, .panel, .mobile-bar, .nav-row, .save-row, #consultBox, .presetNote, #presetNote { display: none !important; } .stage { max-width: none; } body { background: #fff; } }

.o-main .gl { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 500; color: #57534e; text-decoration: underline; text-underline-offset: 3px; }
.o-main .gl:hover { color: #0F206F; }

.site-notice { background: #0F206F; color: #fff; text-align: center; font-size: 14px; padding: 9px 16px; }
.direct-contact { margin-top: 10px; font-size: 15px; } .direct-contact a { color: #0F206F; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .f-contact a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* WebP <picture> 래퍼가 레이아웃에 끼어들지 않게 */
picture { display: contents; }

/* ─────────────────────────────────────────────────────────────
   모바일 보정 — 2026-10-05 전수조사(41페이지 × 3뷰포트) 반영
   잡은 것: 아이폰 입력칸 자동 확대 · 홈 인디케이터에 가린 하단 바 ·
            손가락보다 작은 링크 · 터치 기기에서 굳어버리는 hover · 100vh 흔들림
   ───────────────────────────────────────────────────────────── */

/* 1) iOS 는 16px 미만 입력칸을 누르면 화면을 확대한다 — 모바일에서만 16px 로 올린다 */
@media (max-width: 767px) {
  input[type=text], input[type=email], input[type=tel], input[type=password],
  input[type=number], input[type=search], select, textarea { font-size: 16px; }
}

/* 2) 고정 하단 바 — 홈 인디케이터만큼 아래 여유 */
.mobile-bar { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
body.has-mobile-bar { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

/* 3) 손가락이 닿는 크기 — 모바일에서 링크·작은 버튼 최소 44px */
@media (max-width: 767px) {
  .site-footer a, .f-links a, .foot-nav a { display: inline-block; padding: 11px 2px; line-height: 1.2; }
  .more, .link-more, .sec-more { display: inline-flex; align-items: center; min-height: 44px; }
  .btn { min-height: 44px; }
  .btn-mini { min-height: 38px; }
  button.idx, .idx { min-width: 40px; min-height: 40px; }
  .site-header .brand { padding: 6px 0; }
}

/* 4) 터치 기기에서는 hover 효과를 쓰지 않는다 (탭 후 굳는 문제) */
@media (hover: none) {
  .card:hover, .case-card:hover, .t-card:hover, .g-card:hover,
  .btn:hover, .chip:hover { transform: none !important; box-shadow: none !important; }
}

/* 5) 주소창이 접히고 펼쳐질 때 높이가 흔들리지 않게 */
@supports (height: 100dvh) {
  .full-h, .hero-full { min-height: 100dvh; }
}

/* 6) 목차·본문 안 링크도 손가락으로 누를 수 있게 (본문 흐름은 그대로 두고 눌리는 면만 키운다) */
.legal-toc a { display: flex; align-items: center; min-height: 44px; }
.art a, .faq-a a, .a-link, .gl-link, .q-help a { padding: 4px 0; }
@media (max-width: 767px) {
  .legal-toc a { min-height: 46px; }
}

/* 7) 헤더·안내 페이지의 작은 링크 — 누르는 면을 40px 이상으로 */
.site-header .brand, header .brand { display: inline-flex; align-items: center; min-height: 44px; }
.site-header nav a, .site-nav a, .gnb a { display: inline-flex; align-items: center; min-height: 40px; }
.guide a.term, .guide .terms a, .cmp a, .gl a { display: inline-flex; align-items: center; min-height: 36px; }

/* 8) 가로 스와이프 줄(유형 카드·사례 줄) — 2026-10-05
   증상: 모바일에서 첫 카드가 화면 왼쪽 끝에 딱 붙고 오른쪽 카드가 어중간하게 잘려 "깨진 것처럼" 보였다.
   원인: scroll-snap-type: x mandatory 가 스냅 위치를 스크롤 영역 시작점에 맞추면서 좌우 여백(16px)을 먹었다(로드 직후 scrollLeft=16).
   조치: scroll-padding 으로 여백을 스냅에 알려 주고, 오른쪽 끝을 흐리게 해 "더 있다"는 신호를 준다. */
.type-row, .grid.scroll-x {
  scroll-padding-inline: 16px;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}
@media (max-width: 640px) {
  .type-row, .grid.scroll-x {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), rgba(0, 0, 0, .25) 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), rgba(0, 0, 0, .25) 100%);
  }
  .type-row > *:last-child, .grid.scroll-x > *:last-child { scroll-snap-align: end; }
  .type-card { flex-basis: 74%; }
}

/* 9) 헤더 계정 입구 — 로그인/마이페이지 (2026-10-05) */
.gnb-account { position: relative; }
.gnb-account::before { content: ''; display: inline-block; width: 1px; height: 12px; background: var(--line); margin-right: 14px; vertical-align: -1px; }
@media (max-width: 900px) { .gnb-account::before { display: none; } }
