/* =========================================================
   IBS불법사채피해센터 - 공용 스타일
   Navy(#0B1E3F) + Gold(#C9A961) + Cream(#F7F4EE)
   ========================================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #ffffff;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif KR', 'Pretendard', serif;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
}
p { margin: 0; }

/* ---------- Design Tokens ---------- */
:root {
  --navy-950: #06132A;
  --navy-900: #0B1E3F;
  --navy-800: #14284D;
  --navy-700: #1E3663;
  --navy-100: #E5EAF3;

  --gold-600: #B08D3F;
  --gold-500: #C9A961;
  --gold-400: #D9BE7A;
  --gold-100: #F5EBD3;

  --cream: #F7F4EE;
  --ivory: #FBF9F4;
  --line: #E4DFD3;

  --ink: #1A1A1A;
  --ink-2: #4A4A4A;
  --ink-3: #7C7C7C;
  --ink-4: #B0B0B0;

  --danger: #B23A3A;

  --shadow-sm: 0 1px 2px rgba(11,30,63,.06), 0 1px 3px rgba(11,30,63,.05);
  --shadow-md: 0 4px 12px rgba(11,30,63,.08), 0 2px 4px rgba(11,30,63,.05);
  --shadow-lg: 0 20px 40px rgba(11,30,63,.12), 0 8px 16px rgba(11,30,63,.06);
  --shadow-gold: 0 8px 24px rgba(201,169,97,.28);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --container: 1200px;
  --container-wide: 1360px;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: var(--gold-500);
  padding: 12px 20px;
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Site Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__top {
  background: var(--navy-950);
  color: #d8dbe4;
  font-size: 13px;
}
.site-header__top-inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: 8px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}
.site-header__top a { color: #d8dbe4; }
.site-header__top a:hover { color: var(--gold-400); }

.site-header__main {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand__mark {
  width: 40px; height: 40px;
  background: var(--navy-900);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--gold-500);
  font-family: 'Noto Serif KR', serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.05em;
  border: 1px solid var(--gold-500);
}
.brand__text {
  display: flex; flex-direction: column;
  line-height: 1.2;
}
.brand__name {
  font-family: 'Noto Serif KR', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy-900);
  letter-spacing: -0.03em;
}
.brand__sub {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-primary {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  gap: 4px;
  white-space: nowrap;
}
.nav-primary a {
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-900);
  border-radius: 6px;
  transition: all .15s ease;
  position: relative;
  white-space: nowrap;
}
.nav-primary a:hover {
  color: var(--gold-600);
  background: var(--ivory);
}
.nav-primary a.is-active {
  color: var(--gold-600);
}
.nav-primary a.is-active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 16px; right: 16px;
  height: 2px; background: var(--gold-500);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-cta__phone {
  font-family: 'Noto Serif KR', serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.header-cta__phone small {
  display: block;
  font-family: 'Pretendard', sans-serif;
  font-weight: 500;
  font-size: 10px;
  color: var(--gold-600);
  letter-spacing: 0.2em;
  margin-bottom: 2px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 6px;
  color: var(--navy-900);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: all .18s ease;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover {
  background: var(--gold-400);
  transform: translateY(-1px);
}
.btn--dark {
  background: var(--navy-900);
  color: #fff;
}
.btn--dark:hover { background: var(--navy-800); transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn--outline:hover {
  background: var(--navy-900);
  color: #fff;
}
.btn--outline-gold {
  background: transparent;
  color: var(--gold-500);
  border-color: var(--gold-500);
}
.btn--outline-gold:hover {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn--lg { padding: 18px 34px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

/* ---------- Sections ---------- */
section { padding-block: 100px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header__eyebrow {
  display: inline-block;
  font-family: 'Pretendard', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-600);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-header__eyebrow::before,
.section-header__eyebrow::after {
  content: '—';
  margin: 0 12px;
  color: var(--gold-500);
}
.section-header__title {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--navy-900);
  margin-bottom: 20px;
}
.section-header__title .accent { color: var(--gold-600); }
.section-header__desc {
  max-width: 640px;
  margin-inline: auto;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.75;
}

/* ---------- AI TL;DR block ---------- */
.ai-tldr {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 32px 0;
}
.ai-tldr__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-600);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ai-tldr__label::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--gold-500);
}
.ai-tldr p {
  font-size: 15.5px;
  color: var(--navy-900);
  line-height: 1.75;
  font-weight: 500;
}
.ai-tldr p + p { margin-top: 8px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  background: var(--ivory);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.breadcrumbs ol {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before {
  content: '›';
  color: var(--ink-4);
}
.breadcrumbs a { color: var(--ink-3); }
.breadcrumbs a:hover { color: var(--navy-900); }
.breadcrumbs [aria-current="page"] { color: var(--navy-900); font-weight: 600; }

/* ---------- Page Hero (subpages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  color: #fff;
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,169,97,.18), transparent 70%);
  pointer-events: none;
}
.page-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-400);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-hero__title {
  font-size: clamp(32px, 5vw, 52px);
  color: #fff;
  margin-bottom: 16px;
}
.page-hero__title .accent { color: var(--gold-400); }
.page-hero__desc {
  font-size: 17px;
  color: rgba(255,255,255,.75);
  max-width: 640px;
  line-height: 1.75;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all .2s ease;
}
.card:hover {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card--dark {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-800);
}

/* ---------- Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Case Cards ---------- */
.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}
.case-card:hover {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.case-card__image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  position: relative;
  overflow: hidden;
}
.case-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg,
      transparent 0 24px,
      rgba(201,169,97,.06) 24px 25px);
}
.case-card__badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  z-index: 2;
}
.case-card__amount {
  position: absolute;
  bottom: 20px; left: 20px;
  color: #fff;
  z-index: 2;
}
.case-card__amount-label {
  font-size: 11px;
  color: var(--gold-400);
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}
.case-card__amount-value {
  font-family: 'Noto Serif KR', serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.case-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.case-card__meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.case-card__title {
  font-size: 18px;
  color: var(--navy-900);
  margin-bottom: 10px;
  line-height: 1.4;
}
.case-card__excerpt {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
  flex: 1;
}
.case-card__foot {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--gold-600);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------- Post cards ---------- */
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post-card:hover {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-md);
}
.post-card__cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-600);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.post-card__title {
  font-size: 17px;
  color: var(--navy-900);
  line-height: 1.5;
}
.post-card__excerpt {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__date {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: auto;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all .2s ease;
}
.faq-item[open] { border-color: var(--gold-500); box-shadow: var(--shadow-md); }
.faq-item__q {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q-mark {
  font-family: 'Noto Serif KR', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-500);
  flex-shrink: 0;
}
.faq-item__q-text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.5;
}
.faq-item__q-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  transition: all .2s ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-item__q-icon {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--gold-500);
  transform: rotate(45deg);
}
.faq-item__a {
  padding: 0 26px 24px 66px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: #b8bccc;
  padding: 70px 0 40px;
  font-size: 14px;
}
.site-footer a { color: #b8bccc; }
.site-footer a:hover { color: var(--gold-400); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-brand__name {
  font-family: 'Noto Serif KR', serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand__desc { color: #8a90a3; line-height: 1.75; margin-bottom: 20px; max-width: 340px; }
.footer-col h4 {
  font-family: 'Pretendard', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-400);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col li a { line-height: 1.5; }
.footer-info { line-height: 1.9; color: #8a90a3; }
.footer-info strong { color: #d8dbe4; font-weight: 600; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  color: #6f7591;
}
.footer-bottom__links { display: flex; gap: 20px; }
.footer-notice {
  background: rgba(201,169,97,.08);
  border-left: 3px solid var(--gold-500);
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #d8dbe4;
  margin-top: 20px;
}

/* ---------- Floating CTA (RIGHT BOTTOM) ---------- */
.floating-cta {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.fc-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: all .2s ease;
  min-width: 172px;
  border: 1px solid transparent;
}
.fc-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.24); }
.fc-btn__icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.fc-btn__icon svg { width: 16px; height: 16px; }
.fc-btn--phone { background: var(--navy-900); }
.fc-btn--phone:hover { background: var(--navy-800); }
.fc-btn--kakao { background: #FEE500; color: #191600; }
.fc-btn--kakao .fc-btn__icon { background: rgba(0,0,0,.12); color: #191600; }
.fc-btn--consult {
  background: var(--gold-500);
  color: var(--navy-900);
}
.fc-btn--consult:hover { background: var(--gold-400); }
.fc-btn--consult .fc-btn__icon { background: rgba(11,30,63,.15); color: var(--navy-900); }

/* ---------- Consult Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6,19,42,.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn .2s ease;
}
.modal__panel {
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.4);
  animation: slideUp .3s cubic-bezier(.2,.9,.3,1);
  display: flex;
  flex-direction: column;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__header {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: #fff;
  padding: 28px 32px;
  position: relative;
}
.modal__eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-400);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.modal__title {
  font-size: 24px;
  color: #fff;
  margin-bottom: 8px;
}
.modal__subtitle { font-size: 14px; color: rgba(255,255,255,.7); }
.modal__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  display: grid;
  place-items: center;
  transition: all .15s;
}
.modal__close:hover { background: rgba(255,255,255,.22); transform: rotate(90deg); }
.modal__close svg { width: 18px; height: 18px; }

.modal__body { padding: 28px 32px; overflow-y: auto; }
.modal__body::-webkit-scrollbar { width: 6px; }
.modal__body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 8px;
}
.form-row label .required { color: var(--danger); margin-left: 2px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border .15s, box-shadow .15s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201,169,97,.15);
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-row-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-consent {
  background: var(--ivory);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 16px;
}
.form-consent input { margin-top: 3px; }
.form-consent a { color: var(--gold-600); text-decoration: underline; }
.form-success {
  padding: 40px 20px;
  text-align: center;
}
.form-success__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-600);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}
.form-success h3 { font-size: 22px; color: var(--navy-900); margin-bottom: 10px; }
.form-success p { color: var(--ink-2); font-size: 15px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-24 { margin-bottom: 24px; }
.divider {
  height: 1px;
  background: var(--line);
  margin: 40px 0;
  border: 0;
}
.gold-line {
  width: 60px; height: 3px;
  background: var(--gold-500);
  margin: 0 auto 24px;
}
.gold-line--left { margin-left: 0; }

/* ---------- Trust & source panels ---------- */
.trust-panel {
  margin-top: 40px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: 12px;
  background: var(--ivory);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.8;
}
.trust-panel strong { color: var(--navy-900); }
.trust-panel__links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.trust-panel__links a { color: var(--gold-600); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.content-meta { margin-top: 20px; color: var(--ink-3); font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .site-header__main { max-width: none; padding: 14px 16px; gap: 12px; }
  .nav-primary { gap: 0; }
  .nav-primary a { padding: 9px 9px; font-size: 14px; }
  .brand { gap: 8px; }
  .brand__mark { width: 36px; height: 36px; font-size: 16px; }
  .brand__name { font-size: 16px; }
  .brand__sub { font-size: 9px; letter-spacing: .1em; }
  .header-cta__phone { font-size: 18px; }
}

@media (max-width: 1120px) {
  .brand__text { display: none; }
  .nav-primary a { padding-inline: 7px; font-size: 13.5px; }
}

@media (max-width: 960px) {
  .brand__text { display: flex; }
  .nav-primary { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .header-cta__phone { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding-block: 70px; }
}

@media (max-width: 640px) {
  html { font-size: 15px; }
  body { font-size: 15.5px; line-height: 1.75; }
  .site-header__top { display: none; }
  .site-header__main { padding: 14px 18px; }
  .brand__mark { width: 36px; height: 36px; font-size: 15px; }
  .brand__name { font-size: 15px; }
  .brand__sub { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  section { padding-block: 56px; }
  .section-header { margin-bottom: 40px; }
  .section-header__title { font-size: 26px; line-height: 1.3; }
  .section-header__desc { font-size: 15px; }
  .page-hero { padding: 60px 0 56px; }
  .page-hero__title { font-size: 28px; line-height: 1.25; }
  .page-hero__desc { font-size: 15px; }
  .fc-btn { min-width: 0; padding: 12px; }
  .fc-btn__label { display: none; }
  .floating-cta { right: 14px; bottom: 84px; gap: 8px; }
  .modal__panel { max-height: calc(100vh - 20px); border-radius: 16px; }
  .modal__header, .modal__body { padding: 22px 20px; }
  .modal__title { font-size: 20px; }
  .form-row input, .form-row select, .form-row textarea { font-size: 16px; padding: 12px 14px; }
  .form-row-inline { grid-template-columns: 1fr; }
  .ai-tldr { padding: 20px; }
  .ai-tldr p { font-size: 14.5px; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .btn--lg { padding: 15px 24px; font-size: 15px; }
  .case-card__title { font-size: 16px; }
  .case-card__amount-value { font-size: 22px; }
  .faq-item__q { padding: 18px 20px; gap: 14px; }
  .faq-item__q-text { font-size: 15px; }
  .faq-item__q-mark { font-size: 18px; }
  .faq-item__a { padding: 0 20px 20px 52px; font-size: 14.5px; line-height: 1.75; }
  .breadcrumbs { font-size: 12px; padding: 12px 0; }
  .footer-brand__desc { font-size: 13.5px; }
  .footer-notice { font-size: 12px; }
}

/* Mobile bottom safe area */
@media (max-width: 640px) {
  body { padding-bottom: env(safe-area-inset-bottom); }
  .floating-cta { bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* Small phones */
@media (max-width: 380px) {
  .section-header__title { font-size: 23px; }
  .btn__label, .fc-btn__label { display: none; }
}

/* ---------- Real case cards (카톡 캡쳐 기반) ---------- */
.rc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { .rc-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 640px) { .rc-grid { grid-template-columns: 1fr; gap: 14px; } }

.rc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  font-family: inherit;
}
.rc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-500);
}
.rc-card:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}
.rc-card__thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #A5C8E1;
}
.rc-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .5s ease;
}
.rc-card:hover .rc-card__thumb img { transform: scale(1.03); }
.rc-card__thumb::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(transparent, rgba(6,19,42,.72));
  pointer-events: none;
}
.rc-card__zoom {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy-900);
  opacity: 0;
  transition: opacity .2s;
}
.rc-card:hover .rc-card__zoom { opacity: 1; }
.rc-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.rc-card__caption-on-thumb {
  position: absolute;
  bottom: 14px; left: 16px; right: 16px;
  color: #fff;
  z-index: 2;
}
.rc-card__amount-lbl {
  font-size: 11px;
  color: var(--gold-400);
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 4px;
}
.rc-card__amount {
  font-family: 'Noto Serif KR', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.rc-card__body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.rc-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.5;
  margin-bottom: 10px;
}
.rc-card__excerpt {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
  flex: 1;
}
.rc-card__foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
}
.rc-card__cta {
  color: var(--gold-600);
  font-weight: 700;
}
@media (max-width: 640px) {
  .rc-card__title { font-size: 15px; }
  .rc-card__excerpt { font-size: 13px; line-height: 1.65; }
  .rc-card__amount { font-size: 20px; }
  .rc-card__body { padding: 18px; }
}

/* ---------- Lightbox (case detail modal) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6,19,42,.9);
  animation: fadeIn .2s ease;
}
.lightbox__panel {
  position: relative;
  background: #fff;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  animation: slideUp .3s cubic-bezier(.2,.9,.3,1);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 800px) {
  .lightbox__panel { grid-template-columns: 1fr; max-height: calc(100vh - 32px); }
}
.lightbox__image {
  background: #A5C8E1;
  overflow: auto;
  max-height: calc(100vh - 40px);
}
.lightbox__image img { width: 100%; display: block; }
.lightbox__info {
  padding: 32px;
  overflow-y: auto;
  max-height: calc(100vh - 40px);
}
@media (max-width: 800px) {
  .lightbox__image { max-height: 50vh; }
  .lightbox__info { padding: 24px; }
}
.lightbox__badge {
  display: inline-block;
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.lightbox__title {
  font-size: 22px;
  color: var(--navy-900);
  margin-bottom: 8px;
  line-height: 1.4;
}
.lightbox__meta {
  color: var(--ink-3);
  font-size: 13px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.lightbox__body {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.85;
  margin-bottom: 24px;
}
.lightbox__body strong { color: var(--navy-900); }
.lightbox__stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.lightbox__stat {
  background: var(--ivory);
  border-radius: 8px;
  padding: 14px;
  border-left: 3px solid var(--gold-500);
}
.lightbox__stat-label {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 4px;
}
.lightbox__stat-value {
  font-family: 'Noto Serif KR', serif;
  font-size: 18px;
  color: var(--navy-900);
  font-weight: 700;
}
.lightbox__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--navy-900);
  display: grid;
  place-items: center;
  z-index: 2;
  transition: all .15s;
}
.lightbox__close:hover { background: #fff; transform: rotate(90deg); }
.lightbox__close svg { width: 18px; height: 18px; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy-900);
  z-index: 2;
  transition: all .15s;
}
.lightbox__nav:hover { background: #fff; }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
@media (max-width: 800px) {
  .lightbox__nav--prev { left: 8px; top: 25%; }
  .lightbox__nav--next { right: 8px; top: 25%; }
}

/* ---------- KakaoTalk chat mock (기존 유지) ---------- */
.kt-chat {
  background: #A5C8E1;
  border-radius: 14px;
  padding: 14px;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}
.kt-chat__header {
  background: rgba(255,255,255,.9);
  border-radius: 8px;
  padding: 8px 12px;
  margin: -14px -14px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.kt-chat__header::before {
  content: '';
  width: 24px; height: 24px;
  background: var(--gold-500);
  color: var(--navy-900);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  font-family: 'Noto Serif KR', serif;
}
.kt-chat__header::before { content: 'i'; }
.kt-msg {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  max-width: 82%;
}
.kt-msg--user { margin-left: auto; flex-direction: row-reverse; }
.kt-msg__avatar {
  width: 30px; height: 30px;
  background: #ccc;
  border-radius: 8px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #666;
  font-weight: 700;
}
.kt-msg__avatar--staff {
  background: var(--navy-900);
  color: var(--gold-500);
  font-family: 'Noto Serif KR', serif;
}
.kt-msg__bubble {
  background: #fff;
  border-radius: 4px 12px 12px 12px;
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #222;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.kt-msg--user .kt-msg__bubble {
  background: #FEE500;
  border-radius: 12px 4px 12px 12px;
}
.kt-msg__time {
  font-size: 10px;
  color: #666;
  align-self: flex-end;
  padding-bottom: 2px;
  flex-shrink: 0;
}
.kt-chat__fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(transparent, #A5C8E1);
  pointer-events: none;
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: #fff;
  z-index: 700;
  transform: translateX(100%);
  transition: transform .3s ease;
  padding: 24px;
  overflow-y: auto;
  box-shadow: -20px 0 40px rgba(0,0,0,.2);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.mobile-nav__close {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ivory);
  display: grid;
  place-items: center;
}
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav li a {
  display: block;
  padding: 14px 12px;
  color: var(--navy-900);
  font-weight: 600;
  border-bottom: 1px solid var(--ivory);
}
.mobile-nav li a:hover { color: var(--gold-600); }
.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,19,42,.5);
  z-index: 650;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.mobile-nav__overlay.is-open { opacity: 1; pointer-events: auto; }
