:root {
  --bg: #070707;
  --surface: #0d0d0d;
  --surface2: #121212;
  --text: #f7f7f5;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.11);
  --red: #f12b2f;
  --container: min(1380px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.lock {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: var(--container);
  margin: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 18px 0;
  background: rgba(7, 7, 7, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand-image-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-brand-logo {
  display: block;
  width: 168px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

.desktop-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.desktop-nav a {
  font-size: 14px;
  color: #bbb;
}

.desktop-nav a:hover,
.desktop-nav .active {
  color: #fff;
}

.btn {
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: #111;
}

.menu-btn,
.mobile-menu {
  display: none;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding: 190px 0 70px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "CATALOG";
  position: absolute;
  right: -20px;
  top: 65px;
  font-size: min(17vw, 250px);
  font-weight: 800;
  letter-spacing: -0.09em;
  color: rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.65fr;
  gap: 90px;
  align-items: end;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #b8b8b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--red);
}

.hero h1 {
  font-size: clamp(62px, 8vw, 118px);
  line-height: 0.88;
  letter-spacing: -0.07em;
  margin: 22px 0 0;
}

.hero h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
}

.hero-grid > p {
  color: #c8c8c8;
  line-height: 1.75;
  margin: 0 0 8px;
}

.stats {
  display: flex;
  gap: 34px;
  margin-top: 58px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #a9a9a9;
}

.stats span {
  padding-right: 34px;
  border-right: 1px solid var(--line);
}

.stats span:last-child {
  border: 0;
}

.stats strong {
  color: #fff;
  font-size: 18px;
  margin-right: 5px;
}


/* =========================================================
   CATALOG TOOLBAR
   ========================================================= */

.catalog-section {
  padding: 48px 0 110px;
}

.toolbar {
  position: sticky;
  top: 86px;
  z-index: 50;

  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 10px;

  padding: 10px;
  margin-bottom: 24px;

  background: rgba(7, 7, 7, 0.92);
  backdrop-filter: blur(18px);

  border: 1px solid var(--line);
  border-radius: 18px;
}

.search,
.sort,
.filters input,
.filters select {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101010;
  color: #f2f2f2;
  padding: 0 14px;
  outline: none;
}

.search::placeholder,
.filters input::placeholder {
  color: #8f8f8f;
}

.filter-toggle {
  display: none;
  background: #111;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
  padding: 0 16px;
  font-weight: 700;
}

.filter-toggle span {
  background: var(--red);
  border-radius: 50%;
  font-size: 10px;
  padding: 3px 6px;
}


/* =========================================================
   CATALOG LAYOUT
   ========================================================= */

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}


/* =========================================================
   FILTERS
   ========================================================= */

.filters {
  position: sticky;
  top: 166px;
  align-self: start;

  z-index: 40;
  overflow: visible;

  background: #0c0c0c;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}

.filters-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.filters-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.filters-head button {
  min-height: 38px;
  padding: 0 14px;

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.055);
  color: #fff;

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

.filters-head button:hover {
  background: rgba(241, 43, 47, 0.12);
  border-color: rgba(241, 43, 47, 0.5);
  transform: translateY(-1px);
}

.filters label {
  display: grid;
  gap: 7px;

  position: relative;

  color: #a8a8a8;
  font-size: 11px;

  margin-top: 14px;
}

.filters input,
.filters select {
  width: 100%;
  min-width: 0;
  height: 44px;
  font-size: 13px;
}

.pair {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);
  gap: 8px;
}

.pair > * {
  min-width: 0;
}


/* =========================================================
   CUSTOM SELECTS
   ========================================================= */

.native-select-hidden {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;

  width: 1px !important;
  height: 1px !important;

  padding: 0 !important;
  border: 0 !important;
}

.custom-select {
  position: relative;
  min-width: 0;
  width: 100%;
  z-index: 1;
}

.custom-select.open {
  z-index: 1000;
}

.custom-select-trigger {
  width: 100%;
  height: 48px;

  border: 1px solid var(--line);
  border-radius: 12px;

  background: #101010;
  color: #eee;

  padding: 0 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  text-align: left;
  cursor: pointer;

  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.filters .custom-select-trigger {
  height: 44px;
  font-size: 13px;
}

.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
  border-color: rgba(255, 255, 255, 0.24);
  background: #131313;
}

.custom-select.open .custom-select-trigger {
  border-color: rgba(241, 43, 47, 0.5);
  box-shadow: 0 0 0 3px rgba(241, 43, 47, 0.08);
}

.custom-select-arrow {
  font-size: 17px;
  color: #777;
  line-height: 1;

  transform: translateY(-2px);

  transition:
    transform 0.2s,
    color 0.2s;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg) translateY(2px);
  color: #fff;
}

.custom-select-menu {
  position: absolute;

  z-index: 1100;

  left: 0;
  right: 0;
  top: calc(100% + 7px);

  display: none;

  max-height: 290px;
  overflow-y: auto;
  overflow-x: hidden;

  padding: 7px;

  background: #111;

  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.72);
}

.custom-select.open .custom-select-menu {
  display: block;
}

.custom-select-option {
  width: 100%;
  min-height: 40px;

  border: 0;
  border-radius: 9px;

  background: transparent;
  color: #aaa;

  text-align: left;
  padding: 8px 11px;

  cursor: pointer;
  font-size: 13px;

  transition:
    background 0.15s,
    color 0.15s;
}

.custom-select-option:hover {
  background: #1a1a1a;
  color: #fff;
}

.custom-select-option.selected {
  background: rgba(241, 43, 47, 0.12);
  color: #fff;
}

.custom-select-option.selected::before {
  content: "\2713";
  color: var(--red);
  margin-right: 8px;
}

.custom-select.is-disabled {
  opacity: 0.5;
}

.custom-select.is-disabled
.custom-select-trigger {
  cursor: not-allowed;
}

.toolbar > .custom-select {
  min-width: 0;
}

.toolbar >
.custom-select
.custom-select-trigger {
  height: 48px;
}


/* =========================================================
   RESULTS
   ========================================================= */

.results {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.results-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  min-height: 44px;

  color: #aaa;
  font-size: 12px;
}

.results-head p {
  margin: 0;
}

.results-head strong {
  font-size: 18px;
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 14px;
}


/* =========================================================
   VEHICLE CARD
   ========================================================= */

.card {
  min-width: 0;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  background: #0d0d0d;

  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;

  cursor: pointer;

  transition:
    transform 0.3s,
    border-color 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(241, 43, 47, 0.42);
}

.image {
  position: relative;
  overflow: hidden;

  flex: 0 0 auto;

  aspect-ratio: 4 / 3;

  background: #151515;
}

.image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.5s;
}

