:root {
  /* 하이주카: 잉크 네이비 + 옐로. 흰 바탕에 구분선·여백으로 나누고, 옐로는 로고·즉시출고·주 버튼에만 */
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --ink: #0E1828;
  --ink-2: #48526A;
  --ink-3: #687184;
  --ink-4: #BAC1CC;
  --line: #E6E8EC;
  --fill: #F4F5F7;
  --accent: #F2C430;
  --accent-ink: #0E1828;
  --accent-soft: #FFF4CC; /* 어드민 경고 칸 */
  --blue: #2F5BEA;        /* 키보드 초점 */
  --dark: #0E1828;
  --duo: var(--accent);
  --r-xl: 16px;
  --r-lg: 12px;
  --r-md: 10px;
  --r-sm: 6px;
  --gutter: 16px;
  --col: 520px;
  --tabbar-h: 62px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.5; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic--sm { width: 16px; height: 16px; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.sr { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* ── 상단바 ───────────────────────── */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.topbar__in { max-width: var(--col); margin: 0 auto; height: 60px; padding: 0 var(--gutter); display: flex; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; letter-spacing: -0.05em; color: var(--ink); }
.logo__mark { width: 30px; height: 30px; flex: none; }
.topnav { display: none; }
.topbar__search { margin-left: auto; display: inline-flex; padding: 8px; border-radius: 10px; }
.topbar__cta { display: inline-flex; }

/* ── 하단 탭바 (모바일) ─────────────── */
.tabbar {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  padding: 0 max(8px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(8px, env(safe-area-inset-left, 0px));
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch;
  background: #fff; border-top: 1px solid var(--line);
}
.tabbar a, .tabbar button { position: relative; height: var(--tabbar-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--ink-3); --duo: var(--ink-4); }
.tabbar .ic { width: 23px; height: 23px; }
.tabbar .on { color: var(--ink); --duo: var(--accent); }
.tabbar .on::before { content: ""; position: absolute; top: -1px; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
body.has-cta .tabbar { display: none; }

/* ── 공통 레이아웃 ───────────────────── */
/* 상자(카드)로 감싸지 않는다. 구역은 위쪽 띠(모바일 8px 회색, PC 1px 선)와 여백으로만 나눈다 */
#view { display: block; outline: none; }
.page { max-width: var(--col); margin: 0 auto; padding: 8px var(--gutter) 32px; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.card { min-width: 0; margin: 8px calc(var(--gutter) * -1) 0; padding: 28px var(--gutter) 4px; border-top: 8px solid var(--fill); }
.page > .card:first-child, .phead + .card, .quick + .card, .card.empty { border-top: 0; margin-top: 0; }
.card--flush { padding: 0; overflow: hidden; }
/* 어드민(/admin)은 대시보드라 예전 카드 묶음을 그대로 쓴다 (admin.css 는 손대지 않음) */
body.ad { --bg: #F3F4F6; }
.ad .card { margin: 0; padding: 22px 20px; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(14, 24, 40, .05), 0 4px 14px rgba(14, 24, 40, .05); }
@media (min-width: 1024px) { .ad .card { padding: 28px; } }
.sec-title { font-size: 20px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.35; }
.sec-sub { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.more { display: inline-flex; align-items: center; gap: 2px; margin-top: 14px; padding: 6px 0; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.more:hover, .link:hover { color: var(--ink); }
.more .ic, .link .ic { width: 16px; height: 16px; }
.link { display: inline-flex; align-items: center; gap: 2px; flex: none; padding: 6px 0; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.fine { color: var(--ink-3); font-size: 12.5px; line-height: 1.6; }

.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 4px; font-size: 12px; font-weight: 700; background: var(--fill); color: var(--ink-2); white-space: nowrap; }
.badge--accent { background: var(--accent); color: var(--accent-ink); }
.badge--dark { background: var(--dark); color: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 54px; padding: 0 20px; border-radius: var(--r-md); font-weight: 700; font-size: 16px; white-space: nowrap; transition: transform .12s ease, background-color .15s ease; }
.btn:active { transform: scale(.98); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #24304A; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #E9B81C; }
.btn--ghost { background: var(--fill); color: var(--ink); }
.btn--line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--sm { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.iconbtn { display: inline-flex; padding: 8px; border-radius: 8px; color: var(--ink-2); }
.iconbtn:hover { background: var(--fill); }

/* 페이지 머리말 (법인·대량·찜) */
.phead { padding: 16px 0 4px; }
.phead h1, .dhead h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.25; }
.phead p { margin-top: 10px; max-width: 60ch; font-size: 15px; color: var(--ink-2); line-height: 1.65; }

/* ── 홈: 박스터 히어로 (모바일은 폭 전체 띠) ───────────────── */
.hero { position: relative; overflow: hidden; margin: -8px calc(var(--gutter) * -1) 0; background: var(--dark); color: #fff; padding: 32px var(--gutter) 0; display: grid; grid-template-rows: auto 1fr; }
.hero__eyebrow { font-size: 13px; font-weight: 700; color: var(--accent); }
.hero__title { font-size: 31px; font-weight: 800; line-height: 1.24; letter-spacing: -0.05em; margin-top: 10px; }
.hero__price { margin-top: 14px; font-size: 15px; color: rgba(255, 255, 255, .72); }
.hero__price b { color: #fff; font-size: 19px; font-weight: 700; }
.hero__note { margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.hero__facts { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.hero__actions { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.hero__actions .btn { height: 48px; font-size: 15px; }
.hero .btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.hero__car { align-self: end; justify-self: center; width: min(100%, 560px); margin: 18px 0 18px; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .4)); }

/* ── 홈: 차종별 바로가기 (글자 줄) ───────────────────── */
.quick { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.quick::-webkit-scrollbar { display: none; }
.quick a { flex: none; padding: 14px 0 13px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.quick a:hover { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }

/* ── 가로 스크롤 줄 (모바일) ───────────────── */
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 158px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }

/* ── 띠 링크 (법인·대량, 수입차) ───────────────── */
.band { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 8px calc(var(--gutter) * -1) 0; padding: 24px var(--gutter); background: var(--fill); }
.band > div { display: grid; gap: 4px; min-width: 0; flex: 1 1 220px; }
.band b { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.band span { font-size: 14px; color: var(--ink-2); }
.band .btn { flex: none; color: #fff; }

/* ── 리스트 행 (유형별 월 렌탈료) ─────────── */
.rank { display: grid; }
.rank a { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.rank a:first-child { border-top: 0; }
.rank img { width: 88px; height: 50px; object-fit: contain; }
.rank__name { font-size: 13.5px; color: var(--ink-3); }
.rank__price { font-size: 16px; font-weight: 700; }
.rank .ic { color: var(--ink-4); width: 18px; height: 18px; }
.picker { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px 0 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 700; flex: none; }
.picker:hover { box-shadow: inset 0 0 0 1px var(--ink-4); }
.picker .ic { width: 16px; height: 16px; stroke-width: 2.2; }

/* ── 포함 항목·절차·FAQ (구분선 목록) ────────────────────── */
.include { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.include li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.steps { display: grid; counter-reset: s; }
.steps li { list-style: none; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 4px; }
.steps li::before { counter-increment: s; content: counter(s); font-size: 15px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.steps b { display: block; font-size: 15px; }
.steps span { font-size: 14px; color: var(--ink-3); }
.steps, .faq { margin: 0; padding: 0; }
.faq { display: grid; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; font-size: 15px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq p { padding: 0 0 18px; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }

/* ── 목록 ─────────────────────────── */
.searchbox { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: var(--r-lg); background: var(--fill); }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15.5px; }
.searchbox .ic { color: var(--ink-3); --duo: transparent; }
/* 카테고리 = 밑줄 탭, 예산 = 작은 토글 */
.tabs { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: inline-flex; align-items: center; height: 46px; font-size: 15px; font-weight: 600; color: var(--ink-3); }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ink); }
.tabs--sub { gap: 6px; border-bottom: 0; margin-top: -4px; }
.tabs--sub a { height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.tabs--sub a.on { background: var(--dark); color: #fff; box-shadow: none; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.toolbar > span em { display: block; font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.toolbar select { border: 0; background: transparent; font-weight: 600; color: var(--ink); padding: 6px 2px; }
.grid { display: grid; gap: 24px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* 차량 카드: 사진 칸 위, 글자 아래 (겹치지 않음) */
.carcard { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.carcard__img { aspect-ratio: 16 / 11; padding: 12px; border-radius: var(--r-lg); background: var(--fill); transition: background-color .15s ease; }
.carcard:hover .carcard__img { background: #ECEEF2; }
.carcard__img img { width: 100%; height: 100%; object-fit: contain; }
.carcard__body { display: grid; gap: 2px; min-width: 0; }
.carcard__top { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 5px; }
.carcard__name { font-size: 15.5px; font-weight: 700; }
.carcard__brand { font-size: 12.5px; color: var(--ink-3); }
.carcard__price { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.carcard__price b { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.carcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.carcard__heart { position: absolute; top: 6px; right: 6px; padding: 6px; border-radius: 50%; color: var(--ink-4); }
.carcard__heart:hover { color: var(--ink-2); }
.carcard__heart.on { color: var(--ink); --heart: var(--accent); }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-3); }
.empty .more { display: flex; justify-content: center; }

/* ── 상세 ─────────────────────────── */
.detail__main { display: grid; gap: 12px; min-width: 0; align-content: start; }
.dhead { padding: 10px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.dhead__brand { font-size: 13.5px; color: var(--ink-3); }
.dhead__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.dvisual { position: relative; background: var(--fill); border-radius: var(--r-xl); height: 220px; display: grid; place-items: center; overflow: hidden; }
.dvisual img { width: min(88%, 520px); }
.dvisual__heart { position: absolute; top: 12px; right: 12px; background: #fff; border-radius: 50%; padding: 8px; color: var(--ink-3); }
.dvisual__heart.on { color: var(--ink); --heart: var(--accent); }
/* 트림·옵션 고르기: 이름표 위, 값 아래 */
.select { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; width: 100%; padding: 12px 14px 12px 16px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.select:hover { box-shadow: inset 0 0 0 1px var(--ink-4); }
.select__k { grid-column: 1; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.select__v { grid-column: 1; min-width: 0; font-weight: 700; font-size: 15px; line-height: 1.4; }
.select .ic { grid-column: 2; grid-row: 1 / span 2; color: var(--ink-3); width: 20px; height: 20px; }

.pricebox { text-align: center; padding: 4px 0; }
.pricebox__label { font-size: 14px; color: var(--ink-2); }
.pricebox__value { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-top: 4px; }
.pricebox__value .odo { font-size: 38px; font-weight: 800; letter-spacing: -0.045em; }
.pricebox__value small { font-size: 16px; font-weight: 700; color: var(--ink-2); }
.pricebox__cond { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.morecond { margin-top: 22px; border-radius: var(--r-md); background: var(--fill); padding: 0 14px; }
.morecond summary { list-style: none; cursor: pointer; padding: 14px 22px 14px 0; font-weight: 700; font-size: 14.5px; display: flex; justify-content: space-between; align-items: center; gap: 8px; position: relative; }
.morecond summary::-webkit-details-marker { display: none; }
.morecond summary span { font-weight: 500; font-size: 12.5px; color: var(--ink-3); text-align: right; margin-left: auto; }
.morecond summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.morecond[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.morecond[open] { padding-bottom: 14px; }
.morecond .field:first-of-type { margin-top: 4px; }
.morecond .chip { background: #fff; }
.pricebox__sub { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.pricebox__sub > span:not(.badge) + span:not(.badge)::before { content: "·"; margin-right: 8px; color: var(--ink-4); }

.odo { display: inline-flex; overflow: hidden; height: 1.2em; line-height: 1.2em; font-variant-numeric: tabular-nums; }
.odo__d { display: inline-block; height: 1.2em; overflow: hidden; }
.odo__s { display: flex; flex-direction: column; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.odo__s span { height: 1.2em; }
.odo__c { display: inline-block; }

.field { margin-top: 22px; }
.field__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.field__head b { font-size: 15px; font-weight: 700; }
.field__head span { font-size: 13px; color: var(--ink-3); }
.chips { display: grid; gap: 6px; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.chip { height: 46px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; font-weight: 600; color: var(--ink-2); padding: 0 6px; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink-4); }
.chip.on { background: var(--dark); color: #fff; box-shadow: none; }
.chips--wrap { display: flex; flex-wrap: wrap; }
.chips--wrap .chip { height: auto; min-height: 44px; padding: 10px 14px; text-align: left; line-height: 1.35; }

.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 7px 12px 7px 8px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-align: left; max-width: 100%; }
.swatch i { width: 24px; height: 24px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.swatch.on { box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
.swatch em { font-style: normal; font-size: 12px; color: var(--ink-3); font-weight: 500; }

.optlist { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; padding: 14px 16px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.opt.on { box-shadow: inset 0 0 0 2px var(--ink); }
.opt b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.opt span { font-size: 12.5px; color: var(--ink-3); }
.opt__p { font-size: 14px; font-weight: 700; white-space: nowrap; }

.kv { display: grid; margin: 16px 0 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.kv div:first-child { border-top: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }

/* 출고 안내 (계약 절차 위 한 줄) */
.deliv { display: grid; gap: 2px; margin: 14px 0 6px; padding: 14px 16px; border-radius: var(--r-md); background: var(--fill); font-size: 14px; color: var(--ink-2); }
.deliv b { color: var(--ink); font-size: 15px; }
.deliv small { font-size: 12.5px; color: var(--ink-3); }

.sticky-cta { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.sticky-cta__in { max-width: var(--col); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.sticky-cta__price { min-width: 0; display: grid; }
.sticky-cta__price div { display: flex; align-items: baseline; gap: 2px; }
.sticky-cta__price .odo { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.sticky-cta__price small { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.sticky-cta__price em { font-style: normal; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta .btn { height: 50px; padding: 0 22px; }

/* ── 법인·대량 ──────────────────────── */
[data-count] { position: relative; }
.tabbar [data-count]::after, .topnav [data-count]::after { content: attr(data-count); position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.topnav a[data-count] { padding-right: 40px; }
.topnav [data-count]::after { top: 50%; left: auto; right: 6px; transform: translateY(-50%); }
.frows { display: grid; }
.frow { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.frow:last-child { border-bottom: 0; }
.frow img { width: 72px; height: 42px; object-fit: contain; }
.frow__info { display: grid; gap: 2px; min-width: 0; }
.frow__info b { font-size: 14.5px; }
.frow__info span { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow__info .num { color: var(--ink-2); font-weight: 600; }
.frow__del { padding: 6px; }
.frow__del .ic { width: 18px; height: 18px; }
.stepper { display: inline-grid; grid-template-columns: 32px 40px 32px; height: 36px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.stepper button { font-size: 18px; font-weight: 600; color: var(--ink-2); }
.stepper button:hover { background: var(--fill); }
.stepper input { width: 100%; border: 0; text-align: center; font-weight: 700; font-size: 15px; outline: 0; background: transparent; font-variant-numeric: tabular-nums; }
.fleet-total { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 8px; padding: 16px 0 4px; border-top: 2px solid var(--ink); }
.fleet-total div { display: grid; gap: 2px; }
.fleet-total span { font-size: 13px; color: var(--ink-2); }
.fleet-total b { font-size: 24px; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
.fleet-add { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 14px; padding: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.fleet-add:hover { color: var(--ink); }
.fleet-add .ic { color: var(--ink-2); }
@media (max-width: 400px) { .frow { grid-template-columns: 56px minmax(0, 1fr) auto; } .frow img { width: 56px; } .frow__del { grid-column: 3; grid-row: 1; align-self: start; justify-self: end; } .frow .stepper { grid-column: 2 / 4; justify-self: start; } }
.fleet__main { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 1023px) { .fleet__main { display: contents; } .fleet #flist { order: 1; } .fleet .fleet__side { order: 2; } .fleet #fform { order: 3; } }
@media (min-width: 1024px) { .fleet { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 48px; align-items: start; } .fleet > .phead { grid-column: 1 / -1; } .fleet__side { position: sticky; top: 92px; } }

/* ── 박스터 사진·요금 예시 ─────────────── */
.bx-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.bx-gallery::-webkit-scrollbar { display: none; }
.bx-photo-note { margin-top: -8px; }
@media (min-width: 1024px) { .bx-photo-note { grid-column: span 2; } }
.bx-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); scroll-snap-align: start; background: var(--fill); }
.bx-example { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; margin-top: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--fill); }
.bx-example span { font-size: 13.5px; color: var(--ink-2); }
.bx-example b { grid-row: span 2; align-self: center; font-size: 20px; font-weight: 800; }
.bx-example em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.subhead { margin-top: 24px; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.optgrid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; font-size: 14.5px; color: var(--ink-2); }
.optgrid li { padding: 9px 0; border-bottom: 1px solid var(--line); min-width: 0; }

/* ── 시트(바텀시트·모달) ────────────────── */
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet__dim { position: absolute; inset: 0; background: rgba(17, 19, 22, .45); animation: fade .2s ease; }
.sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; background: #fff; border-radius: 24px 24px 0 0; display: flex; flex-direction: column; animation: up .28s cubic-bezier(.2, .8, .2, 1); max-width: var(--col); margin: 0 auto; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 8px 22px; }
.sheet__head h2 { font-size: 18px; font-weight: 700; }
.sheet__body { overflow-y: auto; padding: 4px 20px calc(20px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.sheet__list { display: grid; gap: 6px; }
.sheet__list button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; padding: 14px 14px; border-radius: var(--r-md); }
.sheet__list button:hover { background: var(--fill); }
.sheet__list button.on { background: var(--fill); box-shadow: inset 3px 0 0 var(--ink); }
.sheet__list b { font-weight: 600; font-size: 14.5px; line-height: 1.4; display: block; }
.sheet__list span { font-size: 12.5px; color: var(--ink-3); }
.sheet__list em { font-style: normal; font-weight: 700; font-size: 14px; white-space: nowrap; }
.sheet__group { margin: 18px 14px 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.form input, .form textarea, .form select { height: 52px; border-radius: var(--r-md); border: 0; box-shadow: inset 0 0 0 1px var(--line); padding: 0 14px; font-size: 16px; background: #fff; width: 100%; }
.form textarea { height: 88px; padding: 12px 14px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--ink); }
.agree { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; }
.agree input { width: 20px; height: 20px; flex: none; margin-top: 1px; box-shadow: none; accent-color: var(--accent); }
.summary { background: var(--fill); border-radius: var(--r-md); padding: 14px 16px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.summary b { color: var(--ink); }
.summary__model { display: block; font-size: 15px; margin-bottom: 8px; }
.summary dl { margin: 0; display: grid; gap: 3px; }
.summary dl div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; }
.summary dt { color: var(--ink-3); }
.summary dd { margin: 0; color: var(--ink); }
.summary__price { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.err { color: #B4232A; font-size: 13px; font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--dark); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s ease; z-index: 70; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.has-link { pointer-events: auto; }
.toast a { color: var(--accent); font-weight: 700; margin-left: 8px; text-decoration: underline; text-underline-offset: 3px; }
body.has-cta .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }

.footer { max-width: var(--col); margin: 12px auto 0; padding: 28px var(--gutter) 24px; color: var(--ink-3); font-size: 12px; line-height: 1.7; }
.linkbtn { color: var(--ink-3); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.footer .logo { font-size: 18px; color: var(--ink-2); margin-bottom: 10px; }
.footer p { max-width: 68ch; }
.footer p + p { margin-top: 8px; }

.skeleton { height: 220px; border-radius: var(--r-xl); background: linear-gradient(90deg, #EEF0F3, #F6F7F9, #EEF0F3); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ── 태블릿 이상: 회색 띠 대신 1px 선, 히어로·띠는 둥근 면 ─────────── */
@media (min-width: 768px) {
  :root { --col: 760px; --gutter: 24px; }
  .card { margin: 8px 0 0; padding: 32px 0 4px; border-top: 1px solid var(--line); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 16px; }
  .hero { margin: 0; border-radius: var(--r-xl); padding: 44px 44px 0; min-height: 400px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: none; align-items: center; }
  .hero__car { width: 100%; margin: 0 0 28px; align-self: end; }
  .hero__title { font-size: 38px; }
  .band { margin: 8px 0 0; padding: 28px 32px; border-radius: var(--r-xl); }
  .home .hscroll { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 28px 16px; }
  .quick { margin: 0; padding: 0; }
  .tabs { margin: 0; padding: 0; }
  .phead h1, .dhead h1 { font-size: 32px; }
}

/* ── 데스크톱 ─────────────────────── */
@media (min-width: 1024px) {
  :root { --col: 1200px; --gutter: 32px; }
  .bx-gallery { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-column: span 2; overflow: visible; margin: 0; padding: 0; }
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topbar__in { height: 68px; gap: 28px; }
  .topnav { display: flex; gap: 4px; }
  .topnav a { padding: 8px 14px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
  .topnav a:hover { color: var(--ink); }
  .topnav a.on { color: var(--ink); background: none; box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
  .topbar__cta { display: inline-flex; }
  .topbar__search { margin-left: auto; }
  .page { gap: 16px; padding-top: 20px; padding-bottom: 48px; }
  .card { padding-top: 40px; }
  .sec-title { font-size: 22px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; }
  .carcard__price b { font-size: 20px; }
  .home { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 56px; }
  .home > * { grid-column: span 12; }
  .home > .span-6 { grid-column: span 6; }
  .home > .band { order: 1; }
  .hero { min-height: 460px; padding: 56px 64px 0; }
  .hero__title { font-size: 48px; }
  .hero__price { font-size: 17px; }
  .hero__car { width: 100%; margin: 0 0 36px; }
  .home .hscroll { gap: 40px 20px; }
  .stack { gap: 16px; }
  .detail { grid-template-columns: minmax(0, 1fr) 420px; align-items: start; column-gap: 48px; }
  .detail__main { display: grid; gap: 16px; min-width: 0; }
  .detail__main { grid-column: 1; }
  .detail__side { grid-column: 2; grid-row: 1 / span 2; align-self: start; position: sticky; top: 92px; display: grid; gap: 12px; }
  /* 오른쪽 견적 패널만 테두리로 묶는다 (조작하는 묶음) */
  .detail__side > .card, .fleet__side { margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-xl); }
  .dvisual { height: 400px; }
  .sticky-cta { display: none; }
  body.has-cta { padding-bottom: 0; }
  .side-cta { display: grid !important; }
  .sheet__panel { top: 50%; bottom: auto; left: 50%; right: auto; width: 520px; transform: translate(-50%, -50%); border-radius: 20px; animation: fade .2s ease; max-height: 84vh; }
  .footer { padding-top: 40px; }
  .bx { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; }
  .bx > .hero, .bx > .band { grid-column: span 2; }
}
.side-cta { display: none; gap: 8px; }
.stack { display: grid; gap: 12px; align-content: start; min-width: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── 검색용 정적 페이지(/rent/) ─────────────── */
body.doc { padding-bottom: 24px; }
.page--doc { max-width: 800px; }
.seo-hero h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.28; margin-top: 4px; text-wrap: balance; }
.seo-price { margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.seo-price b { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; margin: 0 2px; }
.seo-deliv { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.seo-hero img { width: 100%; height: auto; margin: 18px 0; padding: 16px 10%; border-radius: var(--r-xl); background: var(--fill); }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.ptable td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable th + th, .ptable td + td { text-align: right; padding-left: 12px; white-space: nowrap; }
.ptable td:first-child { font-weight: 600; }
.ptable td:last-child { font-weight: 700; }
.rank__badge { margin-top: 4px; }

/* ── 문서 페이지 (개인정보처리방침) ─────────── */
.doc h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.doc h2 { font-size: 16px; font-weight: 700; margin: 22px 0 8px; }
.doc p, .doc li { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.doc ul { margin: 0; padding-left: 18px; }

/* ── 블로그 (/blog/) ─────────────────────── */
.page--blog { max-width: 760px; }
.page--blog .sec-title { margin: 0; }
.page--blog .sec-title + .plist { margin-top: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.post h1, .blog-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.3; margin: 10px 0 0; text-wrap: balance; }
.post .post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.post__meta time { margin-right: 4px; }
.post .post__lead, .blog-head p { margin-top: 14px; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.post__cover { margin-top: 22px; padding: 20px 16px; border-radius: var(--r-xl); background: var(--fill); }
.post__cover img { width: min(100%, 460px); height: auto; margin: 0 auto; }
.post__body { max-width: 65ch; margin-top: 24px; font-size: 16px; }
.post__body h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.4; margin: 36px 0 12px; }
.post__body h3, .post__body h4 { font-size: 17px; font-weight: 700; line-height: 1.45; margin: 26px 0 8px; }
.post__body p, .post__body li { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.post__body p { margin-bottom: 14px; }
.post__body ul, .post__body ol { margin: 0 0 16px; padding-left: 22px; }
.post__body li + li { margin-top: 8px; }
.post__body li::marker { color: var(--ink-3); font-weight: 700; }
.post__body strong { color: var(--ink); font-weight: 700; }
.post__body a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.post__body img { height: auto; margin: 18px auto; border-radius: var(--r-lg); }
.post__table { margin: 4px 0 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.post__table table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.post__table th { padding: 11px 14px; background: var(--fill); text-align: left; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.post__table th, .post__table td { overflow-wrap: break-word; } /* 표 칸 폭 계산에서 단어(「즉시출고」「657,300원」)를 쪼개지 않게 */
.post__table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink); font-variant-numeric: tabular-nums; }
.post__table td:first-child { font-weight: 600; }
.pcars { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
.pcar { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 12px 14px; min-width: 0; padding: 16px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); }
.pcar img { width: 112px; height: 64px; object-fit: contain; }
.pcar__info { display: grid; gap: 2px; justify-items: start; }
.pcar__brand { font-size: 12.5px; color: var(--ink-3); }
.pcar__name { font-size: 16px; font-weight: 700; }
.pcar__price { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.pcar__price b { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.pcar .badge { margin-top: 4px; }
.pcar__links { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pcar__links .btn { padding: 0 8px; }
.plist { display: grid; }
.plist__item { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.plist__item:first-child { border-top: 0; padding-top: 2px; }
.plist__item:last-child { padding-bottom: 2px; }
.plist__item time { font-size: 12.5px; color: var(--ink-3); }
.plist h2, .plist h3 { margin: 4px 0 0; font-size: 17px; font-weight: 700; line-height: 1.45; letter-spacing: -0.02em; color: var(--ink); }
.plist__item:hover h2, .plist__item:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.plist p { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plist img { width: 96px; height: 54px; object-fit: contain; }
@media (max-width: 479px) { .post__table table { font-size: 13.5px; } .post__table th, .post__table td { padding: 10px; } }
@media (min-width: 560px) { .pcars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .post h1, .blog-head h1, .seo-hero h1 { font-size: 34px; } .post__body h2 { font-size: 22px; } }
