.features {
  background: var(--bg);
  padding: 80px 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.features-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px;
  position: relative;
  background: var(--bg);
}

.features-heading {
  font-family: var(--font-main);
  font-size: 5rem;
  text-align: start;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 60px 0;
  line-height: 1.1;
}

.features-slideshow {
  position: relative;
  width: 100%;
}

.slideshow-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  animation: fadeSlide 0.5s ease;
}

.slideshow-slide.active {
  display: grid;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.slide-title {
  font-family: var(--font-main);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}

.slide-subtitle {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.4;
  margin: 0;
}

.slide-description {
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 500px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  font-family: var(--font-main);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.slide-closing {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin: 8px 0 0 0;
  line-height: 1.5;
}

.slideshow-controls {
  position: absolute;
  bottom: 5px;
  right: 40px;
  display: flex;
  align-items: center;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-btn {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.nav-btn svg {
  width: 24px;
  height: 24px;
}

.slide-counter {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  min-width: 40px;
  text-align: center;
}

@media (max-width: 1024px) {
  .features-container {
    padding: 60px 32px;
  }
  
  .slideshow-slide,
  .slideshow-slide.active {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .slide-image-wrapper {
    aspect-ratio: 16/9;
  }
  
  .slideshow-controls {
    left: 32px;
    right: 32px;
    bottom: 20px;
  }
}

@media (max-width: 640px) {
  .features {
    padding: 40px 0;
  }
  
  .features-container {
    padding: 40px 20px 100px;
  }
  
  .features-heading {
    font-size: 2rem;
    margin-bottom: 32px;
  }
  
  .slideshow-controls {
    right: 20px;
    left: 20px;
    justify-content: center;
  }
  
  .nav-btn {
    width: 40px;
    height: 40px;
  }
  
  .slide-title {
    font-size: 1.5rem;
  }
  
  .slide-subtitle {
    font-size: 1rem;
  }
  
  .slide-description {
    font-size: 0.9rem;
  }
  
  .feature-list li {
    font-size: 0.85rem;
  }
  
  .slide-closing {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .features-heading {
    font-size: 1.5rem;
  }
  
  .slide-image-wrapper {
    aspect-ratio: 4/3;
  }
}
