/* Carai home refresh — hero, dynamic brand catalogue and road-help visual */

html body #home-page > section.carai-home-hero-clean .carai-home-hero-bg {
  background:
    linear-gradient(90deg, rgba(4, 11, 21, .99) 0%, rgba(4, 11, 21, .94) 30%, rgba(4, 11, 21, .58) 48%, rgba(4, 11, 21, .08) 76%, rgba(4, 11, 21, .12) 100%),
    linear-gradient(180deg, rgba(4, 11, 21, .04) 0%, rgba(4, 11, 21, .02) 62%, rgba(4, 11, 21, .88) 100%),
    url("assets/images/home-hero-bmw-v3-20260726.jpg") center center / cover no-repeat !important;
}

html body #home-page > section.carai-home-hero-clean .carai-home-hero-copy h1 span {
  background: linear-gradient(90deg, #5ee0ff, #65a7ff) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

#top-brands-section {
  max-width: 100%;
}

#top-brands-section .carai-brand-hub {
  overflow: hidden;
  border: 1px solid #dce6f2;
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, .09), transparent 30%),
    linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .09);
}

#top-brands-section .carai-brand-hub__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 420px);
  gap: 30px;
  align-items: end;
  padding: 30px 32px 26px;
  border-bottom: 1px solid #e4ebf4;
}

#top-brands-section .carai-brand-hub__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}

#top-brands-section .carai-brand-hub__eyebrow i {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #eaf2ff;
  font-size: 14px;
}

#top-brands-section .carai-brand-hub__title h2 {
  margin: 12px 0 7px;
  color: #0f172a;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -.035em;
}

#top-brands-section .carai-brand-hub__title p {
  max-width: 720px;
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
}

#top-brands-section .carai-brand-hub__tools {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

#top-brands-section .carai-brand-hub__search {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 48px 0 17px;
  border: 1px solid #d7e1ee;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

#top-brands-section .carai-brand-hub__search > i {
  margin-right: 11px;
  color: #2563eb;
  font-size: 17px;
}

#top-brands-section .carai-brand-hub__search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font-size: 15px;
  font-weight: 750;
}

#top-brands-section .carai-brand-hub__search input::placeholder {
  color: #94a3b8;
}

#top-brands-section .carai-brand-hub__search button {
  position: absolute;
  right: 9px;
  top: 50%;
  width: 34px;
  height: 34px;
  display: none;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 11px;
  background: #f1f5f9;
  color: #64748b;
}

#top-brands-section .carai-brand-hub__search button.is-visible {
  display: inline-flex;
}

#top-brands-section .carai-brand-hub__count {
  justify-self: end;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

#top-brands-section .carai-brand-hub__count strong {
  color: #0f172a;
}

#top-brands-section .carai-brand-hub__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
  padding: 26px 32px;
}

#top-brands-section .carai-brand-tile {
  position: relative;
  min-width: 0;
  min-height: 94px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 30px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e0e8f2;
  border-radius: 19px;
  background: #fff;
  color: #0f172a;
  text-align: left;
  box-shadow: 0 9px 24px rgba(15, 23, 42, .045);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

#top-brands-section .carai-brand-tile:hover {
  z-index: 2;
  transform: translateY(-3px);
  border-color: #93b4ff;
  box-shadow: 0 17px 34px rgba(37, 99, 235, .14);
}

#top-brands-section .carai-brand-tile__logo {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f2f6fb);
}

#top-brands-section .carai-brand-tile__logo .carai-brand-logo {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  padding: 5px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: transparent !important;
  box-shadow: none !important;
}

#top-brands-section .carai-brand-tile__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#top-brands-section .carai-brand-tile__logo .carai-brand-logo__fallback {
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 950;
}

#top-brands-section .carai-brand-tile__copy {
  min-width: 0;
}

#top-brands-section .carai-brand-tile__copy strong,
#top-brands-section .carai-brand-tile__copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

#top-brands-section .carai-brand-tile__copy strong {
  color: #15223a;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 950;
  white-space: normal;
}

#top-brands-section .carai-brand-tile__copy small {
  margin-top: 5px;
  color: #7a8aa0;
  font-size: 11.5px;
  line-height: 1.15;
  font-weight: 750;
  white-space: nowrap;
}

#top-brands-section .carai-brand-tile__arrow {
  width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eff5ff;
  color: #2563eb;
  font-size: 11px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

