@charset "utf-8";

/* ==========================================================================
   상상인플러스저축은행 자동차담보대출 — (주)한믿음
   2026 리뉴얼 스타일시트

   · 색상/폰트 사이즈 : 상플_홈페이지제작요청_260805.pptx 지정값 전수 반영
       #121212 본문·제목 / #565656 서브 / #008FA8 딥틸(강조·버튼·네비)
       #00A8A8 포인트 / #888888 뮤트 / #FFFFFF 반전
   · 로고·전화번호 등 기본 크기 : 기존 사이트(css/layout.css) 기준 유지
   · 지정 px 는 1440px 이상에서 100% 적용, 그 아래는 뷰포트 비례 축소
   ========================================================================== */

/* ---------- 웹폰트 : 기존 사이트와 동일 (Paperlogy → Pretendard 대체) ---------- */
@font-face { font-family: 'Pretendard'; font-weight: 300; font-display: swap; src: url('../fonts/Pretendard-Light.woff') format('woff'); }
@font-face { font-family: 'Pretendard'; font-weight: 400; font-display: swap; src: url('../fonts/Pretendard-Regular.woff') format('woff'); }
@font-face { font-family: 'Pretendard'; font-weight: 500; font-display: swap; src: url('../fonts/Pretendard-Medium.woff') format('woff'); }
@font-face { font-family: 'Pretendard'; font-weight: 600; font-display: swap; src: url('../fonts/Pretendard-SemiBold.woff') format('woff'); }
@font-face { font-family: 'Pretendard'; font-weight: 700; font-display: swap; src: url('../fonts/Pretendard-Bold.woff') format('woff'); }
@font-face { font-family: 'Pretendard'; font-weight: 800; font-display: swap; src: url('../fonts/Pretendard-ExtraBold.woff') format('woff'); }
@font-face { font-family: 'Pretendard'; font-weight: 900; font-display: swap; src: url('../fonts/Pretendard-Black.woff') format('woff'); }

/* ---------- 토큰 ---------- */
:root {
  /* PPT 지정 색상 (전수 조사 결과) */
  --point:        #00A8A8;   /* 포인트 하이라이트 */
  --point-deep:   #008FA8;   /* 강조·버튼·네비 */
  --point-dark:   #00768A;
  --point-soft:   #E6F7F7;
  --ink:          #121212;
  --ink-sub:      #565656;
  --ink-mute:     #888888;
  --white:        #FFFFFF;

  --line:         #E4E6E9;
  --line-soft:    #EEF0F3;
  --bg:           #FFFFFF;
  --bg-soft:      #F4F6F9;
  --bg-soft2:     #F8F9FB;
  --dark:         #121212;

  --radius-s: 10px;
  --radius:   16px;
  --radius-l: 22px;
  --br-pill:  500rem;

  --shadow-s: 0 2px 10px rgba(18, 18, 18, .05);
  --shadow:   0 8px 30px rgba(18, 18, 18, .08);
  --shadow-l: 0 -6px 30px rgba(18, 18, 18, .10);

  /* PPT 지정 px → 1440px 에서 100%, 그 이하 비례 축소 */
  --fs-110: clamp(30px, 6.00vw, 104px);
  --fs-64:  clamp(27px, 4.44vw, 64px);
  --fs-48:  clamp(24px, 3.33vw, 48px);
  --fs-40:  clamp(22px, 2.78vw, 40px);
  --fs-36:  clamp(19px, 2.50vw, 36px);
  --fs-32:  clamp(19px, 2.22vw, 32px);
  --fs-28:  clamp(17px, 1.94vw, 28px);
  --fs-24:  clamp(16px, 1.67vw, 24px);
  --fs-20:  clamp(15px, 1.39vw, 20px);
  --fs-18:  clamp(14px, 1.25vw, 18px);
  --fs-16:  clamp(13.5px, 1.11vw, 16px);
  --fs-14:  clamp(12.5px, 0.97vw, 14px);

  --header-h: 92px;
  --formbar-h: 0px;
  --wrap: 1560px;
  --gutter: clamp(16px, 3.2vw, 50px);
  --sec-pd: clamp(52px, 6.6vw, 120px);
}

/* ---------- 리셋 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
  overflow-x: hidden; overflow-x: clip;      /* 모바일 슬라이드 메뉴로 인한 가로 스크롤 방지 */
}
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Paperlogy', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  font-size: 16px; font-weight: 400; line-height: 1.55; letter-spacing: -0.03em;
  word-break: keep-all; -webkit-font-smoothing: antialiased;
  padding-bottom: var(--formbar-h);
  overflow-x: hidden; overflow-x: clip;
}
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
h1, h2, h3, h4 { letter-spacing: -0.045em; line-height: 1.25; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 3px solid rgba(0, 168, 168, .45); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tc { color: var(--point); }
.tc2 { color: var(--point-deep); }

/* ---------- 스크롤 등장 ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   헤더 — 로고 50px / 전화번호 32px (기존 사이트 크기 유지)
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 120; background: var(--white);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-stuck { border-bottom-color: var(--line-soft); box-shadow: 0 2px 14px rgba(18,18,18,.05); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(12px, 2vw, 34px); height: var(--header-h); }
.header__logo { flex: 0 0 auto; line-height: 0; }
/* max-width:100% 가 가로만 줄여 로고를 찌그러뜨리는 것을 막는다 */
.header__logo img { height: clamp(34px, 3.5vw, 50px); width: auto; max-width: none; object-fit: contain; }

.gnb { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 46px); }
.gnb a {
  position: relative; font-size: var(--fs-24); font-weight: 400; color: var(--ink-sub);
  padding: 8px 2px; transition: color .18s; white-space: nowrap;
}
.gnb a:hover { color: var(--point-deep); }
.gnb a.is-active { color: var(--point-deep); font-weight: 700; }
.gnb a.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--point-deep); border-radius: 2px; }

