/* ============================================================
   RABIA MOTORS — Homepage Redesign
   ============================================================ */

body.home-page {
  font-family: 'DM Sans', var(--font);
  background: #f0f2f6;
}

body.home-page .topbar {
  background: #12182b;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.home-page .header {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 8px 24px rgba(22, 33, 62, 0.06);
}

/* ── Shared tokens ─────────────────────────────────────────── */
.hp {
  --hp-dark: #12182b;
  --hp-dark2: #1a2744;
  --hp-mid: #243352;
  --hp-muted: #64748b;
  --hp-line: rgba(15, 23, 42, 0.08);
  --hp-radius: 16px;
  --hp-radius-lg: 22px;
  --hp-shadow: 0 20px 50px rgba(22, 33, 62, 0.12);
}

.hp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.hp-eyebrow-light {
  color: #f0a8a0;
}

/* ── Hero ──────────────────────────────────────────────────── */
body.home-page .hp-hero {
  min-height: 0;
  background: var(--hp-dark2);
}

body.home-page .hp-hero .hero-slide,
body.home-page .hp-hero.home-hero .hero-slide {
  height: min(78vh, 720px);
  min-height: 520px;
  padding-bottom: 72px;
}

body.home-page .home-hero .hero-slide-bg::after {
  background:
    linear-gradient(115deg, rgba(18, 24, 43, 0.94) 0%, rgba(18, 24, 43, 0.72) 42%, rgba(18, 24, 43, 0.35) 68%, rgba(18, 24, 43, 0.15) 100%),
    linear-gradient(to top, rgba(18, 24, 43, 0.85) 0%, transparent 35%);
}

.hp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
  gap: 40px;
  align-items: center;
  width: 100%;
}

body.home-page .hp-hero .hero-content h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 18px;
}

body.home-page .hero-eyebrow {
  color: #f5b4ad;
  background: rgba(192, 57, 43, 0.18);
  border: 1px solid rgba(240, 168, 160, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

body.home-page .hero-content .tag {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  padding: 5px 14px;
}

.hp-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hp-hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #d4dce8;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 12px;
  border-radius: 999px;
}

.hp-hero-trust i {
  color: #f0a8a0;
  font-size: 0.72rem;
}

.hp-hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hp-hero-specs span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e8edf4;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  border-radius: 10px;
}

.hp-hero-specs i {
  color: #f0a8a0;
}

body.home-page .hero-btns .btn-primary {
  box-shadow: 0 12px 28px rgba(192, 57, 43, 0.4);
  padding: 14px 24px;
  border-radius: 12px;
}

body.home-page .hero-btns .btn-hero-outline {
  border-radius: 12px;
  padding: 14px 24px;
}

.hp-hero-aside {
  display: none;
}

@media (min-width: 960px) {
  .hp-hero-aside {
    display: block;
  }
}

.hp-hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--hp-radius-lg);
  padding: 22px;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.hp-hero-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(192, 57, 43, 0.25);
  color: #ffb4ac;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.hp-hero-card strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.hp-hero-card p {
  margin: 0;
  font-size: 0.88rem;
  color: #b8c4d8;
  line-height: 1.55;
}

.hp-hero-card-img {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
}

.hp-hero-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-hero-card-body strong {
  font-size: 1rem;
}

.hp-hero-card-stock {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 4px;
}

.hp-hero-card-price {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

body.home-page .hero-arrow {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

body.home-page .hero-nav {
  display: none !important;
}

body.home-page .hp-hero .hero-slide,
body.home-page .hp-hero.home-hero .hero-slide {
  padding-bottom: 36px;
}

/* Stats strip (between hero & search) */
.hp-stats {
  position: relative;
  z-index: 5;
  margin-top: -52px;
  margin-bottom: 28px;
  padding: 0;
}

.hp-kpi-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.09) 100%),
    rgba(18, 24, 43, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.32);
  border-radius: var(--hp-radius-lg);
  padding: 22px 24px;
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.hp-kpi-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 42%);
  pointer-events: none;
}

.hp-kpi {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 6px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hp-kpi:last-child {
  border-right: none;
}

.hp-kpi-num {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hp-kpi-lbl {
  margin-top: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* ── Search ────────────────────────────────────────────────── */
.hp-search {
  position: relative;
  z-index: 4;
  margin-top: 0;
  padding: 0 0 40px;
}

.hp-search-card {
  background: #fff;
  border-radius: var(--hp-radius-lg);
  padding: 32px 34px 34px;
  box-shadow: var(--hp-shadow);
  border: 1px solid var(--hp-line);
}

.hp-search-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.hp-search-head h2 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--hp-dark);
  letter-spacing: -0.02em;
}

.hp-search-head p {
  margin: 0;
  color: var(--hp-muted);
  font-size: 0.92rem;
}

.hp-search-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.hp-search-link:hover {
  gap: 12px;
}

body.home-page .hp-search-form.search-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 16px 18px;
  align-items: end;
}