#top-brands-section .carai-brand-tile:hover .carai-brand-tile__arrow {
  transform: translateX(2px);
  background: #2563eb;
  color: #fff;
}

#top-brands-section .carai-brand-hub__empty {
  grid-column: 1 / -1;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  text-align: center;
}

#top-brands-section .carai-brand-hub__empty i {
  margin-bottom: 12px;
  color: #93c5fd;
  font-size: 34px;
}

#top-brands-section .carai-brand-hub__empty strong {
  color: #0f172a;
  font-size: 17px;
}

#top-brands-section .carai-brand-hub__empty span {
  margin-top: 5px;
  font-size: 13px;
}

#top-brands-section .carai-brand-hub__footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 32px;
  border-top: 1px solid #e4ebf4;
  background: rgba(247, 250, 254, .88);
}

#top-brands-section .carai-brand-hub__footer p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

#top-brands-section .carai-brand-hub__more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid #bfd0ee;
  border-radius: 13px;
  background: #fff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

#top-brands-section .carai-brand-hub__more i {
  transition: transform .2s ease;
}

#top-brands-section .carai-brand-hub__more.is-expanded i {
  transform: rotate(180deg);
}

#top-brands-section .carai-brand-hub__no-result {
  margin: 0 auto;
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 850;
  pointer-events: none;
}

body #road-help-page .rh-hero__truck {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

body #road-help-page .rh-hero::before {
  background:
    linear-gradient(90deg, rgba(5, 10, 24, .99) 0%, rgba(7, 15, 32, .95) 36%, rgba(7, 15, 32, .62) 55%, rgba(7, 15, 32, .12) 80%, rgba(7, 15, 32, .06) 100%),
    linear-gradient(180deg, rgba(239, 68, 68, .1), rgba(239, 68, 68, 0) 46%) !important;
}

@media (max-width: 1450px) {
  #top-brands-section .carai-brand-hub__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  #top-brands-section .carai-brand-hub__header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  #top-brands-section .carai-brand-hub__count {
    justify-self: start;
  }

  #top-brands-section .carai-brand-hub__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body #road-help-page .rh-hero__truck {
    object-position: 68% center !important;
    opacity: .78 !important;
  }
}

@media (max-width: 900px) {
  html body #home-page > section.carai-home-hero-clean .carai-home-hero-bg {
    background:
      linear-gradient(180deg, rgba(4, 11, 21, .78) 0%, rgba(4, 11, 21, .96) 46%, rgba(4, 11, 21, 1) 100%),
      url("assets/images/home-hero-bmw-v3-20260726.jpg") 68% top / auto 360px no-repeat !important;
  }
}

@media (max-width: 720px) {
  #top-brands-section .carai-brand-hub {
    border-radius: 22px;
  }

  #top-brands-section .carai-brand-hub__header,
  #top-brands-section .carai-brand-hub__grid,
  #top-brands-section .carai-brand-hub__footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  #top-brands-section .carai-brand-hub__header {
    gap: 20px;
    padding-top: 22px;
    padding-bottom: 20px;
  }

  #top-brands-section .carai-brand-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  #top-brands-section .carai-brand-tile {
    min-height: 86px;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
    border-radius: 16px;
  }

  #top-brands-section .carai-brand-tile__logo {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  #top-brands-section .carai-brand-tile__logo .carai-brand-logo {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }

  #top-brands-section .carai-brand-tile__arrow {
    display: none;
  }

  #top-brands-section .carai-brand-tile__copy strong {
    font-size: 13px;
  }

  #top-brands-section .carai-brand-tile__copy small {
    font-size: 10.5px;
  }

  #top-brands-section .carai-brand-hub__footer {
    min-height: 66px;
    flex-wrap: wrap;
  }

  body #road-help-page .rh-hero::before {
    inset: 0 0 auto !important;
    height: 230px !important;
    background: linear-gradient(180deg, rgba(5, 10, 24, .08) 0%, rgba(5, 10, 24, .18) 48%, #070b18 100%) !important;
  }

  body #road-help-page .rh-hero {
    padding-top: 205px !important;
    background: #070b18 !important;
  }

  body #road-help-page .rh-hero__truck {
    inset: 0 0 auto !important;
    height: 230px !important;
    opacity: 1 !important;
    object-position: 70% center !important;
  }

  body #road-help-page .rh-hero__inner {
    padding-top: 26px !important;
    background: #070b18 !important;
  }

  body #road-help-page .rh-hero::after {
    display: none !important;
  }
}

