/* ============================================================
   Process (Вертикальный таймлайн с анимацией)
   ============================================================ */

.process {
  padding: 6rem 1rem;
  background: #FAFAFA;
  overflow: hidden; /* Чтобы анимация выезда не ломала скролл по горизонтали */
}

.process__inner {
  max-width: 1000px; /* Сделали чуть уже, чтобы вертикальный список смотрелся уютнее */
  margin: 0 auto;
}

.process__header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.process__title {
  font-family: Comfortaa, system-ui, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--c-primary, #1E1E1E);
  margin-bottom: 1rem;
}

.process__subtitle {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
}

/* --- Вертикальный таймлайн --- */

.process__timeline {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative; /* Важно для absolute линии */
}

/* Рисуем одну сплошную линию слева */
.process__timeline::before {
  content: "";
  position: absolute;
  top: 28px; /* Начало от центра первого кружка (56/2 = 28) */
  bottom: 28px; /* Конец у центра последнего кружка */
  left: 27px; /* Середина кружков (56/2 = 28, минус 1px) */
  width: 2px;
  background: #E5E5E5;
  z-index: 0; /* Линия под кружками */
}

/* Каждый шаг */
.process-step {
  display: flex;
  align-items: flex-start;
  position: relative; /* Это нужно для absolute позиционирования линии */

  /* Убираем padding-bottom, если он был, чтобы линия шла ровно */
}

/* Маркер (кружок с номером) и линия */
.process-step__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 2.5rem;
  flex-shrink: 0;
}

.process-step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FAFAFA;
  border: 2px solid #C8963E;
  color: #C8963E;
  font-family: Comfortaa, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

/* Контент шага */
.process-step__content {
  background: #FFF;
  border: 1px solid #E5E5E5;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgb(0 0 0 / 2%);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  flex-grow: 1;
}

.process-step__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 1rem;
  color: #C8963E;
}

.process-step__icon svg {
  width: 100%;
  height: 100%;
}

.process-step__title {
  font-family: Comfortaa, system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-primary, #1E1E1E);
  margin-bottom: 0.75rem;
}

.process-step__desc {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

/* --- Эффекты при наведении --- */
.process-step:hover .process-step__num {
  background: #C8963E;
  color: #FFF;
  transform: scale(1.1);
}

.process-step:hover .process-step__content {
  border-color: #C8963E;
  box-shadow: 0 10px 30px rgb(200 150 62 / 10%);
}

/* --- АНИМАЦИЯ ПРИ ПРОКРУТКЕ (Изначально скрыто) --- */
.reveal {
  opacity: 0;
  transform: translateX(-40px); /* Сдвигаем влево */
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* Класс, который добавляет JS, когда элемент появляется на экране */
.reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Задержка для контента, чтобы он выезжал чуть позже кружка (опционально) */
.reveal.is-visible .process-step__content {
  transition-delay: 0.1s;
}

/* Блок результата */
.process-step__result {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgb(200 150 62 / 8%); /* Очень светлый янтарный фон */
  border-left: 3px solid #C8963E;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

.process-step__result-label {
  display: block;
  font-family: Comfortaa, system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: #C8963E;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

/* --- Адаптив (Мобильные) --- */
@media (width <= 768px) {
  .process {
    padding: 4rem 1rem;
  }
  
  .process-step {
    flex-direction: column;
    align-items: flex-start;
  }

  .process-step__marker {
    flex-direction: row;
    margin-right: 0;
    margin-bottom: 1rem;
    width: 100%;
  }

  /* На мобильных линия идет горизонтально под кружком, либо убирается */
  .process-step__line {
    display: none; 
  }

  .process-step__content {
    padding: 1.5rem;
    width: 100%;
  }
}