/* ==========================================================================
   새별 손해사정 — Brand Stylesheet
   ========================================================================== */
@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("/vendor/pretendard/PretendardVariable.woff2") format("woff2-variations");
}

:root {
  --green-900: #1b241e;
  --green-800: #223026;
  --green-700: #26382c;
  --green-600: #2f4a3a;
  --green-500: #3b5c48;
  --green-100: #e7ece8;
  --green-050: #f4f6f4;
  --gold: #c9a24b;
  --gold-dark: #b08a34;
  --ink: #1b241e;
  --body: #384139;
  --muted: #71807a;
  --line: #e6e9e6;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(27, 36, 30, .06);
  --shadow-md: 0 12px 40px rgba(27, 36, 30, .12);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  margin: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container-x { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
/* g-5 거터(48px)의 네거티브 마진이 컨테이너 패딩(20px)을 넘어 가로 스크롤을 만들지 않도록 상한 */
.container-x .row.g-5 { --bs-gutter-x: 2.5rem; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-soft { background: var(--green-050); }
.bg-green { background: var(--green-700); color: #dfe7e1; }
.bg-green h1, .bg-green h2, .bg-green h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-dark);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gold); display: inline-block; }
.bg-green .eyebrow { color: var(--gold); }

.section-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0 0 14px; }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 640px; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }
.bg-green .section-lead { color: #b9c6bd; }

/* ---------- Buttons ---------- */
.btn-brand, .btn-gold, .btn-kakao, .btn-ghost, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; border-radius: 999px; padding: 14px 28px; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease;
  white-space: nowrap;
}
.btn-brand { background: var(--green-700); color: #fff; }
.btn-brand:hover { background: var(--green-600); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: #2a2410; }
.btn-gold:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
/* 카카오톡 공식 컬러 버튼 */
.btn-kakao { background: #FEE500; color: #191919; gap: 7px; }
.btn-kakao:hover { background: #fada0a; color: #191919; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-kakao .ico-kakao { width: 18px; height: 18px; fill: #191919; flex: 0 0 auto; }
.header-cta .btn-kakao { padding: 9px 15px; font-size: .92rem; gap: 6px; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: #fff; color: var(--green-700); }
.btn-line { background: #fff; color: var(--green-700); border-color: var(--line); }
.btn-line:hover { border-color: var(--green-700); color: var(--green-700); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 18px 0;
}
.site-header .container-x { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-logo { display: flex; align-items: center; gap: 12px; }
.brand-logo img { height: 46px; width: auto; }
.brand-logo .brand-name { font-size: 1.35rem; }
/* 투명 헤더=흰 로고, 스크롤/솔리드=원색 로고 */
.brand-logo .logo-dark { display: none; }
.site-header.scrolled .brand-logo .logo-light, .site-header.solid .brand-logo .logo-light { display: none; }
.site-header.scrolled .brand-logo .logo-dark, .site-header.solid .brand-logo .logo-dark { display: inline-block; }
.brand-logo .brand-name { font-weight: 800; font-size: 1.2rem; color: #fff; letter-spacing: -.03em; }
.site-header.scrolled { background: rgba(255,255,255,.96); box-shadow: var(--shadow-sm); padding: 12px 0; backdrop-filter: saturate(1.4) blur(8px); }
.site-header.scrolled .brand-name { color: var(--ink); }
.site-header.solid { position: sticky; background: #fff; box-shadow: var(--shadow-sm); }
.site-header.solid .brand-name { color: var(--ink); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-weight: 600; color: rgba(255,255,255,.92); font-size: .98rem; transition: color .2s;
  position: relative; display: inline-block; padding: 4px 2px;
}
.main-nav a:hover { color: #fff; animation: navBeat 1.15s ease-in-out infinite; }
@keyframes navBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.12); }
  28% { transform: scale(1); }
  42% { transform: scale(1.07); }
  56% { transform: scale(1); }
}
.nav-particle { position: absolute; border-radius: 50%; pointer-events: none; z-index: 3; }
.site-header.scrolled .main-nav a, .site-header.solid .main-nav a { color: var(--body); }
.site-header.scrolled .main-nav a:hover, .site-header.solid .main-nav a:hover { color: var(--green-700); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-phone {
  font-weight: 800; color: #fff; font-size: 1rem; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.38); border-radius: 999px; padding: 8px 16px;
  backdrop-filter: blur(4px); transition: border-color .3s, color .3s;
}
.site-header.scrolled .header-phone, .site-header.solid .header-phone { color: var(--green-700); border-color: rgba(38,56,44,.28); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }
.site-header.scrolled .nav-toggle, .site-header.solid .nav-toggle { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.active { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(20,30,24,.66) 0%, rgba(20,30,24,.42) 45%, rgba(20,30,24,.12) 100%);
}
.hero-media video, .hero-media img { filter: brightness(1.1); }
.hero-title, .hero-sub { text-shadow: 0 2px 18px rgba(10,15,11,.55); }
.hero-badge { text-shadow: 0 1px 8px rgba(10,15,11,.5); }
.hero .container-x { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 40px; }
/* 히어로 콘텐츠: 영상이 먼저 보이도록 1초 후 순차 페이드인 */
@keyframes heroFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero .hero-badges  { opacity: 0; animation: heroFade 1.4s ease 1.0s forwards; }
.hero .hero-copies  { opacity: 0; animation: heroFade 1.4s ease 1.5s forwards; }
.hero .hero-actions { opacity: 0; animation: heroFade 1.4s ease 2.5s forwards; }

/* 우측 고정 대표 컷아웃 (넓은 화면 전용) */
.hero-float {
  position: absolute; bottom: 0; z-index: 2; pointer-events: none;
  display: none; opacity: 0; animation: heroFloatIn .7s ease .1s forwards;
}
.hf-right { right: .4vw; height: 74%; }
@media (min-width: 1600px) { .hf-right { height: 84%; } }
@media (min-width: 1800px) { .hf-right { height: 93%; } }
.hero-float img {
  height: 100%; width: auto; display: block;
  filter: brightness(.97) drop-shadow(0 30px 55px rgba(0, 0, 0, .55));
  animation: heroBob 7s ease-in-out infinite;
}
@keyframes heroFloatIn { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (min-width: 1100px) { .hf-right { display: block; } }
@media (min-width: 1100px) and (max-width: 1279px) { .hf-right { height: 56%; } }  /* 좁은 데스크톱: 문구·버튼과 겹침 방지 */

/* 장면별 문구 스택 (배경 전환과 동기화) */
.hero-copies { display: grid; }
.hero-copy { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1s ease; pointer-events: none; }
.hero-copy.active { opacity: 1; transform: none; pointer-events: auto; }
.hero-slide video { width: 100%; height: 100%; object-fit: cover; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.hero-badge {
  font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24); color: #eef2ef;
  backdrop-filter: blur(4px);
}
.hero-title { font-size: clamp(2rem, 5.4vw, 3.6rem); color: #fff; margin: 0 0 20px; line-height: 1.22; }
.hero-title .pt { color: var(--gold); }
.hero-sub { font-size: clamp(1rem, 2.2vw, 1.25rem); color: #d7e0d9; max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* SCROLL 인디케이터 (히어로 하단) */
.hero-scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,.85); text-decoration: none;
}
.hero-scroll .hs-text { font-size: .72rem; font-weight: 700; letter-spacing: .5em; text-indent: .5em; text-shadow: 0 1px 8px rgba(10,15,11,.5); }
.hero-scroll .hs-line { width: 1px; height: 44px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.hero-scroll .hs-line::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: #fff; animation: hsLine 1.8s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes hsLine { 0% { top: -50%; } 100% { top: 110%; } }
.hero-scroll .hs-mouse { width: 26px; height: 40px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; }
.hero-scroll .hs-mouse .hs-dot { width: 4px; height: 8px; border-radius: 4px; background: var(--gold); animation: hsDot 1.8s ease infinite; }
@keyframes hsDot { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: .2; } }

/* ---------- Stat strip ---------- */
.stat-strip { position: relative; z-index: 3; margin-top: -70px; }
.stat-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden;
}
.stat-item { padding: 30px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: 0; }
.stat-num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--green-700); line-height: 1; }
.stat-num .suffix { font-size: .5em; color: var(--gold-dark); margin-left: 2px; }
.stat-label { color: var(--muted); font-size: .95rem; margin-top: 8px; font-weight: 600; }

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

.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: all .25s ease; height: 100%; display: block;
}
.svc-card:hover { border-color: var(--green-600); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.svc-ico {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-050); color: var(--green-700); font-size: 1.5rem; margin-bottom: 18px;
  transition: all .25s;
}
.svc-card:hover .svc-ico { background: var(--green-700); color: #fff; }
.svc-card h3 { font-size: 1.2rem; margin: 0 0 8px; }
.svc-card p { color: var(--muted); font-size: .96rem; margin: 0; }
.svc-more { margin-top: 16px; color: var(--green-700); font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }

/* 이미지형 서비스 카드 */
.svc-card-img { padding: 0; overflow: hidden; }
.svc-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--green-050); }
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.svc-card-img:hover .svc-thumb img { transform: scale(1.07); }
.svc-card-img .svc-body { padding: 0 22px 24px; }
.svc-card-img .svc-ico {
  margin-top: -28px; position: relative; z-index: 1;
  border: 3px solid #fff; box-shadow: var(--shadow-sm); background: #fff;
}

/* Why choose */
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-ico { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; background: rgba(201,162,75,.14); color: var(--gold-dark); display: grid; place-items: center; font-size: 1.3rem; }
.bg-green .why-ico { background: rgba(201,162,75,.2); color: var(--gold); }
.why-item h3 { font-size: 1.12rem; margin: 2px 0 6px; }
.why-item p { color: var(--muted); margin: 0; font-size: .96rem; }
.bg-green .why-item p { color: #b9c6bd; }

/* ── 성공사례 카드 v2 ── */
.case-card2 {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; height: 100%; display: flex; flex-direction: column;
  transition: all .25s ease; position: relative; overflow: hidden;
}
.case-card2::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--green-600), var(--gold)); opacity: 0; transition: opacity .25s; }
.case-card2:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-600); }
.case-card2:hover::before { opacity: 1; }
.cc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cc-date { color: var(--muted); font-size: .8rem; }
.cc-title { font-size: 1.06rem; margin: 0 0 14px; line-height: 1.45; min-height: 2.9em; }
/* bg-green 섹션 안의 흰 카드 텍스트 색 복원 */
.bg-green .case-card2 .cc-title, .bg-green .case-card2 h3 { color: var(--ink); }
.bg-green .case-card2 .cc-summary { color: var(--body); }
.cc-amounts { background: var(--green-050); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.cc-row { display: flex; justify-content: space-between; align-items: baseline; padding: 3px 0; }
.cc-k { color: var(--muted); font-size: .82rem; }
.cc-before { color: var(--muted); font-weight: 600; text-decoration: line-through; text-decoration-color: rgba(160,60,50,.55); font-size: .95rem; }
.cc-after { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.cc-badge {
  display: inline-flex; align-items: center; gap: 6px; margin: 6px 0;
  background: var(--green-700); color: #fff; font-size: .76rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.cc-badge i { color: var(--gold); }
.cc-summary { color: var(--body); font-size: .92rem; margin: 0 0 12px; flex: 1; }
.cc-client { color: var(--muted); font-size: .84rem; border-top: 1px dashed var(--line); padding-top: 12px; }

/* 분야 필터 칩 */
.case-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.case-filter a { padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; color: var(--body); transition: all .15s; }
.case-filter a:hover { border-color: var(--green-600); color: var(--green-700); }
.case-filter a.on { background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* Case cards (구버전 - 홈 그린 섹션용) */
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.case-body { padding: 26px; }
.case-tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--green-700); background: var(--green-050); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.case-card h3 { font-size: 1.15rem; margin: 0 0 14px; }
.case-amounts { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.amt { text-align: center; flex: 1; }
.amt .k { font-size: .78rem; color: var(--muted); }
.amt .v { font-size: 1.15rem; font-weight: 800; }
.amt.before .v { color: var(--muted); text-decoration: line-through; }
.amt.after .v { color: var(--green-700); }
.amt-arrow { color: var(--gold); font-size: 1.3rem; }
.case-summary { color: var(--muted); font-size: .94rem; }

/* 골드 크롬 텍스트 (흰 빛 없이 진한 금장) */
.gold-text {
  background: linear-gradient(115deg, #8a681c 0%, #c9a24b 38%, #e2c069 52%, #c9a24b 66%, #8a681c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Rep / profile */
.rep-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.rep-photo { position: relative; }
.rep-photo img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }
/* 골드 크롬 배지 */
.rep-badge {
  position: absolute; left: -16px; bottom: 24px; padding: 16px 26px; border-radius: 14px;
  background: linear-gradient(150deg, #f6e7ae 0%, #e2c374 22%, #b8913a 50%, #d9b95e 74%, #f2dfa0 100%);
  color: #241c07; box-shadow: 0 14px 34px rgba(120,90,25,.4), inset 0 1px 0 rgba(255,255,255,.65);
  overflow: hidden;
}
.rep-badge::after {
  content: ""; position: absolute; top: -60%; left: -80%; width: 55%; height: 220%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent);
  transform: rotate(8deg); animation: badgeShine 3.6s ease-in-out infinite;
}
@keyframes badgeShine { 0%, 55% { left: -80%; } 85%, 100% { left: 160%; } }
.rep-badge strong { display: block; font-size: 1.45rem; color: #1f2a12; letter-spacing: -.02em; text-shadow: 0 1px 0 rgba(255,255,255,.4); }
.rep-cred { list-style: none; padding: 0; margin: 22px 0 0; }
.rep-cred li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px dashed var(--line); font-weight: 600; color: var(--ink); }
.rep-cred li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--gold-dark); }

/* bg-green 섹션 럭셔리 패턴 (다이아 격자 + 도트 + 골드 글로우) */
.section-pattern { position: relative; overflow: hidden; }
.section-pattern::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 88% 96%, rgba(201,162,75,.16), transparent 42%),
    radial-gradient(circle at 6% 8%, rgba(201,162,75,.1), transparent 38%),
    radial-gradient(rgba(255,255,255,.075) 1px, transparent 1.7px),
    repeating-linear-gradient(45deg, rgba(201,162,75,.065) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(-45deg, rgba(201,162,75,.065) 0 1px, transparent 1px 44px);
  background-size: auto, auto, 26px 26px, auto, auto;
}
.section-pattern::after {
  content: ""; position: absolute; right: -70px; bottom: -80px; width: 500px; height: 560px; z-index: 0; pointer-events: none;
  background: url('/storage/brand/logo-mark-white.png') no-repeat center / contain;
  opacity: .055; transform: rotate(-8deg);
}
.section-pattern > .container-x { position: relative; z-index: 1; }

/* 하단 바 타이틀 아이콘 배지 (골드 메탈) */
.qb-tico {
  width: 42px; height: 42px; border-radius: 13px; flex: 0 0 auto;
  display: grid; place-items: center; color: #241c07; font-size: 1.2rem;
  background: linear-gradient(160deg, #ecd28b 0%, #d3b25a 30%, #b08a34 55%, #d3b25a 80%, #ecd28b 100%);
  border: 1px solid rgba(140,105,30,.55);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.55), inset 0 -2px 4px rgba(90,65,10,.4), 0 0 0 0 rgba(201,162,75,.5);
  animation: ticoPulse 2.2s ease-out infinite;
}
@keyframes ticoPulse {
  0% { box-shadow: inset 0 1px 2px rgba(255,255,255,.55), inset 0 -2px 4px rgba(90,65,10,.4), 0 0 0 0 rgba(201,162,75,.5); }
  70% { box-shadow: inset 0 1px 2px rgba(255,255,255,.55), inset 0 -2px 4px rgba(90,65,10,.4), 0 0 0 10px rgba(201,162,75,0); }
  100% { box-shadow: inset 0 1px 2px rgba(255,255,255,.55), inset 0 -2px 4px rgba(90,65,10,.4), 0 0 0 0 rgba(201,162,75,0); }
}

/* 섹션 배경 영상 (희미하게) */
.section-video { position: relative; overflow: hidden; }
.section-video .sv-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .13; filter: saturate(.75); z-index: 0; pointer-events: none;
}
.section-video .sv-fade {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--green-050) 0%, rgba(244,246,244,.25) 22%, rgba(244,246,244,.25) 78%, var(--green-050) 100%);
}
.section-video > .container-x { position: relative; z-index: 1; }