@media (max-width: 420px) {
  #top-brands-section .carai-brand-hub__grid {
    grid-template-columns: 1fr !important;
  }

  #top-brands-section .carai-brand-tile {
    grid-template-columns: 50px minmax(0, 1fr) 30px;
  }

  #top-brands-section .carai-brand-tile__arrow {
    display: inline-flex;
  }
}

/* =========================================================
   HOME BMW + BRANDS MEGA MENU + PROFESSIONAL CTA BANNERS V2
   ========================================================= */

html body .carai-nav-bar {
  position: relative !important;
  overflow: visible !important;
  z-index: 80 !important;
}

html body header.carai-brand-menu-open {
  z-index: 9500 !important;
}

html body .carai-brand-nav-trigger {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  font: inherit !important;
  cursor: pointer !important;
}

html body .carai-brand-nav-trigger__chevron {
  margin-left: 3px;
  font-size: 10px;
  transition: transform .2s ease;
}

html body .carai-brand-nav-trigger.is-open {
  background: rgba(255, 255, 255, .2) !important;
  color: #fff !important;
}

html body .carai-brand-nav-trigger.is-open .carai-brand-nav-trigger__chevron {
  transform: rotate(180deg);
}

.carai-brand-mega-menu[hidden] {
  display: none !important;
}

.carai-brand-mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 90;
  width: 100%;
  max-height: min(720px, calc(100vh - 150px));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid rgba(255, 255, 255, .16);
  border-bottom: 1px solid #dbe4f0;
  background: rgba(245, 248, 252, .985);
  box-shadow: 0 28px 70px rgba(15, 23, 42, .28);
  backdrop-filter: blur(18px);
}

.carai-brand-mega-menu.is-open {
  display: block !important;
  animation: caraiBrandMenuIn .2s ease both;
}

@keyframes caraiBrandMenuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.carai-brand-mega-menu__shell {
  width: min(1540px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 28px;
}

.carai-brand-mega-menu__header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  gap: 28px;
  align-items: end;
  padding: 0 52px 20px 0;
  border-bottom: 1px solid #dce5ef;
}

.carai-brand-mega-menu__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.carai-brand-mega-menu__header h2 {
  margin: 7px 0 3px;
  color: #0f172a;
  font-size: clamp(25px, 2.2vw, 34px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -.025em;
}

.carai-brand-mega-menu__header p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.carai-brand-mega-menu__tools {
  display: grid;
  gap: 8px;
}

.carai-brand-mega-menu__search {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 46px 0 16px;
  border: 1px solid #ccd8e8;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 9px 25px rgba(15, 23, 42, .06);
}

.carai-brand-mega-menu__search > i {
  margin-right: 10px;
  color: #2563eb;
}

.carai-brand-mega-menu__search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}

.carai-brand-mega-menu__search button {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: #eef2f7;
  color: #64748b;
  cursor: pointer;
}

.carai-brand-mega-menu__tools > span {
  justify-self: end;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.carai-brand-mega-menu__tools > span strong {
  color: #0f172a;
}

.carai-brand-mega-menu__close {
  position: absolute;
  right: 0;
  top: 2px;
  width: 40px;
  height: 40px;
  border: 1px solid #d7e1ed;
  border-radius: 13px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.carai-brand-mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  padding-top: 20px;
}

.carai-brand-mega-item {
  min-width: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid #dce5ef;
  border-radius: 15px;
  background: #fff;
  color: #14213a;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(15, 23, 42, .035);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.carai-brand-mega-item:hover {
  transform: translateY(-2px);
  border-color: #8fb1ff;
  box-shadow: 0 13px 26px rgba(37, 99, 235, .13);
}

.carai-brand-mega-item__logo {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: #f4f7fb;
}

.carai-brand-mega-item__logo .carai-brand-logo {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  padding: 4px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.carai-brand-mega-item__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carai-brand-mega-item__copy {
  min-width: 0;
}

.carai-brand-mega-item__copy strong,
.carai-brand-mega-item__copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carai-brand-mega-item__copy strong {
  color: #15223a;
  font-size: 12.5px;
  line-height: 1.15;
  font-weight: 950;
  white-space: normal;
}

.carai-brand-mega-item__copy small {
  margin-top: 4px;
  color: #7a8aa0;
  font-size: 9.5px;
  line-height: 1.15;
  font-weight: 750;
  white-space: nowrap;
}

.carai-brand-mega-item > i {
  color: #2563eb;
  font-size: 10px;
}

.carai-brand-mega-menu__empty {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #64748b;
  text-align: center;
}

.carai-brand-mega-menu__empty[hidden] {
  display: none !important;
}

.carai-brand-mega-menu__empty i {
  color: #94a3b8;
  font-size: 24px;
}

.carai-brand-mega-menu__empty strong {
  color: #334155;
}

/* Долу остават само до 10 марки с реални части или автомобили. */
#top-brands-section .carai-brand-hub {
  border-radius: 24px !important;
}

#top-brands-section .carai-brand-hub__header {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  padding: 24px 28px 18px !important;
}