/* 전화번호 버튼 : 기존 .top_call (fs_30 / round / border_point) 기준 + PPT M,32,#008FA8 */
.tel-pill {
  display: inline-flex; align-items: center; gap: .3em; white-space: nowrap;
  border: 1.5px solid var(--point); color: var(--point-deep); background: var(--white);
  border-radius: var(--br-pill); padding: .42em .9em .4em;
  font-size: var(--fs-32); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em;
  transition: background .18s, color .18s;
}
.tel-pill:hover { background: var(--point); color: var(--white); border-color: var(--point); }
.tel-pill svg { flex: none; width: .78em; height: .78em; }

.nav-toggle { display: none; position: relative; z-index: 160; width: 46px; height: 46px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; position: relative; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
.nav-toggle span::before { top: -8px; } .nav-toggle span::after { top: 8px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

.nav-drawer { display: contents; }
.nav-dim { position: fixed; inset: 0; background: rgba(18,18,18,.45); opacity: 0; visibility: hidden; transition: .25s; z-index: 130; }
body.nav-open .nav-dim { opacity: 1; visibility: visible; }
body.nav-open .header { z-index: 150; }

@media (max-width: 1023px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: flex; }
  .header__actions { display: flex; align-items: center; gap: 4px; }
  .nav-drawer { display: block; position: fixed; inset: 0; z-index: 140; overflow: hidden; pointer-events: none; }
  .gnb {
    position: absolute; top: 0; right: 0; pointer-events: auto;
    width: min(80vw, 330px); height: 100%; padding: 86px 24px 30px;
    background: var(--white); box-shadow: -10px 0 40px rgba(18,18,18,.12);
    flex-direction: column; align-items: stretch; gap: 0;
    transform: translateX(100%); transition: transform .3s cubic-bezier(.22,.61,.36,1);
  }
  body.nav-open .gnb { transform: none; }
  .gnb a { font-size: 17px; padding: 16px 4px; border-bottom: 1px solid var(--line-soft); }
  .gnb a.is-active::after { display: none; }
  .tel-pill { font-size: 17px; padding: .4em .7em; border-width: 1.2px; }
  .header__logo img { height: 34px; }
}
/* 모바일 : 가로 폭은 그대로 두고 세로 터치 영역만 넉넉하게 (전화 버튼은 핵심 CTA) */
@media (max-width: 1023px) {
  .header__logo { display: flex; align-items: center; min-height: 44px; }
  .tel-pill { min-height: 40px; }
}

/* 좁은 화면 : 로고·전화·햄버거가 한 줄에 들어가도록 단계적으로 축소 */
@media (max-width: 479px) {
  .header__inner { gap: 8px; }
  .header__logo img { height: 30px; }
  .tel-pill { font-size: 14px; padding: .38em .6em; }
  .nav-toggle { width: 38px; height: 38px; }
}
@media (max-width: 359px) {
  .header__inner { gap: 6px; }
  .header__logo img { height: 26px; }
  .tel-pill { font-size: 13px; padding: .35em .5em; gap: .25em; }
  .nav-toggle { width: 34px; height: 34px; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { width: 21px; }
}

/* ==========================================================================
   메인 비주얼 (PPT 3p)  M110 #121212 / B110 #00A8A8 / R48 / R24+B24
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 76px) 0 clamp(36px, 4.6vw, 88px); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: clamp(16px, 2.4vw, 44px); }
.hero__title { font-size: var(--fs-110); font-weight: 500; line-height: 1.14; letter-spacing: -0.05em; }
.hero__title strong { display: block; font-weight: 700; color: var(--point); white-space: nowrap; }
.hero__title strong em { font-style: normal; color: var(--ink); }
.hero__sub { margin-top: clamp(12px, 1.3vw, 26px); font-size: var(--fs-48); font-weight: 400; color: var(--ink); letter-spacing: -0.045em; }
.hero__points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(6px, 1vw, 20px); margin-top: clamp(24px, 3vw, 58px); max-width: 860px; }
.hero__point { text-align: center; }
.hero__point i { display: inline-flex; align-items: center; justify-content: center; width: clamp(38px, 3.2vw, 60px); aspect-ratio: 1; border-radius: 50%; background: #F1F4F7; margin-bottom: 10px; }
.hero__point i svg { width: 52%; height: 52%; color: var(--point); }
.hero__point p { font-size: var(--fs-24); font-weight: 400; color: var(--ink); line-height: 1.4; }
.hero__point b { font-weight: 700; }
.hero__visual > img { display: block; width: 100%; max-width: 620px; margin-left: auto; }

@media (max-width: 899px) {
  .hero { padding-top: 22px; }
  .hero__inner { grid-template-columns: 1fr; gap: 4px; }
  .hero__visual { order: -1; }
  .hero__visual > img,
  .hero__visual .hero-art__stage { max-width: min(78vw, 370px); margin: 0 auto; }
  .hero__title, .hero__sub { text-align: center; }
  .hero__sub { font-size: 16px; margin-top: 8px; }
  .hero__points { max-width: none; margin-inline: auto; gap: 4px; }
  .hero__point p { font-size: 12px; }
  .hero__point i { margin-bottom: 6px; }
}
@media (max-width: 359px) { .hero__point p { font-size: 11px; } }

/* ==========================================================================
   섹션 공통
   ========================================================================== */
.sec { padding: var(--sec-pd) 0; }
.sec--soft { background: var(--bg-soft); }
.sec--tight { padding-block: clamp(38px, 4.6vw, 84px); }
.sec__head { margin-bottom: clamp(22px, 2.8vw, 52px); }
.sec__head--center { text-align: center; }
.sec__head--flush { margin-bottom: 0; }
.sec__label { font-size: var(--fs-36); font-weight: 400; color: var(--ink); margin-bottom: .35em; letter-spacing: -0.04em; }
.sec__title { font-size: var(--fs-64); font-weight: 700; }
.sec__title--48 { font-size: var(--fs-48); }
.sec__title .light { font-weight: 500; color: var(--ink); }
.sec__desc { margin-top: clamp(8px, .9vw, 18px); font-size: var(--fs-24); font-weight: 400; color: var(--ink-sub); line-height: 1.6; }

/* --- 추가/대환대출 (PPT 4p) --- */
.promo { text-align: center; overflow: hidden; }
.promo__hands { display: block; width: 100%; height: auto; }
.promo-hands-wrap { display: block; width: min(100%, 1100px); margin: clamp(10px, 2vw, 30px) auto 0; }

/* --- 이런 상황이라면 (PPT 5p) : 카드 B24 / R16 --- */
.situations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.3vw, 24px); }
.situation {
  position: relative; display: flex; flex-direction: column;
  min-height: clamp(150px, 15vw, 236px); padding: clamp(16px, 1.7vw, 32px);
  border-radius: var(--radius-l); overflow: hidden;
}
.situation h3 { font-size: var(--fs-24); font-weight: 700; color: var(--ink); line-height: 1.3; }
.situation p { margin-top: .6em; font-size: var(--fs-16); font-weight: 400; color: var(--ink); line-height: 1.55; max-width: 62%; }
.situation img { position: absolute; right: clamp(8px, 1.2vw, 24px); bottom: clamp(8px, 1.2vw, 22px); width: clamp(58px, 7vw, 120px); }
@media (max-width: 899px) {
  .situations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .situation { min-height: 150px; padding-bottom: 14px; }
  .situation p { max-width: calc(100% - 56px); }
  .situation img { width: 50px; }
}
@media (max-width: 519px) {
  .situations { grid-template-columns: 1fr; }
  .situation { min-height: 0; }
  .situation p { max-width: calc(100% - 66px); }
  .situation img { width: 56px; }
}