.card:hover .image img {
  transform: scale(1.03);
}

.badge {
  position: absolute;

  left: 14px;
  top: 14px;

  background: rgba(0, 0, 0, 0.62);

  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;

  padding: 7px 9px;

  font-size: 10px;
  font-weight: 700;
}

.badge.available {
  background: var(--red);
  border-color: transparent;
}

.card-body {
  flex: 1;

  display: flex;
  flex-direction: column;

  padding: 20px;
}

.card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;

  gap: 16px;
}

.card-top > div:first-child {
  min-width: 0;
}

.card h2 {
  margin: 0;

  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.04em;

  overflow-wrap: anywhere;
}

.version {
  margin: 7px 0 0;

  color: #aaa;

  font-size: 12px;
  line-height: 1.45;

  min-height: 17px;
}

.price {
  font-size: 17px;
  font-weight: 800;

  line-height: 1.2;
  white-space: nowrap;
}

.specs {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap: 10px 16px;

  border-top: 1px solid var(--line);

  padding-top: 16px;
  margin-top: 20px;
}

.spec {
  min-width: 0;

  display: flex;
  justify-content: space-between;
  align-items: baseline;

  gap: 8px;

  font-size: 10px;
  color: #999;
}

.spec span {
  flex: 0 0 auto;
}

.spec strong {
  min-width: 0;

  color: #ededed;

  font-size: 11px;
  font-weight: 600;

  text-align: right;
  overflow-wrap: anywhere;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 14px;

  margin-top: auto;
  padding-top: 19px;

  color: #a5a5a5;

  font-size: 11px;
}

.card-foot span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.card-foot b {
  flex: 0 0 auto;
  color: #fff;
}


/* =========================================================
   EMPTY
   ========================================================= */

.empty {
  text-align: center;

  padding: 80px 20px;

  border: 1px solid var(--line);
  border-radius: 22px;
}

.empty span {
  color: var(--red);
  font-size: 11px;
  text-transform: uppercase;
}

.empty h2 {
  font-size: 34px;
  letter-spacing: -0.05em;
}


/* =========================================================
   CTA
   ========================================================= */

.cta {
  padding: 0 0 90px;
}

.cta-box {
  position: relative;

  display: grid;
  grid-template-columns: 1fr 0.65fr;

  gap: 60px;
  align-items: end;

  overflow: hidden;

  background: var(--red);

  border-radius: 34px;

  padding: 52px;
}

.cta-box::after {
  content: "MOVE";

  position: absolute;

  right: -20px;
  top: -70px;

  font-size: 220px;
  font-weight: 800;

  color: rgba(0, 0, 0, 0.06);

  letter-spacing: -0.08em;
}

.kicker.light {
  color: rgba(255, 255, 255, 0.72);
}

.kicker.light::before {
  background: #fff;
}

.cta h2 {
  font-size: clamp(42px, 5vw, 70px);
  line-height: 0.95;
  letter-spacing: -0.06em;

  margin: 16px 0 0;
}

.cta p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
}

.cta > div > div:last-child {
  position: relative;
  z-index: 2;
}


/* =========================================================
   CAR MODAL
   ========================================================= */

.modal {
  display: none;

  position: fixed;
  inset: 0;

  z-index: 300;

  place-items: center;

  padding: 22px;
}

.modal.open {
  display: grid;
}

.backdrop {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(9px);
}

.modal-card {
  position: relative;

  z-index: 2;

  width: min(1240px, calc(100vw - 44px));
  max-height: calc(100svh - 44px);

  overflow: auto;

  background: #0b0b0b;

  border: 1px solid var(--line);
  border-radius: 32px;

  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);

  scrollbar-width: thin;
  scrollbar-color:
    rgba(255, 255, 255, 0.28)
    transparent;
}

.modal-card::-webkit-scrollbar {
  width: 7px;
}

.modal-card::-webkit-scrollbar-track {
  background: transparent;
}

.modal-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.modal-close {
  position: sticky;
  float: right;

  top: 18px;
  right: 18px;

  z-index: 20;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  border: 1px solid var(--line);

  background: rgba(0, 0, 0, 0.72);
  color: #fff;

  font-size: 24px;

  cursor: pointer;
}

.car-detail-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.3fr)
    minmax(370px, 0.7fr);

  min-height:
    min(760px, calc(100svh - 44px));
}

.car-detail-media {
  min-width: 0;

  background: #080808;

  border-right: 1px solid var(--line);

  padding: 18px;
}


/* =========================================================
   MAIN GALLERY
   ========================================================= */

.gallery-main {
  position: relative;

  height:
    calc(min(100svh - 158px, 710px));

  overflow: hidden;

  background: #111;

  border-radius: 22px;

  touch-action: pan-y;
}

/* Keep the close control over the photo without displacing its image box. */
.gallery-main .photo-modal-close {
  position: absolute;
  float: none;
}

.gallery-main img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;

  user-select: none;
  -webkit-user-drag: none;
}

.fullscreen-btn {
  position: absolute;

  top: 14px;
  left: 14px;

  z-index: 8;

  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;

  background: rgba(5, 5, 5, 0.75);
  color: #fff;

  font-size: 0;

  cursor: pointer;

  backdrop-filter: blur(8px);

  transition:
    background 0.2s,
    transform 0.2s,
    border-color 0.2s;
}

/* Zoom + icon */
.fullscreen-btn::before {
  content: "+";

  font-size: 29px;
  font-weight: 400;
  line-height: 1;
}

.fullscreen-btn:hover {
  background: rgba(241, 43, 47, 0.92);
  border-color: transparent;

  transform: scale(1.05);
}

.thumbs {
  display: flex;

  gap: 9px;

  padding: 12px 0 0;

  overflow-x: auto;
  overflow-y: hidden;

  scrollbar-width: thin;
}