#top-brands-section .carai-brand-hub__title h2 {
  font-size: clamp(26px, 2.4vw, 34px) !important;
}

#top-brands-section .carai-brand-hub__tools,
#top-brands-section .carai-brand-hub__footer {
  display: none !important;
}

#top-brands-section .carai-brand-hub__grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
  padding: 20px 28px 26px !important;
}

#top-brands-section .carai-brand-tile {
  min-height: 86px !important;
}

/* Професионални партньорски и изкупуващи банери. */
html body div#home-page .carai-home-action-banners {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px !important;
  width: min(1440px, calc(100vw - 48px)) !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
}

html body div#home-page .carai-home-action-banner.caai-cta-card {
  min-height: 310px !important;
  display: flex !important;
  align-items: center !important;
  padding: 28px 30px !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  border-radius: 24px !important;
  background-position: center !important;
  background-size: cover !important;
  box-shadow: 0 22px 50px -20px rgba(15, 23, 42, .46) !important;
}

html body div#home-page .carai-home-action-banner.caai-cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  pointer-events: none;
}

html body div#home-page .carai-home-action-banner.caai-cta-card.caai-cta-card--partner {
  background-image:
    linear-gradient(90deg, rgba(2, 37, 30, .99) 0%, rgba(3, 55, 43, .96) 42%, rgba(3, 55, 43, .7) 60%, rgba(3, 55, 43, .12) 100%),
    url("assets/images/home-partner-banner-v2-20260726.jpg") !important;
}

html body div#home-page .carai-home-action-banner.caai-cta-card.caai-cta-card--buy {
  background-image:
    linear-gradient(90deg, rgba(55, 20, 8, .99) 0%, rgba(108, 38, 8, .95) 42%, rgba(139, 47, 7, .68) 61%, rgba(139, 47, 7, .12) 100%),
    url("assets/images/home-buy-car-banner-v2-20260726.jpg") !important;
}

html body div#home-page .caai-cta-card__body {
  max-width: 64% !important;
}

html body div#home-page .caai-cta-card__title {
  font-size: clamp(25px, 2.2vw, 34px) !important;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .34);
}

html body div#home-page .caai-cta-card__text {
  font-size: 14px !important;
  line-height: 1.52 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .32);
}

html body div#home-page .caai-cta-card__features {
  gap: 6px !important;
}

html body div#home-page .caai-cta-card__features li {
  height: 27px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
  backdrop-filter: blur(7px);
}

html body div#home-page .caai-cta-card__btn {
  display: inline-flex !important;
}

@media (max-width: 1280px) {
  .carai-brand-mega-menu__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  #top-brands-section .carai-brand-hub__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  html body div#home-page .caai-cta-card__body {
    max-width: 72% !important;
  }
}

@media (max-width: 960px) {
  .carai-brand-mega-menu__header {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .carai-brand-mega-menu__tools > span {
    justify-self: start;
  }

  .carai-brand-mega-menu__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #top-brands-section .carai-brand-hub__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  html body div#home-page .carai-home-action-banners {
    grid-template-columns: 1fr !important;
    width: min(760px, calc(100vw - 32px)) !important;
  }

  html body div#home-page .caai-cta-card__body {
    max-width: 62% !important;
  }
}