/* --- 내 차 시세 (PPT 6p) : B48 / R24 / 버튼 SB24 --- */
.valuation { background: var(--bg-soft); border-radius: clamp(16px, 2vw, 34px); overflow: hidden; }
.valuation__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 20px; padding: clamp(24px, 3vw, 58px) clamp(18px, 3vw, 62px); }
.valuation h2 { font-size: var(--fs-48); font-weight: 700; }
.valuation p { margin-top: .5em; font-size: var(--fs-24); color: var(--ink-sub); line-height: 1.55; }
.valuation picture { display: block; width: 100%; max-width: 560px; margin-left: auto; }
.valuation img { display: block; width: 100%; height: auto; }
@media (max-width: 899px) {
  .valuation__inner { grid-template-columns: 1fr; text-align: center; }
  .valuation picture { margin: 6px auto 0; max-width: 320px; }
}

/* --- 버튼 --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35em;
  border-radius: var(--br-pill); padding: .62em 1.6em;
  font-size: var(--fs-24); font-weight: 600; line-height: 1.2;
  transition: background .18s, color .18s, transform .18s, box-shadow .18s;
}
.btn--point { background: var(--point); color: var(--white); box-shadow: 0 8px 22px rgba(0, 168, 168, .26); }
.btn--point:hover { background: var(--point-deep); transform: translateY(-2px); }
.btn--ghost { border: 1.5px solid var(--point); color: var(--point-deep); }
.btn--ghost:hover { background: var(--point); color: var(--white); }
.btn--lg { padding: .7em 1.9em; }
.mt-btn { margin-top: clamp(14px, 1.6vw, 30px); }

/* --- 상품 유형 (PPT 7p) : R32 + B32 #008FA8 --- */
.split { display: grid; grid-template-columns: minmax(0, 750fr) minmax(0, 608fr);
  gap: clamp(22px, 3vw, 68px); align-items: center; }   /* PSD 750 : 608 */
.benefit-list { display: grid; gap: .32em; }
/* PSD 처럼 흰 박스 안에 한 줄씩 */
.benefit {
  background: var(--white); border-radius: var(--radius);
  padding: .72em 1em; text-align: center;
  font-size: clamp(13px, 1.45vw, 21px); font-weight: 500; color: var(--ink);
  line-height: 1.35; box-shadow: 0 1px 3px rgba(18, 18, 18, .04);
}
.benefit-plus { text-align: center; color: var(--point); font-weight: 700; font-size: clamp(11px, 1vw, 15px); line-height: 1; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; gap: 20px; } .sec--soft .split .sec__head { text-align: center; } }

/* --- 상담사 강점 (PPT 8p) : 체크 M24 --- */
.counsel { display: grid; grid-template-columns: minmax(0, 440fr) minmax(0, 424fr) minmax(0, 590fr);
  gap: clamp(14px, 3.4vw, 54px); align-items: center; }
/* 이 섹션은 문구 칸이 좁아 제목을 PSD 비율에 맞춘다 (48px → 36px) */
.counsel .sec__title--48 { font-size: clamp(20px, 2.5vw, 36px); }
/* 좌우 2단 섹션도 칸이 좁아 제목을 PSD 비율로 (48px → 34px) */
.split .sec__title--48 { font-size: clamp(19px, 2.36vw, 34px); }
/* 인물 + 말풍선 : 원본 시안의 배치 비율을 그대로 사용 */
.counsel__figure {
  position: relative;
  width: 100%;                           /* 그리드 칸을 그대로 사용 (PSD 424 비율) */
  margin: 0;
  display: flex;
  justify-content: center;
}
.counsel__figure > picture { display: block; width: 60.4%; }   /* PSD 256/424 */
.counsel__img { display: block; width: 100%; height: auto; }