.thumb {
  flex: 0 0 auto;

  width: 82px;
  height: 58px;

  padding: 0;

  overflow: hidden;

  background: #111;

  border: 1px solid var(--line);
  border-radius: 11px;

  opacity: 0.62;

  cursor: pointer;

  transition:
    opacity 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.thumb img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.thumb:hover,
.thumb.active {
  opacity: 1;

  border-color: rgba(241, 43, 47, 0.65);

  box-shadow:
    0 0 0 2px rgba(241, 43, 47, 0.12);
}


/* =========================================================
   MODAL CONTENT
   ========================================================= */

.modal-content {
  min-width: 0;

  display: flex;
  flex-direction: column;

  padding: 68px 34px 34px;

  overflow: visible;
}

.detail-kicker {
  margin-bottom: 18px;

  color: #8f8f8f;

  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.detail-kicker::before {
  content: "";

  display: inline-block;

  width: 24px;
  height: 1px;

  margin-right: 10px;

  vertical-align: middle;

  background: var(--red);
}

.modal-head {
  display: block;
}

.modal-head h2 {
  margin: 0 0 10px;

  font-size: 48px;
  line-height: 0.95;

  letter-spacing: -0.05em;

  overflow-wrap: anywhere;
}

.modal-price {
  margin-top: 24px;

  font-size: 34px;
  font-weight: 800;
}

.quick-specs {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 1px;

  margin: 26px 0;

  overflow: hidden;

  background: var(--line);

  border: 1px solid var(--line);
  border-radius: 17px;
}

.quick-specs > div {
  background: #0d0d0d;
  padding: 16px;
}

.quick-specs span,
.detail-label,
.modal-spec span {
  display: block;

  color: #9d9d9d;

  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;

  margin-bottom: 7px;
}

.quick-specs b {
  font-size: 13px;
}

.detail-section {
  min-width: 0;

  padding-top: 22px;
  margin-top: 2px;

  border-top: 1px solid var(--line);
}

.modal-specs {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 1px;

  margin: 10px 0 0;

  overflow: hidden;

  background: var(--line);

  border: 1px solid var(--line);
  border-radius: 14px;
}

.modal-spec {
  background: #0d0d0d;

  padding: 13px 14px;
}

.modal-spec b {
  font-size: 13px;

  overflow-wrap: anywhere;
}

.description {
  margin: 12px 0 0;

  max-height: none;

  overflow: visible;

  padding-right: 0;

  color: #bcbcbc;

  font-size: 13px;
  line-height: 1.75;

  white-space: normal;
}


/* =========================================================
   EQUIPMENT
   ========================================================= */

.equipment-list {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin-top: 12px;
}

.equipment-item {
  display: inline-flex;
  align-items: center;

  min-height: 36px;

  padding: 8px 12px;

  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.045);

  color: #d7d7d7;

  font-size: 12px;
  line-height: 1.35;
}

.equipment-item::before {
  content: "\2713";

  margin-right: 7px;

  color: var(--red);

  font-size: 11px;
  font-weight: 800;
}


/* =========================================================
   MODAL ACTIONS
   ========================================================= */

.modal-actions {
  display: grid;

  gap: 10px;

  margin-top: auto;

  padding-top: 28px;
}

.modal-actions .btn {
  width: 100%;
}


/* =========================================================
   FULLSCREEN PHOTO VIEWER
   ========================================================= */

.photo-fullscreen {
  position: fixed;
  inset: 0;

  z-index: 99999;

  display: none;
}

.photo-fullscreen.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-fullscreen-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.97);

  backdrop-filter: blur(8px);
}

.photo-fullscreen-stage {
  position: relative;

  z-index: 2;

  width: 100vw;
  height: 100svh;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  touch-action: pan-y;
}

#fullscreenPhoto {
  display: block;

  max-width: 94vw;
  max-height: 92svh;

  width: auto;
  height: auto;

  object-fit: contain;

  user-select: none;
  -webkit-user-drag: none;
}

.photo-fullscreen-close {
  position: absolute;

  top: 22px;
  right: 28px;

  z-index: 5;

  width: 52px;
  height: 52px;

  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.2);

  background: rgba(15, 15, 15, 0.78);
  color: #fff;

  font-size: 30px;

  cursor: pointer;

  backdrop-filter: blur(10px);
}

.photo-fullscreen-nav {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  z-index: 5;

  width: 58px;
  height: 58px;

  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.2);

  background: rgba(15, 15, 15, 0.68);
  color: #fff;

  font-size: 42px;
  line-height: 1;

  cursor: pointer;

  backdrop-filter: blur(10px);
}

.photo-fullscreen-nav:hover {
  background: rgba(241, 43, 47, 0.92);
  border-color: transparent;
}

.photo-fullscreen-nav.prev {
  left: 24px;
}

.photo-fullscreen-nav.next {
  right: 24px;
}

.photo-fullscreen-counter {
  position: absolute;

  bottom: 24px;
  left: 50%;

  transform: translateX(-50%);

  z-index: 5;

  padding: 8px 14px;

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.65);

  color: #fff;

  font-size: 13px;
}


/* =========================================================
   FLOATING BACK TO TOP
   ========================================================= */

.back-to-top {
  position: fixed;

  right: 24px;
  bottom: 24px;

  z-index: 250;

  min-width: 132px;
  height: 52px;

  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;

  background: rgba(18, 18, 18, 0.92);
  color: #fff;

  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.4);

  backdrop-filter: blur(14px);

  font-size: 12px;
  font-weight: 700;

  cursor: pointer;

  opacity: 0;
  visibility: hidden;

  transform: translateY(12px);

  transition:
    opacity 0.25s,
    visibility 0.25s,
    transform 0.25s,
    background 0.2s,
    border-color 0.2s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--red);
  border-color: var(--red);
}

.back-to-top-arrow {
  font-size: 19px;
  line-height: 1;
}

