body.home .catalog {
  background: var(--dark);
  color: var(--paper);
}

body.home .catalog-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 30px;
}

body.home .catalog-heading h2,
body.home .catalog-count {
  margin: 0;
}

body.home .catalog-count {
  color: #bdc2bc;
  font-size: 14px;
}

body.home .catalog-filters {
  margin-bottom: 30px;
  padding: 24px;
  border: 1px solid #424944;
  background: #222925;
}

body.home .filter-toggle {
  display: none;
}

body.home .filter-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body.home .filter-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 7px;
  color: #e6e8e2;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

body.home .filter-field select,
body.home .filter-field input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 10px;
  border: 1px solid #d5d8ce;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color-scheme: light;
}

body.home .filter-field input::placeholder {
  color: var(--muted);
  opacity: 1;
}

body.home .filter-field select:focus-visible,
body.home .filter-field input:focus-visible {
  outline: 3px solid #cf6066;
  outline-offset: 3px;
}

body.home .filter-clear,
body.home .filter-empty-clear {
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #f0c4c7;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

body.home .filter-clear {
  display: block;
  margin: 14px 0 -10px auto;
}

body.home .filter-clear:hover,
body.home .filter-empty-clear:hover {
  color: var(--white);
}

body.home .filter-clear:disabled {
  color: #b6bdb5;
  text-decoration: none;
  cursor: default;
}

body.home .catalog-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body.home .vehicle-card {
  min-width: 0;
  border-color: #e1e0d7;
  background: var(--paper);
  color: var(--ink);
}

body.home .vehicle-card[hidden] {
  display: none;
}

body.home .vehicle-card-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

body.home .vehicle-card-body {
  padding: 24px;
}

body.home .vehicle-card h3 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.7px;
}

body.home .vehicle-card [data-version] {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

body.home .vehicle-card .vehicle-price {
  margin: auto 0 20px;
  padding-top: 4px;
  color: var(--red);
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.7px;
}

body.home .vehicle-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}

body.home .vehicle-specs div {
  min-width: 0;
}

body.home .vehicle-specs dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

body.home .vehicle-specs dd {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body.home .vehicle-card-actions {
  margin-top: 0;
  padding-top: 18px;
}

body.home .vehicle-card .button {
  width: 100%;
  justify-content: space-between;
  min-height: 46px;
}

body.home .vehicle-card .button:focus-visible {
  outline-color: var(--red);
}

body.home .catalog-empty {
  margin: 0;
  padding: 40px 24px;
  border: 1px solid #424944;
  text-align: center;
  color: #d6dbd3;
}

body.home .catalog-empty p {
  margin-bottom: 8px;
}

body.home .catalog-empty[hidden] {
  display: none;
}

@media (min-width: 1024px) {
  body.home .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  body.home .filter-fields {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 767px) {
  body.home .catalog-heading {
    margin-bottom: 22px;
  }

  body.home .catalog-filters {
    padding: 0;
    margin-bottom: 22px;
  }

  body.home .filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    color: var(--paper);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }

  body.home [data-filter-badge] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding-inline: 5px;
    background: var(--red);
    color: var(--white);
    font-size: 11px;
    line-height: 1;
  }

  body.home [data-filter-badge][hidden] {
    display: none;
  }

  body.home .filter-chevron {
    width: 8px;
    height: 8px;
    margin: -4px 3px 0 auto;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
  }

  body.home .filter-toggle[aria-expanded="true"] .filter-chevron {
    margin-top: 4px;
    transform: rotate(225deg);
  }

  body.home .filter-panel {
    padding: 4px 16px 20px;
  }

  body.home .filter-toggle[aria-expanded="false"] ~ .filter-panel {
    display: none;
  }

  body.home .filter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  body.home .filter-model {
    grid-column: 1 / -1;
  }

  body.home .filter-field select,
  body.home .filter-field input {
    font-size: 16px;
  }

  body.home .catalog-grid {
    gap: 14px;
  }

  body.home .vehicle-card-body {
    padding: 16px;
  }

  body.home .vehicle-card h3 {
    font-size: 19px;
    letter-spacing: -0.4px;
  }

  body.home .vehicle-card [data-version] {
    margin-bottom: 14px;
    font-size: 12px;
  }

  body.home .vehicle-card .vehicle-price {
    margin-bottom: 16px;
    font-size: 22px;
  }

  body.home .vehicle-specs {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 12px;
  }

  body.home .vehicle-specs div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 2px 8px;
  }

  body.home .vehicle-specs dt {
    margin: 0;
  }

  body.home .vehicle-specs dd {
    font-size: 11px;
  }

  body.home .vehicle-card-actions {
    padding-top: 14px;
  }

  body.home .vehicle-card .button {
    gap: 8px;
    padding-inline: 12px;
  }
}

@media (max-width: 359px) {
  body.home .filter-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  body.home .catalog-grid {
    gap: 10px;
  }

  body.home .vehicle-card-body {
    padding: 11px;
  }

  body.home .vehicle-card h3 {
    font-size: 16px;
  }

  body.home .vehicle-card .vehicle-price {
    font-size: 18px;
    letter-spacing: -0.5px;
  }

  body.home .vehicle-card .button {
    padding-inline: 9px;
    font-size: 11px;
  }
}
