@charset "UTF-8";

:root {
  --primary: #0f172a;
  --primary-dark: #070d17;
  --primary-light: #1e293b;
  --accent: #f06418;
  --accent-hover: #d9530b;
  --accent-light: #fff5ee;
  --ink: #0f172a;
  --ink-secondary: #475569;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.16);
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #f1f5f9;
  --card-soft: #f8fafc;
  
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --max: 1200px;

  /* Glossier & Linear & Vercel Multi-layer Ambient Shadows */
  --shadow-subtle: 0 1px 2px rgba(15, 23, 42, 0.03), 0 4px 16px -2px rgba(15, 23, 42, 0.04), 0 12px 28px -6px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.03), 0 6px 20px -3px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.04), 0 14px 34px -4px rgba(15, 23, 42, 0.08), 0 28px 56px -8px rgba(15, 23, 42, 0.08);
  --shadow-accent: 0 8px 24px -4px rgba(240, 100, 24, 0.28);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.02em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.wrap { width: min(var(--max), calc(100% - 64px)); margin: 0 auto; }
.wrap-narrow { width: min(880px, calc(100% - 64px)); margin: 0 auto; }

/* 1. TOPBAR (GNB) - Linear/Vercel Frosted Glassmorphism */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.top-inner {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-accent);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand:hover .brand-icon {
  transform: scale(1.05);
}
.brand-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-name small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(240, 100, 24, 0.18);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.menu a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-secondary);
  padding: 8px 0;
  position: relative;
  letter-spacing: -0.015em;
  transition: color 0.15s ease;
}
.menu a:hover { color: var(--accent); }
.menu a[aria-current="page"] {
  color: var(--accent);
  font-weight: 700;
}
.menu a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 13.5px;
  color: var(--muted);
  width: 220px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-search:focus-within {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 100, 24, 0.14);
  color: var(--ink);
}
.header-search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13.5px;
  color: var(--ink);
}
.header-search svg { width: 16px; height: 16px; color: #9ca3af; flex-shrink: 0; }

.btn-header-consult {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-header-consult:hover {
  background: var(--accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}

.nav-toggle, .drawer { display: none; }

/* 2. HERO & ORANGE CTA BAR (Linear & Vercel High-Contrast Hero) */
.hero {
  position: relative;
  background: #0d1522;
  overflow: hidden;
}
.hero-media {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 21, 34, 0.96) 0%, rgba(13, 21, 34, 0.82) 48%, rgba(13, 21, 34, 0.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  padding: 88px 0 108px;
  color: #fff;
}
.hero-sub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffb47f;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin: 0 0 20px;
}
.hero-title {
  font-size: clamp(38px, 4.8vw, 56px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.04em;
  margin: 0 0 36px;
  color: #ffffff;
}
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-metric { position: relative; }
.hero-metric + .hero-metric::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}
.metric-label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.metric-num {
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 900;
  color: #ff782e;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-feature-settings: "tnum";
}
.metric-num small {
  font-size: 18px;
  font-weight: 700;
  margin-left: 2px;
}

/* 히어로 하단 고정 오렌지 CTA 띠 바 (Glossier / Linear Glass Glow) */
.hero-cta-bar {
  background: linear-gradient(135deg, #f06418 0%, #e05307 100%);
  color: #fff;
  position: relative;
  z-index: 10;
  box-shadow: 0 10px 25px rgba(240, 100, 24, 0.25);
}
.hero-cta-inner {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-phone-block {
  display: flex;
  flex-direction: column;
}
.cta-phone-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2px;
}
.cta-phone-num {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
}
.cta-phone-num:hover { opacity: 0.92; }

.cta-actions-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cta-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  color: #fff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  position: relative;
  border-radius: var(--radius-pill);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.cta-action-item + .cta-action-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
}
.cta-action-item:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
.cta-action-item svg { width: 22px; height: 22px; }

/* 3. SHOWCASE & TABS (Modern Spacious Breathing Room) */
.section { padding: 108px 0; }
.section-header { margin-bottom: 56px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(240, 100, 24, 0.18);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.25;
}
.section-desc {
  font-size: 17px;
  color: var(--ink-secondary);
  margin: 0;
  max-width: 720px;
  line-height: 1.8;
}

.showcase-card {
  position: relative;
  min-height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  margin-bottom: 28px;
}
.showcase-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.2) 0%, rgba(17, 24, 39, 0.92) 100%);
}
.showcase-content {
  position: relative;
  z-index: 2;
  padding: 48px 52px;
  color: #fff;
  width: min(740px, 100%);
}
.showcase-content h3 {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.showcase-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 32px;
  line-height: 1.75;
}
.showcase-stats {
  display: flex;
  align-items: center;
  gap: 40px;
}
.showcase-stat-item strong {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.showcase-stat-item span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.service-tabs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-tab-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-align: left;
  box-shadow: var(--shadow-subtle);
}
.service-tab-card:hover {
  border-color: rgba(240, 100, 24, 0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.service-tab-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 12px 32px -4px rgba(240, 100, 24, 0.16);
}
.service-tab-card.is-active::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
}
.tab-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #1e293b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-tab-card.is-active .tab-icon-box {
  background: var(--accent);
}
.tab-icon-box svg { width: 22px; height: 22px; }
.tab-title {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin: 0;
}
.tab-desc {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* 4. 6-GRID STEP CARDS (Linear Clean Grid & Elevated Cards) */
.steps-section {
  background: var(--bg-soft);
  padding: 108px 0;
}
.steps-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}
.steps-sidebar h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 20px;
}
.steps-sidebar p {
  color: var(--ink-secondary);
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
}

.step-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-item-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-subtle);
}
.step-item-card:hover {
  background: #ffffff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(240, 100, 24, 0.25);
}
.step-card-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.step-item-card:hover .step-card-icon {
  transform: scale(1.08);
}
.step-card-icon svg { width: 24px; height: 24px; }
.step-card-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.step-card-body {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin: 0;
}

/* 5. DARK TRUST SECTION (Obsidian Black Glass & High Contrast) */
.trust-section {
  background: #090e17;
  color: #fff;
  padding: 112px 0;
  position: relative;
  overflow: hidden;
}
.trust-header {
  text-align: center;
  margin-bottom: 56px;
}
.trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffb47f;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}
.trust-title {
  font-size: clamp(32px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 16px;
}
.trust-desc {
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.75;
}

.trust-counter-grid {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 44px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 56px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}
.trust-counter-item {
  text-align: center;
  position: relative;
}
.trust-counter-item + .trust-counter-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.trust-c-label {
  display: block;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.trust-c-val {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.case-card-split {
  background: #ffffff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.case-card-img {
  position: relative;
  min-height: 380px;
}
.case-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-card-content {
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.case-card-tag {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.case-card-title {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}
.case-card-body {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.8;
  margin: 0;
}

/* 6. FEE STRUCTURE 3-GRID (Glossier / Linear Glass Cards & Ambient Shadows) */
.pricing-section {
  background: var(--bg);
  padding: 112px 0;
}
.pricing-header {
  text-align: center;
  margin-bottom: 64px;
}
.pricing-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(240, 100, 24, 0.18);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.pricing-title {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.pricing-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 36px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.pricing-card.is-featured {
  border: 2px solid var(--accent);
  box-shadow: 0 20px 48px -6px rgba(240, 100, 24, 0.18);
}

.pricing-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  background: var(--primary);
  color: #fff;
}
.pricing-card.is-featured .pricing-badge {
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(240, 100, 24, 0.3);
}

.pricing-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 24px;
  letter-spacing: -0.025em;
}

.pricing-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}
.pricing-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink-secondary);
  margin-bottom: 14px;
}
.pricing-checklist li svg {
  width: 17px;
  height: 17px;
  color: #9ca3af;
  flex-shrink: 0;
}
.pricing-card.is-featured .pricing-checklist li svg {
  color: var(--accent);
}

.pricing-bottom { margin-top: auto; }
.pricing-amount {
  font-size: clamp(38px, 4vw, 48px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 8px;
  font-feature-settings: "tnum";
}
.pricing-card.is-featured .pricing-amount {
  color: var(--accent);
}
.pricing-amount span {
  font-size: 18px;
  font-weight: 700;
  margin-left: 2px;
}
.pricing-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 24px;
}

.btn-pricing-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 0;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-pricing-cta:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}
.pricing-card.is-featured .btn-pricing-cta {
  background: var(--accent);
  box-shadow: var(--shadow-accent);
}
.pricing-card.is-featured .btn-pricing-cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 28px rgba(240, 100, 24, 0.38);
}

