/* ========================================
   Компонент "Почему эксперты" — Легомен
   Все стили изолированы, префикс: .expert-why
   ======================================== */

.expert-why-component {
  width: 100%;
  padding: 60px 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.expert-why-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.expert-why-heading {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 40px 0;
  line-height: 1.3;
}

/* === Обёртка для карточек + стрелок === */
.expert-why-cards-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

/* Стрелки навигации */
.expert-why-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  z-index: 5;
  padding: 0;
}

.expert-why-arrow:hover {
  background: #f97316;
  color: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.expert-why-arrow:disabled,
.expert-why-arrow[style*="pointer-events: none"] {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.expert-why-arrow--left { left: -10px; }
.expert-why-arrow--right { right: -10px; }

.expert-why-arrow svg {
  width: 20px;
  height: 20px;
}

/* Контейнер карточек */
.expert-why-cards {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px 50px 20px; 
  scrollbar-width: none;
  max-width: 100%;
}

.expert-why-cards::-webkit-scrollbar {
  display: none;
}

/* Карточка */
.expert-why-card {
  flex: 0 0 calc(33.333% - 16px);
  max-width: calc(33.333% - 16px);
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.expert-why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.expert-why-icon-placeholder {
  width: 60px;
  height: 60px;
  background: #f1f5f9;
  border-radius: 50%;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.expert-why-icon {
  display: block;
  margin: 0 auto 20px;
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.expert-why-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.expert-why-description {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Индикатор прокрутки — видим всегда */
.expert-why-scroll-indicator {
  display: block;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin: 0 auto 25px;
  max-width: 400px;
  position: relative;
  overflow: hidden;
}

.expert-why-progress-bar {
  height: 100%;
  background: #c83030;
  width: 30%;
  border-radius: 2px;
  transition: width 0.2s ease;
}

/* === Адаптивность === */

@media (max-width: 1199px) {
  .expert-why-card {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
  .expert-why-arrow {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 576px) {
  .expert-why-cards-wrapper {
    padding: 0 10px;
  }
  
  .expert-why-arrow {
    display: none;
  }
  
  .expert-why-cards {
    padding: 10px 5px 20px;
  }
  
  .expert-why-card {
    flex: 0 0 calc(100% - 20px);
    max-width: calc(100% - 20px);
    padding: 24px 20px;
  }
  
  .expert-why-heading {
    font-size: 1.5rem;
  }
}