/* Секция слайдера - чистый вид */
.features-slider-section {
  padding: 40px 20px;
  background-color: #000;
  color: #fff;
  max-width: 800px;
  margin: 0 auto;
}

.slider-container {
  position: relative;
}

.slider-wrapper {
  position: relative;
  background: #000;
  overflow: hidden;
  min-height: 220px;
  height: 220px;
  margin-bottom: 8px;
}

/* Слайд */
.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.feature-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 30px;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
}

.feature-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Иконка слева - БЕЗ ФОНА, КРУПНЕЕ */
.feature-icon-container {
  flex: 0 0 30%;
  max-width: 140px;
  padding-right: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feature-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.feature-slide.active .feature-icon img {
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.08);
  }
}

/* Текст справа - ВЫРАВНИВАНИЕ ПО ШИРИНЕ */
.feature-content {
  flex: 0 0 70%;
  text-align: justify; /* Выравнивание по ширине */
  position: relative;
  overflow: hidden;
  padding-left: 10px;
}

.feature-title {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 15px;
  font-weight: 600;
  text-align: left;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

.feature-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fadb0a;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease 0.2s;
}

.feature-slide.active .feature-title::after {
  transform: scaleX(1);
}

.feature-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #ddd;
  max-height: 100px;
  overflow: hidden;
  text-align: justify; /* Выравнивание по ширине */
  text-justify: inter-word;
  hyphens: auto;
}

/* Стрелки навигации */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: #323232;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.slider-arrow:hover {
  background-color: #444;
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slider-arrow:disabled:hover {
  background-color: #323232;
  transform: translateY(-50%) scale(1);
}

.prev-slide {
  left: -50px;
}

.next-slide {
  right: -50px;
}

/* Таймер */
.progress-bar {
  width: 100%;
  height: 6px;
  background-color: #444;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background-color: #52ac62;
  border-radius: 3px;
  transition: none;
}

.progress-fill.paused {
  background-color: #777 !important;
}

/* Точки - МГНОВЕННОЕ ПЕРЕКЛЮЧЕНИЕ */
.slider-pagination {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.pagination-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #444;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  position: relative;
}

.pagination-dot:hover {
  background-color: #555;
  transform: scale(1.2);
}

.pagination-dot.active {
  background-color: #fadb0a;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(250, 219, 10, 0.5);
}

/* Анимация пульсации активной точки */
@keyframes dotPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(250, 219, 10, 0.7);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(250, 219, 10, 0);
  }
}

.pagination-dot.active {
  animation: dotPulse 2s infinite;
}

/* Адаптивность */
@media (max-width: 850px) {
  .features-slider-section {
    max-width: 95%;
    padding: 30px 15px;
  }
  
  .prev-slide {
    left: -40px;
  }
  
  .next-slide {
    right: -40px;
  }
}

@media (max-width: 768px) {
  .slider-wrapper {
    min-height: 250px;
    height: 250px;
  }
  
  .feature-slide {
    padding: 25px;
    flex-direction: column;
    text-align: center;
  }
  
  .feature-icon-container {
    flex: 0 0 auto;
    padding-right: 0;
    margin-bottom: 20px;
    max-width: 100%;
  }
  
  .feature-icon {
    width: 90px;
    height: 90px;
  }
  
  .feature-icon img {
    width: 70px;
    height: 70px;
  }
  
  .feature-content {
    flex: 0 0 auto;
    padding-left: 0;
    text-align: justify;
  }
  
  .feature-title {
    font-size: 1.4rem;
    text-align: center;
    display: block;
  }
  
  .feature-title::after {
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60px;
  }
  
  .feature-slide.active .feature-title::after {
    transform: translateX(-50%) scaleX(1);
  }
  
  .feature-description {
    font-size: 1rem;
    max-height: 120px;
    text-align: justify;
  }
  
  .slider-arrow {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .prev-slide {
    left: -35px;
  }
  
  .next-slide {
    right: -35px;
  }
}

@media (max-width: 480px) {
  .slider-wrapper {
    min-height: 280px;
    height: 280px;
  }
  
  .feature-slide {
    padding: 20px;
  }
  
  .feature-icon {
    width: 80px;
    height: 80px;
  }
  
  .feature-icon img {
    width: 60px;
    height: 60px;
  }
  
  .feature-title {
    font-size: 1.3rem;
  }
  
  .feature-description {
    font-size: 0.95rem;
    max-height: 130px;
  }
  
  .slider-arrow {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
  
  .prev-slide {
    left: -30px;
  }
  
  .next-slide {
    right: -30px;
  }
  
  .pagination-dot {
    width: 12px;
    height: 12px;
  }
}