/* ==================== ОСНОВНЫЕ СТИЛИ СЛАЙДЕРА ==================== */
.slider-container {
  position: relative;
  width: 100%;
  height: 977px;
  overflow: hidden;
}

.slider {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  width: 33.333%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(0, 0, 0, 0.3); */
  z-index: 1;
}

.slide-content {
  position: absolute;
  top: 31%;
  left: 16%;
  transform: translateY(-35%);
  color: white;
  z-index: 2;
  max-width: 1055px;
  text-align: left;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.slide-content h2 {
  color: #FFF;
  font-family: Onest;
  font-size: 70px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%;
}

.slide-content p {
  color: var(--White, #FFF);
  font-family: Onest;
  font-size: 48px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%;
  margin-top: 30px;
  margin-bottom: 46px;
}

.slide-btn {
  display: flex;
  width: 298px;
  height: 68px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  background: var(--Accent, #FC0);
  color: var(--Heading, #24272C);
  font-family: Onest;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  
  position: absolute;
  top: 48%;
  left: 16%;
}

.slide-btn:hover {
  background-color: #f59e0b;
  transform: scale(1.02);
}

.slider-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
  pointer-events: none;
}

.white-panel {
	display: flex;
	width: 1250px;
	padding: 22px 22px 22px 40px;
	justify-content: space-between;
	align-items: center;
	border-radius: 16px;
	background: var(--White, #FFF);
}

.panel-content {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.info-block {
  flex: 1;
  padding: 0 10px;
}

.info-block:last-child {
  border-right: none;
}

.info-block .label {
  color: var(--Heading, #24272C);
  font-family: Onest, Outfit;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.info-block .value {
  color: var(--Text, #696665);
  font-family: Onest;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  
}

.search-btn {
  display: flex;
  width: 204px;
  height: 50px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--Main-color, #FC0);
  color: var(--Heading, #24272C);
  font-family: Onest, Outfit;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  background-color: #fbbf24;
  border: none;
  cursor: pointer;
  pointer-events: auto;
}

.search-btn:hover {
  background-color: #f59e0b;
  transform: scale(1.02);
}

.search-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0);
}

.transparent-panel {
  margin-top: 31px;
  margin-bottom: 53px;
}

.car-types {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  backdrop-filter: blur(2px);
  color: #FFF;
  font-family: Onest;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  flex-wrap: wrap;
}

.car-type-item {
  display: flex;
  padding: 6px 16px;
  align-items: center;
  gap: 6px;
  border-radius: 16px;
  background: rgba(16, 16, 16, 0.10);
  white-space: nowrap;
}

.car-icon {
  width: 26px;
  height: 26px;
}

.slider-btn {
  display: flex;
  width: 68px;
  height: 68px;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(2px);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  cursor: pointer;
  z-index: 10;
  pointer-events: auto;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  color: #1e293b;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* ==================== АДАПТИВНЫЕ СТИЛИ СЛАЙДЕРА ==================== */
@media (max-width: 1400px) {
  .white-panel {
    width: 1100px;
    padding: 18px 18px 18px 30px;
  }

  .info-block .label {
    font-size: 14px;
  }

  .info-block .value {
    font-size: 12px;
  }

  .search-btn {
    width: 180px;
    height: 45px;
    font-size: 14px;
  }
}

@media (max-width: 1280px) {
  .white-panel {
    width: 1068px;
    padding: 15px 15px 15px 25px;
  }

  .panel-content {
    gap: 10px;
  }

  .info-block {
    padding: 0 5px;
  }

  .info-block .label {
    font-size: 13px;
  }

  .info-block .value {
    font-size: 11px;
  }

  .search-btn {
    width: 160px;
    height: 42px;
    font-size: 13px;
  }

  .car-type-item {
    padding: 4px 12px;
    font-size: 12px;
  }

  .car-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 1100px) {
  .white-panel {
    width: 90%;
    min-width: 900px;
  }
}

@media (max-width: 1024px) {
  .white-panel {
    min-width: auto;
    width: 95%;
    padding: 15px;
  }

  .panel-content {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .info-block {
    min-width: 180px;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px;
  }

  .info-block:last-child {
    border-bottom: none;
  }

  .search-btn {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .slide-content h2 {
    font-size: 2.5rem;
  }

  .slide-content {
    left: 5%;
    right: 5%;
  }

  .car-types {
    flex-wrap: wrap;
    justify-content: center;
  }
}








/* Для экранов до 768px - мобильные устройства */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  
  .slider-container {
    height: auto;
    position: relative;
    margin-bottom: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }
  
  .slider {
    height: 500px;
    position: relative;
    width: 100%;
    overflow: hidden;
  }
  
  .slide {
    position: relative;
    height: 500px;
    width: 100%;
    overflow: hidden;
  }
  
  /* Контент слайда - текст */
  .slide-content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 90%;
    z-index: 2;
  }
  
  .slide-content h2 {
/*     font-size: 24px; */
/*     line-height: 1.3; */
    color: var(--White, #FFF);
text-align: center;
font-family: Onest;
font-size: 38px;
font-style: normal;
font-weight: 600;
line-height: 100%; /* 38px */
  }
  
  .slide-content p {
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 0;
  }
  
  /* Кнопка на слайдере */
  .slide .slide-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    top: 65%;
    transform: translateX(-50%);
    width: 220px;
    height: 50px;
    font-size: 14px;
    z-index: 10;
    margin: 0;
  }
  
  /* Нижняя панель */
  .slider-bottom {
    position: relative;
    margin-top: 0;
    padding: 20px 15px;
    background: white;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .white-panel {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  /* Два столбца через grid */
  .white-panel .panel-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .white-panel .info-block {
    padding: 0;
    border: none;
    text-align: left;
    margin: 0;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
  }
  
  /* Кнопка на всю ширину */
  .white-panel .info-block:nth-child(5) {
    grid-column: span 2;
    margin-top: 5px;
    width: 100%;
  }
  
  .info-block .label {
    font-size: 13px;
    margin-bottom: 5px;
    color: #24272C;
    white-space: normal;
    word-wrap: break-word;
  }
  
  .info-block .value {
    font-size: 13px;
    color: #696665;
    white-space: normal;
    word-wrap: break-word;
  }
  
  /* Кнопка подобрать */
  .search-btn {
    width: 100%;
    height: 45px;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 10px;
    white-space: nowrap;
  }
  
  /* Скрываем transparent-panel */
  .transparent-panel {
    display: none;
  }
  
  /* Стрелки слайдера */
  .slider-btn {
    width: 35px;
    height: 35px;
  }
  
  .prev {
    left: 10px;
  }
  
  .next {
    right: 10px;
  }
}