body.home-page .hp-search .search-field label {
  display: block;
  margin-bottom: 8px;
}

body.home-page .hp-search .search-field select,
body.home-page .hp-search .search-field input {
  border-radius: 12px;
  border-color: #e2e8f0;
  background-color: #f8fafc;
  padding: 12px 14px;
}

body.home-page .hp-search .search-field select {
  padding-right: 40px;
}

body.home-page .hp-search .search-field select:focus,
body.home-page .hp-search .search-field input:focus {
  background-color: #fff;
}

body.home-page .hp-search .search-btn-wrap {
  padding-bottom: 0;
  margin-left: 4px;
}

body.home-page .hp-search .search-btn-wrap .btn {
  border-radius: 12px;
  padding: 12px 24px;
  min-width: 118px;
  box-shadow: 0 8px 20px rgba(192, 57, 43, 0.28);
}

/* ── Quick links ───────────────────────────────────────────── */
.hp-quick {
  padding: 4px 0 48px;
}

.hp-quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.hp-quick-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.hp-quick-item:hover {
  transform: translateY(-2px);
  border-color: rgba(192, 57, 43, 0.25);
  box-shadow: 0 12px 28px rgba(22, 33, 62, 0.08);
}

.hp-quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fdf0ef, #fff);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.hp-quick-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hp-quick-text strong {
  font-size: 0.88rem;
  color: var(--hp-dark);
}

.hp-quick-text small {
  font-size: 0.74rem;
  color: var(--hp-muted);
}

/* ── Sections ────────────────────────────────────────────────── */
.hp-section {
  padding: 72px 0;
}

.hp-section-alt {
  background: #fff;
}

.hp-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hp-section-head-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hp-section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 800;
  color: var(--hp-dark);
  letter-spacing: -0.025em;
}

.hp-section-head p {
  margin: 0;
  color: var(--hp-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 520px;
}

.hp-section-head-center p {
  max-width: none;
}

.hp-section-link {
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* ── Brands ──────────────────────────────────────────────────── */
.hp-brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.hp-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-align: center;
}

.hp-brand:hover {
  transform: translateY(-3px);
  border-color: rgba(192, 57, 43, 0.3);
  box-shadow: 0 14px 32px rgba(192, 57, 43, 0.1);
}

.hp-brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fdf0ef;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s;
}

.hp-brand:hover .hp-brand-icon {
  background: var(--primary);
  color: #fff;
}

.hp-brand-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hp-dark);
}

.hp-brand-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--hp-muted);
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 999px;
}

/* ── Featured cars ───────────────────────────────────────────── */
body.home-page .hp-cars-grid .car-card {
  border-radius: var(--hp-radius);
  border: 1px solid var(--hp-line);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(22, 33, 62, 0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}

body.home-page .hp-cars-grid .car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(22, 33, 62, 0.12);
}

/* ── Process timeline ────────────────────────────────────────── */
.hp-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.hp-step {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  padding: 24px 20px 22px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hp-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(22, 33, 62, 0.08);
}

.hp-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  width: 20px;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--primary), #e74c3c);
  opacity: 0.4;
  z-index: 2;
  pointer-events: none;
}

.hp-step-num {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #e74c3c);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(192, 57, 43, 0.35);
}

.hp-step-body h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--hp-dark);
}

.hp-step-body p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--hp-muted);
  line-height: 1.6;
}

/* ── Why bento grid ──────────────────────────────────────────── */
.hp-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.hp-why-card {
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.hp-why-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(22, 33, 62, 0.08);
  border-color: rgba(192, 57, 43, 0.2);
}

.hp-why-card-lg {
  grid-column: span 2;
  grid-row: span 1;
  background: linear-gradient(135deg, #fff 0%, #fdf6f5 100%);
}

.hp-why-card-accent {
  background: linear-gradient(135deg, var(--hp-dark2) 0%, #2a1a30 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.hp-why-card-accent .hp-why-icon {
  background: rgba(192, 57, 43, 0.25);
  color: #ffb4ac;
}

.hp-why-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fdf0ef;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.hp-why-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hp-dark);
}

.hp-why-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--hp-muted);
  line-height: 1.65;
}

.hp-why-card.hp-why-card-accent h3 {
  color: #fff;
}

.hp-why-card.hp-why-card-accent p {
  color: rgba(255, 255, 255, 0.78);
}

.hp-why-card.hp-why-card-accent:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

/* ── Blog ────────────────────────────────────────────────────── */
.hp-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.hp-blog-card {
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hp-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(22, 33, 62, 0.1);
}

.hp-blog-img {
  display: block;
  height: 200px;
  overflow: hidden;
}