.back-to-top-text {
  white-space: nowrap;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {
  .grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   MOBILE / TABLET
   ========================================================= */

@media (max-width: 900px) {

  :root {
    --container: min(100% - 32px, 850px);
  }

  .desktop-nav,
  .desktop-cta {
    display: none;
  }

  .menu-btn {
    display: flex;

    margin-left: auto;

    width: 44px;
    height: 44px;

    border: 1px solid var(--line);
    border-radius: 50%;

    background: #111;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 6px;
  }

  .menu-btn span {
    width: 17px;
    height: 1px;

    background: #fff;
  }

  .mobile-menu {
    display: none;

    position: absolute;

    left: 16px;
    right: 16px;
    top: 76px;

    background: #111;

    border: 1px solid var(--line);
    border-radius: 20px;

    padding: 12px;
  }

  .mobile-menu.open {
    display: grid;
  }

  .mobile-menu a {
    padding: 14px;

    border-bottom: 1px solid var(--line);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .toolbar {
    grid-template-columns: auto 1fr;
  }

  .filter-toggle {
    display: block;
  }

  .sort {
    grid-column: 1 / -1;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .filters {
    display: none;

    position: relative;
    top: auto;

    z-index: 60;
  }

  .filters.open {
    display: block;
  }

  .filters .custom-select.open {
    z-index: 1200;
  }

  .cta-box {
    grid-template-columns: 1fr;
  }

  .car-detail-grid {
    grid-template-columns: 1fr;
  }

  .car-detail-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .gallery-main {
    height: min(54vh, 520px);
  }

  .modal-content {
    padding: 28px 24px 30px;
  }

  .modal-actions {
    margin-top: 24px;
  }
}


/* =========================================================
   PHONE
   ========================================================= */

@media (max-width: 640px) {

  :root {
    --container: calc(100% - 28px);
  }

  .site-brand-logo {
    width: 132px;
    max-height: 40px;
  }

  .hero {
    padding: 130px 0 48px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .stats {
    gap: 14px;
    flex-wrap: wrap;
  }

  .stats span {
    padding-right: 14px;
  }


  /* Toolbar */

  .toolbar {
    top: 72px;

    grid-template-columns: 1fr auto;

    z-index: 70;
  }

  .search {
    grid-column: 1 / -1;
  }

  .sort {
    grid-column: auto;

    width: 150px;
  }


  /* Filters */

  .filters {
    padding: 18px;
  }

  .filters-head {
    margin-bottom: 18px;
  }

  .filters-head h2 {
    font-size: 22px;
  }

  .filters-head button {
    min-height: 40px;

    padding: 0 16px;

    font-size: 13px;
  }

  .pair {
    grid-template-columns: 1fr;
  }

  .custom-select-menu {
    position: fixed;

    left: 14px;
    right: 14px;
    top: auto;
    bottom: 14px;

    z-index: 9999;

    max-height: 52vh;

    border-radius: 18px;

    padding: 10px;

    box-shadow:
      0 0 0 100vmax rgba(0, 0, 0, 0.62),
      0 20px 60px rgba(0, 0, 0, 0.85);
  }

  .custom-select-option {
    min-height: 46px;
  }


  /* Results */

  .results-head {
    display: block;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }


  /* Card spacing fix */

  .card {
    border-radius: 22px;
  }

  .card-body {
    padding: 18px 18px 20px;
  }

  .card-top {
    grid-template-columns: minmax(0, 1fr) auto;

    gap: 12px;
  }

  .card h2 {
    font-size: 19px;
  }

  .price {
    font-size: 16px;
  }

  .version {
    margin-top: 6px;
  }

  .specs {
    margin-top: 17px;
    padding-top: 15px;

    gap: 11px 14px;
  }

  .card-foot {
    margin-top: 0;
    padding-top: 18px;
  }


  /* CTA */

  .cta-box {
    padding: 30px 24px;

    border-radius: 26px;
  }


  /* Modal */

  .modal {
    padding: 8px;
  }

  .modal-card {
    width: calc(100vw - 16px);
    max-height: calc(100svh - 16px);

    border-radius: 20px;
  }

  .modal-close {
    top: 10px;
    right: 10px;

    width: 40px;
    height: 40px;
  }

  .car-detail-media {
    padding: 8px;
  }

  .gallery-main {
    height: 300px;

    border-radius: 16px;

    touch-action: pan-y;
  }

  .fullscreen-btn {
    top: 10px;
    left: 10px;

    width: 44px;
    height: 44px;

    border-radius: 12px;
  }

  .fullscreen-btn::before {
    font-size: 28px;
  }

  .thumbs {
    gap: 7px;

    padding-top: 8px;
  }

  .thumb {
    width: 70px;
    height: 50px;
  }

  .modal-content {
    padding: 24px 18px 26px;
  }

  .detail-kicker {
    margin-bottom: 14px;
  }

  .modal-head h2 {
    font-size: 34px;
  }

  .modal-price {
    margin-top: 12px;

    font-size: 26px;
  }

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

  .modal-specs {
    grid-template-columns: 1fr 1fr;
  }

  .modal-actions {
    display: grid;
  }

  .modal-actions .btn {
    width: 100%;
  }


  /* Equipment */

  .equipment-list {
    gap: 6px;
  }

  .equipment-item {
    min-height: 34px;

    padding: 7px 10px;

    font-size: 11px;
  }


  /* Fullscreen */

  .photo-fullscreen-close {
    top: 14px;
    right: 14px;

    width: 46px;
    height: 46px;
  }

  .photo-fullscreen-nav {
    width: 46px;
    height: 46px;

    font-size: 32px;
  }

  .photo-fullscreen-nav.prev {
    left: 10px;
  }

  .photo-fullscreen-nav.next {
    right: 10px;
  }

  .photo-fullscreen-counter {
    bottom: 16px;
  }

  #fullscreenPhoto {
    max-width: 100vw;
    max-height: 100svh;
  }


  /* Floating back-to-top */

  .back-to-top {
    right: 14px;
    bottom: 14px;

    min-width: 0;
    width: 54px;
    height: 54px;

    padding: 0;

    border-radius: 50%;

    background: rgba(18, 18, 18, 0.94);
  }

  .back-to-top-arrow {
    font-size: 23px;
  }

  .back-to-top-text {
    display: none;
  }
}

/* Fullscreen zoom controls */

.photo-fullscreen-image-wrap {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: auto;
}

#fullscreenPhoto {
  transition: transform 0.2s ease;
  transform-origin: center center;
}

.photo-fullscreen-zoom {
  position: absolute;

  right: 28px;
  bottom: 24px;

  z-index: 6;

  display: flex;
  gap: 8px;
}

.photo-fullscreen-zoom button {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;

  background: rgba(15, 15, 15, 0.78);
  color: #fff;

  font-size: 26px;
  line-height: 1;

  cursor: pointer;

  backdrop-filter: blur(10px);

  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

.photo-fullscreen-zoom button:hover {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .photo-fullscreen-zoom {
    right: 14px;
    bottom: 14px;
  }

  .photo-fullscreen-zoom button {
    width: 46px;
    height: 46px;
  }

  .photo-fullscreen-counter {
    bottom: 20px;
  }
}

/* =========================================================
   MOVeAuto — FINAL MOBILE / UI FIXES
   ========================================================= */


/* ---------------------------------------------------------
   1. BACK TO TOP
   --------------------------------------------------------- */

.back-to-top {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 9990 !important;

  min-width: 150px !important;
  height: 56px !important;
  padding: 0 20px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;

  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 999px !important;

  background: #f12b2f !important;
  color: #fff !important;

  box-shadow:
    0 12px 35px rgba(0,0,0,.48),
    0 0 0 1px rgba(241,43,47,.12) !important;

  font-size: 13px !important;
  font-weight: 800 !important;

  cursor: pointer !important;

  opacity: 0 !important;
  visibility: hidden !important;

  transform: translateY(15px) !important;

  transition:
    opacity .25s ease,
    visibility .25s ease,
    transform .25s ease !important;
}

.back-to-top.visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.back-to-top-arrow {
  font-size: 21px !important;
  line-height: 1 !important;
}

.back-to-top-text {
  display: inline !important;
  white-space: nowrap !important;
}


/* ---------------------------------------------------------
   2. FILTER BUTTON
   --------------------------------------------------------- */

.filter-toggle {
  min-height: 54px !important;

  padding: 0 22px !important;

  border: 1px solid rgba(241,43,47,.45) !important;
  border-radius: 999px !important;

  background:
    rgba(241,43,47,.11) !important;

  color: #fff !important;

  font-size: 14px !important;
  font-weight: 800 !important;

  letter-spacing: .01em !important;

  cursor: pointer !important;

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.025) !important;
}

.filter-toggle::before {
  content: "☰";
  margin-right: 9px;

  color: var(--red);

  font-size: 15px;
  line-height: 1;
}

.filter-toggle:hover {
  background:
    rgba(241,43,47,.18) !important;

  border-color:
    rgba(241,43,47,.72) !important;
}

.filter-toggle span {
  margin-left: 8px !important;

  min-width: 20px !important;
  height: 20px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 5px !important;

  background: var(--red) !important;

  border-radius: 999px !important;

  color: #fff !important;

  font-size: 10px !important;
}


/* ---------------------------------------------------------
   3. FILTER HEADER
   --------------------------------------------------------- */

.filters-head {
  align-items: center !important;
  margin-bottom: 22px !important;
}

.filters-head h2 {
  margin: 0 !important;

  color: #fff !important;

  font-size: 25px !important;
  font-weight: 800 !important;
}

.filters-head button {
  min-height: 42px !important;

  padding: 0 17px !important;

  border:
    1px solid rgba(255,255,255,.16) !important;

  border-radius: 999px !important;

  background:
    rgba(255,255,255,.065) !important;

  color: #ddd !important;

  font-size: 13px !important;
  font-weight: 700 !important;
}


/* ---------------------------------------------------------
   4. FIX CUSTOM DROPDOWNS
   --------------------------------------------------------- */

.filters {
  position: relative;
  z-index: 60;

  overflow: visible !important;
}

.filters label {
  position: relative;
}

.filters .custom-select {
  position: relative !important;
  z-index: 1;
}

.filters .custom-select.open {
  z-index: 5000 !important;
}

.filters .custom-select-menu {
  position: absolute !important;

  left: 0 !important;
  right: 0 !important;
  top: calc(100% + 7px) !important;
  bottom: auto !important;

  z-index: 5100 !important;

  width: 100% !important;
  max-height: 260px !important;

  overflow-y: auto !important;

  padding: 7px !important;

  border:
    1px solid rgba(255,255,255,.14) !important;

  border-radius: 14px !important;

  background: #111 !important;

  box-shadow:
    0 18px 45px rgba(0,0,0,.75) !important;
}


/* Status is the first filter */
.filters-head + label {
  margin-top: 0 !important;
}


/* ---------------------------------------------------------
   5. CAR DETAIL — SPACING
   --------------------------------------------------------- */

.car-detail-media {
  padding-bottom: 14px !important;
}

.thumbs {
  padding-top: 10px !important;
  padding-bottom: 0 !important;
}

.modal-content {
  padding-top: 38px !important;
}

.detail-kicker {
  margin-top: 0 !important;
  margin-bottom: 13px !important;
}

.modal-head h2 {
  margin-top: 0 !important;
}


/* ---------------------------------------------------------
   6. MAIN PHOTO PLUS BUTTON
   --------------------------------------------------------- */

.fullscreen-btn {
  width: 48px !important;
  height: 48px !important;

  padding: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border:
    1px solid rgba(255,255,255,.22) !important;

  border-radius: 50% !important;

  background:
    rgba(12,12,12,.82) !important;

  color: #fff !important;

  box-shadow:
    0 8px 24px rgba(0,0,0,.32) !important;
}

.fullscreen-btn::before {
  content: "+" !important;

  display: block !important;

  font-size: 27px !important;
  font-weight: 400 !important;
  line-height: 1 !important;

  transform: translateY(-1px);
}


/*
  Hide the old text/icon inside the button.
  The + is drawn with ::before.
*/
.fullscreen-btn {
  font-size: 0 !important;
}


/* ---------------------------------------------------------
   7. FULLSCREEN VIEWER
   --------------------------------------------------------- */

.photo-fullscreen-stage {
  position: relative !important;

  width: 100vw !important;
  height: 100svh !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  overflow: hidden !important;

  background: #000 !important;

  touch-action: none !important;
}

.photo-fullscreen-image-wrap {
  position: absolute !important;
  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  overflow: hidden !important;

  touch-action: none !important;
}

#fullscreenPhoto {
  display: block !important;

  width: auto !important;
  height: auto !important;

  max-width: 100vw !important;
  max-height: 100svh !important;

  object-fit: contain !important;

  transform-origin: center center !important;

  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-user-drag: none !important;

  touch-action: none !important;

  cursor: grab;

  will-change: transform;
}

#fullscreenPhoto.is-dragging {
  cursor: grabbing;
}


/* ---------------------------------------------------------
   8. FULLSCREEN CONTROLS
   --------------------------------------------------------- */

.photo-fullscreen-close {
  top: 20px !important;
  right: 20px !important;

  z-index: 20 !important;

  width: 50px !important;
  height: 50px !important;
}

.photo-fullscreen-nav {
  z-index: 20 !important;
}

.photo-fullscreen-zoom {
  position: absolute !important;

  right: 22px !important;
  bottom: 22px !important;

  z-index: 20 !important;

  display: flex !important;
  gap: 8px !important;
}

.photo-fullscreen-zoom button {
  width: 50px !important;
  height: 50px !important;

  padding: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border:
    1px solid rgba(255,255,255,.2) !important;

  border-radius: 50% !important;

  background:
    rgba(15,15,15,.82) !important;

  color: #fff !important;

  font-size: 25px !important;
  line-height: 1 !important;

  backdrop-filter: blur(10px);
}

.photo-fullscreen-counter {
  z-index: 20 !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

  /* Back to top */

  .back-to-top {
    right: 16px !important;
    bottom: 18px !important;

    min-width: 0 !important;

    width: 58px !important;
    height: 58px !important;

    padding: 0 !important;

    border-radius: 50% !important;
  }

  .back-to-top-text {
    display: none !important;
  }

  .back-to-top-arrow {
    font-size: 25px !important;
  }


  /* Toolbar */

  .toolbar {
    gap: 12px !important;
    padding: 12px !important;
  }

  .filter-toggle {
    min-width: 150px !important;
    min-height: 56px !important;

    padding: 0 20px !important;

    justify-self: start;
  }


  /* Filter panel */

  .filters {
    margin-top: 4px !important;

    padding: 22px 18px !important;

    border-radius: 22px !important;
  }

  .filters-head {
    margin-bottom: 22px !important;
  }

  .filters-head h2 {
    font-size: 24px !important;
  }

  .filters-head button {
    min-height: 42px !important;

    padding: 0 16px !important;

    font-size: 13px !important;
  }


  /*
   IMPORTANT:
   override the previous position:fixed
   mobile dropdown rule.
  */

  .filters .custom-select-menu {
    position: absolute !important;

    left: 0 !important;
    right: 0 !important;

    top: calc(100% + 7px) !important;
    bottom: auto !important;

    width: 100% !important;

    max-height: 245px !important;

    padding: 7px !important;

    border-radius: 14px !important;

    box-shadow:
      0 16px 40px rgba(0,0,0,.8) !important;
  }

  .filters .custom-select-option {
    min-height: 44px !important;
  }


  /* Detail modal spacing */

  .car-detail-media {
    padding: 8px 8px 10px !important;
  }

  .gallery-main {
    height: auto !important;
    aspect-ratio: 4 / 3 !important;

    border-radius: 18px !important;
  }

  .gallery-main img {
    object-fit: contain !important;
  }

  .thumbs {
    padding-top: 8px !important;

    gap: 7px !important;
  }

  .thumb {
    width: 68px !important;
    height: 48px !important;
  }

  .modal-content {
    padding:
      20px 18px 26px !important;
  }

  .detail-kicker {
    margin-bottom: 12px !important;
  }


  /* Main photo + */

  .fullscreen-btn {
    top: 12px !important;
    left: 12px !important;

    width: 46px !important;
    height: 46px !important;
  }

  .fullscreen-btn::before {
    font-size: 25px !important;
  }


  /* Fullscreen */

  .photo-fullscreen-close {
    top: 14px !important;
    right: 14px !important;

    width: 48px !important;
    height: 48px !important;
  }

  .photo-fullscreen-nav {
    width: 46px !important;
    height: 46px !important;
  }

  .photo-fullscreen-nav.prev {
    left: 10px !important;
  }

  .photo-fullscreen-nav.next {
    right: 10px !important;
  }

  .photo-fullscreen-zoom {
    right: 14px !important;
    bottom: 14px !important;
  }

  .photo-fullscreen-zoom button {
    width: 46px !important;
    height: 46px !important;

    font-size: 24px !important;
  }

  .photo-fullscreen-counter {
    left: 14px !important;
    bottom: 18px !important;

    transform: none !important;
  }

  #fullscreenPhoto {
    max-width: 100vw !important;
    max-height: 100svh !important;
  }
}