/* Team */
.team-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; height:100%; transition: all .25s; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-600); }
.team-photo { aspect-ratio: 3/3.4; background: var(--green-050); overflow:hidden; }
.team-photo img { width:100%; height:100%; object-fit: cover; object-position: top center; }
.team-noimg { height:100%; display:grid; place-items:center; color:#b9c4bd; font-size:2.6rem; }
.team-body { padding: 18px 20px 20px; text-align:center; }
.team-body h3 { font-size: 1.12rem; margin: 0 0 2px; }
.team-role { color: var(--gold-dark); font-weight: 700; font-size: .88rem; margin-bottom: 10px; }
.team-cred { list-style:none; padding:0; margin:0; color:var(--muted); font-size:.84rem; }
.team-cred li { padding: 3px 0; border-top: 1px dashed var(--line); }
.team-cred li:first-child { border-top: 0; }

/* Testimonials */
.tsm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; height: 100%; }
.tsm-stars { color: var(--gold); margin-bottom: 12px; }
.tsm-card p { color: var(--body); font-size: .98rem; }
.tsm-author { margin-top: 16px; font-weight: 700; color: var(--ink); }
.tsm-author span { color: var(--muted); font-weight: 500; font-size: .88rem; }

/* Blog */
.blog-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; height:100%; display:flex; flex-direction:column; transition: all .25s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-600); }
.blog-thumb { aspect-ratio: 16/9; background: var(--green-050); overflow:hidden; }
.blog-thumb img { width:100%; height:100%; object-fit: cover; }
/* 골드 메탈 액자 프레임 — 카드 전체(글자 영역 포함)를 감싸는 액자 */
.blog-frame {
  border: 0 !important; padding: 8px;
  background: linear-gradient(145deg, #ecd694 0%, #c9a24b 26%, #8a681c 50%, #c9a24b 72%, #ecd694 100%);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.6), inset 0 -2px 3px rgba(90,65,10,.45), var(--shadow-sm);
  position: relative;
}
.blog-frame::after {
  content: ""; position: absolute; inset: 5px; border: 1px solid rgba(60,45,10,.5);
  border-radius: 12px; pointer-events: none; z-index: 2;
}
.blog-frame:hover { border: 0 !important; box-shadow: inset 0 1px 2px rgba(255,255,255,.6), inset 0 -2px 3px rgba(90,65,10,.45), var(--shadow-md); }
.blog-frame .blog-thumb { border-radius: 9px 9px 0 0; }
.blog-frame .blog-body { background: #fff; border-radius: 0 0 9px 9px; }

/* 모바일: 업무분야 가로 스와이프 */
@media (max-width: 767px) {
  .svc-swipe {
    display: flex; overflow-x: auto; gap: 14px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding-bottom: 10px; margin-right: -20px; padding-right: 20px;
    scrollbar-width: none;
  }
  .svc-swipe::-webkit-scrollbar { display: none; }
  .svc-swipe > * { flex: 0 0 78%; scroll-snap-align: start; }
  .svc-swipe .reveal { opacity: 1; transform: none; transition: none; }
}

/* 모바일: 구성원 무한 한 줄 흐름 */
.team-marquee { display: none; }
@media (max-width: 767px) {
  .team-grid { display: none; }
  .team-marquee { display: block; overflow: hidden; margin: 0 -20px; padding: 0 0 6px; }
  .tm-track { display: flex; gap: 14px; width: max-content; animation: tmFlow 26s linear infinite; }
  .tm-track .team-card { flex: 0 0 200px; }
  @keyframes tmFlow { to { transform: translateX(-50%); } }
}

/* ---------- 상담 완료 페이지 ---------- */
.done-section { padding-top: 150px; min-height: 78vh; display: flex; align-items: center; }
.done-card {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 52px 40px 40px;
}
.done-card h1 { font-size: 1.7rem; margin: 22px 0 12px; letter-spacing: -.02em; }
.done-sub { color: var(--muted); line-height: 1.75; margin-bottom: 26px; }
.done-check svg { width: 88px; height: 88px; }
.done-check .dc-circle {
  stroke: var(--gold); stroke-width: 2.4;
  stroke-dasharray: 155; stroke-dashoffset: 155;
  animation: dcDraw .7s ease forwards;
}
.done-check .dc-tick {
  stroke: var(--green-600); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: dcDraw .45s ease .55s forwards;
}
@keyframes dcDraw { to { stroke-dashoffset: 0; } }
.done-steps {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 18px; margin-bottom: 24px;
}
.done-steps .ds-item { flex: 1 1 0; min-width: 0; text-align: center; }
.done-steps .ds-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-600); color: #fff; font-weight: 800; font-size: .88rem; margin-bottom: 8px;
}
.done-steps .ds-item.on .ds-num { background: var(--gold-dark); }
.done-steps strong { display: block; font-size: .93rem; color: var(--ink); letter-spacing: -.01em; }
.done-steps small { display: block; color: var(--muted); font-size: .78rem; margin-top: 4px; line-height: 1.5; word-break: keep-all; }
.done-steps .ds-line { flex: 0 0 26px; height: 1px; background: var(--line); margin-top: 15px; }
.done-hurry { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.done-actions { justify-content: center; }
.done-links { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; color: var(--line); }
.done-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; }
.done-links a:hover { color: var(--green-600); }
@media (max-width: 767px) {
  .done-section { padding-top: 110px; }
  .done-card { padding: 40px 22px 32px; }
  .done-card h1 { font-size: 1.35rem; }
  /* 좁은 화면: 단계를 세로로 쌓아 절대 깨지지 않게 */
  .done-steps { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px 18px; }
  .done-steps .ds-item { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 12px; text-align: left; }
  .done-steps .ds-num { grid-row: 1 / span 2; margin-bottom: 0; align-self: center; }
  .done-steps .ds-line { display: none; }
}