/* 말풍선 : 이미지에 박힌 글씨 대신 실제 텍스트 → 어떤 화면에서도 선명 */
.counsel__bubble {
  position: absolute; z-index: 1;
  width: 30%;                          /* PSD 116/424 */
  padding: .5em .55em;
  border-radius: 14px;
  background: var(--point-deep); color: #fff;
  font-size: clamp(10px, 0.85vw, 13px); font-weight: 600; line-height: 1.35;
  letter-spacing: -0.03em; text-align: center; word-break: keep-all;
  box-shadow: 0 6px 16px rgba(0, 143, 168, .28);
}
/* 꼬리 */
.counsel__bubble::after {
  content: ''; position: absolute; bottom: -10px; width: 0; height: 0;
  border: 11px solid transparent; border-top-width: 13px; border-bottom-width: 0;
  border-top-color: var(--point-deep);
}
.counsel__bubble--l { left: 0;  top: 0.6%; }   /* PSD 좌표 */
.counsel__bubble--l::after { right: 16%; transform: rotate(-14deg); }
.counsel__bubble--r { right: 0; top: 12.7%; }  /* PSD 좌표 */
.counsel__bubble--r::after { left: 16%; transform: rotate(14deg); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1vw, 16px); }
.check {
  display: flex; align-items: center; gap: .45em; background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: .7em .9em; font-size: clamp(11px, 1.12vw, 17px); font-weight: 500; color: var(--ink);
  box-shadow: var(--shadow-s); line-height: 1.3; white-space: nowrap;   /* PSD 처럼 한 줄 유지 */
}
.check svg { flex: none; width: 1em; height: 1em; color: var(--point); }
@media (max-width: 1023px) {
  .counsel { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .counsel__figure { order: -1; width: min(92vw, 400px); margin: 0 auto; }
  .check { white-space: normal; }   /* 좁은 화면에서는 줄바꿈 허용 */
  .checks { width: 100%; }
}
@media (max-width: 519px) { .checks { grid-template-columns: 1fr; } .check { text-align: left; } }

/* ==========================================================================
   캐러셀 (PPT 9p 조건 / 12p 사례)
   ========================================================================== */
.carousel { position: relative; }
.carousel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(20px, 2.4vw, 44px); }
.carousel__nav { display: flex; gap: 10px; }
.carousel__btn {
  width: clamp(38px, 3vw, 52px); aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid var(--line); color: var(--ink-sub); display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .18s, color .18s, background .18s;
}
.carousel__btn:hover { border-color: var(--point); color: var(--point); background: var(--point-soft); }
.carousel__btn svg { width: 42%; height: 42%; }
.carousel__track {
  display: grid; grid-auto-flow: column; gap: clamp(10px, 1.2vw, 22px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 6px; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }

/* 조건 카드 : 제목 B20 / 본문 R16 / 소제목 SB16 / 각주 R14 #565656 */
.cond-card {
  width: clamp(238px, 23vw, 330px); background: var(--bg-soft2); border: 1px solid var(--line-soft);
  border-radius: var(--radius-l); padding: clamp(16px, 1.6vw, 30px); min-height: clamp(210px, 17vw, 286px);
}
.cond-card__icon { display: inline-flex; align-items: center; justify-content: center; width: clamp(32px, 2.6vw, 46px); aspect-ratio: 1; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-s); margin-bottom: .7em; }
.cond-card__icon svg { width: 55%; height: 55%; color: var(--point-deep); }
.cond-card h3 { font-size: var(--fs-20); font-weight: 700; color: var(--ink); margin-bottom: .45em; }
.cond-card p { font-size: var(--fs-16); font-weight: 400; color: var(--ink); line-height: 1.6; }
.cond-card p b { font-weight: 600; }
.cond-sub { display: block; font-size: var(--fs-14); color: var(--ink-sub); line-height: 1.5; margin: .15em 0 .5em; }
.cond-note { display: block; font-size: var(--fs-14); color: var(--ink-sub); line-height: 1.5; margin-top: .8em; }

/* 사례 카드 : 이름 M20 / 태그 M16 #008FA8 / 본문 M18 #565656 / 금액 B24 #008FA8 / 차량 M20 #888888 */
.case-card {
  width: clamp(292px, 31vw, 450px); background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--radius-l); box-shadow: var(--shadow-s); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) 47%;   /* 원본 시안 비율 */
  align-items: stretch;
}
.case-card__body { padding: clamp(14px, 1.4vw, 26px); display: flex; flex-direction: column; }
.case-card__name { display: flex; align-items: center; gap: .4em; flex-wrap: wrap; margin-bottom: .55em; }
.case-card__name b { font-size: var(--fs-20); font-weight: 500; color: var(--ink); }
.case-card__name span { font-size: var(--fs-16); font-weight: 500; color: var(--point-deep); border: 1px solid var(--point); border-radius: var(--br-pill); padding: .15em .7em; }
.case-card__txt { font-size: var(--fs-18); font-weight: 500; color: var(--ink-sub); line-height: 1.5; flex: 1; }
.case-card__amount { margin-top: 1em; border-left: 3px solid var(--point); padding-left: .6em; }
.case-card__amount p { font-size: var(--fs-20); font-weight: 500; color: var(--ink); }
.case-card__amount b { font-size: var(--fs-24); font-weight: 700; color: var(--point-deep); margin-left: .2em; }
.case-card__amount small { display: block; font-size: var(--fs-20); font-weight: 500; color: var(--ink-mute); margin-top: .1em; }
.case-card__photo {
  background: #EDF1F4 center/cover no-repeat;
  margin: clamp(10px, 1vw, 18px) clamp(10px, 1vw, 18px) clamp(10px, 1vw, 18px) 0;
  border-radius: var(--radius); min-height: clamp(150px, 14vw, 210px);
}
.case-card__photo--empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5em;
  background: linear-gradient(160deg, #EAF7F8, #D8EEF2); color: var(--point-deep);
  font-size: var(--fs-14); font-weight: 600; text-align: center; padding: 8%;
}
.case-card__photo--empty svg { width: 38%; height: auto; opacity: .45; }
/* 모바일 : 사진이 세로로 잘리지 않도록 카드 상단 전체폭으로 배치 */
@media (max-width: 767px) {
  .case-card { grid-template-columns: 1fr; }
  .case-card__photo { order: -1; min-height: 0; width: auto; aspect-ratio: 16 / 10;
                      margin: clamp(10px, 2.4vw, 16px) clamp(10px, 2.4vw, 16px) 0; }
  .case-card__photo--empty svg { width: 20%; }
  .case-card__body { padding: 16px; }
}

/* ==========================================================================
   FAQ  (PPT 14p / 21p)  Q B28 #121212 / A제목 B28 #565656 / A본문 R24 #565656
   ========================================================================== */
