/* ==========================================================================
   installrf.jibsurimission.com — 반사경설치 (임팩트)
   BSCABINET 에디토리얼 시스템 기반, 색상/섹션 순서 베리에이션 적용
   ========================================================================== */

:root {
  --primary: #2C5F73;
  --primary-dark: #1D4351;
  --primary-light: #5A8FA3;
  --secondary: #F4F7F8;
  --accent: #D64545;
  --accent-dark: #A82F2F;
  --accent-hover: #B23838;
  --bg: #ffffff;
  --bg-cream: #F7FAFB;
  --bg-sand: #F4F7F8;
  --bg-beige: #EEF3F4;
  --text-dark: #101820;
  --text-body: #33454D;
  --text-light: #6B7B82;
  --border: rgba(44,95,115,.14);
  --dark-surface: #172730;
  --dark-grid-cell: #0F1B21;
  --radius: 0px;
  --shadow-sm: 0 2px 8px rgba(16,24,32,.06);
  --shadow: 0 4px 24px rgba(16,24,32,.10);
  --shadow-lg: 0 8px 48px rgba(16,24,32,.16);
  --transition: all .35s cubic-bezier(.4,0,.2,1);
  --font: 'Pretendard', 'Noto Sans KR', -apple-system, sans-serif;
  --max-w: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body, p, h1, h2, h3, h4, h5, h6, li, td, th, a, span, div, button {
  word-break: keep-all;
  overflow-wrap: break-word;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }

.container { max-width: var(--max-w); margin: 0 auto; padding-inline: 1.5rem; }
.container-sm { max-width: 760px; margin: 0 auto; padding-inline: 1.5rem; }

.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.kicker { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; display: block; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; color: var(--text-dark); }
.section-desc { font-size: clamp(.95rem, 2vw, 1.05rem); color: var(--text-light); margin-top: .75rem; max-width: 620px; }

/* ---- 강제 그리드 유틸(인라인 style 금지, 클래스로만) ---- */
.dp-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dp-g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dp-stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; align-items: center; }
@media (max-width: 768px) { .dp-g2, .dp-g3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .dp-stat3 { grid-template-columns: 1fr; gap: 16px; } }

