.steps-header {
  text-align: center;
}

.steps-header h2 {
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 25px;
  line-height: 1.1;
  
}

.steps-header p {
  margin-bottom: 45px;
  color: var(--text-muted); 
  font-size: 18px;
}

.steps-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

/* Линия-трек в темной теме */
.steps-wrapper::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.05);
}

.progress-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  z-index: 2;
}

.step-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.step-item:nth-child(even) {
  flex-direction: row-reverse;
}

.step-image {
  width: 45%;
  height: 350px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  position: relative;
}

/* Добавляем легкое свечение поверх картинки */
.step-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  pointer-events: none;
  transition: 0.4s ease;
}



.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  filter: brightness(0.7);
}

.step-item:hover .step-image img {
  transform: scale(1.08);
  filter: brightness(0.9);
}

.step-content {
  width: 45%;
  position: relative;
}

.step-card {
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(15px);
  padding: 40px;
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  transition: 0.5s;
}

.step-card h4 {
  font-size: 26px;
  margin-bottom: 20px;
}

.step-card ul li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  color: var(--text-main);
  line-height: 1.5;
  
}



.step-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  z-index: 10;
  border: 3px solid var(--bg-dark);
}

@media (max-width: 992px) {
  .stack-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .step-image {
    display: none;
  }
  .step-content {
    width: 90%;
    margin-left: auto;
  }
  .steps-wrapper::before,
  .progress-line {
    left: 20px;
  }
  .step-marker {
    left: 20px;
  }
  .step-item:nth-child(even) {
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  .icons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .steps-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
  }

  .steps-wrapper {
    gap: 50px;
  }

  .step-card {
    padding: 25px;
    border-radius: 16px;
  }

  .step-card h4 {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .step-card ul li {
    font-size: 14px;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .steps-header h2 {
    font-size: 30px;
  }

  .steps-header p {
    font-size: 15px;
  }

  .steps-wrapper {
    gap: 40px;
  }

  .step-card {
    padding: 20px;
  }

  .step-card h4 {
    font-size: 20px;
  }
  
  .step-content {
    width: 85%;
  }
}