.faq-split { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 2fr); gap: clamp(18px, 3vw, 60px); align-items: start; }
@media (max-width: 899px) { .faq-split { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--line); --faq-badge: clamp(26px, 2.1vw, 34px); --faq-gap: clamp(10px, 1vw, 20px); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; gap: var(--faq-gap); text-align: left;
  padding: clamp(14px, 1.5vw, 28px) 0; font-size: var(--fs-28); font-weight: 700; color: var(--ink); line-height: 1.35;
}
.faq__badge {
  flex: none; width: var(--faq-badge); height: var(--faq-badge); border-radius: 50%;
  background: var(--point-soft); color: var(--point-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-16); font-weight: 700; line-height: 1; letter-spacing: 0;
}
.faq__q > span:nth-child(2) { flex: 1; }
.faq__arrow { flex: none; width: clamp(16px, 1.4vw, 20px); height: clamp(16px, 1.4vw, 20px); color: var(--ink-mute); transition: transform .25s; }
.faq__item.is-open .faq__arrow { transform: rotate(180deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; background: var(--bg-soft); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a-inner { display: flex; gap: var(--faq-gap); padding: clamp(14px, 1.4vw, 26px) 0; }
.faq__badge--a { background: #E7E9EC; color: #6B7075; }
.faq__a-txt { padding-right: clamp(26px, 2.6vw, 40px); }
.faq__a-txt strong { display: block; font-size: var(--fs-28); font-weight: 700; color: var(--ink-sub); margin-bottom: .3em; }
.faq__a-txt p { font-size: var(--fs-24); font-weight: 400; color: var(--ink-sub); line-height: 1.55; }

/* ==========================================================================
   유의사항 (PPT 15p) : 제목 M20 / 본문 R14 #565656
   ========================================================================== */
.notice { background: var(--bg-soft); border-radius: var(--radius-l); padding: clamp(18px, 2.2vw, 42px); }
.notice h2 { font-size: var(--fs-20); font-weight: 500; color: var(--ink); margin-bottom: .7em; }
.notice ul { display: grid; gap: .45em; }
.notice li { position: relative; padding-left: 12px; font-size: var(--fs-14); color: var(--ink-sub); line-height: 1.6; }
.notice li::before { content: ''; position: absolute; left: 0; top: .62em; width: 3px; height: 3px; border-radius: 50%; background: #C2C7CC; }

/* ==========================================================================
   푸터 (PPT 16p) : SB16/R16 #FFFFFF, 전화 M32 #FFFFFF
   ========================================================================== */
.footer { background: var(--dark); color: var(--white); padding: clamp(38px, 4.4vw, 82px) 0; }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(26px, 3vw, 70px); }
.footer__cert { display: inline-flex; align-items: center; gap: .4em; font-size: var(--fs-16); font-weight: 600; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.55); padding-bottom: 3px; margin-bottom: clamp(16px, 2vw, 34px); }
.footer__cert svg { width: .75em; height: .75em; }
@media (max-width: 899px) { .footer__cert { padding: 8px 0; } }
.footer__logo { display: block; height: 34px; width: auto; margin-bottom: 16px; }
.footer__info p { font-size: var(--fs-16); font-weight: 400; color: var(--white); line-height: 1.65; }
.footer .tel-pill { margin-top: clamp(16px, 2vw, 34px); background: var(--point); border-color: var(--point); color: var(--white); font-size: var(--fs-32); font-weight: 500; }
.footer .tel-pill:hover { background: var(--point-deep); border-color: var(--point-deep); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 2px 1.4em; margin-bottom: clamp(14px, 2vw, 28px); }
.footer__nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; min-width: 36px; padding: 6px 0; font-size: var(--fs-16); font-weight: 500; color: var(--white); opacity: .9; transition: opacity .18s, color .18s; }
.footer__nav a:hover { color: var(--point); opacity: 1; }
.footer__terms p { font-size: var(--fs-16); font-weight: 400; color: var(--white); line-height: 1.65; }
.footer__terms .dim { color: #9BA0A5; margin-top: clamp(12px, 1.6vw, 26px); }
@media (max-width: 899px) { .footer__inner { grid-template-columns: 1fr; } }

/* ==========================================================================
   신청 폼 (PPT 17p) : 제목 B24 #008FA8 / 부제 R16 #565656
                       placeholder R16 #888888 / 동의 R16 #121212 / 버튼 B24 #FFFFFF
   ========================================================================== */
.formbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  background: var(--white); box-shadow: var(--shadow-l);
  border-radius: clamp(14px, 1.4vw, 26px) clamp(14px, 1.4vw, 26px) 0 0;
  transform: translateY(105%); transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.formbar.is-open { transform: none; }

/* 모바일 폼 닫기 : 배경 딤 + 우측 상단 X */
.formbar__scrim { position: fixed; inset: 0; z-index: 139; background: rgba(18, 18, 18, .38);
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s; }
.formbar__close { display: none; position: absolute; top: 8px; right: 10px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--ink-sub); }
.formbar__close svg { width: 18px; height: 18px; }
.formbar__inner { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); gap: clamp(14px, 2vw, 46px); align-items: center; padding: clamp(12px, 1.3vw, 24px) var(--gutter); max-width: var(--wrap); margin: 0 auto; }
.formbar__divider { width: 1px; background: var(--line); align-self: stretch; }

