/* --- Секция: Наш автопарк --- */
.fleet {
  background-color: #f4f8fb;
  /* Светло-голубой фон как на макете */
  position: relative;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #0b1f40;
  margin-bottom: 23px;
  display: flex;
  align-items: center;
}

.title-accent {
  display: inline-block;
  width: 4px;
  height: 28px;
  background-color: #ea1d2c;
  margin-right: 12px;
  border-radius: 2px;
}

/* Swiper Контейнер */
.fleet-swiper {
  padding-bottom: 50px;
  /* Место под пагинацию */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.fleet-swiper.swiper-initialized {
  opacity: 1;
  visibility: visible;
  overflow: visible !important;
  /* Чтобы тени и кнопки не обрезались */
}

/* Фикс "прыгающих" карточек при загрузке (FOUC) */
.fleet-swiper:not(.swiper-initialized) .swiper-slide {
  display: none;
}
.fleet-swiper:not(.swiper-initialized) .swiper-slide:nth-child(1),
.fleet-swiper:not(.swiper-initialized) .swiper-slide:nth-child(2),
.fleet-swiper:not(.swiper-initialized) .swiper-slide:nth-child(3),
.fleet-swiper:not(.swiper-initialized) .swiper-slide:nth-child(4) {
  display: block;
  width: 25%;
}
.fleet-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: 20px;
  overflow: hidden;
}

/* Карточка */
.fleet-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fleet-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.fleet-card__image {
  position: relative;
  background-color: #dbe4ed;
  /* Серый/голубой фон под фургоном */
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 220px;
}

.fleet-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fleet-card__tags {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  transform: translateY(50%);
  /* Опускаем на половину высоты, чтобы торчало из картинки */
  padding-left: 20px;
  width: 100%;
}

.fleet-card__tag {
  position: relative;
  padding: 8px 22px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}

.fleet-card__tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ff002b;
  border-radius: 12px 4px 12px 4px;
  transform: skewX(-15deg);
  transform-origin: center;
  z-index: -1;
}

.fleet-card__content {
  padding: 25px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.fleet-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #0b1f40;
  margin-bottom: 12px;
}

.fleet-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  flex: 1;
}

.fleet-card__features li {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #4a5c72;
  margin-bottom: 8px;
  font-weight: 600;
}

.fleet-card__features li i {
  color: #175ea8;
  width: 20px;
  margin-right: 10px;
  font-size: 16px;
  text-align: center;
}

.fleet-card__btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 0;
  border: 2px solid #3c82f6;
  /* Синяя обводка */
  color: #3c82f6;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.fleet-card__btn:hover {
  background-color: #3c82f6;
  color: #fff;
}

/* Навигация Свайпера */
.fleet-prev,
.fleet-next {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  border: none !important;
  top: calc(50% - 25px);
  /* Центрируем относительно карточек, не учитывая нижний padding */
  transform: translateY(-50%);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 24px rgba(23, 94, 168, 0.15) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  color: #175ea8 !important;
  --swiper-navigation-size: 16px;
  /* Уменьшаем размер самой галочки */
}

.fleet-prev:hover,
.fleet-next:hover,
.fleet-prev:active,
.fleet-next:active {
  background-color: #175ea8 !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(23, 94, 168, 0.3) !important;
}

.fleet-prev::after,
.fleet-next::after {
  /* Оставляем нативные стрелки свайпера, делаем их чуть жирнее */
  font-weight: 800;
}

.fleet-prev {
  left: -65px !important;
  /* Выносим за пределы карточек влево */
}

.fleet-next {
  right: -65px !important;
  /* Выносим за пределы карточек вправо */
}

/* Полностью скрываем стрелку, если дальше листать некуда (Swiper добавляет этот класс) */
.fleet-swiper .swiper-button-disabled {
  opacity: 0 !important;
  visibility: hidden !important;
}

.swiper-pagination-bullet {
  background: #c2d6eb;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #3c82f6;
}

/* Адаптивность */
@media (max-width: 1400px) {

  /* Возвращаем стрелки внутрь слайдера, чтобы они не уехали за экран на ноутбуках */
  .fleet-prev {
    left: 10px !important;
  }

  .fleet-next {
    right: 10px !important;
  }
}

@media (max-width: 992px) {
  .section-title {
    font-size: 29px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 26px;
  }

  .fleet-card__image {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 22px;
  }

  /* Показывать полупрозрачную стрелку вправо как подсказку */
  .fleet-prev {
    display: none !important;
  }

  @keyframes pulse-arrow {
    0% {
      opacity: 0.1;
    }

    50% {
      opacity: 0.7;
    }

    100% {
      opacity: 0.1;
    }
  }

  .fleet-next {
    display: flex !important;
    right: 5px !important;
    pointer-events: auto;
    /* Теперь кнопку можно нажать для свайпа */
    animation: pulse-arrow 2.5s infinite ease-in-out !important;
  }

  /* Скрываем полностью, когда начался свайп */
  .fleet-swiper.has-swiped .fleet-next,
  .fleet-swiper.has-swiped .fleet-prev {
    display: none !important;
  }
}