/* =========================================================
   더젠인테리어 Design System (style.css)
   - 공통 토큰, 레이아웃, 헤더/푸터, 버튼, 카드, 폼, 유틸
   - 페이지 전용 스타일은 assets/css/pages/*.css
   ========================================================= */
:root {
  --ink: #16181d;
  --ink-2: #2b2f36;
  --ink-3: #4a505a;
  --muted: #6b7079;
  --muted-2: #9a9ea5;
  --line: #e7e2da;
  --line-2: #d9d2c6;
  --paper: #faf8f4;
  --white: #ffffff;
  --stone: #f2ede5;
  --sand: #e3d5bf;
  --accent: #b5592b;       /* terracotta: 주요 강조 */
  --accent-2: #9a4a22;
  --accent-soft: #f6e8df;
  --brand-blue: #1d6fb8;   /* 발라요 브랜드 연속성 */
  --ok: #2f7d5b;
  --warn: #b7791f;
  --danger: #c0392b;
  --kakao: #fee500;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --shadow-s: 0 1px 2px rgba(22,24,29,.06), 0 2px 8px rgba(22,24,29,.04);
  --shadow: 0 6px 24px rgba(22,24,29,.08);
  --shadow-l: 0 18px 50px rgba(22,24,29,.14);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --tabbar-h: 0px;

  --fs-xs: 12px;
  --fs-s: 14px;
  --fs-m: 16px;
  --fs-l: 18px;
  --fs-xl: clamp(20px, 2.2vw, 24px);
  --fs-h3: clamp(20px, 2.4vw, 26px);
  --fs-h2: clamp(26px, 3.6vw, 40px);
  --fs-h1: clamp(32px, 5.2vw, 60px);

  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (max-width: 960px) { :root { --header-h: 60px; --tabbar-h: 62px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: var(--fs-m);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--tabbar-h);
}
img, svg, video, canvas { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; letter-spacing: -0.02em; font-weight: 750; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--sand); }
:focus-visible { outline: 3px solid rgba(181,89,43,.45); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--stone { background: var(--stone); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #f3f1ec; }
.section--ink a:hover { color: #f0c3a6; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.section--ink .eyebrow { color: #e7a37f; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.sec-head h2 { font-size: var(--fs-h2); margin: 0; }
.sec-head p { color: var(--muted); margin: 10px 0 0; max-width: 640px; }
.section--ink .sec-head p { color: #b9bcc2; }
.sec-head .more { font-weight: 650; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.sec-head .more::after { content: "→"; transition: transform .2s var(--ease); }
.sec-head .more:hover::after { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .15s; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-2); color: #fff; }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--kakao { background: var(--kakao); color: #191600; }
.btn--kakao:hover { background: #f2d900; color: #191600; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Chips / badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--stone); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.chip--line { background: transparent; border: 1px solid var(--line-2); }
.chip--accent { background: var(--accent-soft); color: var(--accent-2); }
.chip--dark { background: rgba(255,255,255,.12); color: #fff; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .04em; background: var(--ink); color: #fff; }
.badge--accent { background: var(--accent); }
.badge--blue { background: var(--brand-blue); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* toggle chips (filter / option buttons) */
.opt { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: all .15s; user-select: none; }
.opt:hover { border-color: var(--ink); }
.opt.is-on, .opt[aria-pressed="true"], input:checked + .opt { background: var(--ink); color: #fff; border-color: var(--ink); }
.opt-group { display: flex; flex-wrap: wrap; gap: 8px; }
.visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 80; height: var(--header-h); background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo svg { width: 36px; height: 36px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font-size: 19px; letter-spacing: -0.03em; font-weight: 800; }
.logo-text small { font-size: 9.5px; letter-spacing: .28em; color: var(--muted); font-weight: 700; margin-top: 3px; }
.gnb { display: flex; gap: 4px; margin-left: 8px; }
.gnb a { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15.5px; color: var(--ink-2); position: relative; }
.gnb a:hover { color: var(--ink); background: var(--stone); }
.gnb a[aria-current="page"] { color: var(--ink); }
.gnb a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--accent); border-radius: 2px; }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-tel { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; margin-right: 6px; }
.header-tel small { font-size: 11px; color: var(--muted); font-weight: 600; }
.header-tel b { font-size: 17px; letter-spacing: -0.01em; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; margin-left: auto; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); transition: .2s; }
.menu-btn span::before { top: -7px; } .menu-btn span::after { top: 7px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; z-index: 79; padding: 20px var(--gutter) 120px; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .22s var(--ease); }
.menu-open .mobile-nav { transform: none; opacity: 1; visibility: visible; }
.mobile-nav a.m-link { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 700; }
.mobile-nav a.m-link::after { content: "›"; color: var(--muted-2); font-size: 22px; }
.mobile-nav .m-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.mobile-nav .m-info { margin-top: 26px; color: var(--muted); font-size: 14px; }

/* 헤더 메뉴 줄바꿈 방지 (메뉴 6개 + 버튼 2개) */
.gnb a, .header-tel b, .header-cta .btn { white-space: nowrap; }
@media (max-width: 1440px) { .header-tel { display: none; } }
@media (max-width: 1320px) { .site-header .container { gap: 18px; } .gnb { gap: 0; margin-left: 0; } .gnb a { padding: 8px 10px; font-size: 15px; } }
@media (max-width: 1140px) { .gnb a { padding: 8px 7px; font-size: 14.5px; } .header-cta { gap: 6px; } .header-cta .btn { padding-left: 14px; padding-right: 14px; } }
@media (max-width: 1010px) and (min-width: 961px) { .header-cta .btn--line { display: none; } }
@media (max-width: 960px) {
  .gnb, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Tab bar (mobile) ---------- */
.tabbar { display: none; }
@media (max-width: 960px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); z-index: 85; backdrop-filter: blur(8px); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 650; color: var(--muted); }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar a.tab-cta { color: var(--accent); }
}

/* ---------- Floating actions ---------- */
.fab { position: fixed; right: 20px; bottom: 24px; z-index: 70; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab a, .fab button { width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .15s; }
.fab a:hover, .fab button:hover { transform: translateY(-2px); }
.fab .fab-kakao { background: var(--kakao); color: #191600; }
.fab .fab-tel { background: var(--ink); color: #fff; }
.fab .fab-top { background: #fff; color: var(--ink); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .2s; }
.fab .fab-top.is-on { opacity: 1; pointer-events: auto; }
.fab svg { width: 24px; height: 24px; }
.fab .fab-label { position: absolute; right: 62px; background: var(--ink); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: .2s; pointer-events: none; }
.fab a:hover .fab-label { opacity: 1; transform: none; }
.fab a { position: relative; }
@media (max-width: 960px) { .fab { right: 14px; bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); } .fab .fab-tel { display: none; } .fab a, .fab button { width: 46px; height: 46px; } }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 56px); background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 50px); margin-bottom: 14px; }
.page-hero p.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-3); max-width: 760px; margin: 0; }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span[aria-hidden] { color: var(--muted-2); }
.subnav { position: sticky; top: var(--header-h); z-index: 60; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 8px 14px; border-radius: 999px; font-weight: 650; font-size: 14px; color: var(--ink-3); }
.subnav a:hover, .subnav a.is-on { background: var(--ink); color: #fff; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .grid-4.keep-2, .grid-3.keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .2s; }
.card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.card-body { padding: 20px 22px 22px; }
.card h3 { font-size: 19px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.media { position: relative; overflow: hidden; background: var(--stone); aspect-ratio: 4 / 3; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .media img { transform: scale(1.04); }
.media--wide { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1; }

/* project card */
.pcard { display: block; color: var(--ink); }
.pcard:hover { color: var(--ink); }
.pcard .media { border-radius: var(--radius); aspect-ratio: 4 / 3; }
.pcard .media .badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.pcard-body { padding: 14px 2px 4px; }
.pcard-title { font-size: 19px; font-weight: 750; letter-spacing: -0.02em; margin: 0 0 4px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pcard-title small { font-size: 13px; color: var(--muted); font-weight: 600; }
.pcard-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.pcard-meta span + span::before { content: "·"; margin-right: 10px; color: var(--muted-2); }
.pcard-price { margin-top: 8px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.pcard-price.is-private { font-size: 14px; color: var(--muted); font-weight: 600; }
.pcard-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.pcard-tags .chip { height: 26px; font-size: 12px; padding: 0 10px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field > label, .field > .label { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.req { color: var(--accent); font-weight: 800; }
.hint { font-size: 13px; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(22,24,29,.07); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; display: none; }
.field.has-error .field-error { display: block; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row-2 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.checkgrid { display: flex; flex-wrap: wrap; gap: 8px; }
.checkgrid label { position: relative; }
.checkgrid input { position: absolute; opacity: 0; pointer-events: none; }
.checkgrid input:focus-visible + .opt { outline: 3px solid rgba(181,89,43,.45); outline-offset: 2px; }
.consent-box { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 14px 16px; font-size: 13px; color: var(--ink-3); max-height: 160px; overflow: auto; line-height: 1.6; }
.hp-field { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; opacity: 0; }
.form-success { display: none; text-align: center; padding: 40px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.form-success.is-on { display: block; }
.form-success .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; font-size: 30px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,16,20,.55); backdrop-filter: blur(2px); }
.modal-panel { position: relative; background: #fff; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; border-radius: var(--radius-l); padding: 28px; box-shadow: var(--shadow-l); animation: pop .22s var(--ease); }
.modal-panel h2 { font-size: 24px; margin-bottom: 6px; }
.modal-close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border: 0; background: var(--stone); border-radius: 50%; font-size: 20px; line-height: 1; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(28px + var(--tabbar-h)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 300; opacity: 0; transition: .25s var(--ease); pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translateX(-50%); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #c0683a 0%, #a8552b 55%, #8f4523 100%); color: #fff; border-radius: var(--radius-l); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255,226,196,.35), transparent 70%); }
.cta-band .btn--accent { background: #fff; color: var(--accent-2); }
.cta-band .btn--accent:hover { background: var(--ink); color: #fff; }
.cta-band h2 { font-size: clamp(24px, 3.2vw, 36px); margin-bottom: 10px; }
.cta-band p { color: #fbe9dd; margin: 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }

/* ---------- Footer ---------- */
.site-footer { background: #111317; color: #b8bbc1; padding: 64px 0 40px; font-size: 14px; margin-top: 0; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid #2a2d33; }
.footer-top h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-top ul { list-style: none; display: grid; gap: 8px; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo-text small { color: #8b8f96; }
.footer-brand p { margin: 16px 0; line-height: 1.7; }
.footer-tel { font-size: 26px; color: #fff; font-weight: 800; letter-spacing: -0.02em; display: block; }
.footer-sns { display: flex; gap: 8px; margin-top: 14px; }
.footer-sns a { width: 38px; height: 38px; border-radius: 50%; background: #23262c; display: grid; place-items: center; color: #e5e7eb; }
.footer-sns a:hover { background: var(--accent); }
.footer-sns svg { width: 18px; height: 18px; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.footer-biz { line-height: 1.9; font-size: 13px; color: #8f939a; }
.footer-biz span { margin-right: 14px; display: inline-block; }
.footer-cert { display: flex; gap: 12px; align-items: center; }
.footer-cert img { height: 40px; width: auto; background: #fff; border-radius: 6px; padding: 4px 8px; }
.footer-links { display: flex; gap: 16px; margin-top: 10px; }
.footer-links a { color: #d1d4d9; font-weight: 600; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .site-footer { padding-bottom: 32px; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Misc components ---------- */
.notice { border-radius: 12px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.notice--accent { background: var(--accent-soft); border-color: #ecd3c4; color: var(--accent-2); }
.notice strong { color: var(--ink); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 650; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 26px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; font-weight: 800; }
.stat span { color: var(--muted); font-size: 14px; font-weight: 600; }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.section--ink .stat-row, .section--ink .stat { border-color: #2b2f36; }
.section--ink .stat span { color: #9ea2a9; }

.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q { width: 100%; text-align: left; background: transparent; border: 0; padding: 20px 44px 20px 4px; font-size: 17px; font-weight: 700; position: relative; display: flex; gap: 12px; align-items: baseline; }
.acc-q .cat { font-size: 12px; color: var(--accent); font-weight: 800; flex: none; }
.acc-q::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .2s; }
.acc-item.is-open .acc-q::after { transform: translateY(-50%) rotate(45deg); }
.acc-a { display: none; padding: 0 4px 22px; color: var(--ink-3); line-height: 1.75; }
.acc-item.is-open .acc-a { display: block; }

.steps { counter-reset: s; display: grid; gap: 0; }
.ba { position: relative; overflow: hidden; border-radius: var(--radius); user-select: none; touch-action: pan-y; background: var(--stone); }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba .ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.ba .ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-1px); }
.ba .ba-handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow); }
.ba .ba-label { position: absolute; top: 12px; padding: 4px 10px; border-radius: 6px; background: rgba(22,24,29,.7); color: #fff; font-size: 12px; font-weight: 700; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } * { animation: none !important; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.tbl th, .tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { background: var(--paper); font-weight: 700; font-size: 14px; color: var(--ink-3); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }

.legal { max-width: 900px; padding-bottom: 60px; }
.legal h2 { font-size: 20px; margin: 40px 0 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; color: var(--ink-3); }
.legal p { color: var(--ink-3); }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0 !important; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.hide-m { } .show-m { display: none; }
@media (max-width: 960px) { .hide-m { display: none !important; } .show-m { display: initial; } }

@media print {
  .site-header, .site-footer, .tabbar, .fab, .subnav, .no-print, .cta-band { display: none !important; }
  body { padding: 0; font-size: 12px; }
  .section { padding: 16px 0; }
  a { color: inherit; }
}

.grid > *, .ct-layout > *, .pj-layout > * { min-width: 0; }

/* =========================================================
   화면 전환 (router.js)
   - View Transitions: 헤더·하단 탭·상담 버튼은 고정, 본문은 부드럽게 교체
   - 카드 사진 → 다음 화면 대표 사진 (tg-hero)
   - 지원하지 않는 브라우저: .tg-swap-out / .tg-swap-in 페이드
   ========================================================= */
.tg-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); opacity: 0; background: linear-gradient(90deg, #d98a5c, var(--accent, #b5592b)); box-shadow: 0 0 10px rgba(181, 89, 43, .45); }
.tg-progress.is-on { opacity: 1; animation: tgBar 2.4s cubic-bezier(.1, .7, .2, 1) forwards; }
.tg-progress.is-done { animation: none; transform: scaleX(1); opacity: 0; transition: opacity .3s .1s, transform .2s; }
@keyframes tgBar { from { transform: scaleX(0); } to { transform: scaleX(.86); } }

@media (prefers-reduced-motion: no-preference) {
  .site-header { view-transition-name: tg-header; }
  .tabbar { view-transition-name: tg-tabbar; }
  .fab { view-transition-name: tg-fab; }
  #jnBtn { view-transition-name: tg-note; }
  ::view-transition-group(tg-note), ::view-transition-old(tg-note), ::view-transition-new(tg-note) { animation: none; }
  ::view-transition-old(tg-note) { display: none; }
  ::view-transition-group(tg-header), ::view-transition-group(tg-tabbar), ::view-transition-group(tg-fab), ::view-transition-group(tg-note) { z-index: 100; }
  ::view-transition-group(tg-header), ::view-transition-group(tg-tabbar), ::view-transition-group(tg-fab) { animation: none; }
  ::view-transition-old(tg-header), ::view-transition-new(tg-header), ::view-transition-old(tg-tabbar), ::view-transition-new(tg-tabbar), ::view-transition-old(tg-fab), ::view-transition-new(tg-fab) { animation: none; }
  ::view-transition-old(tg-header) { display: none; }
  ::view-transition-old(root) { animation: tgOut .24s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: tgIn .46s cubic-bezier(.16, .8, .24, 1) .06s both; }
  html[data-nav-dir="back"]::view-transition-old(root) { animation-name: tgOutBack; }
  html[data-nav-dir="back"]::view-transition-new(root) { animation-name: tgInBack; }
  ::view-transition-group(tg-hero) { animation-duration: .56s; animation-timing-function: cubic-bezier(.2, .75, .15, 1); z-index: 50; }
  ::view-transition-old(tg-hero), ::view-transition-new(tg-hero) { animation-duration: .56s; height: 100%; object-fit: cover; overflow: clip; border-radius: 14px; }
  html.tg-swap-out #main { opacity: 0; transform: translateY(-8px); transition: opacity .15s ease-in, transform .15s ease-in; }
  html.tg-swap-in #main { animation: tgIn .42s cubic-bezier(.16, .8, .24, 1) both; }
}
@keyframes tgOut { to { opacity: 0; transform: translateY(-14px) scale(.992); filter: blur(2px); } }
@keyframes tgIn { from { opacity: 0; transform: translateY(26px); } }
@keyframes tgOutBack { to { opacity: 0; transform: translateY(14px) scale(.992); filter: blur(2px); } }
@keyframes tgInBack { from { opacity: 0; transform: translateY(-22px); } }
#main h1[tabindex="-1"]:focus { outline: none; }