.lead-form__head { display: flex; align-items: baseline; gap: .45em; flex-wrap: wrap; margin-bottom: .5em; }
.lead-form__head b { font-size: var(--fs-24); font-weight: 700; color: var(--point-deep); }
.lead-form__head span { font-size: var(--fs-16); font-weight: 400; color: var(--ink-sub); }
.lead-form__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.lead-form__fields { display: grid; gap: 8px; }
.lead-form__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: center; }
.lead-form input[type="text"], .lead-form input[type="tel"] {
  width: 100%; background: var(--bg-soft); border: 1px solid transparent; border-radius: var(--radius-s);
  padding: .62em .8em; font-size: var(--fs-16); font-weight: 400; color: var(--ink);
  transition: border-color .18s, background .18s;
}
.lead-form input.hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; }
.lead-form input::placeholder { color: var(--ink-mute); }
.lead-form input:focus { background: var(--white); border-color: var(--point); outline: none; }
.lead-form input.is-error { border-color: #E23C3C; background: #FFF5F5; }
.lead-form__agree { display: inline-flex; align-items: center; gap: .45em; font-size: var(--fs-16); color: var(--ink); cursor: pointer; user-select: none; line-height: 1.2; }
.lead-form__agree input { position: absolute; opacity: 0; width: 0; height: 0; }
.lead-form__agree i { width: 1.15em; height: 1.15em; flex: none; border-radius: 4px; border: 1.5px solid #C4CAD0; background: var(--white); display: inline-flex; align-items: center; justify-content: center; transition: .15s; }
.lead-form__agree input:checked + i { background: var(--point-deep); border-color: var(--point-deep); }
.lead-form__agree i svg { width: .7em; height: .7em; color: var(--white); opacity: 0; }
.lead-form__agree input:checked + i svg { opacity: 1; }
.lead-form__agree u { text-decoration: underline; text-underline-offset: 2px; cursor: pointer; white-space: nowrap; }
.lead-form__submit {
  align-self: stretch; min-width: clamp(92px, 8.5vw, 140px); border-radius: var(--radius-s);
  background: var(--point-deep); color: var(--white); font-size: var(--fs-24); font-weight: 700; line-height: 1.25;
  padding: .6em .5em; transition: background .18s;
}
.lead-form__submit:hover { background: var(--point-dark); }
.lead-form__submit[disabled] { opacity: .6; cursor: default; }

/* 모바일 하단 바 */
.mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 111; display: none; background: var(--white); border-top: 1px solid var(--line-soft); box-shadow: 0 -4px 20px rgba(18,18,18,.08); }
.mobilebar__inner { display: grid; grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1fr); gap: 7px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
.mobilebar__call { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--point); color: var(--white); }
.mobilebar__call svg { width: 22px; height: 22px; }
.mobilebar__btn { border-radius: 12px; background: var(--bg-soft); color: var(--ink); font-size: 15px; font-weight: 600; padding: 13px 4px; transition: background .18s, color .18s; }
.mobilebar__btn.is-active { background: var(--point-deep); color: var(--white); }

@media (max-width: 1023px) {
  .mobilebar { display: block; }
  .formbar { border-radius: 18px 18px 0 0; padding-bottom: 62px; }
  .formbar__inner { grid-template-columns: 1fr; padding: 16px var(--gutter) 10px; }
  .formbar__divider { display: none; }
  .formbar .lead-form { display: none; }
  .formbar .lead-form.is-shown { display: block; }
  .formbar__close { display: inline-flex; }
  /* 폼이 열리면 헤더(120)까지 덮도록 폼·하단바를 딤 위로 올린다 */
  body.form-open .formbar__scrim { opacity: 1; visibility: visible; }
  body.form-open .formbar { z-index: 140; }
  body.form-open .mobilebar { z-index: 141; }
  .lead-form__head b { font-size: 17px; }
  .lead-form__head span { font-size: 12px; }
  .lead-form input[type="text"], .lead-form input[type="tel"] { font-size: 16px; padding: 12px 12px; }
  .lead-form--modal .lead-field input[type="text"],
  .lead-form--modal .lead-field input[type="tel"] { font-size: 16px; padding: 14px 14px 14px 46px; }
  .lead-form__pair:last-child { grid-template-columns: 1fr; gap: 10px; }
  .lead-form__agree { font-size: 13px; }
  .lead-form__submit { font-size: 16px; min-width: 88px; }
}
@media (max-width: 359px) {
  .lead-form__submit { min-width: 76px; font-size: 15px; }
  .mobilebar__btn { font-size: 13px; }
  .mobilebar__inner { grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr); }
}

/* ==========================================================================
   TOP 버튼
   ========================================================================== */
.quick { position: fixed; right: clamp(10px, 1.2vw, 22px); bottom: calc(88px + var(--formbar-h)); z-index: 105; display: grid; gap: 8px; }
.quick a {
  width: clamp(42px, 3.2vw, 52px); height: clamp(42px, 3.2vw, 52px); border-radius: 50%; background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow-s);
  display: flex; align-items: center; justify-content: center; color: var(--ink-sub);
  transition: border-color .18s, color .18s, transform .18s;
}
.quick a svg { width: 42%; height: 42%; color: var(--point-deep); }
.quick a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.quick a:hover { border-color: var(--point); color: var(--point-deep); transform: translateY(-2px); }
.quick .top { opacity: 0; visibility: hidden; }
.quick .top.is-on { opacity: 1; visibility: visible; }
/* 본문 위로 겹치지 않도록 : 컨테이너 바깥 여백이 확보될 때만 노출 */
@media (max-width: 1720px) { .quick a:not(.top) { display: none; } }
@media (max-width: 1023px) { .quick { bottom: 80px; } }

/* ==========================================================================
   모달
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
.modal__dim { position: absolute; inset: 0; background: rgba(18,18,18,.6); }
.modal__panel {
  position: relative; z-index: 1; width: min(92vw, 900px); max-height: 84dvh; margin: 8dvh auto 0;
  background: var(--white); border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column;
}
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(16px, 2vw, 30px); border-bottom: 1px solid var(--line-soft); }
.modal__head h2 { font-size: clamp(15px, 1.2vw, 20px); font-weight: 700; }
.modal__close { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-sub); }
.modal__close:hover { background: var(--bg-soft); }
.modal__body { padding: clamp(16px, 2vw, 30px); overflow-y: auto; font-size: clamp(13px, 1vw, 15px); line-height: 1.75; color: var(--ink-sub); }
.modal__body h3 { font-size: 1.05em; font-weight: 700; color: var(--ink); margin: 1.4em 0 .5em; }
.modal__body h3:first-child { margin-top: 0; }
.modal__body li { position: relative; }
.modal__body li + li { margin-top: .25em; }
.modal__body img { display: block; margin: 0 auto; }

/* ==========================================================================
   서브 페이지
   ========================================================================== */