/* 7. FLOATING QUICK & TOP BUTTON */
.floating-actions {
  position: fixed;
  right: 28px;
  bottom: 32px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn-float-quick {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-float-quick:hover {
  transform: scale(1.06) translateY(-2px);
  background: #0f172a;
}
.btn-float-top {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-accent);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-float-top:hover {
  transform: scale(1.06) translateY(-2px);
  background: var(--accent-hover);
  box-shadow: 0 12px 30px rgba(240, 100, 24, 0.42);
}
.btn-float-top svg { width: 22px; height: 22px; }

/* 8. FOOTER */
.site-footer {
  background: #070d17;
  color: rgba(255, 255, 255, 0.65);
  padding: 84px 0 40px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 14px;
}
.footer-desc {
  line-height: 1.7;
  margin: 0 0 14px;
  max-width: 380px;
}
.footer-call {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  display: block;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-menu a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
}
.footer-menu a:hover { color: #fff; }
.footer-title {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .menu, .header-search { display: none; }
  .top-inner { min-height: 64px; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #111827;
  }
  .drawer {
    display: block;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    transition: max-height 0.3s;
    border-top: 1px solid var(--line);
  }
  .drawer.is-open { max-height: 380px; }
  .drawer a {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    border-bottom: 1px solid var(--line);
  }

  .hero-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 0;
    gap: 18px;
  }
  .cta-actions-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .cta-action-item { padding: 8px 4px; font-size: 12px; }
  .cta-action-item + .cta-action-item::before { display: none; }

  .service-tabs-grid, .step-cards-grid, .pricing-grid, .trust-counter-grid {
    grid-template-columns: 1fr;
  }
  .steps-layout, .case-card-split, .footer-top {
    grid-template-columns: 1fr;
  }
  .case-card-img { min-height: 240px; }
  .case-card-content { padding: 32px 24px; }
  .floating-actions { right: 16px; bottom: 20px; }
}


/* ======================================================
   온결 무빈소장례 — 확장 스타일 (서브페이지 포토 히어로·비주얼·기능 컴포넌트)
   ====================================================== */
.brand-name { font-size: 20px; font-weight: 900; color: var(--primary); }
.brand-name small { font-size: 13px; font-weight: 700; color: var(--accent); margin-left: 4px; }
.menu { display: flex; gap: 18px; flex-wrap: nowrap; }
.menu a { font-size: 14.5px; font-weight: 700; color: var(--ink-secondary); position: relative; padding: 6px 0; white-space: nowrap; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--accent); }
.urgent-strip { background: var(--primary); color: rgba(255,255,255,.88); font-size: 13.5px; }
.urgent-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.urgent-inner strong { color: #fff; margin-right: 6px; }
.urgent-inner a { color: #ffb47f; font-weight: 900; font-size: 15px; white-space: nowrap; }
.drawer-call { background: var(--accent); color: #fff !important; }
@media (min-width: 981px) { .nav-toggle, .drawer { display: none; } }
@media (max-width: 1260px) and (min-width: 981px) { .menu { gap: 13px; } .menu a { font-size: 13.5px; } .header-search { display: none; } }

.section-tag, .pricing-tag {
  display: inline-block; font-size: 12.5px; font-weight: 900; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 10px;
}
.section-header { margin-bottom: 40px; }

/* 메인 페이지와 동일한 무드의 서브페이지 풀블리드 포토 히어로 */
.subpage-hero {
  position: relative;
  background: #0d1522;
  color: #fff;
  min-height: 430px;
  display: flex;
  align-items: center;
  padding: 76px 0;
  overflow: hidden;
}
.subpage-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
}
.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 18, 30, 0.94) 0%, rgba(11, 18, 30, 0.78) 50%, rgba(11, 18, 30, 0.32) 100%);
  z-index: 1;
}
.subpage-hero::after { display: none; }
.subpage-hero-inner { position: relative; z-index: 2; max-width: 800px; }
.subpage-hero h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.32; margin: 8px 0 18px; font-weight: 900; letter-spacing: -0.03em; }
.subpage-hero p { font-size: 17px; line-height: 1.82; color: rgba(255,255,255,.86); margin: 0; }
.subpage-hero .trust-tag { color: #ffb47f; font-weight: 800; letter-spacing: .12em; font-size: 12.5px; }
.subpage-metrics {
  display: flex; flex-wrap: wrap; gap: 36px; margin-top: 28px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.subpage-metric strong { display: block; font-size: 24px; font-weight: 900; color: #ffb47f; line-height: 1.2; }
.subpage-metric span { font-size: 13.5px; color: rgba(255,255,255,.78); }

/* 포토 카드 & 비주얼 스플릿 섹션 */
.img-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 4px 16px rgba(15,23,42,.05); display: flex; flex-direction: column;
}
.img-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0d1522; }
.img-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.img-card:hover .img-card-media img { transform: scale(1.04); }
.img-card-tag {
  position: absolute; left: 14px; top: 14px; background: rgba(18, 28, 45, 0.86); color: #ffb47f;
  padding: 5px 12px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 800;
}
.img-card-body { padding: 26px 28px; flex: 1; }
.img-card-body h3 { margin: 0 0 10px; font-size: 19px; font-weight: 800; color: var(--primary); }
.img-card-body p { margin: 0; color: var(--ink-secondary); line-height: 1.75; font-size: 15px; }
.img-card-body ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-secondary); line-height: 1.8; font-size: 14.5px; }

.visual-split {
  display: grid; grid-template-columns: 1.05fr 1.15fr; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 6px 24px rgba(15,23,42,.05);
}
.visual-split.is-reverse { grid-template-columns: 1.15fr 1.05fr; }
.visual-split-media { min-height: 320px; position: relative; overflow: hidden; }
.visual-split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visual-split-body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.visual-split-body h3 { margin: 6px 0 12px; font-size: 24px; font-weight: 900; color: var(--primary); line-height: 1.38; }
.visual-split-body p { margin: 0 0 14px; color: var(--ink-secondary); line-height: 1.8; font-size: 15.5px; }
.visual-split-body ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-secondary); line-height: 1.85; font-size: 15px; }

/* 맞춤 장례 방식 진단기 위젯 */
.quiz-box {
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 36px; box-shadow: 0 8px 26px rgba(15,23,42,.06);
}
.quiz-progress { font-size: 13px; font-weight: 900; color: var(--accent); margin-bottom: 8px; letter-spacing: .04em; }
.quiz-q { margin: 0 0 18px; font-size: 21px; font-weight: 800; color: var(--primary); line-height: 1.45; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt {
  text-align: left; padding: 15px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--bg-soft); color: var(--ink); font-weight: 700; font-size: 15px; cursor: pointer; transition: all .15s;
}
.quiz-opt:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent-hover); }
.quiz-back { margin-top: 14px; background: none; border: none; color: var(--muted); font-weight: 700; cursor: pointer; padding: 4px 0; }

