@font-face {
  font-family: "YeogiOttaeJalnanGothic";
  src: url("../../fonts/jalnan/JalnanGothic.woff")
    format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
:root {
  --navy: #081741;
  --blue: #0078ff;
  --muted: #657189;
  --line: #e4eaf4;
  --font-title: "Jalnan Gothic", "YeogiOttaeJalnanGothic", sans-serif;
  --font-sub: "Paperlogy", "Pretendard Variable", Pretendard, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--navy);
  font-family:
    "Pretendard Variable",
    Pretendard,
    -apple-system,
    "Noto Sans KR",
    Arial,
    sans-serif;
  background: #fff;
}
/* 헤더/히어로: 로고·전화·타이틀(잘난고딕 이탤릭)·서브(Paperlogy) */
.brand img {
  display: block;
  height: 56px;
  width: auto;
}
.phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.phone svg {
  flex: none;
}
.hero .eyebrow,
.hero .desc {
  font-family: var(--font-sub);
  color: #081741;
}
.hero .eyebrow {
  font-weight: 500;
}
.hero .eyebrow b {
  font-weight: 700;
}
.hero .desc {
  font-weight: 400;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
.wrap {
  width: min(1280px, calc(100% - 64px));
  margin: auto;
}
.header {
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
}
.brand {
  font-size: 21px;
  line-height: 0.9;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-symbol {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 3px solid;
  border-radius: 50%;
  font-size: 32px;
}

.phone {
  padding: 13px 22px;
  background: white;
  border-radius: 30px;
  font-weight: 700;
}
.hero {
  height: 930px;
  position: relative;
  overflow: hidden;
}
.hero-background {
  position: absolute;
  inset: 0;
  background: url("img/hero-bg.webp") center/cover no-repeat;
}
.hero-background:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.38),
    transparent 72%
  );
}
.hero-content {
  height: 100%;
  position: relative;
}
.hero-copy {
  position: absolute;
  top: 185px;
  left: 25px;
  z-index: 2;
}
.eyebrow {
  font-size: 24px;
  margin-left: 10px;
  font-weight: 600;
}
.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(46px, 5.2vw, 80px);
  font-weight: 400;
  font-style: italic;
  color: #081741;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 20px 0 34px;
}
.hero h1 em {
  color: #0078ff;
  font-style: italic;
  position: relative;
  display: inline-block;
}
.hero h1 em:after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -4%;
  bottom: -0.12em;
  width: 96%;
  aspect-ratio: 541/39;
  background: url("img/hero-line.svg") left center/100% 100% no-repeat;
}
.desc {
  font-size: 19px;
  line-height: 1.55;
}
.hero-cars {
  position: absolute;
  right: -30%;
  bottom: 20px;
  width: 120%;
  z-index: 1;
  transform-origin: 60% 100%;
  will-change: transform, filter;
  filter: drop-shadow(0 15px 13px rgba(0, 0, 0, 0.18));
  /* 9초 루프: 오른쪽 밖에서 달려와 → 브레이크(밀림·출렁) → 정차 대기 → 왼쪽으로 출발해 빠져나감 */
  animation: carLoop 9s 0.25s infinite both;
}
@keyframes carLoop {
  0% {
    opacity: 0;
    transform: translateX(65vw) skewX(-6deg);
    filter: blur(6px) drop-shadow(0 15px 13px rgba(0, 0, 0, 0));
    animation-timing-function: cubic-bezier(0.22, 0.9, 0.3, 1);
  }
  3% {
    opacity: 1;
  }
  14% {
    transform: translateX(-1.6%) skewX(1.5deg);
    filter: blur(0) drop-shadow(0 15px 13px rgba(0, 0, 0, 0.18));
    animation-timing-function: ease-in-out;
  }
  18% {
    transform: translateX(0.4%) rotate(0.35deg);
  }
  21% {
    transform: translateX(0) rotate(-0.12deg);
  }
  24%,
  72% {
    opacity: 1;
    transform: none;
    filter: blur(0) drop-shadow(0 15px 13px rgba(0, 0, 0, 0.18));
    animation-timing-function: ease-in-out;
  }
  /* 출발 직전 뒤로 살짝 눌림 */
  76% {
    transform: translateX(1%) rotate(-0.3deg);
    animation-timing-function: cubic-bezier(0.6, 0, 0.9, 0.5);
  }
  90%,
  100% {
    opacity: 0;
    transform: translateX(-90vw) skewX(6deg);
    filter: blur(6px) drop-shadow(0 15px 13px rgba(0, 0, 0, 0));
  }
}
/* 차량 진입 시 지나가는 속도선 */
.hero-speed {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: 75%;
  height: 46%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-speed i {
  position: absolute;
  right: 0;
  height: 3px;
  width: 38%;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.95)
  );
  opacity: 0;
  /* 차량 루프(9초)와 같은 주기로, 진입 구간에만 지나감 */
  animation: speedLine 9s linear infinite both;
}
.hero-speed i:nth-child(1) {
  top: 18%;
  animation-delay: 0.3s;
}
.hero-speed i:nth-child(2) {
  top: 38%;
  width: 52%;
  animation-delay: 0.38s;
}
.hero-speed i:nth-child(3) {
  top: 55%;
  width: 30%;
  animation-delay: 0.46s;
}
.hero-speed i:nth-child(4) {
  top: 72%;
  width: 45%;
  animation-delay: 0.34s;
}
.hero-speed i:nth-child(5) {
  top: 88%;
  width: 26%;
  animation-delay: 0.52s;
}
@keyframes speedLine {
  0% {
    opacity: 0;
    transform: translateX(40%);
    animation-timing-function: cubic-bezier(0.3, 0.6, 0.4, 1);
  }
  3% {
    opacity: 0.9;
  }
  11%,
  100% {
    opacity: 0;
    transform: translateX(-180%);
  }
}
.estimate {
  position: relative;
  z-index: 5;
  margin-top: -65px;
  display: flex;
  background: #f8fafe;
  border: 2px solid white;
  border-radius: 15px;
  box-shadow: 0 10px 28px rgba(0, 75, 160, 0.14);
  min-height: 155px;
  overflow: hidden;
}
.estimate-title {
  width: 29%;
  padding: 28px 45px;
  color: white;
  background: linear-gradient(135deg, #2ca3ff, #0054e6);
}
.estimate-title h2 {
  font-family: var(--font-sub);
  font-style: italic;
  font-weight: 800;
  font-size: 29px;
  margin: 0 0 8px;
}
.estimate-title p {
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
}
.quote-form {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px 16px;
  align-items: end;
  padding: 22px 24px;
}
.quote-form > label:not(.consent) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}
.quote-form input:not([type="checkbox"]) {
  height: 51px;
  border: 1px solid #dce4f0;
  border-radius: 9px;
  padding: 0 14px;
  width: 100%;
  outline-color: var(--blue);
}
.quote-form button,
.closing a {
  background: linear-gradient(#2da0ff, #0055f2);
  border: 0;
  color: #fff;
  font-weight: 800;
  padding: 17px 20px;
  border-radius: 9px;
  white-space: nowrap;
}
.consent {
  grid-column: 1/3;
  font-size: 12px;
  color: #68738b;
  display: flex;
  align-items: center;
  gap: 5px;
}
.form-status {
  grid-column: 3;
  font-size: 12px;
  margin: 0;
}
/* ===== Below hero (Figma 1:28 기준) ===== */
.sec-head {
  text-align: center;
  margin-bottom: 48px;
}
.sec-kicker {
  font-size: 38px;
  font-weight: 800;
  color: #222;
  margin: 0 0 4px;
  letter-spacing: -0.03em;
}
.sec-title {
  font-family: var(--font-sub);
  font-size: 50px;
  font-weight: 900;
  color: var(--blue);
  margin: 0;
  line-height: 1.2;
}
.sec-desc {
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: #555;
}
.slider-wrap {
  position: relative;
}
.slider {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 4px 2px 12px;
  /* 터치 스와이프 보장 */
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.slider::-webkit-scrollbar {
  display: none;
}
.slider img {
  -webkit-user-drag: none;
  user-select: none;
}
/* 마우스로 끄는 중: 스냅·부드러운 스크롤 해제 */
.slider.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.slider.dragging * {
  pointer-events: none;
}
.slide-btn {
  position: absolute;
  z-index: 3;
  top: var(--btn-top, 96px);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
  transition:
    transform 0.2s,
    background 0.2s,
    opacity 0.2s;
}
.slide-btn:before {
  content: "";
  width: 9px;
  height: 9px;
  border: solid #333;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
  margin-left: -3px;
}
.slide-btn.prev {
  left: 12px;
}
.slide-btn.prev:before {
  transform: rotate(-135deg);
  margin: 0 -3px 0 0;
}
.slide-btn.next {
  right: 12px;
}
.slide-btn:hover {
  transform: scale(1.08);
  background: #fff;
}
.missing {
  color: #8192a8;
  font-size: 13px;
}

/* 차량 슬라이더 */

.reviews,
.process {
  background: #fff;
}
.cars {
  padding: 60px 0 30px;
}
.cars-panel {
}
.cars .slider-wrap {
  --btn-top: 62px;
}
.car-card {
  flex: 0 0 calc((100% - 66px) / 4);
  min-width: 0;
  scroll-snap-align: start;
  border: 1px solid #e8ecf2;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(9, 38, 83, 0.1);
}
.car-photo {
  position: relative;
  aspect-ratio: 308/180;
  background: #e7edf5;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.car-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.car-card:hover .car-photo img,
.review-card:hover .car-photo img {
  transform: scale(1.05);
}
.year {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 5px;
}
.car-info {
  padding: 18px 18px 14px;
  flex: 1;
}
.car-info h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 14px;
  color: #111;
  letter-spacing: -0.02em;
}
.car-info dl {
  margin: 0;
  display: grid;
  gap: 7px;
}
.car-info dl div {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  color: #777;
  line-height: 1.5;
  margin: 3px 0;
}
.car-info dd {
  margin: 0;
  color: #555;
}
.car-info .export,
.car-info .export dd {
  color: var(--blue);
  font-weight: 800;
}
.car-up {
  margin: 0;
  background: var(--blue);
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: 22px;
  padding: 14px 8px;
  animation: upBlink 1.2s ease-in-out infinite;
}
/* "평균 OO만원 UP ↑" 깜빡임 */
@keyframes upBlink {
  0%,
  100% {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  }
  50% {
    color: rgba(255, 255, 255, 0.15);
    text-shadow: none;
  }
}

/* 중고차 수출이란 */
.about {
  background: #fff;
  padding: 30px 0 120px;
  margin-top: 10vh;
}
.about > .wrap {
  background: #fff;
  /* border-radius: 20px;
  padding: 110px 100px 100px; */
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}
.feature {
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 12px;
  padding: 38px 30px 34px;
  text-align: center;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    opacity 0.75s;
}
.feature:hover {
  box-shadow: 0 12px 26px rgba(9, 38, 83, 0.08);
}
.feature img {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto 22px;
}
.feature h3 {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #111;
  letter-spacing: -0.03em;
  word-break: keep-all;
}
.feature p {
  font-size: 14px;
  line-height: 1.65;
  color: #666;
  margin: 0;
  word-break: keep-all;
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #e8ecf2;
  border-radius: 12px;
  overflow: hidden;
}
.compare > div {
  padding: 70px 50px 60px;
  text-align: center;
}
.compare-kicker {
  font-size: 15px;
  color: #444;
  margin: 0 0 14px;
}
.compare h3 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 18px;
  letter-spacing: -0.04em;
  color: #333;
}
.compare-sub {
  font-size: 16px;
  color: #444;
  margin: 0;
  line-height: 1.6;
  word-break: keep-all;
}
.compare-promo {
  background: #0083ff;
  position: relative;
  overflow: hidden;
  padding-bottom: 270px !important; /* 차량 주행 영역 */
}
.compare-promo .compare-kicker,
.compare-promo h3,
.compare-promo .compare-sub {
  color: #fff;
}
.compare-promo .compare-sub {
  max-width: 520px;
  margin: 0 auto;
}
.promo-car {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0px;
  margin: 0 auto;
  width: min(600px, 90%);
}
/* 정면 차량: 멀리서 다가와 정차(브레이크 출렁) → 대기 → 앞으로 지나감 (8초 루프) */
.compare-promo > :not(.promo-car) {
  position: relative;
  z-index: 1; /* 차량이 커지며 지나갈 때 문구 뒤로 */
}
.compare:not(.visible) .promo-car {
  opacity: 0;
}
.compare.visible .promo-car {
  transform-origin: 50% 100%;
  animation: promoDrive 8s infinite;
}
@keyframes promoDrive {
  0% {
    transform: translateY(-70px) scale(0.4);
    opacity: 0;
    filter: blur(3px);
    animation-timing-function: cubic-bezier(0.25, 0.8, 0.3, 1);
  }
  6% {
    opacity: 1;
  }
  22% {
    transform: translateY(4px) scale(1.02);
    filter: blur(0);
    animation-timing-function: ease-in-out;
  }
  27% {
    transform: translateY(-3px) scale(1);
  }
  32%,
  70% {
    transform: none;
    opacity: 1;
    filter: blur(0);
    animation-timing-function: cubic-bezier(0.55, 0, 0.9, 0.4);
  }
  88%,
  100% {
    transform: translateY(70px) scale(1.7);
    opacity: 0;
    filter: blur(4px);
  }
}
/* ---- 시세 비교 차트 카드 ---- */
.chart-card {
  --pill: 46px; /* 막대 위 말풍선 영역 */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --bar: 72px;
  --cols: 1fr 0.8fr 1.3fr;
  margin: 36px auto 0;
  max-width: 440px;
  /* background: linear-gradient(180deg, #f7fbff, #fff);
  border: 1px solid #e3eefb;
  border-radius: 18px;
  padding: 20px 26px 22px;
  box-shadow: 0 10px 30px rgba(0, 98, 255, 0.07); */
}
.chart-legend {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  font-size: 12px;
  color: #7a8599;
  margin-bottom: 6px;
}
.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chart-legend span:before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.lg-domestic:before {
  background: #cfe4ff;
}
.lg-export:before {
  background: #0083ff;
}
.chart-plot {
  position: relative;
  height: 250px;
  display: grid;
  grid-template-columns: var(--cols);
  align-items: end;
  border-bottom: 2px solid #dfe7f2;
}
/* 가로 가이드선 */
.chart-grid {
  position: absolute;
  inset: var(--pill) 0 0;
  /* background: repeating-linear-gradient(
    to top,
    transparent 0 calc(25% - 1px),
    #edf2f8 calc(25% - 1px) 25%
  ); */
  pointer-events: none;
}
/* 국내 매입가 수준 점선 */
.chart-level {
  position: absolute;
  left: 16%;
  right: 8%;
  bottom: calc((100% - var(--pill)) * var(--r));
  border-top: 1.5px dashed #9fb4cf;
}
.chart-col {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  z-index: 1;
}
.chart-col.domestic {
  grid-column: 1;
}
.chart-col.export {
  grid-column: 3;
  width: var(--bar);
  justify-self: start;
}
.chart-bar {
  display: block;
  width: var(--bar);
  border-radius: 12px 12px 0 0;
}
.domestic .chart-bar {
  background: linear-gradient(180deg, #dcebff, #c3dcfb);
}
.export .chart-bar {
  background: linear-gradient(180deg, #3aa2ff, #0062f5);
  box-shadow: 0 10px 24px rgba(0, 110, 255, 0.35);
}
.domestic .chart-bar {
  --full: calc((100% - var(--pill)) * var(--r));
  height: var(--full);
}
.export .chart-bar {
  --full: calc(100% - var(--pill));
  height: var(--full);
}
/* 막대 위 가격 말풍선 */
.chart-pill {
  position: relative;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d6e3f3;
  color: #44516a;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.chart-pill:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: inherit;
  border: inherit;
  border-width: 0 1px 1px 0;
  transform: translateX(-50%) rotate(45deg);
}
.chart-pill.strong {
  background: #0078ff;
  border-color: #0078ff;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
/* 차이(+200만원) 브래킷 */
.chart-gap {
  position: absolute;
  left: calc(100% + 6px);
  bottom: calc((100% - var(--pill)) * var(--r));
  height: calc((100% - var(--pill)) * (1 - var(--r)));
  width: 10px;
  border: 2px solid #ff4d6d;
  border-left: 0;
  border-radius: 0 4px 4px 0;
  transform-origin: bottom;
}
.chart-gap b {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: #ff4d6d;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 77, 109, 0.35);
}
.compare.visible .chart-gap b {
  animation: gapPulse 1.6s ease-in-out infinite;
}
@keyframes gapPulse {
  50% {
    scale: 1.1;
  }
}
/* 국내 → 수출 상승 곡선 화살표 */
.chart-curve {
  grid-column: 2;
  align-self: center;
  width: 100%;
  aspect-ratio: 100/60;
  overflow: visible;
  fill: none;
  stroke: #0078ff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 30px;
}
.curve-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* ---- 차트 루프 (8초 주기): 막대 성장 → 곡선 → 말풍선 → +200만원 → 유지 → 리셋 ---- */
.compare:not(.visible) .chart-bar {
  height: 0;
}
.compare:not(.visible)
  :is(.chart-pill, .chart-level, .chart-gap, .curve-head) {
  opacity: 0;
}
.compare:not(.visible) .curve-line {
  stroke-dashoffset: 1;
}
.compare.visible .domestic .chart-bar {
  animation: barGrow 8s var(--ease) infinite;
}
.compare.visible .export .chart-bar {
  animation: barGrow2 8s var(--ease) infinite;
}
.compare.visible .curve-line {
  animation: curveDraw 8s ease-out infinite;
}
.compare.visible .curve-head {
  animation: fadeAt28 8s infinite;
}
.compare.visible .chart-pill {
  animation: pillIn 8s infinite;
}
.compare.visible .chart-pill.strong {
  animation-name: pillIn2;
}
.compare.visible .chart-level {
  animation: fadeAt24 8s infinite;
}
.compare.visible .chart-gap {
  animation: gapOpen 8s var(--ease) infinite;
}
@keyframes barGrow {
  0% {
    height: 0;
  }
  14%,
  88% {
    height: var(--full);
  }
  96%,
  100% {
    height: 0;
  }
}
@keyframes barGrow2 {
  0%,
  4% {
    height: 0;
  }
  20%,
  88% {
    height: var(--full);
  }
  96%,
  100% {
    height: 0;
  }
}
@keyframes curveDraw {
  0%,
  14% {
    stroke-dashoffset: 1;
  }
  26%,
  88% {
    stroke-dashoffset: 0;
  }
  93%,
  100% {
    stroke-dashoffset: 1;
  }
}
@keyframes fadeAt28 {
  0%,
  25% {
    opacity: 0;
  }
  28%,
  88% {
    opacity: 1;
  }
  92%,
  100% {
    opacity: 0;
  }
}
@keyframes fadeAt24 {
  0%,
  18% {
    opacity: 0;
  }
  24%,
  88% {
    opacity: 1;
  }
  92%,
  100% {
    opacity: 0;
  }
}
@keyframes pillIn {
  0%,
  14% {
    opacity: 0;
    transform: translateY(8px);
  }
  20%,
  88% {
    opacity: 1;
    transform: none;
  }
  92%,
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes pillIn2 {
  0%,
  19% {
    opacity: 0;
    transform: translateY(8px);
  }
  25%,
  88% {
    opacity: 1;
    transform: none;
  }
  92%,
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes gapOpen {
  0%,
  26% {
    opacity: 0;
    transform: scaleY(0);
  }
  33%,
  88% {
    opacity: 1;
    transform: none;
  }
  92%,
  100% {
    opacity: 0;
    transform: scaleY(0);
  }
}
.chart-labels {
  display: grid;
  grid-template-columns: var(--cols);
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  text-align: center;
}
.chart-labels span:first-child {
  grid-column: 1;
}
.chart-labels span {
  white-space: nowrap;
}
.chart-labels span.strong {
  grid-column: 3;
  justify-self: start;
  width: var(--bar);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #0078ff;
  font-weight: 800;
}
.chart-labels small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: #8a94a6;
}

/* 후기 */
.reviews {
  padding: 130px 0 70px;
}
.reviews > .wrap,
.process > .wrap {
  /* max-width: 1080px; */
}
.reviews .slider-wrap {
  --btn-top: 102px;
}
.review-card {
  flex: 0 0 calc((100% - 66px) / 4);
  min-width: 0;
  scroll-snap-align: start;
  border: 1px solid #e8ecf2;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(9, 38, 83, 0.1);
}
.review-card .car-photo {
  aspect-ratio: 308/240;
}
.review-body {
  padding: 20px 18px 22px;
}
.review-body h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 12px;
  color: #111;
  letter-spacing: -0.03em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.55em * 3);
}
.review-body p {
  font-size: 15px;
  line-height: 1.65;
  color: #777;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 후기 펼치기: 펼친 카드만 늘어나도록 위쪽 정렬 */
.reviews .slider {
  align-items: flex-start;
}
.review-card.clamped,
.review-card.open {
  cursor: pointer;
}
.review-card.open .review-body p {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  color: #555;
}
.review-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.review-more::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s;
}
.review-more[aria-expanded="true"]::after {
  transform: translateY(1px) rotate(-135deg);
}
.review-more[hidden] {
  display: none;
}
/* 진행 절차 */
.process {
  padding: 70px 0 110px;
}
.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.process .feature {
  padding: 40px 24px 42px;
}
.process .feature img {
  margin-bottom: 18px;
}
.process .feature h3 {
  margin-bottom: 12px;
}
/* 진행 절차 카드: 1→6 단계 순서대로 강조되는 루프 (6초 주기, 카드당 1초) */
.process .feature {
  animation: stepActive 6s ease-in-out infinite;
}
.process .feature img {
  animation: stepIcon 6s ease-out infinite;
}
.process .feature h3 {
  animation: stepTitle 6s ease-in-out infinite;
}
.process .feature:nth-child(1),
.process .feature:nth-child(1) img,
.process .feature:nth-child(1) h3 {
  animation-delay: 0s;
}
.process .feature:nth-child(2),
.process .feature:nth-child(2) img,
.process .feature:nth-child(2) h3 {
  animation-delay: 1s;
}
.process .feature:nth-child(3),
.process .feature:nth-child(3) img,
.process .feature:nth-child(3) h3 {
  animation-delay: 2s;
}
.process .feature:nth-child(4),
.process .feature:nth-child(4) img,
.process .feature:nth-child(4) h3 {
  animation-delay: 3s;
}
.process .feature:nth-child(5),
.process .feature:nth-child(5) img,
.process .feature:nth-child(5) h3 {
  animation-delay: 4s;
}
.process .feature:nth-child(6),
.process .feature:nth-child(6) img,
.process .feature:nth-child(6) h3 {
  animation-delay: 5s;
}
@keyframes stepActive {
  0%,
  20%,
  100% {
    border-color: #e8ecf2;
    background-color: #fff;
    box-shadow: 0 0 0 rgba(0, 120, 255, 0);
  }
  5%,
  15% {
    border-color: #7dbaff;
    background-color: #f5faff;
    box-shadow: 0 14px 30px rgba(0, 120, 255, 0.16);
  }
}
@keyframes stepIcon {
  0%,
  16%,
  100% {
    transform: none;
  }
  4% {
    transform: translateY(-12px) scale(1.06);
  }
  8% {
    transform: translateY(0) scale(1);
  }
  11% {
    transform: translateY(-4px);
  }
}
@keyframes stepTitle {
  0%,
  20%,
  100% {
    color: #111;
  }
  5%,
  15% {
    color: #0078ff;
  }
}

/* 빠른 상담 */
.quick {
  background: #24324a url("img/site/footer_bg.webp") center/cover no-repeat;
  padding: 105px 0;
}
.quick-inner {
  display: flex;
  justify-content: flex-end;
}
.quick-form {
  width: min(670px, 52%);
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 12px 22px;
  color: #fff;
}
.quick-form h2 {
  grid-column: 1/-1;
  font-size: 27px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
.quick-fields {
  display: grid;
  gap: 12px;
}
.quick-fields label {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 16px;
}
.quick-fields input {
  height: 42px;
  border: 0;
  border-radius: 3px;
  padding: 0 12px;
  font-size: 14px;
  width: 100%;
  outline-color: var(--blue);
}
.quick-form button {
  background: #0d1a6e;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  font-size: 16px;
  transition: background 0.2s;
}
.quick-form button:hover {
  background: #1a2b96;
}
.quick-form .consent {
  grid-column: 1/-1;
  color: #fff;
  font-size: 13px;
  margin-top: 6px;
}
.quick-form .consent input {
  accent-color: #f5b800;
}
.quick-form .form-status {
  grid-column: 1/-1;
  color: #fff;
  min-height: 1em;
}

/* 푸터 */
.footer {
  background: #eef4fd;
  padding: 58px 0 50px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 40px;
}
.footer-tel {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: #222;
  margin-bottom: 16px;
}
.footer p {
  font-size: 13px;
  color: #666;
  margin: 6px 0;
}
.footer-copy a {
  color: #444;
}
.to-top {
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--blue);
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #fff;
  transition: background 0.2s;
}
.to-top:before {
  content: "";
  width: 9px;
  height: 9px;
  border: solid var(--blue);
  border-width: 2px 0 0 2px;
  transform: rotate(45deg);
  margin-top: 4px;
}
.to-top:hover {
  background: #e3efff;
}
/* 플로팅 버튼 (문의 / 전화 / 맨 위로) — .to-top과 같은 라운드 사각형 */
.floating {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.floating .to-top,
.float-btn {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(8, 23, 65, 0.14);
}
.float-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1.5px solid var(--blue);
  font-size: 12px;
  font-weight: 700;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
.float-btn svg {
  width: 22px;
  height: 22px;
}
.float-inquiry {
  background: var(--blue);
  color: #fff;
}
.float-inquiry:hover {
  background: #0062d6;
}
.float-call {
  background: #fff;
  color: var(--blue);
}
.float-call:hover {
  background: #e3efff;
}
.float-btn:hover,
.floating .to-top:hover {
  transform: translateY(-2px);
}
/* 맨 위로: 조금 스크롤한 뒤에 나타남 */
.floating .to-top {
  transition:
    background 0.2s,
    transform 0.2s,
    opacity 0.25s,
    visibility 0.25s;
}
.floating .to-top:not(.show) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}
@media (max-width: 600px) {
  .floating {
    right: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
  }
  .floating .to-top,
  .float-btn {
    width: 50px;
    height: 50px;
  }
  .float-btn {
    font-size: 11px;
  }
  .float-btn svg {
    width: 19px;
    height: 19px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.75s,
    transform 0.75s,
    box-shadow 0.25s;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .cars-panel {
    padding: 50px 40px;
  }
  .about > .wrap {
    padding: 80px 40px;
  }
  .car-card,
  .review-card {
    flex-basis: calc((100% - 44px) / 3);
  }
  .compare > div {
    padding: 56px 30px 50px;
  }
}
@media (max-width: 900px) {
  .header nav {
    display: none;
  }
  .hero {
    height: 670px;
  }
  .hero-copy {
    top: 135px;
    left: 0;
  }
  .hero-cars {
    right: -80px;
    bottom: 85px;
    width: 100%;
  }
  .estimate {
    flex-direction: column;
  }
  .estimate-title {
    width: 100%;
  }
  .quote-form {
    grid-template-columns: 1fr 1fr;
  }
  .quote-form button {
    grid-column: 1/3;
  }
  .quote-form .consent {
    grid-column: 1/3;
  }
  .sec-title {
    font-size: 40px;
  }
  .sec-kicker {
    font-size: 22px;
  }
  .car-card,
  .review-card {
    flex-basis: calc((100% - 22px) / 2);
  }
  .compare {
    grid-template-columns: 1fr;
  }
  .feature-grid,
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
  .quick-inner {
    justify-content: center;
  }
  .quick-form {
    width: 100%;
    background: rgba(8, 20, 50, 0.6);
    padding: 28px;
    border-radius: 14px;
  }
}
@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header {
    height: 75px;
  }
  .brand img {
    height: 50px;
  }
  .phone {
    font-size: 15px;
  }
  .hero {
    height: 620px;
  }
  .hero-background {
    background-position: 58% center;
  }
  .hero-background:after {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.38),
      #ffffffab 72%
    );
  }
  .hero-copy {
    top: 118px;
  }
  .eyebrow {
    font-size: 16px;
    margin-left: 5px;
  }
  .hero h1 {
    font-size: 42px;
    margin: 16px 0 24px;
  }
  .desc {
    font-size: 15px;
  }
  .hero-cars {
    width: 250%;
    right: -24%;
    bottom: -40px;
  }
  .estimate {
    margin-top: -100px;
    border-radius: 22px;
  }
  .estimate-title {
    padding: 20px 22px;
    display: none;
  }
  .estimate-title h2 {
    font-size: 24px;
  }
  .quote-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .quote-form button,
  .quote-form .consent,
  .quote-form .form-status {
    grid-column: 1;
  }
  .cars {
    padding: 36px 0 20px;
  }
  .cars-panel {
    width: calc(100% - 30px);
    padding: 30px 0 20px;
  }
  .about {
    padding: 10px 0 70px;
  }
  .about > .wrap {
    padding: 56px 18px;
    border-radius: 16px;
  }
  .sec-head {
    margin-bottom: 30px;
  }
  .sec-title {
    font-size: 37px;
  }
  .sec-kicker {
    font-size: 18px;
  }
  .sec-desc {
    font-size: 14px;
  }
  .sec-desc br {
    display: none;
  }
  .car-card,
  .review-card {
    flex-basis: 60%;
  }
  .slide-btn {
    width: 30px;
    height: 30px;
  }
  .slide-btn.prev {
    left: 4px;
  }
  .slide-btn.next {
    right: 4px;
  }
  .feature-grid,
  .process-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .feature {
    padding: 28px 20px;
  }
  .compare > div {
    padding: 42px 20px 40px;
  }
  .compare h3 {
    font-size: 23px;
  }
  .compare-sub {
    font-size: 14px;
  }
  .compare-promo {
    padding-bottom: 30px !important;
  }
  .promo-car {
    position: relative;
  }
  .chart-card {
    --bar: 52px;
    --cols: 1fr 0.7fr 1fr;
    padding: 16px 14px 18px;
  }
  .chart-plot {
    height: 220px;
  }
  .chart-pill {
    font-size: 12px;
    padding: 4px 8px;
  }
  .chart-pill.strong {
    font-size: 14px;
  }
  /* 좁은 화면: +200만원 배지를 수출 막대 위에 겹쳐 표시 */
  .chart-gap {
    left: 0;
    width: 100%;
    border: 0;
  }
  .chart-gap b {
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    padding: 3px 7px;
  }
  .chart-labels {
    font-size: 13px;
  }
  .reviews {
    padding: 80px 0 70px;
  }
  .process {
    padding: 30px 0 70px;
  }
  .quick {
    padding: 50px 0;
  }
  .quick-form {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .quick-form button {
    height: 52px;
  }
  .quick-fields label {
    grid-template-columns: 48px 1fr;
    font-size: 14px;
  }
  .footer-inner {
    padding: 0;
    gap: 16px;
  }
  .to-top {
    flex: none;
  }
  .process .feature {
    display: grid;
    grid-template-columns: 56px 1fr;
    text-align: left;
    column-gap: 16px;
    padding: 22px 18px;
    align-items: center;
  }
  .process .feature img {
    width: 56px;
    height: 56px;
    margin: 0;
    grid-row: span 2;
  }
  .process .feature h3 {
    margin: 0 0 4px;
  }
  .footer-tel {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .reveal,
  .promo-car {
    opacity: 1;
    transform: none;
  }
  .hero-speed {
    display: none;
  }
}

/* 관리자 > 기본 환경 설정 연동 (푸터 로고·SNS·경고문구 — 값이 있을 때만 표시) */
.footer-logo { display: block; max-height: 40px; width: auto; margin-bottom: 12px; }
.footer-warning { margin-top: 8px; color: #ff6b6b; font-size: .875em; line-height: 1.6; }

/* 푸터 SNS — 원형 아이콘 버튼 (기본: 푸터 톤, hover: 브랜드색) */
.footer-sns { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.footer-sns a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--navy, #081741); border: 1px solid var(--line, #e4eaf4); box-shadow: 0 2px 8px rgba(8,23,65,.06);
  transition: background .2s, color .2s, transform .2s, border-color .2s; }
.footer-sns a svg { width: 18px; height: 18px; }
.footer-sns a:hover, .footer-sns a:focus-visible { background: var(--sns); border-color: var(--sns); color: #fff; transform: translateY(-2px); }
.footer-sns a[data-sns="kakaotalk"]:hover, .footer-sns a[data-sns="kakaotalk"]:focus-visible { color: #3C1E1E; }
.footer-sns a:focus-visible { outline: 3px solid #9cc8ff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .footer-sns a { transition: none; } .footer-sns a:hover { transform: none; } }
