
/* ── Variables ─────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Apple SD Gothic Neo','Noto Sans KR','Pretendard',sans-serif; background: var(--bg); color: var(--fg); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Layout ────────────────────────────────── */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ── Header ───────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
.hdr-inner { display: flex; align-items: center; gap: 16px; padding-top: 13px; padding-bottom: 13px; }
.logo { display: flex; align-items: center; }
.logo img { height: 34px; width: auto; }
.gnb { display: flex; gap: 2px; flex: 1; }
.gnb a { font-size: .84rem; color: var(--fg2); padding: 7px 13px; border-radius: 8px; font-weight: 600; transition: color .2s, background .2s; white-space: nowrap; }
.gnb a:hover { color: var(--ac-d); background: var(--ac-l); }

/* ── Hero ────────────────────────────────── */
.hero {
  position: relative;
  background: var(--dark);
  overflow: visible;
  min-height: 520px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.22) saturate(.5);
}
.hero-inner { position: relative; z-index: 1; padding: 88px 0 40px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700; letter-spacing: .15em;
  color: var(--ac); text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: ''; display: inline-block;
  width: 28px; height: 2px; background: var(--ac); border-radius: 2px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900; color: #fff;
  line-height: 1.12; letter-spacing: -.03em;
  margin-bottom: 22px;
}
.hero-sub { font-size: 1rem; color: rgba(255,255,255,.6); margin-bottom: 36px; line-height: 1.75; }
.hero-btn {
  display: inline-block;
  background: var(--ac); color: var(--ac-ink);
  font-size: .92rem; font-weight: 800;
  padding: 15px 36px; border-radius: 32px;
  letter-spacing: .02em;
  transition: transform .15s, box-shadow .15s;
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px color-mix(in srgb,var(--ac) 45%,transparent); }

/* Spec strip — float out of hero bottom */
.hero-stats-wrap { position: relative; z-index: 2; background: var(--dark); padding-bottom: 0; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  transform: translateY(50%);
  padding: 0 20px;
  max-width: 1160px; margin: 0 auto;
}
.hstat {
  background: #fff; border-radius: var(--radius);
  padding: 22px 16px; text-align: center;
  box-shadow: 0 6px 28px rgba(0,0,0,.10);
  border-top: 3px solid var(--ac);
}
.hstat-n { display: block; font-size: 1.5rem; font-weight: 900; color: var(--fg); line-height: 1; }
.hstat-l { display: block; font-size: .73rem; color: var(--fg3); margin-top: 5px; }

/* ── Section Commons ─────────────────────────── */
.section { padding: 64px 0; }
.section-alt { background: #fff; }
.section-label {
  display: inline-block;
  font-size: .7rem; font-weight: 800; letter-spacing: .13em;
  color: var(--ac-d); background: var(--ac-l);
  padding: 4px 12px; border-radius: 20px;
  margin-bottom: 10px; text-transform: uppercase;
}
.section-title { font-size: 1.42rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -.02em; }
.section-title .ac { color: var(--ac); }
.section-lead { color: var(--fg2); font-size: .93rem; margin-bottom: 36px; }
.section-head { margin-bottom: 36px; }

#cars-wrap { padding-top: 76px; }
#cars { scroll-margin-top: 64px; }

/* ── Car Grid ★사진크기 고정 ─────────────────── */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); gap: 14px; }
.card {
  display: block; background: var(--surface);
  border: 1px solid #ececec; border-radius: 12px;
  overflow: hidden; transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.card-img { width: 100%; height: 170px; object-fit: cover; object-position: center; display: block; }
.card-body { padding: 12px 14px 14px; }
.car-name { font-size: .95rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.car-meta { font-size: .8rem; color: var(--fg2); line-height: 1.6; margin-bottom: 10px; }
.car-meta b { color: var(--fg); }
.price-row, .pay-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .8rem; }
.price-row { margin-bottom: 3px; }
.price-lbl, .pay-lbl { color: var(--fg3); }
.price { font-size: 1.05rem; font-weight: 800; color: var(--ac-d); }
.pay { font-size: .88rem; font-weight: 600; color: var(--fg2); }
.grid-cta {
  margin-top: 24px; border: 2px dashed var(--ac-b); border-radius: var(--radius);
  padding: 18px 24px; text-align: center; color: var(--fg2); font-size: .92rem; background: var(--ac-l);
}
.grid-cta b { color: var(--fg); }
.grid-cta span {
  display: inline-block; background: var(--ac); color: var(--ac-ink);
  font-size: .78rem; font-weight: 800; padding: 3px 12px; border-radius: 20px; margin-left: 6px;
}

/* ── 안내 — 2-col (dark callout + feat cards) ── */
.guide-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.guide-callout {
  background: var(--dark); border-radius: var(--radius);
  padding: 36px 32px; position: sticky; top: 80px;
}
.guide-callout-tag { font-size: .7rem; font-weight: 800; letter-spacing: .13em; color: var(--ac); text-transform: uppercase; margin-bottom: 14px; }
.guide-callout p { font-size: .93rem; line-height: 1.85; color: rgba(255,255,255,.68); }
.guide-callout strong { color: var(--ac); }
.feat-grid { display: flex; flex-direction: column; gap: 12px; }
.feat-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; background: #fff;
  border-radius: var(--radius); border: 1px solid var(--border);
  transition: box-shadow .2s;
}
.feat-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.feat-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--ac-l); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.feat-text h3 { font-size: .92rem; font-weight: 700; margin-bottom: 3px; }
.feat-text p { font-size: .8rem; color: var(--fg2); line-height: 1.6; }