/* 체크리스트 진행 바 & 사전 장례 의향서 */
.check-bar { height: 6px; background: var(--bg-tint); border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.check-bar-fill { height: 100%; width: 0%; background: var(--accent); transition: width .25s ease; }
.wish-preview {
  background: #fffdf9; border: 1px solid #e5dec9; border-radius: var(--radius-lg);
  padding: 32px 34px; box-shadow: 0 4px 16px rgba(15,23,42,.04); line-height: 1.85;
}
.wish-preview h3 { text-align: center; font-size: 22px; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 2px solid var(--primary); color: var(--primary); }
.wish-dl { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; font-size: 15px; margin: 0; }
.wish-dl dt { font-weight: 800; color: var(--primary); }
.wish-dl dd { margin: 0; color: var(--ink-secondary); }

/* 사례 탭 버튼 */
.case-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.case-tabs button {
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.18);
  padding: 9px 18px; border-radius: var(--radius-pill); font-weight: 700; font-size: 14px; cursor: pointer;
}
.case-tabs button.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 공통 카드/그리드 */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 32px; box-shadow: var(--shadow-card); transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.card h3 { margin: 0 0 12px; font-size: 20px; font-weight: 800; letter-spacing: -0.025em; color: var(--primary); }
.card p { margin: 0; color: var(--ink-secondary); line-height: 1.8; font-size: 15.5px; }
.card ul { margin: 14px 0 0; padding-left: 20px; color: var(--ink-secondary); line-height: 1.85; font-size: 15px; }
.card .num-badge {
  display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-light);
  color: var(--accent); font-weight: 900; align-items: center; justify-content: center; margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(240, 100, 24, 0.2);
}
.card.is-dark { background: var(--primary); color: #fff; border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2); }
.card.is-dark h3 { color: #fff; }
.card.is-dark p, .card.is-dark ul { color: rgba(255,255,255,.8); }
.soft-bg { background: var(--bg-soft); }

.callout {
  border-left: 4px solid var(--accent); background: var(--accent-light); border-radius: var(--radius-md);
  padding: 22px 26px; color: var(--ink); line-height: 1.8; font-size: 15.5px; margin: 28px 0;
  box-shadow: var(--shadow-subtle);
}
.callout strong { color: var(--accent-hover); }
.callout.is-info { border-color: #2563eb; background: #eff6ff; }
.callout.is-info strong { color: #1d4ed8; }

/* 표 (Linear Modern Clean Table) */
.table-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow-x: auto; box-shadow: var(--shadow-card);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; text-align: left; min-width: 620px; }
.data-table th { background: var(--bg-soft); padding: 16px 20px; font-weight: 800; color: var(--primary); border-bottom: 1px solid var(--line); letter-spacing: -0.01em; }
.data-table td { padding: 18px 20px; border-bottom: 1px solid var(--line); color: var(--ink-secondary); vertical-align: top; line-height: 1.7; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(248, 250, 252, 0.8); }
.data-table td:first-child { font-weight: 700; color: var(--primary); }
.data-table .hl { color: var(--accent); font-weight: 800; }

/* 타임라인 */
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-light);
}
.tl-time { font-size: 13px; font-weight: 900; color: var(--accent); letter-spacing: .04em; }
.tl-item h4 { margin: 6px 0 8px; font-size: 18px; font-weight: 800; color: var(--primary); }
.tl-item p { margin: 0; color: var(--ink-secondary); line-height: 1.8; font-size: 15px; }
.day-label { display: inline-block; background: var(--primary); color: #fff; font-weight: 800; padding: 6px 16px; border-radius: var(--radius-pill); margin: 0 0 20px -36px; font-size: 13.5px; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15); }

/* 아코디언 & FAQ */
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-subtle); transition: border-color 0.2s; }
.acc-item:hover { border-color: rgba(240, 100, 24, 0.25); }
.acc-head { width: 100%; text-align: left; background: none; border: none; padding: 22px 28px; font-size: 17px; font-weight: 800; color: var(--primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; letter-spacing: -0.02em; }
.acc-head::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1; transition: transform 0.2s; }
.acc-item.is-open .acc-head::after { content: "−"; }
.acc-body { display: none; padding: 0 28px 24px; color: var(--ink-secondary); line-height: 1.85; font-size: 15.5px; }
.acc-item.is-open .acc-body { display: block; }
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.faq-cats button { border: 1px solid var(--line); background: #fff; padding: 9px 18px; border-radius: var(--radius-pill); font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink-secondary); box-shadow: var(--shadow-subtle); transition: all 0.2s; }
.faq-cats button:hover { border-color: var(--accent); color: var(--accent); }
.faq-cats button.is-active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15); }