/* 카운트업 완료 팝 */
.count-pop { animation: countPop .55s cubic-bezier(.2, 1.4, .4, 1); display: inline-block; }
@keyframes countPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.14); text-shadow: 0 0 22px rgba(201,162,75,.55); }
  100% { transform: scale(1); }
}

/* 착수금 0원 강조 */
.zero-won { color: var(--gold-dark); font-weight: 900; font-size: 1.3em; letter-spacing: -.01em; }

/* 버튼 나란히 배치: 모바일에서는 2등분 꽉 채움 */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 767px) {
  .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .btn-row > * { width: 100%; justify-content: center; text-align: center; padding-left: 10px; padding-right: 10px; white-space: nowrap; }
}

/* 금장 메탈 버튼 (히어로 전화 상담) — 골드 광택이 주기적으로 스쳐 지나감 */
.btn-gold-metal {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(160deg, #ecd28b 0%, #d3b25a 30%, #b08a34 55%, #d3b25a 80%, #ecd28b 100%);
  color: #241c07 !important; font-weight: 800; border-radius: 999px;
  border: 1px solid rgba(140, 105, 30, .55);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.55), inset 0 -2px 4px rgba(90,65,10,.4), 0 6px 18px rgba(120,90,25,.4);
  text-shadow: 0 1px 1px rgba(255,255,255,.3);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-gold-metal::after {
  content: ""; position: absolute; top: -60%; left: -80%; width: 46%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent);
  transform: rotate(10deg); animation: badgeShine 3.2s ease-in-out infinite;
}
.btn-gold-metal:hover { transform: translateY(-2px); box-shadow: inset 0 1px 2px rgba(255,255,255,.6), inset 0 -2px 4px rgba(90,65,10,.4), 0 10px 24px rgba(120,90,25,.5); color: #241c07; }
.btn-gold-metal i { color: #4a3a10; }

/* 모바일 전용 줄바꿈 */
.br-m { display: none; }
@media (max-width: 767px) { .br-m { display: block; } }

/* 보유 자격 · 발표 논문 그리드 */
.cred-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cred-card {
  position: relative; margin: 0; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cred-card img { width: 100%; display: block; aspect-ratio: 3/4; object-fit: contain; background: #fff; padding: 12px; }
.cred-card figcaption {
  padding: 14px 12px; text-align: center; font-weight: 700; font-size: .9rem;
  border-top: 1px solid var(--line); color: var(--ink); margin-top: auto; word-break: keep-all; line-height: 1.45;
}
a.cred-card { color: var(--ink); }
.paper-card img { padding: 0; object-fit: cover; }   /* 논문 표지: 풀블리드 */

/* 자격증 확대 보기 */
.cert-view { cursor: zoom-in; }
.cert-view:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.cert-view figcaption small {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-weight: 600; font-size: .76rem; color: var(--muted); margin-top: 6px;
}
.cert-zoom {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(24, 34, 28, .55); color: #fff; font-size: .9rem;
  opacity: 0; transition: opacity .2s ease;
}
.cert-view:hover .cert-zoom { opacity: 1; }
.lightbox {
  position: fixed; inset: 0; z-index: 1600;
  background: rgba(12, 18, 14, .88); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 28px;
}
.lightbox figure { margin: 0; text-align: center; animation: lbIn .25s ease; max-width: 100%; }
.lightbox img {
  max-width: min(92vw, 760px); max-height: 78vh; object-fit: contain;
  background: #fff; border-radius: 12px; padding: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.lightbox figcaption { color: #fff; font-weight: 700; margin-top: 16px; font-size: 1.02rem; }
.lightbox .lb-x {
  position: absolute; top: 20px; right: 22px;
  background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; opacity: .85;
}
.lightbox .lb-x:hover { opacity: 1; }
@keyframes lbIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
a.paper-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.paper-card figcaption small {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-weight: 600; font-size: .76rem; color: var(--gold-dark); margin-top: 6px;
}
.paper-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px; font-size: .74rem; font-weight: 800;
  background: linear-gradient(160deg, #ecd28b, #c9a24b 55%, #a8862f); color: #241c07;
  border: 1px solid rgba(140, 105, 30, .5);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.5), 0 3px 8px rgba(90,65,10,.3);
}
@media (max-width: 991px) { .cred-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .cred-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .cred-card figcaption { font-size: .8rem; padding: 11px 8px; } }

/* 네이버 블로그 버튼 */
.btn-naver {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  background: #03c75a; color: #fff !important; font-weight: 700; font-size: .92rem;
  border: 0; transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 14px rgba(3,199,90,.28);
}
.btn-naver:hover { background: #02b04f; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(3,199,90,.35); }

/* 블로그 대표 글 스트립 */
.feat-scroll { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat-card { position: relative; }
.feat-badge {
  position: absolute; top: 15px; left: 15px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 800;
  background: linear-gradient(160deg, #ecd28b, #c9a24b 50%, #a8862f); color: #241c07;
  border: 1px solid rgba(140,105,30,.5);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.5), 0 3px 10px rgba(90,65,10,.35);
}
@media (max-width: 991px) { .feat-scroll { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .feat-scroll {
    display: flex; overflow-x: auto; gap: 14px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding-bottom: 10px; margin-right: -20px; padding-right: 20px;
    scrollbar-width: none;
  }
  .feat-scroll::-webkit-scrollbar { display: none; }
  .feat-scroll > * { flex: 0 0 76%; scroll-snap-align: start; }
}

/* ── 무한 스텝 캐러셀 ── */
.carousel-x { overflow: hidden; }
.cx-track { display: flex; gap: 22px; will-change: transform; }
.cx-track > * { flex: 0 0 calc((100% - 44px) / 3); }
.cx-track .reveal { opacity: 1; transform: none; transition: none; }
@media (max-width: 991px) { .cx-track > * { flex: 0 0 calc((100% - 22px) / 2); } }
@media (max-width: 767px) { .cx-track > * { flex: 0 0 100%; } }

/* 성공사례 페이지 인트로 스트립 */
.cases-intro {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 30px; display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap; margin-bottom: 36px; box-shadow: var(--shadow-sm);
}
.cases-intro .ci-text { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.cases-intro .ci-text small { display: block; color: var(--muted); font-weight: 500; font-size: .85rem; margin-top: 2px; }
.cases-intro .ci-stat { text-align: center; padding-left: 40px; border-left: 1px solid var(--line); }
.cases-intro .ci-stat b { display: block; font-size: 1.5rem; font-weight: 800; }
.cases-intro .ci-stat > span { color: var(--muted); font-size: .82rem; }
.cases-intro .ci-stat b span { font-size: inherit; color: inherit; }
@media (max-width: 767px) {
  .cases-intro { gap: 18px; padding: 20px; }
  .cases-intro .ci-stat { padding-left: 18px; }
}
.blog-body { padding: 20px 22px; flex:1; display:flex; flex-direction:column; }
.blog-body h3 { font-size: 1.05rem; margin:0 0 10px; }
.blog-date { color: var(--muted); font-size: .84rem; margin-top:auto; }

/* Contact / CTA */
.cta-band { background: linear-gradient(120deg, var(--green-700), var(--green-500)); color:#fff; border-radius: var(--radius); padding: 48px; text-align:center; }
.cta-band h2 { color:#fff; }
.contact-form { background:#fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 34px; }
.form-label { font-weight: 700; color: var(--ink); font-size: .92rem; }
.form-control, .form-select { border-radius: var(--radius-sm); border: 1.5px solid var(--line); padding: 12px 14px; }
.form-control:focus, .form-select:focus { border-color: var(--green-600); box-shadow: 0 0 0 .2rem rgba(47,74,58,.12); }

/* Footer */
.site-footer { background: var(--green-900); color: #aebcb2; padding: 64px 0 28px; }
.site-footer h4 { color:#fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color:#aebcb2; }
.site-footer a:hover { color:#fff; }
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-links { list-style:none; padding:0; margin:0; }
.footer-links li { margin-bottom: 10px; font-size: .94rem; }
.footer-sns { display:flex; gap:10px; margin-top:16px; }
.footer-sns a { width:42px; height:42px; border-radius:50%; display:grid; place-items:center; color:#cdd8d1; font-size:1.1rem; transition: all .2s; background: rgba(255,255,255,.08); }
.footer-sns a:hover { transform: translateY(-2px); }
.footer-sns a.sns-kakao { background: #FEE500; }
.footer-sns a.sns-kakao svg { width: 22px; height: 22px; fill: #191919; }
.footer-sns a.sns-blog { background: #03C75A; padding: 0; }
.footer-sns a.sns-blog svg { width: 26px; height: 26px; }
.footer-sns a.sns-phone:hover, .footer-sns a.sns-mail:hover { background: rgba(255,255,255,.2); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; font-size: .84rem; color:#7f8f85; }

/* Floating buttons */
.floating { position: fixed; right: 18px; bottom: 96px; z-index: 900; display:flex; flex-direction:column; gap: 10px; align-items:center; }

/* 원형 퀵버튼 (아이콘 + 라벨) — 전체 메탈 크롬 배지 스타일 */
.quick-btn {
  width: 68px; height: 68px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: .72rem; font-weight: 800; letter-spacing: -.01em;
  transition: transform .18s ease, box-shadow .18s;
  text-decoration: none; line-height: 1; -webkit-font-smoothing: antialiased;
  position: relative; overflow: hidden; border: 1px solid transparent;
}
.quick-btn:hover { transform: translateY(-3px) scale(1.05); }
.quick-btn i { font-size: 1.3rem; }
.quick-btn svg { width: 22px; height: 22px; }
/* 광택 스침 (버튼별 시차) */
.quick-btn::after {
  content: ""; position: absolute; top: -70%; left: -90%; width: 60%; height: 240%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.5), transparent);
  transform: rotate(10deg); animation: badgeShine 4.6s ease-in-out infinite;
}
.floating .quick-btn:nth-child(2)::after { animation-delay: .7s; }
.floating .quick-btn:nth-child(3)::after { animation-delay: 1.4s; }
.floating .quick-btn:nth-child(4)::after { animation-delay: 2.1s; }

/* 카톡상담 — 옐로 메탈 */
.qb-kakao {
  background: linear-gradient(160deg, #fff6b0 0%, #ffe93e 26%, #d9be00 50%, #f6d900 72%, #fff3a0 100%);
  color: #191919; text-shadow: 0 1px 1px rgba(255,255,255,.4);
  box-shadow: inset 0 2px 3px rgba(255,255,255,.7), inset 0 -3px 5px rgba(140,120,0,.4), 0 6px 20px rgba(120,100,0,.3);
  border-color: rgba(170,150,0,.5);
}
.qb-kakao svg { fill: #191919; filter: drop-shadow(0 1px 1px rgba(255,255,255,.35)); }
.qb-kakao:hover { color: #191919; }

/* 무료상담 — 실버 크롬 */
.qb-consult {
  background: linear-gradient(160deg, #ffffff 0%, #eef1ef 26%, #c5cdc8 50%, #e6eae7 72%, #fdfdfd 100%);
  color: #1f2a23; text-shadow: 0 1px 1px rgba(255,255,255,.6);
  box-shadow: inset 0 2px 3px rgba(255,255,255,.85), inset 0 -3px 5px rgba(95,105,100,.35), 0 6px 20px rgba(70,80,75,.25);
  border-color: rgba(150,160,155,.55);
}
.qb-consult i { color: #33413a; text-shadow: 0 1px 1px rgba(255,255,255,.5); }
.qb-consult:hover { color: #1f2a23; }

/* 전화상담 — 골드 메탈 (아이콘·라벨 갈색톤 각인) */
.qb-phone {
  background: linear-gradient(160deg, #f3df9a 0%, #d9b95e 26%, #a07a26 50%, #c9a24b 70%, #eed389 100%);
  color: #4a370c; text-shadow: 0 1px 1px rgba(255,255,255,.35);
  box-shadow: inset 0 2px 3px rgba(255,255,255,.55), inset 0 -3px 5px rgba(90,65,10,.45), 0 6px 20px rgba(120,90,25,.35);
  border-color: rgba(140,105,30,.6);
}
.qb-phone i { color: #5d4512; text-shadow: 0 1px 1px rgba(255,255,255,.35); }
.qb-phone:hover { color: #4a370c; }

/* 블로그 — 그린 메탈 */
.qb-blog {
  background: linear-gradient(160deg, #8cf0b6 0%, #25d873 26%, #019a46 50%, #0bd465 72%, #93f2bb 100%);
  color: #fff; text-shadow: 0 1px 2px rgba(0,80,35,.6);
  box-shadow: inset 0 2px 3px rgba(255,255,255,.55), inset 0 -3px 5px rgba(0,90,40,.5), 0 6px 20px rgba(0,100,45,.3);
  border-color: rgba(0,110,50,.55);
}
.qb-blog svg { filter: drop-shadow(0 1px 1px rgba(0,80,35,.4)); }
.qb-blog:hover { color: #fff; }
.fab { width: 60px; height: 60px; border-radius: 50%; display:grid; place-items:center; box-shadow: var(--shadow-md); color:#fff; font-size: 1.5rem; transition: transform .2s; position: relative; }
.fab:hover { transform: scale(1.08); color:#fff; }
.fab-kakao { background: #FEE500; color:#191919; }
.fab-kakao svg { width: 28px; height: 28px; fill: #191919; }
.fab-phone { background: var(--green-700); }
.fab-top { background: rgba(255,255,255,.55); color: var(--green-700); border:1px solid rgba(230,233,230,.6); width:44px; height:44px; font-size:1.1rem; align-self:center; backdrop-filter: blur(6px); opacity:.65; border-radius:50%; display:grid; place-items:center; cursor:pointer; transition: all .2s; }
.fab-top:hover { opacity:1; background: var(--green-700); color:#fff; border-color: var(--green-700); }

/* ---------- 하단 고정 빠른상담 바 (프리미엄) ---------- */
body { padding-bottom: 78px; }
.quick-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 980;
  background: linear-gradient(180deg, rgba(26,36,29,.94) 0%, rgba(18,26,21,.98) 100%);
  backdrop-filter: blur(14px);
  box-shadow: 0 -10px 36px rgba(8,13,10,.45);
  padding: 14px 0; overflow: hidden;
}
/* 레이저 골드 라인 + 이동 광 이펙트 */
.quick-bar::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2.5px; z-index: 2;
  background: linear-gradient(90deg, rgba(201,162,75,.1), #c9a24b 25%, #f6e7ae 50%, #c9a24b 75%, rgba(201,162,75,.1));
  box-shadow: 0 0 14px rgba(230,200,120,.75), 0 0 4px rgba(246,231,174,.9);
}
.quick-bar::after {
  content: ""; position: absolute; top: -3px; height: 9px; width: 220px; left: -240px; z-index: 3;
  background: radial-gradient(ellipse at center, rgba(255,244,205,.95) 0%, rgba(246,231,174,.45) 45%, transparent 72%);
  filter: blur(.5px); pointer-events: none;
  animation: laserSweep 3.4s cubic-bezier(.4,.1,.6,.9) infinite;
}
@keyframes laserSweep { 0% { left: -240px; } 100% { left: 110%; } }
.qb-inner { display: flex; align-items: center; gap: 22px; }
.qb-title { display: flex; align-items: center; gap: 11px; white-space: nowrap; }
.qb-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(201,162,75,.6);
  animation: qbDot 2s ease-out infinite;
}
@keyframes qbDot { 0% { box-shadow: 0 0 0 0 rgba(201,162,75,.55); } 70% { box-shadow: 0 0 0 9px rgba(201,162,75,0); } 100% { box-shadow: 0 0 0 0 rgba(201,162,75,0); } }
.qb-tt { color: #fff; font-weight: 800; font-size: 1.04rem; line-height: 1.3; letter-spacing: -.01em; }
.qb-tt small { display: block; color: #93a59a; font-weight: 500; font-size: .74rem; letter-spacing: 0; }
.qb-form { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; justify-content: flex-end; }
.qb-form input[type=text], .qb-form input[type=tel] {
  min-width: 0; background: #ffffff; border: 1px solid #e2e6e2;
  color: #1f2a23; border-radius: 10px; padding: 11px 16px; font-size: .93rem; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.qb-form input[type=text] { flex: 0 1 160px; }
.qb-form input[type=tel]  { flex: 0 1 230px; }
.qb-form input::placeholder { color: #9aa69e; }
.qb-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,.18); }
.qb-agree { display: flex; align-items: center; gap: 8px; color: #cfd9d2; font-size: .74rem; white-space: nowrap; cursor: pointer; margin: 0; line-height: 1.3; font-weight: 600; }
.qb-agree input { accent-color: var(--gold); width: 16px; height: 16px; flex: 0 0 auto; }
.qb-agree:hover { color: #fff; }
.qb-submit {
  background: linear-gradient(160deg, #ecd28b 0%, #d3b25a 30%, #b08a34 55%, #d3b25a 80%, #ecd28b 100%);
  color: #241c07; border: 1px solid rgba(140,105,30,.55); border-radius: 999px;
  padding: 0 26px; height: 44px; font-weight: 800; white-space: nowrap; font-size: .94rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px; line-height: 1; cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.55), inset 0 -2px 4px rgba(90,65,10,.4), 0 4px 14px rgba(120,90,25,.35);
  text-shadow: 0 1px 1px rgba(255,255,255,.3);
  transition: transform .15s, box-shadow .15s;
  position: relative; overflow: hidden;
}
.qb-submit i { font-size: 1.3rem; display: flex; align-items: center; }
.qb-submit .qbs-ico { font-size: 1rem; margin-right: 4px; }
.qbm-quick i { font-size: 1.05rem; }
.qb-submit::after {
  content: ""; position: absolute; top: -70%; left: -90%; width: 55%; height: 240%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent);
  transform: rotate(10deg); animation: badgeShine 3.8s ease-in-out infinite;
}
.qb-submit:hover { transform: translateY(-1px); box-shadow: inset 0 1px 2px rgba(255,255,255,.6), inset 0 -2px 4px rgba(90,65,10,.4), 0 8px 20px rgba(120,90,25,.45); }
.qb-agree .open-privacy { text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.qb-agree .open-privacy:hover { color: #f2dfa0; }

/* ---------- 모바일 빠른상담 2탭 + 모달 ---------- */
.qb-mobile { display: none; }
.qbm-kakao, .qbm-quick {
  flex: 1; height: 52px; border-radius: 13px; border: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: .98rem; cursor: pointer; line-height: 1;
}
.qbm-kakao { background: #FEE500; color: #191919; }
.qbm-kakao svg { width: 19px; height: 19px; fill: #191919; }
.qbm-quick {
  background: linear-gradient(160deg, #ecd28b 0%, #d3b25a 30%, #b08a34 55%, #d3b25a 80%, #ecd28b 100%);
  color: #241c07; border: 1px solid rgba(140,105,30,.55); text-shadow: 0 1px 1px rgba(255,255,255,.3);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.55), inset 0 -2px 4px rgba(90,65,10,.4);
}
.quick-modal-backdrop { position: fixed; inset: 0; background: rgba(15,22,17,.6); z-index: 1400; backdrop-filter: blur(3px); }
.quick-modal {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(520px, 100vw); background: #fff; z-index: 1410;
  border-radius: 22px 22px 0 0; box-shadow: 0 -18px 60px rgba(0,0,0,.35);
  animation: qmUp .3s ease;
}
@keyframes qmUp { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.quick-modal .qm-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px 14px; font-size: 1.08rem; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.quick-modal .qm-x { background: none; border: 0; font-size: 1.05rem; color: var(--muted); cursor: pointer; }
.quick-modal .qm-body { padding: 18px 22px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.quick-modal .qm-sub { color: var(--muted); font-size: .88rem; margin: 0 0 2px; }
.quick-modal .qm-input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 11px;
  padding: 13px 16px; font-size: 1rem; outline: none;
}
.quick-modal .qm-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,.15); }
.quick-modal .qm-agree { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; margin: 2px 0 4px; cursor: pointer; }
.quick-modal .qm-agree input { accent-color: var(--gold); width: 17px; height: 17px; }
.quick-modal .qm-agree .open-privacy { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 개인정보 동의 팝업 ---------- */
.privacy-backdrop { position: fixed; inset: 0; background: rgba(15,22,17,.55); z-index: 1400; backdrop-filter: blur(2px); }
.privacy-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 60px);
  background: #fff; border-radius: 16px; z-index: 1410; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.4); display: flex; flex-direction: column;
  animation: ppIn .28s ease;
}
.privacy-modal .pv-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: var(--green-700); color: #fff; }
.privacy-modal .pv-x { background: none; border: 0; color: #fff; font-size: 1rem; cursor: pointer; opacity: .85; }
.privacy-modal .pv-x:hover { opacity: 1; }
.privacy-modal .pv-body { padding: 20px 22px; overflow-y: auto; font-size: .9rem; line-height: 1.8; color: var(--body); }
.privacy-modal .pv-foot { border-top: 1px solid var(--line); }
.privacy-modal .pv-close { width: 100%; border: 0; background: none; padding: 13px; font-weight: 700; color: var(--green-700); cursor: pointer; }
.privacy-modal .pv-close:hover { background: var(--green-050); }

/* ---------- FAQ 아코디언 ---------- */
.faq-wrap { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item.open { border-color: var(--green-600); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  background: none; border: 0; padding: 19px 22px; cursor: pointer;
  font-weight: 700; font-size: 1.02rem; color: var(--ink); font-family: inherit; letter-spacing: -.01em;
}
.faq-q .fq-mark {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--green-050); color: var(--green-700); font-weight: 800; font-size: .95rem; transition: all .2s;
}
.faq-item.open .fq-mark { background: var(--green-700); color: var(--gold); }
.faq-q .fq-chev { margin-left: auto; color: var(--muted); transition: transform .25s; flex: 0 0 auto; }
.faq-item.open .fq-chev { transform: rotate(180deg); color: var(--green-700); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 20px 70px; color: var(--body); font-size: .95rem; line-height: 1.85; white-space: pre-line; }

.faq-side {
  position: sticky; top: 100px;
  background: linear-gradient(150deg, var(--green-700), var(--green-500));
  border-radius: var(--radius); padding: 34px 30px; color: #fff;
}
.faq-side h3 { color: #fff; font-size: 1.35rem; line-height: 1.4; margin-bottom: 12px; }
.faq-side p { color: #c9d6cd; font-size: .93rem; margin-bottom: 22px; }
.faq-side .fs-actions { display: flex; flex-direction: column; gap: 10px; }

/* 접수 완료 토스트 */
.toast-ok {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 1300;
  background: var(--green-700); color: #fff; padding: 14px 26px; border-radius: 999px;
  box-shadow: 0 14px 40px rgba(15,22,17,.4); font-weight: 700; display: flex; align-items: center; gap: 9px;
  animation: toastIn .35s ease;
}
.toast-ok i { color: var(--gold); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- 사이트 팝업 ---------- */
.popup-backdrop { position: fixed; inset: 0; background: rgba(15,22,17,.55); z-index: 1200; backdrop-filter: blur(2px); }
.site-popup {
  position: fixed; top: 50%; left: 50%;
  transform: translate(calc(-50% + var(--pp-offset, 0px)), calc(-50% + var(--pp-offset, 0px)));
  width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto;
  background: #fff; border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.35);
  z-index: 1210; animation: ppIn .3s ease;
}
@keyframes ppIn { from { opacity: 0; transform: translate(calc(-50% + var(--pp-offset,0px)), calc(-46% + var(--pp-offset,0px))); } }
.site-popup .pp-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding: 16px 20px; background: var(--green-700); color:#fff; border-radius: 18px 18px 0 0; position: sticky; top: 0; }
.site-popup .pp-head strong { font-size: 1.02rem; }
.site-popup .pp-x { background:none; border:0; color:#fff; font-size:1.05rem; cursor:pointer; opacity:.85; }
.site-popup .pp-x:hover { opacity:1; }
.site-popup .pp-img { width:100%; display:block; }
.site-popup.pp-imgonly .pp-img { border-radius: 18px 18px 0 0; }
.site-popup .pp-x-float {
  position:absolute; top:12px; right:12px; z-index:2;
  width:36px; height:36px; border-radius:50%; border:0; cursor:pointer;
  background: rgba(10,15,11,.55); color:#fff; font-size:1rem;
  display:grid; place-items:center; backdrop-filter: blur(4px); transition: background .15s;
}
.site-popup .pp-x-float:hover { background: rgba(10,15,11,.8); }
.site-popup .pp-body { padding: 18px 20px; color: var(--body); font-size:.96rem; line-height:1.7; }
.site-popup .pp-cta { padding: 0 20px 14px; }
.site-popup .pp-foot { display:flex; border-top: 1px solid var(--line); }
.site-popup .pp-foot button { flex:1; background:none; border:0; padding: 13px; font-size:.9rem; cursor:pointer; color: var(--muted); font-weight:600; }
.site-popup .pp-foot button:hover { background: var(--green-050); color: var(--ink); }
.site-popup .pp-foot .pp-today { border-right: 1px solid var(--line); }
.fab-label { position:absolute; right:70px; top:50%; transform:translateY(-50%); background:var(--ink); color:#fff; padding:6px 12px; border-radius:8px; font-size:.82rem; white-space:nowrap; opacity:0; pointer-events:none; transition:opacity .2s; }
.fab:hover .fab-label { opacity:1; }

/* Page hero (sub pages) */
.page-hero { background: var(--green-700); color:#fff; padding: 150px 0 60px; position: relative; overflow: hidden; }
.page-hero h1 { color:#fff; font-size: clamp(1.7rem,4vw,2.6rem); }
.page-hero .crumb { color: #a9b8ae; font-size:.9rem; margin-top:10px; }
.page-hero .crumb a:hover { color:#fff; }
.page-hero .ph-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.page-hero .ph-overlay { position:absolute; inset:0; z-index:1; background: linear-gradient(100deg, rgba(24,34,28,.72) 0%, rgba(24,34,28,.48) 55%, rgba(24,34,28,.22) 100%); }
.page-hero .ph-video { filter: brightness(1.08); }
.page-hero h1, .page-hero .crumb { text-shadow: 0 2px 14px rgba(10,15,11,.5); }

/* 페이지네이션 (브랜드 스타일) */
.pagination { justify-content: center; gap: 6px; }
.pagination .page-link {
  color: var(--green-700); border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 15px; font-weight: 600; background: #fff;
}
.pagination .page-link:hover { background: var(--green-050); border-color: var(--green-600); color: var(--green-700); }
.pagination .page-item.active .page-link { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.pagination .page-item.disabled .page-link { color: #b8c2bc; background: #fafbfa; }
.pagination .page-link:focus { box-shadow: none; }

/* AOS-like reveal */
.reveal { opacity:0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity:1; transform:none; }

/* ---------- Responsive ---------- */
/* 모바일 내비게이션 — 기본은 화면 밖(모든 해상도), .open 시에만 표시 */
.mobile-nav {
  position: fixed; inset: 0; background: var(--green-800); z-index: 1100;
  transform: translateX(100%); visibility: hidden;
  transition: transform .3s ease, visibility .3s;
  display: flex; flex-direction: column; padding: 80px 28px 28px;
}
.mobile-nav.open { transform: none; visibility: visible; }
.mobile-nav a { color:#fff; font-size:1.25rem; font-weight:600; padding:16px 0; border-bottom:1px solid rgba(255,255,255,.1); }
.mobile-nav .close { position:absolute; top:22px; right:22px; background:none; border:0; color:#fff; font-size:1.8rem; }
.mobile-nav .btn-kakao { margin-top: 24px; border-bottom: 0; color: #191919 !important; }
.mobile-nav .header-phone {
  padding: 13px 16px !important;
  border: 1px solid rgba(255,255,255,.4) !important; border-radius: 999px;
  animation: none; font-size: 1.05rem;
}
.mobile-nav .mn-brand {
  display: flex; align-items: center; gap: 11px; padding: 0 0 22px; border-bottom: 1px solid rgba(255,255,255,.14);
}
.mobile-nav .mn-brand img { height: 34px; }
.mobile-nav .mn-brand span { color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }

/* 헤더 전화번호 심장박동 */
@keyframes phonePulse {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.07); }
  28% { transform: scale(1); }
  42% { transform: scale(1.05); }
  56% { transform: scale(1); }
}
.header-phone { animation: phonePulse 2.2s ease-in-out infinite; }
.header-phone i { color: var(--gold); }
.site-header.scrolled .header-phone i, .site-header.solid .header-phone i { color: var(--gold-dark); }

@media (max-width: 991px) {
  .rep-wrap { grid-template-columns: 1fr; gap: 28px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .main-nav, .header-cta .btn-kakao, .header-cta .btn-brand { display: none; }
  .header-cta .header-phone { display: none; }   /* 모바일 헤더에서 전화번호 숨김 */
  .brand-logo img { height: 34px; }              /* 모바일: 가로형 로고 축소 */
  .nav-toggle { display: block; }
}
@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-strip { margin-top: -50px; }
  .hero .container-x { padding-bottom: 130px; }   /* 통계 카드(-50px 겹침)에 버튼이 가려지지 않게 */
  .stat-item { padding: 22px 12px; }
  .cta-band { padding: 32px 20px; }
  .contact-form { padding: 24px; }
  .rep-badge { left: 12px; }
  .hero { min-height: 92vh; }
  body { padding-bottom: 118px; }
  /* 모바일: 우측 고정 상담 위젯 — 카톡·전화 2버튼만 컴팩트하게 */
  .floating { right: 12px; bottom: 96px; gap: 8px; }
  .floating .qb-consult, .floating .qb-blog, .floating .fab-top { display: none; }
  .quick-btn { width: 50px; height: 50px; font-size: .56rem; }
  .quick-btn i { font-size: .95rem; }
  .quick-btn svg { width: 15px; height: 15px; }
  .fab { width: 54px; height: 54px; }
  .quick-bar { padding: 10px 0; }
  .qb-inner { gap: 10px; }
  .qb-title, .qb-form { display: none; }   /* 모바일은 2탭으로 대체 */
  .qb-mobile { display: flex; gap: 10px; width: 100%; }
  body { padding-bottom: 84px; }
  .hero-scroll { display: none; }
}
