:root {
  --red: #ef3d3a;
  --red-dark: #d6322f;
  --ink: #1c1c1c;
  --muted: #5e5a55;
  --paper: #f6f3ee;
  --line: #e7e1d8;
  --card: #fff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; }
.eyebrow { margin: 0 0 .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 0; border-radius: 10px; padding: .85rem 1.1rem; font-weight: 700; cursor: pointer; text-align: center;
}
.btn svg { width: 1.1rem; height: 1.1rem; }
.btn-primary, .btn-header, .btn-search { background: var(--red); color: #fff; }
.btn-primary:hover, .btn-header:hover, .btn-search:hover { background: var(--red-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid #ddd; }
.btn-search { min-height: 48px; }
.text-link { color: var(--red); font-weight: 700; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: .7rem 1.25rem .35rem; display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; }
.logo { display: flex; align-items: center; flex: 1 0 auto; }
#rci-logo { height: 48px; width: auto; display: block; }
nav.main { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1rem; flex: 1 0 100%; order: 3; padding-bottom: .35rem; }
nav.main .parent { position: relative; }
nav.main a.top-level, nav.main .parent > a { color: var(--ink); font-weight: 650; font-size: .95rem; padding: .35rem 0; display: inline-block; }
nav.main .parent ul.inner { display: none; position: absolute; z-index: 6; left: 0; min-width: 14rem; margin: 0; padding: .4rem 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
nav.main .parent:hover ul.inner, nav.main .parent:focus-within ul.inner { display: block; }
nav.main .parent ul.inner a { display: block; padding: .45rem .9rem; color: var(--ink); }
.header-phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; white-space: nowrap; }
.header-phone svg { width: 1.05rem; height: 1.05rem; }
.btn-header { white-space: nowrap; padding: .7rem .9rem; }

.hero { position: relative; min-height: 640px; color: #fff; background: #2b2b2b center/cover no-repeat; display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.28) 70%, rgba(0,0,0,.15)); }
.hero-inner { position: relative; z-index: 1; width: min(760px, 100%); padding: 4.5rem 1.25rem 2.5rem; }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero h1 { margin: 0 0 .6rem; font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; }
.hero .lead { margin: 0 0 1.1rem; max-width: 38rem; font-size: 1.05rem; color: rgba(255,255,255,.92); }
.hero .search { box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .9rem; }
.hero-cta .btn { min-width: 14rem; }

.search { display: grid; grid-template-columns: 1.1fr 1.1fr 1fr auto; gap: .7rem; align-items: end; background: #fff; color: var(--ink); border-radius: 16px; padding: .9rem; }
.search .field { display: grid; gap: .3rem; }
.search label { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.search select, .search input, .search-advanced input, .search-advanced select {
  width: 100%; background: #f7f5f2; border: 1px solid #ece7e0; border-radius: 10px; padding: .75rem .8rem; color: var(--ink);
}
.search-advanced { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr 1fr  .6fr .7fr .7fr; gap: .6rem; }

.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-inner { max-width: 1200px; margin: 0 auto; padding: 1.1rem 1.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem 2rem; }
.trust-item { display: flex; gap: .7rem; align-items: flex-start; }
.trust-item svg { width: 1.4rem; height: 1.4rem; color: var(--red); flex: 0 0 auto; margin-top: .15rem; }
.trust-item strong { display: block; }
.trust-item .note { display: block; color: var(--muted); font-size: .92rem; }

.inventory, .financing, .why { max-width: 1200px; margin: 0 auto; padding: 2.2rem 1.25rem; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1rem; }
.section-head h1, .section-head h2, .why h2, .financing h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 750; }
.featured-tools { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.sort-form { display: flex; gap: .4rem; align-items: center; color: var(--muted); }
.sort-form select { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .35rem .5rem; }

.truck-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.catalog .truck-grid { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(40, 30, 20, .06); display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; display: block; background: #efeae3; aspect-ratio: 16 / 10; }
.truck-photo, .card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.truck-photo.is-empty { min-height: 160px; }
.badge { position: absolute; z-index: 1; left: .6rem; top: .6rem; background: var(--red); color: #fff; font-size: .75rem; font-weight: 800; border-radius: 999px; padding: .25rem .55rem; }
.card-body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-top { display: flex; justify-content: space-between; gap: .6rem; align-items: flex-start; }
.truck-title { margin: 0; flex: 1; min-width: 0; font-size: 1rem; font-weight: 750; }
.truck-price, .card-price { margin: 0; flex: 0 0 auto; font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.card-specs { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; color: var(--muted); font-size: .92rem; }
.card-specs span { display: inline-block; min-width: 3.4rem; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a847c; }
.card-meta { margin: 0; display: flex; justify-content: space-between; gap: .6rem; color: var(--muted); font-size: .85rem; }
.stk { white-space: nowrap; }

.financing-inner { display: grid; grid-template-columns: 1.4fr .8fr; gap: 1.2rem; align-items: start; }
.financing-card { background: #fff; border-radius: 16px; padding: 1.2rem; box-shadow: 0 8px 24px rgba(40, 30, 20, .06); display: grid; gap: .7rem; }
.aside-kicker { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bullets { margin: .4rem 0; padding-left: 1.1rem; }
.fine { color: var(--muted); font-size: .92rem; }
.why { padding-top: 0; }
.why p { max-width: 46rem; }

.page { max-width: 1200px; margin: 0 auto; padding: 1.4rem 1.25rem 3rem; }
.catalog .search { border: 1px solid var(--line); margin-bottom: 1.2rem; }
.catalog-layout, .product-layout { display: flex; align-items: flex-start; gap: 1.4rem; }
.left-col { width: 240px; flex: 0 0 240px; background: #fff; border-radius: 16px; padding: .4rem .9rem 1rem; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
.filter-title { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; border-bottom: 1px solid var(--line); padding: .7rem 0 .45rem; font-weight: 800; cursor: pointer; letter-spacing: .04em; }
.filter-item { display: none; border-bottom: 1px solid var(--line); padding: .55rem .1rem; color: var(--ink); }
.filter-section.is-open .filter-item { display: block; }
.product-main { flex: 1; min-width: 0; background: #fff; border-radius: 16px; overflow: hidden; }
.product-slider { position: relative; background: #ece7e0; }
.slide-photo { width: 100%; height: min(70vw, 520px); object-fit: contain; background: #ece7e0; display: block; }
.product-slider .photo-slide[hidden] { display: none; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 8px; background: rgba(0,0,0,.72); color: #fff; border: 0; font-size: 28px; cursor: pointer; }
.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }
.slick-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; }
.dot.is-on { background: #fff; }
.product-tabs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.product-tabs button { background: transparent; color: var(--muted); border: 0; padding: .9rem 1rem; cursor: pointer; font-weight: 800; letter-spacing: .04em; }
.product-tabs li.is-on button { color: var(--ink); box-shadow: inset 0 -3px 0 var(--red); }
.product-panel { display: none; padding: 1.2rem 1.3rem 1.6rem; }
.product-panel.is-on { display: block; }
.product-panel[hidden] { display: none; }
a.request-info { display: inline-block; margin: 0 0 1rem; background: var(--red); color: #fff; font-weight: 800; border-radius: 10px; padding: .7rem 1rem; }
.product-main h2 { margin: .2rem 0; font-size: 1.8rem; }
.product-panel .price { font-size: 2.4rem; font-weight: 750; margin: .3rem 0 .6rem; }
.font-1-5 { font-size: 1.15rem; margin: .45rem 0; }
.product-panel .description { line-height: 1.45; }
.product-panel .description a { color: #0b7a32; }
.product-map { width: 100%; height: 360px; border: 0; border-radius: 12px; margin-top: 1rem; }
.gallery { display: flex; flex-wrap: wrap; gap: .5rem; }
.gallery .thumb { height: 100px; width: auto; border-radius: 8px; object-fit: cover; }
.docs td { padding: .4rem 1rem .4rem 0; vertical-align: top; }

.site-page, .inquiry { background: #fff; border-radius: 16px; padding: 1.3rem 1.4rem 1.6rem; }
.inquiry-form, .lead-form, .credit-form { display: grid; gap: .45rem; max-width: 40rem; }
.inquiry-form label, .lead-form label, .credit-form label { font-weight: 700; }
.inquiry-form > label span, .place legend span { color: var(--red); font-size: .75rem; font-weight: 800; margin-left: .35rem; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea,
.lead-form input, .lead-form textarea, .credit-form input, .credit-form textarea {
  width: 100%; padding: .7rem; border: 1px solid #ddd; border-radius: 8px; background: #fff;
}
.place { border: 0; margin: 0; padding: 0; display: grid; gap: .45rem; }
.place legend { font-weight: 700; padding: 0; }
.sms-consent { display: flex; gap: .6rem; align-items: flex-start; background: #fffaf8; border: 1px solid #f0c2c1; border-radius: 8px; padding: .8rem; margin: .75rem 0; }
.sms-consent input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex: 0 0 auto; }
.sms-consent, .sms-consent label, .sms-consent span { color: var(--ink); font-size: .95rem; font-weight: 400; }
.sms-consent label { line-height: 1.4; display: flex; gap: .55rem; align-items: flex-start; }
.sms-consent a { color: var(--red); text-decoration: underline; }
.hp { position: absolute; left: -9999px; }
.captcha { border: 0; margin: 0; padding: 0; }
.sms-legal { margin-top: 1.5rem; }
.site-button, .lead-form .site-button, .credit-form .btn { background: var(--red); color: #fff; border: 0; border-radius: 10px; font-weight: 800; padding: .8rem 1rem; cursor: pointer; }
.site-flash { background: #ecfdf3; padding: .7rem 1rem; margin: 0; }
.site-flash.is-alert { background: #fef2f2; }
.site-empty { color: var(--muted); }
.site-pager { display: flex; gap: 1rem; margin: 1rem 0; align-items: center; }
.site-copy { overflow-wrap: anywhere; }

footer.site-footer { background: #fff; color: var(--ink); border-top: 1px solid var(--line); }
.site-footer a { color: var(--ink); }
.site-footer-main { line-height: 1.35; }
.site-footer-cols { display: flex; flex-wrap: wrap; gap: 1rem; max-width: 1200px; margin: 0 auto; padding: 2.2rem 1.25rem 1.4rem; }
.site-footer-brand { width: 240px; margin-right: 1.5rem; }
.site-footer-logo { width: 140px; height: auto; display: block; }
.site-footer-copy { color: var(--muted); margin-top: .8rem; }
.site-footer-col { padding: .2rem 1.2rem .2rem 0; }
.site-footer-title { margin: 0 0 .6rem; font-weight: 800; color: var(--red); }
.site-footer-link { display: block; margin-bottom: .35rem; }
.site-footer-address { color: var(--muted); }
.site-footer-bar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: .8rem 1.25rem 1.2rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer-legal { color: var(--muted); display: inline-block; margin-right: 1rem; }

.sticky-bar { display: none; }

@media (min-width: 1400px) {
  .catalog .truck-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .truck-grid { grid-template-columns: repeat(2, 1fr); }
  .search, .search-advanced { grid-template-columns: 1fr 1fr; }
  .btn-search { grid-column: 1 / -1; }
  .financing-inner { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .header-inner { flex-wrap: wrap; }
  nav.main, .btn-header { display: none; }
  .header-phone { margin-left: auto; }
  .hero { min-height: 0; align-items: stretch; }
  .hero-inner { padding: 1.2rem 1rem 1rem; }
  .hero h1 { font-size: 1.85rem; margin-bottom: .35rem; }
  .hero .lead { font-size: .95rem; margin-bottom: .7rem; }
  .hero .search { padding: .7rem; }
  .hero-cta .btn, .financing .btn { width: 100%; }
  .search, .search-advanced { grid-template-columns: 1fr; }
  .truck-grid { grid-template-columns: 1fr; }
  .catalog-layout, .product-layout { flex-direction: column; }
  .left-col { width: 100%; flex-basis: auto; position: static; max-height: none; }
  .slide-photo { height: 240px; }
  .site-footer-brand { width: 100%; margin-right: 0; }
  body { padding-bottom: 76px; }
  .sticky-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.06);
  }
  .sticky-bar a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .55rem .2rem .7rem; font-size: .72rem; font-weight: 800; letter-spacing: .06em; }
  .sticky-bar svg { width: 1.25rem; height: 1.25rem; }
  .sticky-bar .sticky-apply { color: var(--red); }
}