.hp-blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.hp-blog-card:hover .hp-blog-img img {
  transform: scale(1.05);
}

.hp-blog-body {
  padding: 20px 22px 22px;
}

.hp-blog-body time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--hp-muted);
  margin-bottom: 10px;
}

.hp-blog-body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.hp-blog-body h3 a {
  color: var(--hp-dark);
  transition: color 0.2s;
}

.hp-blog-body h3 a:hover {
  color: var(--primary);
}

.hp-blog-body p {
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: var(--hp-muted);
  line-height: 1.6;
}

.hp-blog-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary);
}

.hp-blog-read:hover {
  gap: 10px;
}

/* ── Reviews ─────────────────────────────────────────────────── */
body.home-page .hp-reviews {
  background: linear-gradient(135deg, #12182b 0%, #1a2744 50%, #243352 100%);
  color: #fff;
  padding-bottom: 80px;
}

body.home-page .hp-reviews .hp-section-head h2 {
  color: #fff;
}

body.home-page .hp-reviews .hp-section-head p {
  color: #94a3b8;
}

body.home-page .hp-review-card {
  border-radius: var(--hp-radius);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  padding: 26px;
}

/* ── CTA ─────────────────────────────────────────────────────── */
.hp-cta {
  padding: 56px 0 72px;
  margin-top: 0;
}

.hp-cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: stretch;
}

.hp-cta-main {
  background: linear-gradient(135deg, var(--primary) 0%, #d64535 55%, #e74c3c 100%);
  color: #fff;
  padding: 52px 56px;
  border-radius: var(--hp-radius-lg);
  box-shadow: var(--hp-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hp-cta-main .hp-eyebrow {
  margin-bottom: 14px;
}

.hp-cta-main h2 {
  margin: 0 0 16px;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hp-cta-main p {
  margin: 0 0 32px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
  max-width: 480px;
}

.hp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hp-cta-actions .btn {
  padding: 14px 26px;
}

.hp-cta-side {
  background: var(--hp-dark2);
  padding: 52px 48px;
  border-radius: var(--hp-radius-lg);
  box-shadow: var(--hp-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.hp-cta-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  min-height: 76px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}

.hp-cta-contact:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.hp-cta-contact i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(192, 57, 43, 0.25);
  color: #ffb4ac;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  align-self: center;
}

.hp-cta-wa i {
  background: rgba(37, 211, 102, 0.2);
  color: #4ade80;
}

.hp-cta-contact span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.hp-cta-contact strong {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

.hp-cta-contact em {
  font-style: normal;
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.35;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hp-brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hp-quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  body.home-page .hp-search-form.search-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 18px;
  }

  .hp-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-step:not(:last-child)::after {
    display: none;
  }

  .hp-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-why-card-lg {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .hp-cta-grid {
    grid-template-columns: 1fr;
  }

  .hp-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hp-kpi:nth-child(2) {
    border-right: none;
  }

  .hp-kpi {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
  }

  .hp-kpi:nth-child(3),
  .hp-kpi:nth-child(4) {
    border-bottom: none;
    padding-bottom: 4px;
  }
}

@media (max-width: 768px) {
  body.home-page .hp-hero .hero-slide,
  body.home-page .hp-hero.home-hero .hero-slide {
    height: auto;
    min-height: 480px;
    padding-bottom: 64px;
  }

  .hp-stats {
    margin-top: -40px;
    margin-bottom: 24px;
  }

  .hp-search {
    margin-top: 0;
    padding-bottom: 32px;
  }

  .hp-search-card {
    padding: 26px 22px 28px;
  }

  .hp-search-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
  }

  body.home-page .hp-search-form.search-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
  }

  body.home-page .hp-search .search-btn-wrap {
    margin-left: 0;
  }

  .hp-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-section {
    padding: 52px 0;
  }

  .hp-brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hp-why-grid {
    grid-template-columns: 1fr;
  }

  .hp-why-card-lg {
    grid-column: span 1;
  }

  .hp-timeline {
    grid-template-columns: 1fr;
  }

  .hp-stats {
    margin-top: -32px;
    margin-bottom: 20px;
  }
}

@media (max-width: 560px) {
  .hp-kpi-grid {
    padding: 14px;
  }

  body.home-page .hp-search-form.search-grid {
    grid-template-columns: 1fr;
  }

  .hp-quick-grid {
    grid-template-columns: 1fr;
  }

  .hp-brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-blog-grid {
    grid-template-columns: 1fr;
  }

  .hp-cta {
    padding-top: 40px;
  }

  .hp-cta-main {
    padding: 36px 28px 40px;
  }

  .hp-cta-side {
    padding: 28px 24px 32px;
    gap: 14px;
  }

  .hp-cta-contact {
    min-height: 0;
    padding: 16px 18px;
  }

  .hp-hero-trust {
    display: none;
  }
}