/* 폼 (Glossier / Linear Clean Inputs) */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .estimator-field label { display: block; font-weight: 800; font-size: 13.5px; color: var(--primary); margin-bottom: 8px; letter-spacing: -0.01em; }
.field input, .field select, .field textarea, .estimator-field select, .estimator-field input {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus, .estimator-field select:focus, .estimator-field input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240, 100, 24, 0.16), 0 2px 6px rgba(0, 0, 0, 0.04);
}
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); padding: 10px 18px; border-radius: var(--radius-pill); cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--ink-secondary); transition: all 0.15s; }
.radio-row label:hover { border-color: var(--accent); color: var(--accent); }
.radio-row input { accent-color: var(--accent); }
.btn-primary, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 30px;
  border-radius: var(--radius-pill); font-weight: 800; font-size: 15.5px; cursor: pointer;
  letter-spacing: -0.01em; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary {
  background: var(--accent); color: #fff; border: none;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  background: var(--accent-hover); transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(240, 100, 24, 0.38);
}
.btn-outline {
  background: #fff; color: var(--ink); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-subtle);
}
.btn-outline:hover {
  border-color: var(--accent); color: var(--accent); transform: translateY(-1px);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.form-msg { margin-top: 14px; font-weight: 700; }
.form-msg.ok { color: #15803d; }
.form-msg.err { color: #b91c1c; }

/* 견적 계산기 (Floating Glass Container) */
.estimator { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.estimator-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: var(--shadow-card); }
.estimator-panel { position: sticky; top: 110px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(16px); border: 1.5px solid rgba(240, 100, 24, 0.3); border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: 0 20px 48px -8px rgba(240,100,24,.16); }
.estimator-total { font-size: 40px; font-weight: 900; color: var(--accent); margin-bottom: 20px; letter-spacing: -0.04em; }
.estimator-lines .row-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; color: var(--ink-secondary); }
.estimator-lines .row-line strong { color: var(--primary); white-space: nowrap; }
.estimator-lines .row-line.is-minus strong { color: #15803d; }
.compare-bar { margin-top: 20px; background: var(--bg-soft); border-radius: 10px; padding: 16px 18px; font-size: 14px; color: var(--ink-secondary); line-height: 1.7; border: 1px solid var(--line); }
.compare-bar b { color: #15803d; }

/* 결과 박스 (화장 시각, D-day 등) */
.result-box { margin-top: 24px; background: var(--primary); color: #fff; border-radius: var(--radius-lg); padding: 28px 30px; line-height: 1.8; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2); }
.result-box strong { color: #ffb47f; font-size: 21px; }
.result-box ul { margin: 12px 0 0; padding-left: 20px; color: rgba(255,255,255,.86); }
.dday-list { list-style: none; padding: 0; margin: 24px 0 0; }
.dday-list li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; box-shadow: var(--shadow-subtle); }
.dday-list li span { color: var(--ink-secondary); font-size: 15px; }
.dday-list li b { white-space: nowrap; color: var(--primary); }
.dday-list li.is-urgent b { color: #b91c1c; }
.dday-list li.is-past { opacity: .55; }

/* 체크리스트 */
.check-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 32px; box-shadow: var(--shadow-card); }
.check-card label { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15px; font-weight: 600; line-height: 1.6; }
.check-card label:last-of-type { border-bottom: none; }
.check-card input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check-card input:checked + span { color: var(--muted); text-decoration: line-through; }
.check-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.check-progress { font-weight: 900; color: var(--accent); font-size: 14.5px; }
.check-reset { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; }
.check-card h4 { margin: 20px 0 6px; font-size: 14px; color: var(--accent); letter-spacing: .04em; }

/* 템플릿 */
.template-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-card); margin-bottom: 22px; }
.template-box .tpl-text { white-space: pre-line; font-size: 15.5px; line-height: 1.85; color: var(--ink); margin: 14px 0 20px; }
.btn-copy { background: var(--accent); color: #fff; border: none; padding: 10px 20px; border-radius: var(--radius-pill); font-weight: 800; font-size: 13.5px; cursor: pointer; box-shadow: var(--shadow-cta); transition: all 0.2s; }
.btn-copy:hover { transform: translateY(-1px); }
.btn-copy.is-ghost { background: var(--bg-tint); color: var(--primary); box-shadow: none; }
.pricing-badge { display: inline-block; }

/* 홈 전용 */
.compare-cost { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cost-col { border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: var(--shadow-card); }
.cost-col.is-old { background: var(--bg-soft); border: 1px solid var(--line); }
.cost-col.is-new { background: var(--primary); color: #fff; border: 1px solid rgba(255,255,255,0.08); }
.cost-col h3 { margin: 0 0 8px; font-size: 21px; font-weight: 800; }
.cost-col .big { font-size: 42px; font-weight: 900; margin: 8px 0 18px; letter-spacing: -0.04em; }
.cost-col.is-new .big { color: #ffb47f; }
.cost-col ul { list-style: none; padding: 0; margin: 0; }
.cost-col li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed rgba(127,127,127,.3); font-size: 15px; }
.cost-col li s { opacity: .6; }

/* 긴급 유족 방어 가이드 (Linear Sleek Split Box) */
.emergency-box {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.emergency-box .em-left {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.emergency-box .em-left h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.emergency-box .em-left a.em-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  background: var(--accent);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 16px;
  box-shadow: var(--shadow-cta);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.emergency-box .em-left a.em-call:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.emergency-box .em-right {
  background: #ffffff;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.emergency-box ol { margin: 0; padding-left: 20px; line-height: 2; color: var(--ink-secondary); font-size: 15.5px; }
.emergency-box ol b { color: var(--primary); }

.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow-subtle);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.review-card .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 12px; }
.review-card p { color: var(--ink-secondary); line-height: 1.8; margin: 0 0 16px; font-size: 15px; }
.review-card .who { font-size: 13.5px; font-weight: 800; color: var(--primary); }

.promise-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.promise-item {
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.promise-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(240, 100, 24, 0.25);
}
.promise-item .ico { font-size: 32px; margin-bottom: 12px; }
.promise-item h4 { margin: 0 0 8px; color: var(--primary); font-size: 16.5px; font-weight: 800; }
.promise-item p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, #e05307 100%);
  color: #fff;
  padding: 72px 0;
  text-align: center;
  box-shadow: 0 12px 36px rgba(240, 100, 24, 0.25);
}
.cta-band h2 { margin: 0 0 12px; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.cta-band p { margin: 0 0 28px; opacity: .92; font-size: 17px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-primary { background: #fff; color: var(--accent); border-color: #fff; }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }

/* 빠른 메뉴 패널 */
.floating-actions { flex-direction: column; align-items: flex-end; }
.quick-panel {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 48px rgba(15,23,42,.16);
  padding: 10px;
  margin-bottom: 6px;
  min-width: 220px;
}
.quick-panel a {
  display: block;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--primary);
  transition: all 0.15s ease;
}
.quick-panel a:hover { background: var(--accent-light); color: var(--accent); }
.mobile-callbar { display: none; }
.footer-small { margin: 6px 0 0; font-size: 13px; }
.footer-bottom p { margin: 0 0 8px; line-height: 1.7; }

/* 공지·팝업 (content.js - Glassmorphism Popups) */
.notice-board { width: min(var(--max), calc(100% - 64px)); margin: 24px auto 0; display: grid; gap: 14px; }
.notice-card {
  display: flex; gap: 18px; align-items: center;
  background: var(--accent-light); border: 1px solid rgba(240, 100, 24, 0.2);
  border-radius: var(--radius-lg); padding: 18px 24px; box-shadow: var(--shadow-subtle);
}
.notice-card img { width: 90px; border-radius: 10px; }
.notice-card h2 { margin: 0 0 4px; font-size: 16px; font-weight: 800; color: var(--primary); }
.notice-card p { margin: 0; font-size: 14.5px; color: var(--ink-secondary); }
.popup-back {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.popup-card {
  position: relative; background: #fff;
  border-radius: var(--radius-lg); max-width: 460px; width: 100%; overflow: hidden;
  box-shadow: var(--shadow-modal); border: 1px solid rgba(255, 255, 255, 0.4);
}
.popup-copy { padding: 32px; }
.popup-copy h2 { margin: 0 0 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.025em; }
.popup-x {
  position: absolute; top: 12px; right: 14px; border: none;
  background: rgba(255,255,255,.9); width: 36px; height: 36px; border-radius: 50%;
  font-size: 22px; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex; align-items: center; justify-content: center;
}

/* 등장 애니메이션 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media print {
  .topbar, .site-footer, .floating-actions, .mobile-callbar, .no-print, .subpage-hero-bg, .subpage-hero::before { display: none !important; }
  .subpage-hero { background: none; color: #000; padding: 16px 0; min-height: 0; }
  .subpage-hero p, .subpage-metric span { color: #333; }
}

@media (max-width: 980px) {
  .urgent-inner { font-size: 12px; padding: 6px 0; justify-content: center; }
  .urgent-inner > span { display: none; }
  .grid-2, .grid-3, .grid-4, .compare-cost, .emergency-box, .estimator, .estimator-form, .form-grid, .visual-split, .visual-split.is-reverse { grid-template-columns: 1fr; }
  .visual-split-media { min-height: 230px; }
  .visual-split-body { padding: 28px 24px; }
  .promise-list { grid-template-columns: repeat(2, 1fr); }
  .estimator-panel { position: static; }
  .subpage-hero { padding: 56px 0 48px; min-height: 340px; }
  .subpage-metrics { gap: 20px; }
  .quiz-box { padding: 26px 22px; }
  .wish-dl { grid-template-columns: 1fr; gap: 4px; }
  .drawer.is-open { max-height: 680px; }
  .mobile-callbar {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70;
    gap: 8px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%); padding: 8px; border-radius: var(--radius-pill);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.16); border: 1px solid rgba(15, 23, 42, 0.08);
  }
  .mobile-callbar a { text-align: center; padding: 13px 8px; font-weight: 800; font-size: 13.5px; border-radius: var(--radius-pill); transition: transform 0.15s; }
  .mobile-callbar a:active { transform: scale(0.96); }
  .mc-call { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(240, 100, 24, 0.3); }
  .mc-kakao { background: #fee500; color: #191919; }
  .mc-form { background: var(--primary); color: #fff; }
  body { padding-bottom: 74px; }
  .floating-actions { bottom: 84px; }
  .emergency-box .em-left, .emergency-box .em-right { padding: 32px 26px; }
}

/* ======================================================
   GNB 드롭다운 서브메뉴 · 모바일 아코디언 · 고정 서브탭(LNB) · 서브뷰 전환
   ====================================================== */
.menu {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}
.menu-item {
  position: relative;
  display: flex;
  align-items: center;
}
.menu .menu-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  padding: 10px 2px;
  white-space: nowrap;
  position: relative;
}
.menu .menu-link:hover,
.menu .menu-link[aria-current="page"] {
  color: var(--accent);
}
.menu .menu-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
}
.menu-caret {
  width: 13px;
  height: 13px;
  opacity: 0.55;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}
.menu-item:hover .menu-caret,
.menu-item:focus-within .menu-caret,
.menu-item.is-touch-open .menu-caret {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--accent);
}

.submenu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -14px;
  min-width: 284px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: 0 20px 48px -6px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 90;
}
.submenu-dropdown::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.submenu-dropdown.is-right {
  left: auto;
  right: -8px;
}
.menu-item:not(.is-closing):hover .submenu-dropdown,
.menu-item:not(.is-closing):focus-within .submenu-dropdown,
.menu-item.is-touch-open .submenu-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.submenu-head {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding: 5px 12px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 5px;
}
.menu .submenu-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  white-space: normal;
  transition: background 0.15s ease, color 0.15s ease;
}
.menu .submenu-link::after { display: none !important; }
.menu .submenu-link:hover {
  background: var(--bg-soft);
}
.menu .submenu-link.is-active {
  background: var(--accent-light);
}
.submenu-link-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
}
.menu .submenu-link:hover .submenu-link-title,
.menu .submenu-link.is-active .submenu-link-title {
  color: var(--accent);
}
.menu .submenu-link.is-active .submenu-link-title::after {
  content: "●";
  font-size: 8px;
  color: var(--accent);
}
.submenu-link-desc {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 1280px) and (min-width: 981px) {
  .menu { gap: 10px; }
  .menu .menu-link { font-size: 13.5px; }
  .header-search { display: none; }
}

/* 서브페이지 컴팩트 포토 히어로 & 브레드크럼 */
.subpage-hero {
  min-height: 310px;
  padding: 48px 0;
}
.hero-sub-crumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  backdrop-filter: blur(4px);
}
.hero-sub-crumb a:hover { color: #ffffff; text-decoration: underline; }
.hero-sub-crumb .crumb-sep { opacity: 0.55; }
.hero-sub-crumb strong { color: #ffb47f; font-weight: 800; }

/* 서브페이지 상단 고정 서브탭 바 (LNB) */
.subnav-bar {
  position: sticky;
  top: var(--topbar-h, 114px);
  z-index: 48;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.subnav-inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-tabs {
  display: flex;
  align-items: stretch;
  gap: 4px;
  min-width: 100%;
}
.subnav-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 15px 18px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.subnav-tab:hover {
  color: var(--primary);
  background: var(--bg-soft);
}
.subnav-tab.is-active {
  color: var(--accent);
  font-weight: 800;
  border-bottom-color: var(--accent);
  background: rgba(240, 100, 24, 0.04);
}
.subnav-num {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  background: var(--bg-tint);
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1.3;
}
.subnav-tab.is-active .subnav-num {
  background: var(--accent);
  color: #ffffff;
}

/* 독립 서브메뉴 화면 표시 & 하단 이전/다음 서브메뉴 네비게이터 */
[data-sub][hidden] { display: none !important; }
main [data-sub].section,
main [data-sub].pricing-section {
  padding: 64px 0 44px;
  background: #ffffff;
}
.sub-pager-section {
  padding: 8px 0 72px;
  background: #ffffff;
}
.sub-pager {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.sub-pager-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  transition: all 0.18s ease;
}
.sub-pager-card.is-next {
  text-align: right;
  align-items: flex-end;
}
.sub-pager-card:not(.is-empty):hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(240, 100, 24, 0.1);
}
.sub-pager-card.is-empty {
  visibility: hidden;
  pointer-events: none;
}
.sub-pager-dir {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--accent);
}
.sub-pager-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
}
.sub-pager-desc {
  font-size: 13.5px;
  color: var(--muted);
}

/* 푸터 전체 서브메뉴 사이트맵 */
.footer-sitemap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-map-head {
  display: inline-block;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  margin-bottom: 10px;
}
.footer-map-head:hover { color: #ffb47f; }
.footer-map-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-map-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.45;
}
.footer-map-links a:hover { color: #ffffff; }

/* 모바일 드로어 아코디언 & 반응형 보정 */
@media (max-width: 980px) {
  .menu, .header-search { display: none; }
  .drawer.is-open {
    max-height: calc(100vh - 104px);
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
  }
  .drawer-group { border-bottom: 1px solid var(--line); }
  .drawer-group-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 24px;
    background: #ffffff;
    border: none;
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    cursor: pointer;
    text-align: left;
  }
  .drawer-group.is-current .drawer-group-btn { color: var(--accent); }
  .drawer-group .menu-caret { width: 16px; height: 16px; opacity: 0.65; }
  .drawer-group.is-open .menu-caret {
    transform: rotate(180deg);
    color: var(--accent);
    opacity: 1;
  }
  .drawer-subs {
    display: none;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    padding: 6px 0;
  }
  .drawer-group.is-open .drawer-subs { display: block; }
  .drawer .drawer-sublink {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 24px 10px 32px;
    border-bottom: none;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink);
  }
  .drawer .drawer-sublink.is-active {
    background: var(--accent-light);
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 29px;
  }
  .drawer-sub-desc {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
  }
  .subpage-hero {
    padding: 38px 0 34px;
    min-height: 250px;
  }
  .subnav-tab {
    padding: 12px 14px;
    font-size: 13.5px;
  }
  main [data-sub].section,
  main [data-sub].pricing-section {
    padding: 44px 0 32px;
  }
  .sub-pager {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .sub-pager-card.is-empty { display: none; }
  .sub-pager-card.is-next {
    text-align: left;
    align-items: flex-start;
  }
  .footer-sitemap {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 16px;
  }
}

/* ======================================================
   고운별장례 차별화 UI:
   1) 개통 예정 번호 안내 배지 (실제 번호 입력 시 자동 숨김)
   2) 빈소 강요 방어 대화 스크립트 & 병원 원무과 체크포인트
   3) 식장+화장장+의전 3원 통합 총비용 시뮬레이터
   ====================================================== */
.phone-temp-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(240, 100, 24, 0.14);
  color: var(--accent);
  vertical-align: middle;
  letter-spacing: 0;
}
.urgent-inner .phone-temp-badge,
.hero-cta-bar .phone-temp-badge,
.site-footer .phone-temp-badge {
  background: rgba(255, 255, 255, 0.16);
  color: #ffd5b5;
}
body[data-phone-live="1"] .phone-temp-badge {
  display: none !important;
}

/* 실전 대화 스크립트 덱 */
.script-deck {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.script-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.script-tab {
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.16s ease;
}
.script-tab-step {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 4px;
}
.script-tab-title {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.35;
}
.script-tab:hover {
  border-color: var(--accent);
  background: #ffffff;
}
.script-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}
.script-tab.is-active .script-tab-step { color: #ffb47f; }
.script-tab.is-active .script-tab-title { color: #ffffff; }

.dialogue-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 20px;
  align-items: stretch;
}
.dlg-box {
  border-radius: var(--radius-md);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dlg-them {
  background: #fff8f1;
  border: 1px solid #fed7aa;
}
.dlg-us {
  background: var(--primary);
  color: #ffffff;
  border: 2px solid var(--primary);
}
.dlg-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.dlg-them .dlg-badge {
  background: #ffedd5;
  color: #c2410c;
}
.dlg-us .dlg-badge {
  background: var(--accent);
  color: #ffffff;
}
.dlg-quote {
  font-size: 16.5px;
  line-height: 1.78;
  font-weight: 700;
  margin: 0 0 14px;
}
.dlg-them .dlg-quote { color: #7c2d12; }
.dlg-us .dlg-quote { color: #ffffff; font-size: 17.5px; }
.dlg-sub {
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0;
}
.dlg-them .dlg-sub { color: #9a3412; }
.dlg-us .dlg-sub { color: rgba(255, 255, 255, 0.78); }

.dlg-law-bar {
  margin-top: 18px;
  padding: 18px 22px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.dlg-law-text {
  flex: 1 1 420px;
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.7;
}
.dlg-law-text strong { color: var(--primary); }

/* 서명 금지 / 원무과 방어 카드 */
.defense-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.defense-rule-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}
.defense-rule-card .rule-no {
  font-size: 12px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}
.defense-rule-card h4 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
}
.defense-rule-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.7;
}

/* 3원 통합 총비용 시뮬레이터 프리셋 & 지불처 분리 UI */
.preset-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.preset-label {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary);
  margin-right: 6px;
}
.preset-chip {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.preset-chip:hover,
.preset-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.payer-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 16px;
}
.payer-item {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 10px;
  text-align: center;
}
.payer-item span {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 3px;
}
.payer-item strong {
  display: block;
  font-size: 14.5px;
  font-weight: 900;
  color: var(--primary);
}
.payer-item.is-brand {
  background: var(--accent-light);
  border-color: #fed7aa;
}
.payer-item.is-brand strong { color: var(--accent-hover); }

.net-burden-card {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.net-burden-card span {
  font-size: 13.5px;
  font-weight: 800;
  color: #065f46;
}
.net-burden-card strong {
  font-size: 20px;
  font-weight: 900;
  color: #047857;
}

@media (max-width: 980px) {
  .script-deck { padding: 22px 18px; }
  .script-tabs { grid-template-columns: repeat(2, 1fr); }
  .dialogue-grid,
  .defense-rule-grid { grid-template-columns: 1fr; }
  .payer-split { grid-template-columns: 1fr; }
  .payer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
  }
  .payer-item span { margin-bottom: 0; }
}
@media (max-width: 560px) {
  .script-tabs { grid-template-columns: 1fr; }
}

/* ==========================================================================
   확장 고도화 UI — 법적 고지 모달 · 지도사 실명제 · 정산서 표본 · 50분 추모식 · 스마트폰 최적화
   ========================================================================== */

body.is-modal-open {
  overflow: hidden;
}

/* 푸터 약관 바 & 사업자 정보 */
.footer-policy-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-policy-btn,
.footer-policy-link,
.footer-admin-link {
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.footer-policy-btn.is-primary {
  background: rgba(240, 100, 24, 0.22);
  border-color: rgba(255, 180, 127, 0.45);
  color: #ffd8bd;
  font-weight: 800;
}
.footer-policy-btn:hover,
.footer-policy-link:hover,
.footer-admin-link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}
.footer-admin-link {
  margin-left: auto;
  opacity: 0.72;
}
.footer-biz-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 14px 0 4px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.7;
}
.footer-biz-info strong {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  margin-right: 4px;
}

/* 법적 고지 모달 */
.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.legal-modal-backdrop[hidden] {
  display: none !important;
}
.legal-modal-card {
  width: 100%;
  max-width: 720px;
  max-height: 86vh;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.legal-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.legal-modal-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}
.legal-modal-x {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink-secondary);
  font-size: 16px;
  cursor: pointer;
}
.legal-modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.78;
}
.legal-line {
  margin: 0 0 6px;
}
.legal-line-head {
  margin: 12px 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
}
.legal-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