@media (max-width: 640px) {
  .carai-brand-mega-menu {
    max-height: calc(100vh - 118px);
  }

  .carai-brand-mega-menu__shell {
    width: calc(100% - 22px);
    padding: 16px 0 20px;
  }

  .carai-brand-mega-menu__header {
    padding-right: 44px;
    padding-bottom: 15px;
  }

  .carai-brand-mega-menu__header p {
    display: none;
  }

  .carai-brand-mega-menu__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 14px;
  }

  .carai-brand-mega-item {
    min-height: 70px;
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 9px;
  }

  .carai-brand-mega-item__logo {
    width: 38px;
    height: 38px;
  }

  .carai-brand-mega-item > i {
    display: none;
  }

  #top-brands-section .carai-brand-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 16px !important;
  }

  html body div#home-page .carai-home-action-banner.caai-cta-card {
    min-height: 350px !important;
    align-items: flex-end !important;
    padding: 24px 22px !important;
  }

  html body div#home-page .carai-home-action-banner.caai-cta-card.caai-cta-card--partner {
    background-image:
      linear-gradient(180deg, rgba(2, 37, 30, .08) 0%, rgba(2, 37, 30, .58) 38%, rgba(2, 37, 30, .99) 76%),
      url("assets/images/home-partner-banner-v2-20260726.jpg") !important;
    background-position: 66% center !important;
  }

  html body div#home-page .carai-home-action-banner.caai-cta-card.caai-cta-card--buy {
    background-image:
      linear-gradient(180deg, rgba(55, 20, 8, .06) 0%, rgba(88, 29, 7, .55) 38%, rgba(55, 20, 8, .99) 76%),
      url("assets/images/home-buy-car-banner-v2-20260726.jpg") !important;
    background-position: 68% center !important;
  }

  html body div#home-page .caai-cta-card__body {
    max-width: 100% !important;
  }

  html body div#home-page .caai-cta-card__text {
    font-size: 13px !important;
  }

  html body div#home-page .caai-cta-card__features {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .carai-brand-mega-menu__grid {
    grid-template-columns: 1fr;
  }

  #top-brands-section .carai-brand-hub__grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   INNER PAGE PHOTO HEROES — PARTNERS + VEHICLE PURCHASE
   ========================================================= */

.carai-page-photo-hero {
  isolation: isolate;
  min-height: 360px;
  display: flex;
  align-items: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 55px rgba(15, 23, 42, .2) !important;
}

.carai-partner-page-hero {
  background-image: url("assets/images/partner-page-hero-v2-20260726.jpg");
}

.carai-sell-car-page-hero {
  background-image: url("assets/images/sell-car-page-hero-v2-20260726.jpg");
}

.carai-page-photo-hero__shade {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(2, 18, 23, .99) 0%, rgba(2, 25, 29, .94) 34%, rgba(3, 25, 30, .52) 61%, rgba(3, 18, 24, .12) 100%),
    linear-gradient(0deg, rgba(3, 12, 20, .42), transparent 46%);
}

.carai-sell-car-page-hero .carai-page-photo-hero__shade {
  background:
    linear-gradient(90deg, rgba(9, 12, 27, .99) 0%, rgba(15, 16, 31, .94) 34%, rgba(41, 22, 24, .48) 62%, rgba(57, 26, 18, .1) 100%),
    linear-gradient(0deg, rgba(16, 10, 15, .4), transparent 48%);
}

.carai-page-photo-hero__content {
  width: min(64%, 700px);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .36);
}

.carai-page-photo-hero__content h2 {
  max-width: 620px;
  line-height: 1.04;
  letter-spacing: -.025em;
}

.carai-page-photo-hero__content p {
  max-width: 640px;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .carai-page-photo-hero {
    min-height: 480px;
    align-items: flex-end;
    background-position: 69% center;
  }

  .carai-page-photo-hero__shade,
  .carai-sell-car-page-hero .carai-page-photo-hero__shade {
    background:
      linear-gradient(180deg, rgba(4, 14, 23, .08) 0%, rgba(4, 14, 23, .28) 31%, rgba(4, 14, 23, .91) 63%, rgba(4, 14, 23, .995) 100%),
      linear-gradient(90deg, rgba(4, 14, 23, .45), rgba(4, 14, 23, .08));
  }

  .carai-sell-car-page-hero {
    background-position: 70% center;
  }

  .carai-page-photo-hero__content {
    width: 100%;
    padding-top: 245px !important;
  }

  .carai-page-photo-hero__content h2 {
    font-size: clamp(27px, 8vw, 36px) !important;
  }

  .carai-page-photo-hero__content p {
    font-size: 14px;
    line-height: 1.55;
  }
}