/* =========================================================
   PRE-PRODUCTION — CONTRAST PASS
   ========================================================= */

/* Secondary text */
.results-head,
.version,
.card-foot {
  color: #b8b8b8;
}

/* Filter labels */
.filters label {
  color: #b5b5b5;
}

/* Inputs / search placeholders */
.search::placeholder,
.filters input::placeholder {
  color: #a0a0a0;
  opacity: 1;
}

/* Custom select */
.custom-select-trigger {
  color: #f2f2f2;
}

.custom-select-arrow {
  color: #a6a6a6;
}

.custom-select-option {
  color: #c2c2c2;
}

.custom-select-option:hover,
.custom-select-option.selected {
  color: #fff;
}

/* Car specifications */
.spec {
  color: #b0b0b0;
}

.spec strong {
  color: #f0f0f0;
}

/* Disabled controls stay visibly disabled */
.custom-select.is-disabled {
  opacity: 0.58;
}

/* =========================================================
   PRE-PRODUCTION — INTERACTION STATES
   ========================================================= */

/* Inputs */
.search,
.filters input {
  transition:
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.search:hover,
.filters input:hover {
  border-color: rgba(255,255,255,.24);
}

.search:focus,
.filters input:focus {
  border-color: rgba(241,43,47,.8);
  box-shadow: 0 0 0 3px rgba(241,43,47,.12);
  outline: none;
}

/* Custom selects */
.custom-select-trigger {
  transition:
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.custom-select:not(.is-disabled) .custom-select-trigger:hover {
  border-color: rgba(255,255,255,.24);
}

.custom-select.open .custom-select-trigger {
  border-color: rgba(241,43,47,.8);
  box-shadow: 0 0 0 3px rgba(241,43,47,.12);
}

/* Dropdown options */
.custom-select-option {
  transition:
    background .15s ease,
    color .15s ease;
}

.custom-select-option:hover {
  background: rgba(255,255,255,.07);
}

.custom-select-option.selected {
  background: rgba(241,43,47,.12);
  color: #fff;
}

/* Keyboard accessibility */
.custom-select-trigger:focus-visible,
.filters button:focus-visible,
.filter-toggle:focus-visible,
.reset-filters:focus-visible {
  outline: 2px solid #f12b2f;
  outline-offset: 3px;
}

/* Disabled */
.custom-select.is-disabled .custom-select-trigger {
  cursor: not-allowed;
}

/* =========================================================
   PRE-PRODUCTION — VEHICLE CARDS
   ========================================================= */

/* Card */
.card {
  border-color: rgba(255,255,255,.12);

  transition:
    transform .22s ease,
    border-color .22s ease,
    background .22s ease,
    box-shadow .22s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(241,43,47,.38);

  box-shadow:
    0 14px 34px rgba(0,0,0,.22);
}

/* Photo */
.image img {
  transition: transform .35s ease;
}

.card:hover .image img {
  transform: scale(1.02);
}

/* Vehicle name */
.card h2 {
  color: #fff;
  font-weight: 700;
  line-height: 1.16;
}

/* Version / trim */
.version {
  color: #b0b0b0;
}

/* Price */
.price {
  color: #fff;
  font-weight: 800;
  letter-spacing: -.02em;
}

/* Specs */
.specs {
  border-top-color: rgba(255,255,255,.12);
}

.spec {
  color: #aaa;
}

.spec strong {
  color: #f0f0f0;
  font-weight: 600;
}

/* Bottom row */
.card-foot {
  color: #aaa;
}

.card-foot b {
  color: #fff;
  font-weight: 650;

  transition: color .2s ease;
}

.card:hover .card-foot b {
  color: var(--red);
}

/* Keyboard navigation */
.card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* Do not use desktop lift effect on touch/mobile */
@media (hover: none) {
  .card:hover {
    transform: none;
    box-shadow: none;
  }

  .card:hover .image img {
    transform: none;
  }

  .card:hover .card-foot b {
    color: #fff;
  }
}

/* =========================================================
   PRE-PRODUCTION — GALLERY / FULLSCREEN FINAL
   Canonical controls for the current modal/gallery markup.
   ========================================================= */

/* Main modal photo: + */
.fullscreen-btn {
  top: 14px !important;
  left: 14px !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  border-radius: 50% !important;
  background: rgba(12,12,12,.84) !important;
  color: #fff !important;
  font-size: 0 !important;
  line-height: 1 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.30) !important;
  backdrop-filter: blur(10px);
}

.fullscreen-btn::before {
  content: "+" !important;
  display: block !important;
  font-size: 28px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}

/* Fullscreen stage */
.photo-fullscreen-stage,
.photo-fullscreen-image-wrap {
  touch-action: none !important;
  overscroll-behavior: contain;
}

#fullscreenPhoto {
  touch-action: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-user-drag: none !important;
}

