/* ==================== ОСНОВНЫЕ СТИЛИ БЛОКА АВТОПАРК ==================== */
.fleet-section {
  max-width: 1290px;
  margin: 100px auto 0;
  padding: 0 20px;
  background-color: #ffffff;
  position: relative;
}

.fleet-title {
  font-size: 40px;
  font-weight: 700;
  color: #24272C;
  font-family: Onest;
  text-align: left;
  margin-bottom: 40px;
}

.fleet-grid {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin-bottom: 50px;
  flex-wrap: nowrap; /* Запрещаем перенос на всех экранах по умолчанию */
}

/* Стили для карточек */
.fleet-grid .car-card {
  width: 300px;
  height: 417px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e9eef3;
  transition: transform 0.2s;
}

.fleet-grid .car-card:hover {
  /* transform: translateY(-5px); */
  border-color: #cbd5e1;
}

.fleet-grid .card-slider-container {
  position: relative;
  width: 300px;
  height: 225px;
  overflow: hidden;
}

.fleet-grid .card-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.fleet-grid .card-slide {
  width: 300px;
  height: 225px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.fleet-grid .card-slider-buttons {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 2;
  pointer-events: none;
}

.fleet-grid .card-slider-btn {
  display: flex;
  padding: 6px 12px;
  align-items: center;
  gap: 10px;
  border-radius: 99px;
  background: var(--Main-color, #FC0);
  color: var(--Heading, #24272C);
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
  border: none;
}

.fleet-grid .card-slider-btn:hover {
  background: #f59e0b;
}

.fleet-grid .card-info {
  padding: 15px;
}

.fleet-grid .car-title {
  color: var(--Heading, #24272C);
  font-family: Outfit;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.fleet-grid .car-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--Text, #696665);
  font-family: Onest;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

.fleet-grid .feature-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0.4);
}

.fleet-grid .divider {
  width: 100%;
  height: 1px;
  background: #e2e8f0;
  margin: 12px 0;
}

.fleet-grid .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fleet-grid .price {
  color: var(--Heading, #24272C);
  font-family: Onest;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  white-space: nowrap;
}

.fleet-grid .book-card-btn {
  display: flex;
  height: 38px;
  padding: 10px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 14px;
  border: 1px solid var(--Heading, #24272C);
  background-color: transparent;
  color: var(--Heading, #24272C);
  font-family: Onest;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  cursor: pointer;
  white-space: nowrap;
}

.fleet-grid .book-card-btn:hover {
  background: #1e293b;
  color: white;
}

.view-all-fleet-btn {
display: flex;
  padding: 16px 24px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 14px;
  border: 1px solid var(--Line, #fff);
  margin: 0 auto;
  font-family: Onest;
  font-size: 18px;
  color: var(--Heading, #24272C);
  background: #fc0;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.view-all-fleet-btn:hover {
  background: #f59e0b;
  border-color: #999;
}

.view-all-fleet-btn .arrow-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0.3);
}

/* ==================== АДАПТИВНЫЕ СТИЛИ БЛОКА АВТОПАРК ==================== */

/* Для экранов 1280px - уменьшаем карточки пропорционально */
@media (max-width: 1280px) {
  .fleet-section {
    max-width: 1100px;
  }

  .fleet-grid {
    gap: 20px;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .fleet-title {
    font-size: 32px;
  }

  .fleet-grid .car-card {
    width: 235px;
    height: 327px;
  }

  .fleet-grid .card-slider-container {
    width: 235px;
    height: 176px;
  }

  .fleet-grid .card-slide {
    width: 235px;
    height: 176px;
  }

  .fleet-grid .card-info {
    padding: 10px;
  }

  .fleet-grid .car-title {
    font-size: 15px;
    margin-bottom: 5px;
  }

  .fleet-grid .car-feature {
    font-size: 11px;
    margin-bottom: 5px;
    gap: 6px;
  }

  .fleet-grid .feature-icon {
    width: 12px;
    height: 12px;
  }

  .fleet-grid .divider {
    margin: 8px 0;
  }

  .fleet-grid .price {
    font-size: 14px;
  }

  .fleet-grid .book-card-btn {
    height: 35px;
    padding: 5px 8px;
    font-size: 10px;
  }
}

/* Для экранов 1024px и меньше - разрешаем перенос */
@media (max-width: 1024px) {
  .fleet-section {
    max-width: 95%;
  }

  .fleet-grid {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .fleet-grid .car-card {
    width: 300px;
    height: 417px;
  }

  .fleet-grid .card-slider-container {
    width: 300px;
    height: 225px;
  }

  .fleet-grid .card-slide {
    width: 300px;
    height: 225px;
  }

  .fleet-grid .card-info {
    padding: 15px;
  }

  .fleet-grid .car-title {
    font-size: 18px;
  }

  .fleet-grid .car-feature {
    font-size: 14px;
  }

  .fleet-grid .price {
    font-size: 18px;
  }

  .fleet-grid .book-card-btn {
    height: 38px;
    font-size: 14px;
  }
}

/* Для экранов до 768px - мобильные устройства */
@media (max-width: 768px) {
  .fleet-section {
    margin: 60px auto 0;
    padding: 0 15px;
  }
  
  .fleet-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
  }
  
  .fleet-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .fleet-grid .car-card {
    width: 100%;
    max-width: 320px;
    height: auto;
    min-height: 380px;
    margin: 0 auto;
  }
  
  .fleet-grid .card-slider-container {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
  }
  
  .fleet-grid .card-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  /* Стили для точек навигации слайдера */
  .fleet-grid .card-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 5;
  }
  
  .fleet-grid .card-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: 0.2s;
  }
  
  .fleet-grid .card-slider-dot.active {
    background: #fbbf24;
    transform: scale(1.2);
    border-color: #fbbf24;
  }
  
  .fleet-grid .card-info {
    padding: 15px;
  }
  
  .fleet-grid .car-title {
    font-size: 16px;
  }
  
  .fleet-grid .car-feature {
    font-size: 12px;
    gap: 8px;
  }
  
  .fleet-grid .feature-icon {
    width: 14px;
    height: 14px;
  }
  
  .fleet-grid .divider {
    margin: 10px 0;
  }
  
  .fleet-grid .price {
    font-size: 16px;
  }
  
  /* Кнопка "Забронировать" с радиусом 14px */
  .fleet-grid .book-card-btn {
    height: 40px;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 14px;
    white-space: nowrap;
  }
  
  .view-all-fleet-btn {
    padding: 12px 20px;
    font-size: 18px;
    margin-top: 20px;
  }
}