/* Изолированные стили для компонента */
.expert-steps-component {
  width: 100%;
  background-color: #f8f9fa;
  padding: 40px 0;
  box-sizing: border-box;
}

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

.expert-steps-heading {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.3;
}

.expert-steps-grid {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

/* Линия между шагами */
.expert-steps-grid::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 120px;
  right: 120px;
  height: 2px;
  z-index: 1;
  border-top: 2px dashed #0D96F7;
}

/* Контейнер для шагов */
.expert-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
  padding: 0 10px;
}

.expert-step-number {
  width: 50px;
  height: 50px;
  background: #0D96F7;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 auto 15px;
  font-size: 18px;
}

.expert-step-description {
  font-size: 18px;
  line-height: 1.6;
  max-width: 250px;
  margin: 0 auto;
  text-align: center;
}

.expert-steps-button {
  display: block;
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  background: #2196f3;
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.expert-steps-button:hover {
  background: #1976d2;
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* === Модальное окно (универсальные стили) === */
.expert-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

.expert-modal {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: expertModalFadeIn 0.3s ease;
}

@keyframes expertModalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.expert-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f1f1f1;
  border-radius: 50%;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10;
}

.expert-modal-close:hover {
  background: #e0e0e0;
  color: #333;
}

.expert-modal-content {
  padding: 40px 30px 30px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .expert-modal {
    max-width: 100%;
    border-radius: 12px;
  }
  .expert-modal-content {
    padding: 50px 20px 20px;
  }
  .expert-modal-close {
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    font-size: 20px;
  }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .expert-steps-heading {
    font-size: 24px;
  }
  
  .expert-steps-grid {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 40px;
  }
  
  .expert-steps-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    bottom: 0;
    width: 2px;
    z-index: 1;
    border-left: 2px dashed #0D96F7;
  }
  
  .expert-step {
    margin-bottom: 40px;
    text-align: left;
    position: relative;
    padding-left: 35px;
  }
  
  .expert-step-number {
    width: 50px;
    height: 50px;
    font-size: 18px;
    position: absolute;
    left: -50px;
    top: 0;
  }
  
  .expert-step-description {
    font-size: 15px;
    max-width: 100%;
    text-align: left;
    margin: 10px 0 0 0;
    padding-left: 5px;
  }
}