/* 공유 버튼 & 액션 그룹 */
.dlg-law-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.btn-copy.is-share {
  background: #fff7ed;
  color: var(--accent-hover);
  border: 1px solid #fdba74;
}
.btn-copy.is-share:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* 국가공인 장례지도사 실명 프로필 카드 */
.directors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.director-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}
.director-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.director-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #334155);
  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid var(--accent-light);
}
.director-license {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--accent-hover);
  background: var(--accent-light);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  margin-bottom: 4px;
}
.director-name {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  color: var(--primary);
}
.director-name small {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}
.director-meta {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}
.director-meta > div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
  line-height: 1.5;
}
.director-meta strong {
  color: var(--primary);
  font-weight: 800;
}
.director-meta span {
  color: var(--ink-secondary);
}
.director-bio {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.7;
}
.director-pledge {
  margin: auto 0 0;
  padding: 12px 14px;
  background: #fffaf5;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.6;
}

/* 실제 3원 정산서 검증 표본 */
.receipt-specimen {
  background: #ffffff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}
.receipt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 2px dashed var(--line-strong);
  margin-bottom: 22px;
}
.receipt-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
}
.receipt-sub {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-secondary);
}
.receipt-stamp {
  padding: 8px 14px;
  border: 2px solid #dc2626;
  color: #dc2626;
  font-size: 13px;
  font-weight: 900;
  border-radius: var(--radius-sm);
  transform: rotate(-2deg);
  white-space: nowrap;
  background: #fef2f2;
}
.receipt-payer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.receipt-payer-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.receipt-payer-box span {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-secondary);
  margin-bottom: 4px;
}
.receipt-payer-box strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
}
.receipt-payer-box small {
  font-size: 12.5px;
  color: var(--muted);
}
.receipt-payer-box.is-accent {
  background: var(--accent-light);
  border-color: #fdba74;
}
.receipt-payer-box.is-accent strong {
  color: var(--accent-hover);
}
.receipt-grand-bar {
  margin-top: 18px;
  padding: 20px 24px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.receipt-grand-label {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
  display: block;
  margin-bottom: 2px;
}
.receipt-grand-val {
  font-size: 28px;
  font-weight: 900;
  color: #ffb47f;
}
.receipt-save-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: #ffffff;
}
.receipt-save-pill strong {
  color: #6ee7b7;
}
.receipt-foot-note {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* 50분 입관 추모식 식순 & 마지막 편지 도우미 */
.ceremony-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}
.cue-tabs,
.persuade-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.cue-tab,
.persuade-tab {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cue-tab.is-active,
.persuade-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}
.cue-summary-bar {
  padding: 12px 16px;
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.6;
}
.cue-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cue-step-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.cue-step-time {
  font-size: 13px;
  font-weight: 900;
  color: var(--accent-hover);
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  text-align: center;
  align-self: start;
}
.cue-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.cue-step-head strong {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--primary);
}
.cue-step-head span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  background: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
}
.cue-step-body p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* 선불 상조 해약환급금 vs 후불 고운별장례 비교 계산기 */
.compare-vs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.vs-box {
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.vs-box.is-good {
  background: #ecfdf5;
  border-color: #6ee7b7;
}
.vs-box h4 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--primary);
}
.vs-box .vs-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 6px;
}
.vs-box.is-good .vs-num {
  color: #047857;
}
.vs-win-banner {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}
.vs-win-banner strong {
  color: #ffb47f;
}