.page-head { padding: clamp(26px, 3.4vw, 64px) 0 clamp(16px, 2vw, 34px); }
.page-head h1 { font-size: var(--fs-48); font-weight: 700; }
.page-head p { margin-top: clamp(10px, 1vw, 20px); font-size: var(--fs-32); font-weight: 500; color: var(--ink-sub); line-height: 1.6; }

.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; }
.about-hero > picture { display: block; width: clamp(120px, 14vw, 230px); }
.about-hero img { display: block; width: 100%; height: auto; }
.about-box { background: #EAF6F8; border-radius: var(--radius-l); padding: clamp(18px, 2.4vw, 46px); }
.about-box p { font-size: var(--fs-20); font-weight: 400; color: var(--ink); line-height: 1.75; }
.about-box p + p { margin-top: .5em; }
.about-box h2 { display: flex; align-items: center; gap: .4em; font-size: var(--fs-24); font-weight: 700; color: var(--ink); margin: clamp(16px, 2vw, 32px) 0 .5em; }
.about-box h2::before { content: ''; width: 3px; height: 1em; background: var(--point); border-radius: 2px; }
.about-box ul { display: grid; gap: .3em; margin-left: 4px; }
.about-box li { position: relative; padding-left: 14px; font-size: var(--fs-20); color: var(--ink); }
.about-box li::before { content: ''; position: absolute; left: 3px; top: .72em; width: 3px; height: 3px; border-radius: 50%; background: var(--ink-mute); }
.about-box .outro { margin-top: clamp(16px, 2vw, 32px); }
@media (max-width: 767px) {
  .about-hero { grid-template-columns: 1fr; gap: 6px; }
  /* 모바일에서도 자동차는 오른쪽 모서리에 붙인다 (PPT 시안) */
  .about-hero > picture { width: 150px; justify-self: end; }
}

/* --- 대출계산기 (PPT 24p) --- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 46px); align-items: start; }
@media (max-width: 899px) { .calc { grid-template-columns: 1fr; } }
.calc__card { border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(16px, 2vw, 36px); }
.calc__field { display: grid; grid-template-columns: clamp(86px, 8.5vw, 130px) minmax(0, 1fr) auto; align-items: center; background: var(--bg-soft); border-radius: var(--radius-s); overflow: hidden; }
.calc__field + .calc__field { margin-top: 8px; }
.calc__field.is-active { outline: 2px solid var(--point-deep); }
.calc__field > label { background: var(--point-deep); color: var(--white); font-size: var(--fs-20); font-weight: 700; text-align: center; padding: .7em .3em; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.calc__field input { border: 0; background: transparent; text-align: right; padding: .7em .5em; font-size: var(--fs-24); font-weight: 700; width: 100%; }
.calc__field input:focus { outline: none; }
.calc__field span { font-size: var(--fs-16); color: var(--ink-sub); padding-right: .9em; }
.calc__label { font-size: var(--fs-20); font-weight: 700; color: var(--point-deep); margin: clamp(14px, 1.6vw, 26px) 0 .5em; }
.calc__types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--bg-soft); border-radius: var(--radius-s); padding: 4px; }
.calc__types label { text-align: center; font-size: var(--fs-16); font-weight: 500; color: var(--ink-sub); padding: .7em .2em; border-radius: 8px; cursor: pointer; transition: .18s; }
.calc__types input { position: absolute; opacity: 0; }
.calc__types input:checked + label { background: var(--white); color: var(--point-deep); font-weight: 700; box-shadow: var(--shadow-s); }
.calc__actions { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 8px; margin-top: clamp(14px, 1.6vw, 26px); }
.calc__actions button { border-radius: var(--radius-s); padding: .7em; font-size: var(--fs-24); font-weight: 700; }
.calc__reset { background: #8A9099; color: var(--white); }
.calc__reset:hover { background: #757B84; }
.calc__submit { background: var(--point); color: var(--white); }
.calc__submit:hover { background: var(--point-deep); }
.calc__result h2 { font-size: var(--fs-24); font-weight: 700; color: var(--ink); margin-bottom: .6em; }
.calc__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: .42em 0; }
.calc__row dt { font-size: var(--fs-20); font-weight: 500; color: var(--ink-sub); }
.calc__row dd { margin: 0; font-size: var(--fs-28); font-weight: 700; color: var(--ink); }
.calc__row dd small { font-size: .6em; color: var(--ink-mute); font-weight: 400; margin-left: .3em; }
.calc__row--hl dd { color: var(--point); }
.calc__row--total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: .7em; }
.calc__row--total dd { font-size: var(--fs-32); }
.calc__warn { display: flex; align-items: center; justify-content: center; gap: .4em; background: var(--bg-soft); border-radius: var(--radius-s); padding: .8em; margin-top: clamp(12px, 1.4vw, 22px); font-size: var(--fs-14); color: var(--ink-sub); text-align: center; }
.calc__warn svg { width: 1em; height: 1em; flex: none; }
.calc__table-wrap { margin-top: clamp(18px, 2.4vw, 40px); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.calc__table { width: 100%; border-collapse: collapse; font-size: var(--fs-14); min-width: 620px; }
.calc__table th, .calc__table td { border-bottom: 1px solid var(--line-soft); padding: .7em .5em; text-align: right; white-space: nowrap; }
.calc__table th { background: var(--bg-soft); color: var(--ink-sub); font-weight: 600; text-align: center; }
.calc__table td:first-child, .calc__table th:first-child { text-align: center; }

/* ---------- 토스트 ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--formbar-h)); transform: translate(-50%, 20px);
  z-index: 300; max-width: min(92vw, 460px); background: #232830; color: var(--white);
  border-radius: 12px; padding: 14px 20px; font-size: 15px; line-height: 1.5; text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.28); opacity: 0; visibility: hidden; transition: .3s;
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast--ok { background: #0C7A7A; }
.toast--warn { background: #B4541E; }
.toast--err { background: #A32B2B; }
@media (max-width: 1023px) { .toast { bottom: 86px; } }


/* ==========================================================================
   PC 우측 상담 버튼 + 상담신청 팝업
   ========================================================================== */
.side-cta { display: none; }

@media (min-width: 1024px) {
  /* PC : 하단 고정 폼(스크롤 시 노출) + 우측 버튼 + 팝업을 함께 쓴다 */
  /* 하단바가 열리면 바 위쪽 남은 화면의 세로 중앙으로 올라가 맨 위로 버튼과 겹치지 않게 한다 */
  .side-cta {
    display: grid; gap: 8px; position: fixed; z-index: 106;
    right: clamp(10px, 1.2vw, 22px); top: calc((100vh - var(--formbar-h)) / 2); transform: translateY(-60%);
    transition: top .35s cubic-bezier(.22,.61,.36,1);
  }
  .side-cta__btn {
    display: grid; justify-items: center; gap: 6px;
    width: clamp(78px, 6vw, 96px); padding: 14px 6px;
    border-radius: 16px; background: var(--white); border: 1px solid var(--line);
    box-shadow: var(--shadow-s); color: var(--ink);
    font-size: clamp(12px, 1vw, 14px); font-weight: 700; line-height: 1.3; text-align: center;
    transition: transform .18s, box-shadow .18s, background .18s, color .18s;
  }
  .side-cta__btn svg { width: 22px; height: 22px; color: var(--point-deep); }
  .side-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(18,18,18,.12); }
  .side-cta__btn--consult { background: var(--point-deep); border-color: var(--point-deep); color: var(--white); }
  .side-cta__btn--consult svg { color: var(--white); }
  .side-cta__btn--consult:hover { background: var(--point-dark); }
}
/* 세로가 짧은 PC 화면 : 퀵 버튼을 하단바에 조금 더 붙여 우측 버튼과의 간격을 확보 */
@media (min-width: 1024px) and (max-height: 700px) {
  .quick { bottom: calc(20px + var(--formbar-h)); }
}

