body {
  background: radial-gradient(
    circle at 50% -20%,
    #181818 0%,
    #080808 38%,
    #000 75%
  );
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
}

.main {
  width: 100%;
  max-width: 1500px;

  margin: 0 auto;

  padding: 38px 30px 70px;

  display: grid;

  grid-template-columns: 240px minmax(0, 1fr);

  gap: 32px;
}

.sidebar {
  width: 100%;
}

.filters {
  background: rgba(17, 17, 17, 0.92);

  border: 1px solid #292929;

  padding: 22px;

  border-radius: 7px;

  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);

  position: sticky;
  top: 112px;
}

.filter-title {
  font-size: 19px;
  font-weight: 700;

  margin-bottom: 24px;

  padding-bottom: 16px;

  border-bottom: 1px solid #292929;
}

.filter-section {
  margin-bottom: 25px;
}

.filter-section:last-of-type {
  margin-bottom: 20px;
}

.filter-section-title {
  font-size: 11px;
  font-weight: 700;

  color: #aaa;

  text-transform: uppercase;

  margin-bottom: 10px;

  letter-spacing: 0.8px;
}

.search-input,
.number-input {
  width: 100%;
  height: 42px;

  background: #191919;

  border: 1px solid #343434;

  color: #fff;

  padding: 0 11px;

  outline: none;

  border-radius: 4px;

  font-size: 14px;

  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.search-input::placeholder,
.number-input::placeholder {
  color: #777;
}

.search-input:hover,
.number-input:hover {
  background: #1d1d1d;
  border-color: #444;
}

.search-input:focus,
.number-input:focus {
  background: #1c1c1c;
  border-color: #777;
}

.range-row {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 8px;
}

.checkbox-list {
  display: flex;

  flex-direction: column;

  gap: 10px;
}

.checkbox-item {
  display: flex;

  align-items: center;

  gap: 10px;

  font-size: 14px;

  color: #ddd;

  cursor: pointer;

  padding: 2px 0;

  transition: color 0.15s ease;
}

.checkbox-item:hover {
  color: #fff;
}

.checkbox-item input {
  width: 16px;
  height: 16px;

  margin: 0;

  cursor: pointer;

  accent-color: #fff;
}

.clear-button {
  width: 100%;
  height: 42px;

  background: #191919;

  border: 1px solid #3b3b3b;

  color: #fff;

  cursor: pointer;

  border-radius: 4px;

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

  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.clear-button:hover {
  background: #252525;

  border-color: #555;
}

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

.filter-options {
  display: contents;
}

.cars-section {
  min-width: 0;
}

.result-count {
  font-size: 18px;
  font-weight: 700;

  margin-bottom: 20px;

  color: #f5f5f5;
}

.cars-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 22px;
}

.car-card {
  display: block;

  text-decoration: none;

  color: #fff;

  background: #151515;

  border: 1px solid #292929;

  overflow: hidden;

  border-radius: 4px;

  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}

.car-card:hover {
  transform: translateY(-2px);

  border-color: #555;
}

.car-image-wrapper {
  width: 100%;

  height: 260px;

  background: #0d0d0d;

  overflow: hidden;
}

.car-image {
  width: 100%;

  height: 100%;

  display: block;

  object-fit: cover;
}

@media (max-width: 700px) {
  .car-image-wrapper {
    height: 200px;
  }
}

.car-content {
  padding: 17px;
}

.car-title {
  font-size: 19px;
  font-weight: 700;

  margin-bottom: 15px;

  line-height: 1.25;

  min-height: 24px;
}

.car-mobile-meta {
  display: none;
}

.car-info {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 8px;

  margin-bottom: 17px;
}

.info-box {
  border: 1px solid #555;

  padding: 9px 10px;

  min-height: 43px;

  display: flex;

  flex-direction: column;

  justify-content: center;

  background: #171717;
}

.info-label {
  font-size: 10px;

  color: #999;

  text-transform: uppercase;

  margin-bottom: 3px;
}

.info-value {
  font-size: 13px;

  color: #fff;

  font-weight: 600;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}

.price-container {
  border-top: 1px solid #292929;

  padding-top: 14px;
}

.price {
  font-size: 25px;

  font-weight: 800;

  line-height: 1.1;
}

.price-ex-vat {
  margin-top: 5px;

  color: #999;

  font-size: 13px;
}

.no-results {
  grid-column: 1 / -1;

  background: #111;

  border: 1px solid #292929;

  padding: 55px 30px;

  text-align: center;

  color: #888;

  border-radius: 5px;
}

.loading {
  grid-column: 1 / -1;

  padding: 70px 30px;

  text-align: center;

  color: #777;

  background: #101010;

  border: 1px solid #252525;

  border-radius: 5px;
}

.pagination {
  display: flex;

  justify-content: center;

  align-items: center;

  gap: 7px;

  margin-top: 35px;

  flex-wrap: wrap;
}

.page-button {
  min-width: 39px;

  height: 39px;

  background: #141414;

  border: 1px solid #333;

  color: #fff;

  cursor: pointer;

  border-radius: 4px;

  font-size: 13px;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.page-button:hover {
  background: #242424;

  border-color: #555;
}

.page-button.active {
  background: #fff;

  color: #000;

  border-color: #fff;

  font-weight: 700;
}

.page-button:disabled {
  opacity: 0.3;

  cursor: default;
}

.page-button:disabled:hover {
  background: #141414;
  border-color: #333;
}

@media (max-width: 1050px) {
  .main {
    grid-template-columns: 1fr;
  }
  .filters {
    position: static;
  }
  .cars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .main {
    padding: 24px 16px 56px;
  }
  .filters {
    padding: 18px;
  }
  .filter-title {
    display: none;
  }
  .mobile-filter-toggle {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 14px;
    border: 1px solid #3b3b3b;
    border-radius: 4px;
    color: #ffffff;
    background: #191919;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
  }
  .filter-options {
    display: none;
    padding-top: 22px;
  }
  .filter-options.is-open {
    display: block;
  }
  .pagination {
    gap: 4px;
    margin-top: 24px;
  }
  .page-button {
    min-width: 32px;
    height: 32px;
    font-size: 11px;
  }
  .cars-grid {
    grid-template-columns: 1fr;
  }
  .car-card {
    display: grid;
    grid-template-columns: 39% 61%;
    color: #ffffff;
    background: #151515;
    border-color: #292929;
    border-radius: 10px;
  }
  .car-image-wrapper {
    height: auto;
    min-height: 100%;
    background: #111111;
  }
  .car-content {
    padding: 13px 12px;
  }
  .car-title {
    min-height: 0;
    margin-bottom: 5px;
    overflow: hidden;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .car-mobile-meta {
    display: block;
    overflow: hidden;
    color: #c5c5c5;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .car-info {
    display: none;
  }
  .price-container {
    margin-top: 12px;
    padding-top: 10px;
    border-top-color: #292929;
  }
  .price {
    color: #ffffff;
    font-size: 20px;
  }
  .price-ex-vat {
    margin-top: 3px;
    color: #999999;
    font-size: 11px;
  }
}