/* Close: × — same outer size as + */
.photo-fullscreen-close {
  top: 20px !important;
  right: 20px !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  border-radius: 50% !important;
  background: rgba(12,12,12,.84) !important;
  color: #fff !important;
  font-size: 30px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.30) !important;
  backdrop-filter: blur(10px);
}

/* Previous / next */
.photo-fullscreen-nav {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  min-height: 54px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 50% !important;
  background: rgba(12,12,12,.76) !important;
  color: #fff !important;
  font-size: 38px !important;
  line-height: 1 !important;
}

/* Zoom − / + */
.photo-fullscreen-zoom button {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 50% !important;
  background: rgba(12,12,12,.82) !important;
  color: #fff !important;
  font-size: 25px !important;
  line-height: 1 !important;
}

.fullscreen-btn,
.photo-fullscreen-close,
.photo-fullscreen-nav,
.photo-fullscreen-zoom button {
  transition:
    background .18s ease,
    border-color .18s ease,
    transform .18s ease,
    opacity .18s ease !important;
}

@media (hover: hover) {
  .fullscreen-btn:hover,
  .photo-fullscreen-close:hover,
  .photo-fullscreen-nav:hover,
  .photo-fullscreen-zoom button:hover {
    background: rgba(241,43,47,.94) !important;
    border-color: rgba(241,43,47,.94) !important;
  }
}