/* ---- 버튼 ---- */
.btn-primary, .btn-outline, .btn-secondary, .btn-white {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .95rem; padding: .9rem 2rem;
  transition: var(--transition); cursor: pointer; line-height: 1;
  border: 2px solid transparent; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-outline { background: transparent; border-color: currentColor; color: inherit; }
.btn-secondary { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--primary); border-color: #fff; }
@media (max-width: 560px) { .btn-primary, .btn-outline, .btn-secondary, .btn-white { width: 100%; } }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(214,69,69,.35); }
  .btn-outline:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
  .btn-secondary:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
  .btn-white:hover { background: var(--secondary); transform: translateY(-2px); }
  .hero-btn-primary:hover { background: var(--accent-hover); }
  .hero-btn-outline:hover { background: #fff; color: var(--dark-surface); }
  .svc-ed-item:hover .svc-ed-img { border-color: var(--primary); }
  .svc-ed-item:hover .svc-ed-img img { transform: scale(1.05); }
  .svc-ed-item:hover .svc-ed-title { color: var(--primary); }
  .site-grid-item:hover img { transform: scale(1.06); opacity: 1; filter: grayscale(0); }
  .nseo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-light); }
  .nseo-card:hover .nseo-card-img img { transform: scale(1.05); }
  .cta-ed-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
  .header-nav a:hover { color: #fff; }
  .site-header.scrolled .header-nav a:hover { color: var(--text-dark); }
  .header-cta:hover { background: var(--accent-hover); }
  .footer-ed-nav a:hover { color: #fff; }
  .floating-cta-ed:hover { background: var(--accent-hover); transform: translateY(-2px); }
  .consult-cta-wrap a:hover { border-color: var(--accent); }
  .sitemap-groups a:hover { color: var(--accent); }
}

/* ---- 키프레임 & 리빌 ---- */
@keyframes kenburns { 0% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes heroLineIn { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
@keyframes heroClipIn { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

.rv { opacity: 0; transform: translateY(30px); transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1); }
.rv.in { opacity: 1; transform: translateY(0); }
.rv:nth-child(2) { transition-delay: .08s; }
.rv:nth-child(3) { transition-delay: .16s; }
.rv:nth-child(4) { transition-delay: .24s; }
.rv:nth-child(5) { transition-delay: .32s; }
.rv:nth-child(6) { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
}

/* ==========================================================================
   히어로 (홈)
   ========================================================================== */
.hero { min-height: 92svh; position: relative; display: flex; align-items: flex-end; overflow: hidden; background: var(--dark-surface); }
.hero-slider { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide.active img { animation: kenburns 6s ease forwards; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.58) 0%, rgba(0,0,0,.08) 45%, transparent 70%); z-index: 1; }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin-inline: auto; padding: 0 48px 110px; color: #fff; }
.hero-line { width: 48px; height: 2px; background: var(--accent); margin-bottom: 24px; animation: heroLineIn 1.1s cubic-bezier(.16,1,.3,1) both; }
.hero-eyebrow-wrap { overflow: hidden; margin-bottom: 12px; }
.hero-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.6); animation: heroClipIn 1.1s cubic-bezier(.16,1,.3,1) .08s both; }
.hero-title-wrap { overflow: hidden; margin-bottom: 18px; }
.hero-title { font-size: clamp(38px, 6.5vw, 84px); font-weight: 900; color: #fff; letter-spacing: -.04em; line-height: 1.05; animation: heroClipIn 1.3s cubic-bezier(.16,1,.3,1) .04s both; }
.hero-desc { font-size: clamp(14px, 1.8vw, 18px); color: rgba(255,255,255,.75); line-height: 1.75; font-weight: 300; margin-bottom: 32px; max-width: 560px; animation: heroFadeUp .9s cubic-bezier(.16,1,.3,1) .28s both; }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 10px; animation: heroFadeUp .9s cubic-bezier(.16,1,.3,1) .42s both; }
.hero-btn-primary { display: inline-flex; align-items: center; background: var(--accent); color: #fff; padding: 14px 32px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-decoration: none; transition: background .25s; }
.hero-btn-outline { display: inline-flex; align-items: center; background: transparent; color: #fff; padding: 14px 28px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-decoration: none; border: 1.5px solid rgba(255,255,255,.4); transition: background .25s, color .25s; }
@media (max-width: 768px) {
  .hero-content { padding: 0 24px 90px; }
  .hero-title { font-size: clamp(30px, 8vw, 52px); }
  .hero-cta-group { flex-direction: column; gap: 10px; }
  .hero-btn-primary, .hero-btn-outline { justify-content: center; width: 100%; }
}

/* ==========================================================================
   서비스(카테고리) 그리드 — 홈 2번째 섹션
   ========================================================================== */
.svc-editorial { background: var(--bg-sand); padding: 88px 48px; }
.svc-editorial-inner { max-width: 1200px; margin: 0 auto; }
.svc-editorial-header { margin-bottom: 48px; }
.svc-editorial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; }
.svc-ed-item { display: block; text-decoration: none; color: inherit; }
.svc-ed-img { overflow: hidden; aspect-ratio: 4/3; border: 3px solid transparent; transition: border-color .3s; }
.svc-ed-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.16,1,.3,1); }
.svc-ed-info { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.svc-ed-meta { display: flex; align-items: center; gap: 12px; }
.svc-ed-num { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.svc-ed-rule { flex: 1; height: 1px; background: var(--border); }
.svc-ed-title { font-size: clamp(16px, 2vw, 21px); font-weight: 800; letter-spacing: -.03em; color: var(--text-dark); }
.svc-ed-arrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-light); }
@media (max-width: 960px) { .svc-editorial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-editorial { padding: 52px 20px; } .svc-editorial-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   신뢰 수치
   ========================================================================== */
.trust-editorial { background: var(--dark-surface); }
.trust-ed-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-ed-item { padding: 64px 32px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.trust-ed-item:last-child { border-right: none; }
.trust-ed-num { font-size: clamp(46px, 6vw, 76px); font-weight: 900; color: #fff; letter-spacing: -.04em; line-height: 1; margin-bottom: 8px; }
.trust-ed-unit { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.trust-ed-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: rgba(255,255,255,.35); text-transform: uppercase; }
@media (max-width: 900px) { .trust-ed-grid { grid-template-columns: repeat(2, 1fr); } .trust-ed-item { border-bottom: 1px solid rgba(255,255,255,.08); } .trust-ed-item:nth-child(even) { border-right: none; } }
@media (max-width: 480px) { .trust-ed-grid { grid-template-columns: 1fr; } .trust-ed-item { border-right: none; padding: 40px 24px; } .trust-ed-item:last-child { border-bottom: none; } }

/* ==========================================================================
   현장 사진 벤토 (홈, cases-editorial 자리를 대체 — 카테고리 대표 이미지 쇼케이스)
   ========================================================================== */
.grid-editorial { background: var(--dark-surface); }
.grid-editorial-inner { max-width: 1400px; margin: 0 auto; padding: 68px 48px 60px; }
.grid-editorial-header .kicker { color: rgba(255,255,255,.5); }
.grid-editorial-header .section-title { color: #fff; }
.grid-editorial-header .section-desc { color: rgba(255,255,255,.5); }
.site-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 240px); gap: 6px; }
.site-grid-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.site-grid-item { position: relative; overflow: hidden; background: var(--dark-grid-cell); }
.site-grid-item img { width: 100%; height: 100%; object-fit: cover; opacity: .78; filter: grayscale(8%); transition: transform 1.6s cubic-bezier(.16,1,.3,1), opacity .4s, filter .4s; }
.site-grid-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.15) 55%, transparent 100%); }
.site-grid-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px; }
.site-grid-loc { display: inline-block; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .1em; padding: 4px 10px; margin-bottom: 8px; }
.site-grid-title { font-size: clamp(14px, 1.6vw, 17px); font-weight: 700; color: #fff; letter-spacing: -.02em; }
@media (max-width: 768px) {
  .grid-editorial-inner { padding: 44px 20px 36px; }
  .site-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 200px 160px; }
  .site-grid-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-section { background: var(--bg); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-question { width: 100%; padding: 20px 0; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq-question span { font-size: 16px; font-weight: 600; color: var(--text-dark); line-height: 1.5; }
.faq-icon { flex-shrink: 0; color: var(--accent); transition: transform .3s; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .38s cubic-bezier(.4,0,.2,1); }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a p { padding: 0 0 20px; font-size: 15px; color: var(--text-light); line-height: 1.85; }
.faq-list { display: block; }

/* ==========================================================================
   내부링크 카드 (관련 카테고리)
   ========================================================================== */
.nseo-section { background: var(--bg-beige); }
.nseo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.nseo-card { position: relative; background: var(--bg-cream); border: 1px solid var(--border); transition: var(--transition); text-decoration: none; color: var(--text-dark); display: block; overflow: hidden; }
.nseo-card.is-current { border: 2px solid var(--accent); pointer-events: none; opacity: .7; }
.nseo-card-img { aspect-ratio: 16/9; overflow: hidden; }
.nseo-card-img img { object-fit: cover; width: 100%; height: 100%; transition: transform .5s; }
.nseo-card-body { padding: 1rem; }
.nseo-card-cat { font-size: .72rem; font-weight: 700; color: var(--accent); letter-spacing: .06em; margin-bottom: .3rem; display: block; }
.nseo-card-title { font-weight: 700; font-size: .95rem; color: var(--text-dark); line-height: 1.4; }
.nseo-badge { position: absolute; top: .75rem; left: .75rem; font-size: .68rem; font-weight: 700; padding: .2rem .55rem; background: var(--primary); color: #fff; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-editorial { background: var(--dark-surface); padding: 92px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-ed-deco { position: absolute; top: -35%; right: -8%; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(214,69,69,.12), transparent 70%); pointer-events: none; }
.cta-ed-inner { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.cta-ed-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 18px; }
.cta-ed-steps { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.45); margin-bottom: 40px; }
.cta-ed-steps span[aria-hidden] { color: rgba(255,255,255,.2); }
.cta-ed-title { font-size: clamp(26px, 4vw, 46px); font-weight: 900; color: #fff; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 18px; }
.cta-ed-title em { font-style: normal; color: var(--accent); }
.cta-ed-desc { font-size: 16px; color: rgba(255,255,255,.6); line-height: 1.8; margin-bottom: 36px; }
.cta-ed-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; padding: 16px 46px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-decoration: none; transition: background .25s, transform .2s; box-shadow: 0 4px 24px rgba(214,69,69,.35); }
.cta-ed-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.35); margin-top: 30px; }
@media (max-width: 768px) { .cta-editorial { padding: 64px 20px 84px; } }

/* ==========================================================================
   헤더 (critical CSS — header.php 인라인과 별도로 스크롤 애니메이션만 보강)
   ========================================================================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: var(--dark-surface); transition: background 400ms, box-shadow 300ms; }
.site-header.scrolled { background: rgba(255,255,255,.97); backdrop-filter: blur(20px); box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.header-inner { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; height: 72px; }
.header-logo { display: flex; align-items: center; text-decoration: none; }
.header-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.header-logo-name { font-weight: 900; font-size: 16px; letter-spacing: .02em; color: #fff; transition: color 400ms; }
.site-header.scrolled .header-logo-name { color: var(--text-dark); }
.header-logo-sub { font-size: 10px; letter-spacing: .04em; color: rgba(255,255,255,.45); font-weight: 500; transition: color 400ms; }
.site-header.scrolled .header-logo-sub { color: #999; }
.header-nav { display: flex; align-items: center; gap: 34px; }
.header-nav a { color: rgba(255,255,255,.55); text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: color 300ms; }
.site-header.scrolled .header-nav a { color: #888; }
.header-cta { display: inline-flex; align-items: center; background: var(--accent); color: #fff; padding: 10px 24px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: background 250ms; }
.mobile-toggle { display: none; padding: 8px; }
.mobile-toggle-bar { display: block; width: 22px; height: 1.5px; background: #fff; margin: 5px 0; transition: background 400ms; }
.site-header.scrolled .mobile-toggle-bar { background: var(--text-dark); }
.mobile-menu { display: none; position: fixed; inset: 0; background: var(--dark-surface); z-index: 999; flex-direction: column; justify-content: center; align-items: center; gap: 26px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: clamp(22px, 5vw, 30px); font-weight: 800; color: #fff; text-decoration: none; }
.mobile-menu-close { position: absolute; top: 20px; right: 20px; color: rgba(255,255,255,.6); font-size: 28px; padding: 8px; }
.mobile-menu-cta { margin-top: 10px !important; background: var(--accent) !important; color: #fff !important; padding: 14px 40px !important; font-size: 16px !important; }
@media (max-width: 768px) { .header-inner { padding: 0 20px; height: 64px; } .header-nav, .header-cta { display: none; } .mobile-toggle { display: block; } }

#scroll-progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--accent); z-index: 9999; width: 0; transition: width .1s linear; }

/* ==========================================================================
   푸터
   ========================================================================== */
.site-footer-ed { background: var(--dark-surface); color: rgba(255,255,255,.6); }
.footer-ed-inner { max-width: 1200px; margin: 0 auto; padding: 64px 48px 48px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
.footer-ed-logo { font-weight: 800; font-size: 16px; color: #fff; margin-bottom: 6px; }
.footer-ed-tagline { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 18px; }
.footer-ed-address { font-style: normal; font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.42); }
.footer-ed-nav-title { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.32); margin-bottom: 14px; }
.footer-ed-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-ed-nav a { font-size: 14px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.footer-ed-bottom { max-width: 1200px; margin: 0 auto; padding: 22px 48px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,.28); gap: 16px; flex-wrap: wrap; }
@media (max-width: 768px) { .footer-ed-inner { grid-template-columns: 1fr; padding: 44px 20px 36px; gap: 32px; } .footer-ed-bottom { padding: 18px 20px; flex-direction: column; align-items: flex-start; } }

.floating-wrap { position: fixed; bottom: 26px; right: 26px; z-index: 900; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.floating-top { width: 40px; height: 40px; background: #fff; border: 1px solid var(--border); display: none; align-items: center; justify-content: center; color: var(--text-dark); cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,.08); transition: transform .2s; }
.floating-top.visible { display: flex; }
.floating-cta-ed { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; padding: 12px 18px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-decoration: none; box-shadow: 0 4px 20px rgba(214,69,69,.35); transition: background .2s, transform .2s; }
@media (max-width: 768px) { .floating-wrap { display: none; } }

.mobile-bottom-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 900; background: #fff; border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom, 0px); }
.mobile-bottom-steps { display: flex; justify-content: center; gap: 6px; padding: 8px 16px 0; font-size: 10px; font-weight: 600; color: #aaa; }
.mobile-bottom-cta-btn { display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; padding: 16px; font-size: 16px; font-weight: 800; text-decoration: none; }
@media (max-width: 768px) { .mobile-bottom-bar { display: block; } body { padding-bottom: 64px; } }

/* ==========================================================================
   상세 페이지 공통 (dp-*)
   ========================================================================== */
.dp-hero { min-height: 460px; position: relative; display: flex; align-items: flex-end; overflow: hidden; background: var(--dark-surface); }
.dp-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dp-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 50%, transparent 75%); }
.dp-hero-inner { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; padding: 140px 1.5rem 48px; color: #fff; width: 100%; }
.dp-breadcrumb { font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 16px; }
.dp-breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.dp-hero-title { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 14px; }
.dp-hero-sub { font-size: 1rem; color: rgba(255,255,255,.75); max-width: 560px; }

.dp-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dp-gallery-grid img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 768px) { .dp-gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.dp-intro-statement { border-left: 3px solid var(--accent); padding-left: 1.25rem; font-size: 1.05rem; font-weight: 600; color: var(--text-dark); margin-bottom: 1.5rem; line-height: 1.7; }
.dp-body p { font-size: .975rem; line-height: 1.9; color: var(--text-body); margin-bottom: 1rem; }
.feat-card { background: var(--bg-cream); border: 1px solid var(--border); padding: 1.75rem 1.5rem; }
.feat-card-num { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .1em; margin-bottom: .6rem; display: block; }
.feat-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: .5rem; }
.feat-card p { font-size: .9rem; color: var(--text-light); line-height: 1.7; }

.dp-compare { display: grid; grid-template-columns: 140px 1fr; gap: 4px 20px; background: var(--bg-beige); padding: 2rem; }
.dp-compare dt { font-size: .85rem; font-weight: 700; color: var(--primary); padding: .85rem 0; border-bottom: 1px solid var(--border); }
.dp-compare dd { font-size: .9rem; color: var(--text-body); line-height: 1.7; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.dp-compare dt:last-of-type, .dp-compare dd:last-of-type { border-bottom: none; }
@media (max-width: 600px) { .dp-compare { grid-template-columns: 1fr; } }

.proc-list { display: flex; list-style: none; margin: 0; padding: 0; }
.proc-step { flex: 1; position: relative; padding: 0 12px; text-align: center; }
.proc-step:not(:last-child)::after { content: ''; position: absolute; top: 24px; left: 50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.proc-num { position: relative; z-index: 1; margin: 0 auto 12px; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-weight: 700; }
.proc-step p { font-size: .85rem; color: var(--text-body); font-weight: 600; }
@media (max-width: 768px) {
  .proc-list { flex-direction: column; gap: 10px; }
  .proc-step { padding: 24px 0; }
  .proc-step::after { display: none; }
}

.card-badges { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 768px) { .card-badges { flex-direction: column; align-items: flex-start; gap: 6px; } }

.dp-cta { background: var(--dark-surface); padding: 4rem 1.5rem; text-align: center; }
.dp-cta h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: #fff; margin-bottom: .75rem; }
.dp-cta p { color: rgba(255,255,255,.6); margin-bottom: 1.75rem; }
.dp-cta-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin-top: 1.75rem; font-size: 11px; color: rgba(255,255,255,.35); font-weight: 600; }

/* ==========================================================================
   가이드(AEO/GEO) 페이지 (g-*)
   ========================================================================== */
.g-hero { background: var(--dark-surface); padding: 150px 1.5rem 60px; color: #fff; }
.g-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.g-hero .dp-breadcrumb { color: rgba(255,255,255,.5); }
.g-hero .dp-breadcrumb a { color: rgba(255,255,255,.7); }
.g-hero-title { font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 800; margin: 14px 0; letter-spacing: -.02em; }
.g-hero-sub { color: rgba(255,255,255,.65); max-width: 620px; line-height: 1.8; }

.g-criteria-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.g-criteria-card { background: var(--bg-cream); border: 1px solid var(--border); padding: 1.75rem; }
.g-criteria-card .num { font-size: 1.8rem; font-weight: 900; color: var(--accent); display: block; margin-bottom: .5rem; }
.g-criteria-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: .6rem; }
.g-criteria-card p { font-size: .9rem; color: var(--text-light); line-height: 1.75; }
@media (max-width: 700px) { .g-criteria-grid { grid-template-columns: 1fr; } }

.g-check { display: flex; flex-direction: column; gap: 10px; }
.g-check li { display: flex; gap: 12px; align-items: flex-start; padding: 1rem 1.25rem; background: var(--bg-beige); font-size: .9rem; color: var(--text-body); line-height: 1.7; }
.g-check li .mark { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }

.g-table-wrap { overflow-x: auto; }
.g-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 480px; }
.g-table th, .g-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
.g-table th { background: var(--bg-beige); font-weight: 700; color: var(--text-dark); }
.g-table td { color: var(--text-body); }

.g-timeline { display: flex; flex-direction: column; gap: 0; }
.g-timeline li { position: relative; padding: 0 0 1.75rem 2rem; border-left: 2px solid var(--border); }
.g-timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.g-timeline li::before { content: ''; position: absolute; left: -6px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.g-timeline h4 { font-size: .95rem; font-weight: 700; color: var(--text-dark); margin-bottom: .35rem; }
.g-timeline p { font-size: .88rem; color: var(--text-light); line-height: 1.75; }

/* ---- 사이트맵/상담 페이지 ---- */
.page-hero { padding-top: calc(72px + 3rem); padding-bottom: 2.5rem; background: var(--bg-sand); }
.page-hero .kicker { }
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; color: var(--text-dark); margin-top: .5rem; }
.consult-cta-wrap { display: flex; flex-wrap: wrap; gap: 14px; margin: 2rem 0; }
.consult-cta-wrap a { flex: 1; min-width: 220px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 1.5rem; text-decoration: none; border: 2px solid var(--border); text-align: center; transition: var(--transition); }
.consult-cta-wrap .icon { font-size: 1.6rem; }
.consult-cta-wrap .label { font-weight: 700; color: var(--text-dark); }
.consult-cta-wrap .num { font-size: .85rem; color: var(--text-light); }
.consult-guide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 2rem 0; }
.consult-guide div { background: var(--bg-cream); border: 1px solid var(--border); padding: 1.25rem 1rem; text-align: center; }
.consult-guide .n { font-size: 1.4rem; font-weight: 900; color: var(--accent); display: block; margin-bottom: .4rem; }
.consult-guide p { font-size: .82rem; color: var(--text-body); }
@media (max-width: 700px) { .consult-guide { grid-template-columns: repeat(2, 1fr); } }
.consult-info-box dl { display: grid; grid-template-columns: 120px 1fr; gap: .6rem 1rem; font-size: .9rem; }
.consult-info-box dt { font-weight: 700; color: var(--primary); }
.consult-info-box dd { color: var(--text-body); }

.sitemap-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2rem; }
.sitemap-groups h2 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: .9rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.sitemap-groups ul { display: flex; flex-direction: column; gap: .6rem; }
.sitemap-groups a { text-decoration: none; color: var(--text-body); font-size: .92rem; }
@media (max-width: 700px) { .sitemap-groups { grid-template-columns: 1fr; } }

.error-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8rem 1.5rem 4rem; }
.error-page h1 { font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 900; color: var(--primary); }
.error-page p { color: var(--text-light); margin: 1rem 0 2rem; }
.center-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