/* 병실 무음 상담 모드 배너 */
.silent-mode-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line-strong);
  background: #f8fafc;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.silent-mode-banner input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.silent-mode-banner.is-active {
  background: #fff7ed;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(240, 100, 24, 0.1);
}
.silent-mode-banner strong {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 3px;
}
.silent-mode-banner span {
  display: block;
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.55;
}

/* 가족 설득 1분 요약 카드 */
.persuade-card {
  margin-top: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

/* 스마트폰 UX 최적화 (iOS 자동 줌 방지 · 노치 안전영역 · 가로 스크롤 힌트) */
@media (max-width: 980px) {
  .directors-grid,
  .receipt-payer-grid,
  .compare-vs-grid {
    grid-template-columns: 1fr;
  }
  .receipt-head {
    flex-direction: column;
  }
  .footer-admin-link {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .form-control,
  input[type="text"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  input[type="datetime-local"],
  select,
  textarea {
    font-size: 16px !important;
  }
  .cue-step-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cue-step-time {
    justify-self: start;
  }
  .receipt-specimen,
  .ceremony-box,
  .persuade-card {
    padding: 20px 16px;
  }
  .legal-modal-backdrop {
    padding: 10px;
    align-items: flex-end;
  }
  .legal-modal-card {
    max-height: 90vh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mobile-callbar {
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .table-wrap {
    position: relative;
    -webkit-overflow-scrolling: touch;
  }
}

/* ==========================================================================
   실시간 장례 진행상태 확인 시스템 (Live Funeral Status Tracker)
   ========================================================================== */
.status-tracker-wrap {
  margin: 32px 0 60px;
}
.status-search-card {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.06), 0 8px 10px -6px rgba(0,0,0,0.04);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
}
.status-search-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.status-search-form .field {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.status-search-form .field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-secondary);
}
.status-search-form input {
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 15px;
  background: var(--bg-soft);
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.status-search-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(240, 100, 24, 0.15);
}
.status-search-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.status-recent-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 16px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: #9a3412;
  cursor: pointer;
  transition: all 0.2s;
}
.status-recent-pill:hover {
  background: #ffedd5;
  transform: translateY(-1px);
}

/* 7단계 비주얼 스테퍼 */
.status-stepper-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.status-stepper-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.status-stepper-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.stepper-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  position: relative;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 1;
}
.step-item.is-done:not(:last-child)::after {
  background: #10b981;
}
.step-icon-bubble {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--line-strong);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}
.step-item.is-done .step-icon-bubble {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}
.step-item.is-current .step-icon-bubble {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 0 5px rgba(240, 100, 24, 0.2);
}
.step-label {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.3;
}
.step-item.is-done .step-label {
  color: var(--ink);
}
.step-item.is-current .step-label {
  color: var(--accent);
  font-weight: 900;
}