.fullscreen-btn:focus-visible,
.photo-fullscreen-close:focus-visible,
.photo-fullscreen-nav:focus-visible,
.photo-fullscreen-zoom button:focus-visible {
  outline: 2px solid var(--red) !important;
  outline-offset: 3px !important;
}

@media (max-width: 640px) {
  .fullscreen-btn {
    top: 12px !important;
    left: 12px !important;
  }

  .fullscreen-btn,
  .photo-fullscreen-close {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
  }

  .fullscreen-btn::before {
    font-size: 26px !important;
  }

  .photo-fullscreen-close {
    top: 14px !important;
    right: 14px !important;
    font-size: 28px !important;
  }

  .photo-fullscreen-nav {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    font-size: 34px !important;
  }

  .photo-fullscreen-zoom button {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    font-size: 24px !important;
  }
}
/* =========================================================
   PRE-PRODUCTION — VEHICLE STATUS COLORS
   ========================================================= */

.badge.available {
  color: #ffffff;
  background: #168a4a;
  border-color: #168a4a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* В дорозі */
.badge.in-transit {
  color: #ffffff;
  background: #c77a12;
  border-color: #c77a12;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Продано */
.badge.sold {
  color: #ffffff;
  background: #666666;
  border-color: #666666;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   PRE-PRODUCTION — RESET BUTTON STATE
   ========================================================= */

#reset:disabled {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.025);
}

#reset:not(:disabled) {
  opacity: 1;
  cursor: pointer;
}

/* =========================================================
   PRE-PRODUCTION — EMPTY STATE
   ========================================================= */

.empty {
  min-height: 280px;
  padding: 46px 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
}

.empty span {
  margin-bottom: 10px;

  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.empty h2 {
  margin: 0 0 24px;

  max-width: 520px;

  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.empty .btn,
.empty button {
  min-height: 48px;
}

@media (max-width: 640px) {
  .empty {
    min-height: 250px;
    padding: 38px 20px;
    border-radius: 20px;
  }

  .empty span {
    margin-bottom: 9px;
    font-size: 10px;
  }

  .empty h2 {
    margin-bottom: 22px;

    max-width: 300px;

    font-size: 27px;
    line-height: 1.1;
  }
}
/* =========================================================
   PRE-PRODUCTION — MOBILE FILTER CHEVRON
   ========================================================= */

.filter-toggle-chevron {
  display: none;
}

@media (max-width: 860px) {
  .filter-toggle-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-left: 2px;

    font-size: 22px;
    line-height: 1;
    font-weight: 600;

    transition: transform 0.22s ease;
    transform: translateY(-2px);
  }

  .filter-toggle[aria-expanded="true"]
    .filter-toggle-chevron {
    transform: translateY(2px) rotate(180deg);
  }
}
/* =========================================================
   PRE-PRODUCTION — MOBILE FILTER TOGGLE CLEANUP
   ========================================================= */

@media (max-width: 860px) {
  .filter-toggle {
    gap: 14px;
  }

  .filter-toggle-label {
    color: #ffffff;
    background: transparent;
    border: 0;
    padding: 0;
    border-radius: 0;
  }

  .filter-toggle-chevron {
    width: auto;
    height: auto;
    margin-left: 0;

    color: #ffffff;
    background: transparent;
    border: 0;
    border-radius: 0;

    font-size: 20px;
  }
}
.empty[hidden] {
  display: none !important;
}

/* =========================================================
   PRE-PRODUCTION — FILTER TOGGLE FINAL
   ========================================================= */

@media (max-width: 860px) {
  .filter-toggle {
    min-height: 58px;
    padding: 0 20px;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: #fff;
    background: #111;
    border: 1px solid rgba(255, 45, 45, 0.65);
    border-radius: 18px;

    box-shadow: none;
  }

  .filter-toggle-label {
    padding: 0 !important;
    color: #fff !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  #filterBadge {
    min-width: 28px;
    height: 28px;
    padding: 0 7px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    background: var(--red);
    border-radius: 999px;
  }

  .filter-toggle-chevron {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin-left: 2px !important;

    color: #fff !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;

    font-size: 20px;
  }
}

/* =========================================================
   MOBILE FILTER TOGGLE — CANONICAL FINAL
   ========================================================= */

@media (max-width: 860px) {
  .toolbar .filter-toggle {
    min-width: 0 !important;
    min-height: 52px !important;
    width: auto !important;

    padding: 0 16px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;

    background: #111 !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 14px !important;

    color: #fff !important;

    box-shadow: none !important;
  }

  .toolbar .filter-toggle::before {
    content: "☰" !important;

    margin: 0 !important;

    color: var(--red) !important;
    background: transparent !important;

    font-size: 16px !important;
    line-height: 1 !important;
  }

  .toolbar .filter-toggle-label {
    padding: 0 !important;
    margin: 0 !important;

    color: #fff !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;

    font-size: 14px !important;
    font-weight: 700 !important;
  }

  .toolbar #filterBadge {
    min-width: 24px !important;
    width: 24px !important;
    height: 24px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    color: #fff !important;
    background: var(--red) !important;
    border: 0 !important;
    border-radius: 50% !important;

    font-size: 11px !important;
    font-weight: 800 !important;
  }

  .toolbar .filter-toggle-chevron {
    width: auto !important;
    height: auto !important;

    padding: 0 !important;
    margin: 0 0 0 2px !important;

    color: #aaa !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;

    font-size: 18px !important;
    line-height: 1 !important;
  }

  .toolbar .filter-toggle[aria-expanded="true"] {
    border-color: rgba(241,43,47,.65) !important;
    background: #151111 !important;
  }
}

@media (max-width: 860px) {
  .toolbar .filter-toggle {
    border: 1px solid rgba(255,255,255,.16) !important;
    box-shadow: none !important;
  }

  .toolbar .filter-toggle:hover {
    border-color: rgba(255,255,255,.28) !important;
    background: #151515 !important;
  }

  .toolbar .filter-toggle[aria-expanded="true"] {
    border-color: rgba(241,43,47,.65) !important;
    background: #151111 !important;
  }
}

/* =========================================================
   MOBILE FILTERS — COMPACT PAIRS
   ========================================================= */

@media (max-width: 640px) {
  .filters .pair {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .filters .pair > label {
    min-width: 0 !important;
  }

  .filters .pair input,
  .filters .pair select {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* =========================================================
   PRE-PRODUCTION — LEAD MODAL
   ========================================================= */

#leadModal {
  padding: 20px;
  z-index: 10000;
}

#leadModal .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

#leadModal .modal-card {
  position: relative;
  z-index: 2;

  width: min(560px, calc(100vw - 40px));
  max-height: calc(100svh - 40px);
  overflow-y: auto;

  padding: 42px;

  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;

  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}

#leadModal .modal-close {
  position: absolute;
  float: none;

  top: 18px;
  right: 18px;

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;

  background: #111;
  color: #fff;

  font-size: 24px;
  line-height: 1;

  cursor: pointer;
}

#leadModal .kicker {
  margin-bottom: 18px;
}