/* ── 체크포인트 — horizontal timeline ──────── */
.timeline { display: grid; grid-template-columns: repeat(var(--n,5), 1fr); gap: 0; position: relative; }
.timeline::before {
  content: ''; position: absolute;
  top: 21px; left: calc(10% + 2px); right: calc(10% + 2px);
  height: 2px; background: var(--border); z-index: 0;
}
.tl-item { position: relative; z-index: 1; text-align: center; padding: 0 10px; }
.tl-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ac); color: var(--ac-ink);
  font-size: .88rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--ac-b);
}
.tl-title { font-size: .86rem; font-weight: 700; margin-bottom: 6px; }
.tl-desc { font-size: .76rem; color: var(--fg2); line-height: 1.6; }

/* ── 비교표 ─────────────────────────────────── */
.cmp-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.cmp-table th { background: var(--dark); color: #fff; padding: 14px 16px; text-align: center; font-weight: 700; }
.cmp-table th:first-child { background: #2e3038; text-align: left; }
.cmp-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: center; background: #fff; }
.cmp-table td:first-child { text-align: left; font-weight: 600; background: #fafafa; }
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table tr:hover td { background: var(--ac-l); }
.cmp-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }

/* ── FAQ ────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq-item { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.faq-q {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 18px 20px; cursor: pointer;
  font-weight: 700; font-size: .9rem;
  transition: background .15s; user-select: none; gap: 10px;
}
.faq-q:hover { background: var(--ac-l); }
.faq-icon { font-size: 1.3rem; font-weight: 400; color: var(--ac); transition: transform .2s; flex-shrink: 0; margin-top: 1px; }
.faq-a { display: none; padding: 0 20px 18px; font-size: .86rem; color: var(--fg2); line-height: 1.75; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-q { background: var(--ac-l); }

/* ── 매장안내 ───────────────────────────────── */
.shop-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.shop-info { display: flex; flex-direction: column; }
.shop-row { display: flex; gap: 0; padding: 11px 0; border-bottom: 1px solid var(--border); }
.shop-row:last-child { border-bottom: none; }
.shop-lbl { font-size: .82rem; font-weight: 700; color: var(--fg3); width: 80px; flex-shrink: 0; padding-top: 2px; }
.shop-val { font-size: .9rem; color: var(--fg); }
.shop-map { background: var(--border); border-radius: var(--radius); min-height: 220px; display: flex; align-items: center; justify-content: center; }
.shop-map-placeholder { text-align: center; color: var(--fg3); font-size: .85rem; padding: 40px; }

/* ── 상담 — 밝은 박스 ─────────────────────────── */
.contact-section { background: var(--bg); padding: 64px 0; }
.contact-box {
  background: #fafbfc;
  border-top: 4px solid var(--ac);
  border-radius: 18px;
  padding: 40px 48px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow);
}
.contact-eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .1em; color: var(--ac-d); margin-bottom: 12px; text-transform: uppercase; }
.contact-title { font-size: 1.5rem; font-weight: 900; margin-bottom: 8px; }
.contact-sub { font-size: .92rem; color: var(--fg2); margin-bottom: 28px; }
.contact-tel {
  display: inline-block;
  font-size: 1.7rem; font-weight: 900;
  color: var(--ac-d);
  text-decoration: underline;
  text-underline-offset: 4px;
  letter-spacing: .02em;
  margin-bottom: 10px;
}
.contact-hours { font-size: .82rem; color: var(--fg3); }

/* ── Footer ─────────────────────────────────── */
.site-footer { background: var(--footer); color: #888; padding: 48px 0 32px; }
.footer-inner { display: flex; flex-direction: column; gap: 10px; }
.footer-brand { font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.footer-row { display: flex; gap: 0; font-size: .82rem; line-height: 1.7; }
.footer-lbl { width: 92px; flex-shrink: 0; color: #666; font-weight: 600; }
.footer-val { color: #999; }
.footer-copy { margin-top: 24px; font-size: .78rem; color: #444; border-top: 1px solid #1e2028; padding-top: 20px; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 960px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-callout { position: static; }
  .shop-wrap { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .gnb { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 20px; }
  .timeline::before { display: none; }
  .tl-item { display: flex; gap: 16px; text-align: left; }
  .tl-num { margin: 0; flex-shrink: 0; }
}
@media (max-width: 500px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 460px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .contact-tel { font-size: 1.8rem; }
  .contact-box { padding: 28px 20px; }
  #cars-wrap { padding-top: 60px; }
}

.hstat-n{font-size:1.2rem}
.guide-layout.one{grid-template-columns:1fr}.guide-layout.one .guide-callout{position:static}
.timeline::before{left:calc(50%/var(--n));right:calc(50%/var(--n))}
.shop-map-placeholder{line-height:1.8}