/* 현재 상태 스포트라이트 */
.status-spotlight-card {
  background: linear-gradient(135deg, #121c2d 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.status-spotlight-card::before {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(240, 100, 24, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.status-spotlight-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.status-stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(240, 100, 24, 0.25);
  border: 1px solid rgba(240, 100, 24, 0.5);
  color: #fed7aa;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
}
.status-spotlight-title {
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 10px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}
.status-spotlight-note {
  font-size: 16px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
  max-width: 800px;
}
.status-meta-row {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #94a3b8;
}
.status-meta-row b {
  color: #f1f5f9;
}

/* 4대 대시보드 카드 */
.status-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.status-dash-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}
.status-dash-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.dash-card-icon {
  font-size: 26px;
  margin-bottom: 12px;
}
.dash-card-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.dash-card-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
}
.dash-card-sub {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.45;
  margin: 0 0 14px;
}
.dash-card-btn-row {
  margin-top: auto;
  display: flex;
  gap: 6px;
}

/* 타임라인 로그 */
.status-timeline-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}
.timeline-list {
  position: relative;
  padding-left: 28px;
  margin: 20px 0 0;
}
.timeline-list::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 2px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  padding-bottom: 24px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-time {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 3px;
}
.timeline-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.timeline-note {
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin: 0;
}

/* 유족 맞춤 안심 가이드 */
.status-guide-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.status-guide-box h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-guide-box p {
  margin: 0;
  font-size: 14px;
  color: #78350f;
  line-height: 1.6;
}

/* 액션 바 */
.status-share-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

@media (max-width: 900px) {
  .stepper-track {
    display: flex;
    overflow-x: auto;
    padding-bottom: 12px;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
  }
  .step-item {
    min-width: 90px;
    flex-shrink: 0;
  }
  .step-item:not(:last-child)::after {
    display: none;
  }
  .status-dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .status-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .status-search-card {
    padding: 20px 16px;
  }
  .status-spotlight-card {
    padding: 24px 18px;
  }
  .status-spotlight-title {
    font-size: 21px;
  }
}

/* ==========================================================================
   실시간 장례 진행 현황판 (Live In-Progress Funeral Services Board)
   ========================================================================== */
.liveboard-wrap {
  margin: 20px 0 40px;
}
.liveboard-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  color: #15803d;
}
.live-indicator .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseDot 1.8s infinite;
}
.liveboard-tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}
.liveboard-filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}
.liveboard-tab-btn {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.liveboard-tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.liveboard-tab-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}
.liveboard-search-input {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  min-width: 210px;
  background: #ffffff;
}
.liveboard-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 100, 24, 0.15);
}

/* PC 데스크톱 테이블 뷰 */
.liveboard-desktop-view {
  display: block;
}
.liveboard-table-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.liveboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}
.liveboard-table th {
  background: #f8fafc;
  color: var(--ink-secondary);
  font-weight: 800;
  font-size: 13px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.liveboard-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.liveboard-table tr:last-child td {
  border-bottom: none;
}
.liveboard-table tr:hover td {
  background: #fafaf9;
}
.stage-pill-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}
.stage-pill-live.st-1 { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.stage-pill-live.st-2 { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.stage-pill-live.st-3 { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.stage-pill-live.st-4 { background: #fdf2f8; color: #be185d; border: 1px solid #fbcfe8; }
.stage-pill-live.st-5 { background: #fff7ed; color: #c2410c; border: 1px solid #ffedd5; }
.stage-pill-live.st-6 { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.stage-pill-live.st-7 { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }

/* 모바일 카드 뷰 */
.liveboard-mobile-view {
  display: none;
}
.liveboard-card-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.liveboard-m-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.liveboard-m-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.liveboard-m-deceased {
  font-size: 17px;
  font-weight: 900;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.liveboard-m-client {
  font-size: 13.5px;
  color: var(--ink-secondary);
}
.liveboard-m-info-list {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  line-height: 1.5;
}
.liveboard-m-info-list div {
  display: flex;
  justify-content: space-between;
}
.liveboard-m-info-list span {
  color: var(--muted);
}
.liveboard-m-info-list b {
  color: var(--ink);
  text-align: right;
}

@media (max-width: 900px) {
  .liveboard-desktop-view {
    display: none !important;
  }
  .liveboard-mobile-view {
    display: block !important;
  }
}


/* =========================================================
   네이버 스마트플레이스 & 공식 블로그 연동 스타일
   ========================================================= */

/* 헤더 상단 바로가기 알약 버튼 */
.header-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.header-link-pill.place {
  background: rgba(3, 199, 90, 0.1);
  color: #03c75a;
  border: 1px solid rgba(3, 199, 90, 0.35);
}
.header-link-pill.place:hover {
  background: #03c75a;
  color: #fff;
}
.header-link-pill.blog {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.header-link-pill.blog:hover {
  background: #059669;
  color: #fff;
}

@media (max-width: 900px) {
  .header-link-pill {
    display: none !important;
  }
}

/* 모바일 드로어 SNS 행 */
.drawer-sns-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-soft, #f8fafc);
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.drawer-sns-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}
.drawer-sns-btn.place {
  background: #03c75a;
  color: #fff;
}
.drawer-sns-btn.blog {
  background: #10b981;
  color: #fff;
}
.drawer-sns-btn.kakao {
  background: #fee500;
  color: #191919;
}

/* 푸터 공식 채널 바로가기 바 */
.footer-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 24px;
}
.footer-ch-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}
.footer-ch-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.footer-ch-link.place {
  border-color: rgba(3, 199, 90, 0.4);
  color: #a7f3d0;
}
.footer-ch-link.place:hover {
  background: #03c75a;
  color: #fff;
}
.footer-ch-link.blog {
  border-color: rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
}
.footer-ch-link.blog:hover {
  background: #059669;
  color: #fff;
}
.footer-ch-link.kakao {
  border-color: rgba(254, 229, 0, 0.4);
  color: #fde047;
}
.footer-ch-link.kakao:hover {
  background: #fee500;
  color: #191919;
}
.footer-ch-link.map {
  border-color: rgba(96, 165, 250, 0.4);
  color: #93c5fd;
}
.footer-ch-link.map:hover {
  background: #3b82f6;
  color: #fff;
}

/* 블로그 카드 그리드 */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.blog-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border, #e2e8f0);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}
.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1e293b;
}
.blog-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-thumb {
  transform: scale(1.05);
}
.blog-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent, #f06418);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: -0.2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-card-title {
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--primary, #121c2d);
  margin: 0 0 10px 0;
  word-break: keep-all;
}
.blog-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted, #64748b);
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  margin-top: auto;
}
.blog-author {
  font-weight: 600;
  color: #475569;
}
.blog-date {
  font-family: inherit;
}

/* 네이버 스마트플레이스 상황실 본부 카드 */
.place-hq-card {
  background: #ffffff;
  border: 2px solid rgba(3, 199, 90, 0.4);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(3, 199, 90, 0.08);
  margin-top: 28px;
}
.place-hq-header {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  color: #fff;
  padding: 24px 28px;
}
.place-hq-badge {
  display: inline-block;
  background: #03c75a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
}
.place-hq-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px 0;
  color: #fff;
}
.place-hq-sub {
  font-size: 14px;
  color: #a7f3d0;
  margin: 0;
  line-height: 1.5;
}
.place-hq-body {
  padding: 24px 28px;
}
.place-info-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.place-info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14.5px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
@media (min-width: 680px) {
  .place-info-row {
    flex-direction: row;
    align-items: baseline;
  }
  .place-info-row strong {
    width: 170px;
    flex-shrink: 0;
  }
}
.place-info-row strong {
  color: #334155;
  font-weight: 700;
}
.place-info-row span {
  color: #475569;
}
.place-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-place-naver {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #03c75a;
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 2px 6px rgba(3, 199, 90, 0.3);
}
.btn-place-naver:hover {
  background: #02b350;
}
.btn-place-route {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #10b981;
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-place-route:hover {
  background: #059669;
}
.btn-place-kakao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fee500;
  color: #191919 !important;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-place-kakao:hover {
  background: #fdd800;
}
.btn-place-blog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #334155 !important;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  transition: all 0.2s;
}
.btn-place-blog:hover {
  background: #e2e8f0;
}

/* 네이버 블로그 & 밴드 1클릭 공유 버튼 */
.btn-share-naver {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #03c75a;
  color: #ffffff;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-share-naver:hover {
  background: #02b350;
}
.btn-share-band {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #20c242;
  color: #ffffff;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-share-band:hover {
  background: #199d36;
}