#leadModal h2 {
  margin: 0 50px 14px 0;

  color: #fff;

  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

#leadModal .modal-card > p {
  margin: 0 0 28px;

  max-width: 460px;

  color: #b8b8b8;

  font-size: 14px;
  line-height: 1.65;
}

#leadModal form {
  display: grid;
  gap: 18px;
}

#leadModal form label {
  display: grid;
  gap: 8px;

  color: #d0d0d0;

  font-size: 12px;
  font-weight: 600;
}

#leadModal form input,
#leadModal form textarea {
  width: 100%;

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;

  background: #111;
  color: #fff;

  font: inherit;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

#leadModal form input {
  height: 52px;
  padding: 0 15px;
}

#leadModal form textarea {
  min-height: 110px;

  padding: 14px 15px;

  resize: vertical;
}

#leadModal form input::placeholder,
#leadModal form textarea::placeholder {
  color: #888;
  opacity: 1;
}

#leadModal form input:focus,
#leadModal form textarea:focus {
  border-color: rgba(241, 43, 47, 0.8);
  box-shadow: 0 0 0 3px rgba(241, 43, 47, 0.12);
}

#leadModal .btn-submit {
  width: 100%;
  min-height: 54px;

  margin-top: 2px;
}

#leadModal .form-note {
  min-height: 20px;

  color: #b8b8b8;

  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  #leadModal {
    padding: 10px;
  }

  #leadModal .modal-card {
    width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);

    padding: 34px 20px 24px;

    border-radius: 22px;
  }

  #leadModal .modal-close {
    top: 14px;
    right: 14px;

    width: 42px;
    height: 42px;
  }

  #leadModal h2 {
    margin-right: 42px;

    font-size: 31px;
  }

  #leadModal .modal-card > p {
    margin-bottom: 22px;

    font-size: 13px;
  }

  #leadModal form {
    gap: 15px;
  }

  #leadModal form input {
    height: 50px;
  }

  #leadModal form textarea {
    min-height: 96px;
  }
}
/* =========================================================
   PRE-PRODUCTION — CATALOG VERTICAL SPACING
   ========================================================= */

.hero {
  padding-bottom: 42px;
}

.stats {
  margin-top: 36px;
}

.catalog-section {
  padding-top: 30px;
}

@media (max-width: 640px) {
  .hero {
    padding: 118px 0 34px;
  }

  .stats {
    margin-top: 28px;
    padding-top: 16px;
  }

  .catalog-section {
    padding-top: 22px;
  }
}
/* =========================================================
   PRE-PRODUCTION — DESKTOP FILTER SIDEBAR FIX
   ========================================================= */

@media (min-width: 901px) {
  .filters {
    position: sticky !important;
    top: 166px !important;
    align-self: start !important;
  }
}
/* =======================================================
   CAR DETAIL — FULL WIDTH BOTTOM CONTENT
   ======================================================= */

@media (min-width: 901px) {
  .car-detail-bottom {
    grid-column: 1 / -1;
    width: 100%;
    padding: 0 32px 32px;
    box-sizing: border-box;
  }

  .car-detail-bottom .detail-section {
    max-width: none;
  }

  .car-detail-bottom .modal-actions {
    max-width: 520px;
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  .car-detail-bottom {
    width: 100%;
  }
}