/*55555 ==================== ОСНОВНЫЕ СТИЛИ БЛОКА АВТОМОБИЛИ ==================== */
.cars-section {
  max-width: 1290px;
  margin: 60px auto;
  padding: 0 20px;
  background-color: #ffffff;
  position: relative;
}



.cars-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.cars-header h2 {
  color: #24272C;
  font-family: Onest;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.view-all-btn {
	/*
  display: flex;
  height: 38px;
  padding: 12px 16px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 14px;
  border: 1px solid var(--Line, #EDEDED);
  background-color: transparent;
  color: var(--Heading, #24272C);
  font-family: Onest;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin: 0 auto;
 */
   display: flex;
  padding: 16px 24px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 14px;
  border: 1px solid var(--Line, #EDEDED);
  color: var(--Heading, #24272C);
  font-family: Onest;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  background-color: #fff;
  cursor: pointer;
  margin: 0 auto; 
  
  
}



/*
.all-articles-btn {
  display: flex;
  padding: 16px 24px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 14px;
  border: 1px solid var(--Line, #EDEDED);
  color: var(--Heading, #24272C);
  font-family: Onest;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  background-color: #fff;
  cursor: pointer;
  margin: 0 auto;
}
*/



.view-all-btn:hover {
  background: #f5f5f5;
  border-color: #999;
}

.arrow-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0.3);
}

.cars-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: 0.2s;
  flex-shrink: 0;
}

.carousel-arrow:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.carousel-arrow.left {
  left: -22px;
}

.carousel-arrow.right {
  right: -22px;
}

.carousel-arrow svg {
  width: 24px;
  height: 24px;
  fill: #1e293b;
}

.cars-carousel-wrapper {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  padding: 5px 0;
}

.cars-carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.cars-grid {
  display: flex;
  gap: 30px;
  width: max-content;
  margin-bottom: 40px;
}

.car-card {
  width: 300px;
  height: 417px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e9eef3;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.car-card:hover {
  /* transform: translateY(-5px); */
  border-color: #cbd5e1;
}

.card-slider-container {
  position: relative;
  width: 300px;
  height: 225px;
  overflow: hidden;
}

.card-slider {
  display: flex;
  /* width: 400%; */
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.card-slide {
  width: 300px;
  height: 225px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.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;
}

.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;
}

.card-slider-btn:hover {
  background: #f59e0b;
}

.card-info {
  padding: 15px;
}

.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;
}

.car-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #64748b;
  color: var(--Text, #696665);
  font-family: Onest;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

.feature-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0.4);
}

.divider {
  width: 100%;
  height: 1px;
  background: #e2e8f0;
  margin: 12px 0;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  color: var(--Heading, #24272C);
  font-family: Onest;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.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;
}

.book-card-btn:hover {
  background: #1e293b;
  color: white;
}

/* ==================== АДАПТИВНЫЕ СТИЛИ БЛОКА АВТОМОБИЛИ ==================== */
@media (max-width: 1350px) {
  .carousel-arrow.left {
    left: 0px;
  }

  .carousel-arrow.right {
    right: 0px;
  }
}


/* Для экранов 1280px - уменьшаем карточки пропорционально */
@media (max-width: 1280px) {
.cars-section {
  max-width: 1100px;
}	
.cars-grid {
  gap: 20px;

}
.car-card {
  width: 250px;
  /* height: 417px; */

}
.card-slider-container {

  width: 250px;
  /* height: 225px; */

}

.price {
  font-size: 14px;
 }
.book-card-btn {
  height: 38px;
  padding: 10px;
  font-size: 11px;
 
}




	
}



@media (max-width: 900px) {
  .cars-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .carousel-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .car-card {
    width: 260px;
  }
}



/* Для экранов до 768px - мобильные устройства */
@media (max-width: 768px) {
  .cars-section {
    margin: 0 auto 40px auto;
    padding: 0 15px;
    position: relative;
    display: flex;
    flex-direction: column;
  }
  
  .cars-header {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-bottom: 20px;
  }
  
  .cars-header h2 {
    font-size: 28px;
    margin-bottom: 0;
  }
  
  /* Контейнер карусели */
  .cars-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
  }
  
  /* Кнопка "Смотреть все" после карусели */
  .view-all-btn {
    padding: 8px 16px;
    font-size: 12px;
    align-self: center;
    margin-top: 0;
  }
  
  /* Остальные стили для карусели... */
  .carousel-arrow {
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
  }
  
  .carousel-arrow.left {
    left: -10px;
  }
  
  .carousel-arrow.right {
    right: -10px;
  }
  
  .carousel-arrow svg {
    width: 20px;
    height: 20px;
    fill: #1e293b;
  }
  
  .cars-carousel-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    padding: 5px 0;
    scroll-snap-type: x mandatory;
  }
  
  .cars-carousel-wrapper::-webkit-scrollbar {
    display: none;
  }
  
  .cars-grid {
    display: flex;
    gap: 15px;
    width: 100%;
  }
  
  .car-card {
    width: calc(100% - 20px);
    max-width: none;
    min-width: calc(100% - 20px);
    height: auto;
    min-height: 380px;
    flex-shrink: 0;
    scroll-snap-align: center;
    margin: 0 10px;
  }
  
  .card-slider-container {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  
  .card-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
  }
  
  .card-info {
    padding: 15px;
  }
  
  .car-title {
    font-size: 18px;
  }
  
  .car-feature {
    font-size: 13px;
    gap: 8px;
  }
  
  .feature-icon {
    width: 16px;
    height: 16px;
  }
  
  .divider {
    margin: 10px 0;
  }
  
  .price {
    font-size: 18px;
  }
  
  .book-card-btn {
    height: 38px;
    padding: 8px 12px;
    font-size: 13px;
  }
}