/* 블로그 아티클 본문 인라인 이미지 및 캡션 스타일 */
.article-inline-fig {
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  background: #f8fafc;
  border: 1px solid var(--border, #e2e8f0);
}
.article-inline-fig img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}
.article-inline-fig figcaption {
  padding: 12px 18px;
  font-size: 13.5px;
  color: #475569;
  text-align: center;
  background: #f1f5f9;
  font-weight: 600;
  border-top: 1px solid #e2e8f0;
  line-height: 1.5;
}


/* =========================================================
   전국 장사·추모시설 통합 허브 & AI 상세 모달 (Burial Facilities)
   ========================================================= */
.fac-cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px 14px 2px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.fac-cat-tabs::-webkit-scrollbar {
  height: 4px;
}
.fac-cat-tabs::-webkit-scrollbar-thumb {
  background: var(--line-strong, #cbd5e1);
  border-radius: 4px;
}
.fac-cat-btn {
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: var(--radius-pill, 9999px);
  border: 1px solid var(--line, #e2e8f0);
  background: #ffffff;
  color: var(--ink-secondary, #475569);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fac-cat-btn:hover {
  background: var(--bg-soft, #f8fafc);
  border-color: var(--line-strong, #cbd5e1);
  color: var(--ink, #0f172a);
}
.fac-cat-btn.is-active {
  background: var(--primary, #121c2d);
  color: #ffffff;
  border-color: var(--primary, #121c2d);
  box-shadow: 0 4px 12px rgba(18, 28, 45, 0.2);
}
.fac-cat-btn .badge-num {
  font-size: 11.5px;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.08);
}
.fac-cat-btn.is-active .badge-num {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.fac-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 20px 0;
}
.fac-search-box {
  flex: 1 1 340px;
  position: relative;
}
.fac-search-box input {
  width: 100%;
  padding: 13px 44px 13px 20px;
  border: 1px solid var(--line-strong, #cbd5e1);
  border-radius: var(--radius-pill, 9999px);
  font-size: 14.5px;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fac-search-box input:focus {
  border-color: var(--accent, #f06418);
  box-shadow: 0 0 0 3px rgba(240, 100, 24, 0.15);
}
.fac-search-box .search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted, #64748b);
  pointer-events: none;
}
.fac-view-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fac-view-btn {
  padding: 8px 14px;
  border: 1px solid var(--line, #e2e8f0);
  background: #ffffff;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary, #475569);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.fac-view-btn.is-active {
  background: var(--primary, #121c2d);
  color: #fff;
  border-color: var(--primary, #121c2d);
}

.fac-count-status {
  font-size: 14px;
  color: var(--ink-secondary, #475569);
}
.fac-count-status strong {
  color: var(--accent, #f06418);
  font-weight: 800;
}

/* 시설 카드 그리드 */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 10px;
}
.facility-card {
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card, 0 2px 8px rgba(0,0,0,0.04));
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}
.facility-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 100, 24, 0.4);
  box-shadow: 0 14px 30px -4px rgba(15, 23, 42, 0.12);
}
.facility-card-media {
  position: relative;
  width: 100%;
  height: 200px;
  background: #0f172a;
  overflow: hidden;
}
.facility-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.facility-card:hover .facility-card-media img {
  transform: scale(1.06);
}
.facility-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.65) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  color: #ffffff;
}
.fac-badges-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.fac-tag-cat {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.fac-tag-cat.funeral_home { background: #2563eb; }
.fac-tag-cat.crematorium { background: #dc2626; }
.fac-tag-cat.columbarium { background: #7c3aed; }
.fac-tag-cat.ossuary { background: #9333ea; }
.fac-tag-cat.tree_burial { background: #16a34a; }
.fac-tag-cat.cemetery { background: #0d9488; }
.fac-tag-cat.sea_burial { background: #0284c7; }

.fac-tag-reg {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  color: #ffffff;
}
.fac-media-hint {
  align-self: flex-end;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.facility-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.facility-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink, #0f172a);
  margin: 0 0 10px 0;
  line-height: 1.35;
}
.facility-card-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  color: var(--ink-secondary, #475569);
  margin-bottom: 14px;
}
.facility-card-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
.facility-card-meta-row .icon {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}
.facility-card-meta-row a.tel-link {
  color: var(--primary, #121c2d);
  font-weight: 800;
  text-decoration: underline;
}
.facility-card-meta-row a.tel-link:hover {
  color: var(--accent, #f06418);
}

.facility-price-box {
  background: var(--bg-soft, #f8fafc);
  border: 1px solid #edf2f7;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink, #0f172a);
  margin-bottom: 14px;
  line-height: 1.5;
}
.facility-price-box strong {
  color: var(--accent, #f06418);
  font-weight: 800;
}

.facility-card-desc {
  font-size: 13px;
  color: var(--muted, #64748b);
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.facility-card-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}
.facility-btn-detail {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  background: var(--primary, #121c2d);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.facility-btn-detail:hover {
  background: var(--accent, #f06418);
}
.facility-btn-call {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line-strong, #cbd5e1);
  background: #ffffff;
  color: var(--ink, #0f172a);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.facility-btn-call:hover {
  border-color: var(--accent, #f06418);
  color: var(--accent, #f06418);
}

/* =========================================================
   시설 상세 인터랙티브 모달 (Facility Modal)
   ========================================================= */
.fac-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: facFadeIn 0.2s ease-out;
}
@keyframes facFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fac-modal-card {
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
  animation: facSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes facSlideUp {
  from { transform: translateY(20px) scale(0.98); }
  to { transform: translateY(0) scale(1); }
}

.fac-modal-hero {
  position: relative;
  width: 100%;
  height: 280px;
  background: #0f172a;
  flex-shrink: 0;
}
.fac-modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fac-modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 24px;
  color: #ffffff;
}
.fac-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}
.fac-modal-close:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.08);
}
.fac-modal-hero-title h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  margin: 6px 0 0 0;
  color: #ffffff;
}

.fac-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.fac-modal-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary, #121c2d);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line, #e2e8f0);
}

.fac-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: var(--bg-soft, #f8fafc);
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #edf2f7;
}
@media (max-width: 600px) {
  .fac-info-grid { grid-template-columns: 1fr; }
}
.fac-info-item {
  font-size: 13.5px;
  line-height: 1.5;
}
.fac-info-item strong {
  display: block;
  font-size: 12px;
  color: var(--muted, #64748b);
  margin-bottom: 2px;
}
.fac-info-item span, .fac-info-item a {
  color: var(--ink, #0f172a);
  font-weight: 700;
}

.fac-amenities-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fac-amenity-chip {
  padding: 6px 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.fac-price-card {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.6;
}
.fac-price-card .fee-text {
  font-size: 15px;
  font-weight: 800;
  color: #c2410c;
  margin-bottom: 4px;
}

.fac-map-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.fac-map-btn {
  flex: 1 1 140px;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}
.fac-map-btn.naver {
  background: #03c75a;
  color: #ffffff;
}
.fac-map-btn.naver:hover { background: #02b350; }
.fac-map-btn.kakao {
  background: #fee500;
  color: #191919;
}
.fac-map-btn.kakao:hover { background: #fad800; }
.fac-map-btn.tmap {
  background: #e61f25;
  color: #ffffff;
}
.fac-map-btn.tmap:hover { background: #cc1b20; }
.fac-map-btn.copy-addr {
  background: var(--bg-soft, #f8fafc);
  color: var(--ink, #0f172a);
  border: 1px solid var(--line-strong, #cbd5e1);
}

.fac-modal-foot {
  padding: 16px 28px;
  border-top: 1px solid var(--line, #e2e8f0);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.fac-modal-foot-info {
  font-size: 13px;
  color: var(--muted, #64748b);
}
.fac-modal-foot-btns {
  display: flex;
  gap: 10px;
}

@media (max-width: 768px) {
  .fac-modal-hero { height: 210px; }
  .fac-modal-body { padding: 18px 20px; }
  .fac-modal-foot { padding: 14px 20px; }
}