/* ---------- 팝업 ---------- */
/* 화면 세로 중앙 정렬 (PC·모바일 공통) */
.lead-modal.is-open { display: grid; place-items: center; padding: clamp(12px, 2vh, 28px) 12px; }
.lead-modal__panel {
  width: min(94vw, 620px); max-height: calc(100dvh - clamp(24px, 4vh, 56px));
  margin: 0; overflow-y: auto; overscroll-behavior: contain;
}
.lead-modal__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(18px, 2.4vw, 30px) 0; }
.lead-modal__logo { height: 30px; width: auto; max-width: none; }

.lead-modal__head { display: grid; grid-template-columns: minmax(0, 1fr) 34%; align-items: center; gap: 12px; padding: 8px clamp(18px, 2.4vw, 30px) 4px; }
.lead-modal__copy h2 { font-size: clamp(19px, 2vw, 27px); font-weight: 400; color: var(--ink); line-height: 1.35; }
.lead-modal__copy h2 b { font-weight: 700; color: var(--point-deep); }
.lead-modal__copy p { margin-top: .55em; font-size: clamp(12px, 1.05vw, 15px); color: var(--ink-sub); }
.lead-modal__art { display: block; justify-self: end; }
.lead-modal__art img { display: block; width: 100%; height: auto; max-height: 130px; object-fit: contain; object-position: bottom right; }

.lead-modal__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 10px; border-top: 1px solid var(--line-soft); }
.lead-tab {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto;
  align-items: center; gap: 2px 8px; padding: 13px clamp(10px, 1.4vw, 18px); text-align: left;
  background: var(--bg-soft); color: var(--ink-sub); border-bottom: 1px solid var(--line-soft);
  transition: background .18s, color .18s;
}
.lead-tab svg { grid-row: 1 / 3; width: 22px; height: 22px; color: currentColor; }
.lead-tab b { font-size: clamp(13px, 1.15vw, 16px); font-weight: 700; }
.lead-tab span { font-size: clamp(10px, .88vw, 12px); font-weight: 400; opacity: .85; }
.lead-tab.is-on { background: var(--point-deep); color: var(--white); border-bottom-color: var(--point-deep); }
.lead-tab:not(.is-on):hover { background: #EDF1F4; color: var(--ink); }

.lead-modal__body { padding: clamp(16px, 2vw, 24px) clamp(18px, 2.4vw, 30px) clamp(18px, 2.4vw, 28px); }
.lead-form--modal { display: none; }
.lead-form--modal.is-shown { display: grid; gap: 10px; }

.lead-field { position: relative; display: flex; align-items: center; }
.lead-field svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--ink-mute); pointer-events: none; }
.lead-form--modal .lead-field input[type="text"],
.lead-form--modal .lead-field input[type="tel"] {
  width: 100%; padding: 15px 16px 15px 46px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid transparent;
  font-size: clamp(13px, 1.1vw, 15px); color: var(--ink); line-height: 1.4;
}
.lead-field input::placeholder { color: var(--ink-mute); }
.lead-field input:focus { outline: none; border-color: var(--point); background: var(--white); }
.lead-field input.is-error { border-color: #E4573D; background: #FFF6F4; }

.lead-modal__agree { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.lead-modal__agree .lead-form__agree { font-size: clamp(12px, 1vw, 14px); }
.lead-modal__more { font-size: clamp(11px, .95vw, 13px); color: var(--ink-sub); text-decoration: underline; text-underline-offset: 3px; }
.lead-modal__more:hover { color: var(--point-deep); }

.lead-modal__submit {
  margin-top: 6px; padding: 16px 20px; border-radius: 12px;
  background: var(--point-deep); color: var(--white);
  font-size: clamp(15px, 1.3vw, 18px); font-weight: 700; transition: background .18s;
}
.lead-modal__submit:hover { background: var(--point-dark); }
.lead-modal__submit:disabled { opacity: .6; cursor: default; }
.lead-modal__note { margin-top: 10px; text-align: center; font-size: clamp(11px, .95vw, 13px); color: var(--ink-mute); }

@media (max-width: 519px) {
  .lead-modal__head { grid-template-columns: minmax(0, 1fr) 30%; }
  .lead-modal__art img { max-height: 96px; }
  .lead-tab { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 3px; padding: 11px 8px; }
  .lead-tab svg { grid-row: auto; }
  .lead-tab span { display: none; }
}
