/* Главная — timeline process + мини-калькулятор */

.home-process__timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: clamp(20px, 3vw, 32px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: home-process-step;
}

.home-process__timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  min-height: 100%;
}

.home-process__timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  width: 8px;
  height: 2px;
  background: var(--line);
  transform: translateY(-50%);
}

.home-process__timeline-when {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.home-process__timeline-step strong {
  font-size: 15px;
  line-height: 1.3;
}

.home-process__timeline-step span:last-child {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.home-process__estimate {
  margin-top: clamp(20px, 3vw, 28px);
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.home-process__estimate-field {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.home-process__estimate-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.home-process__estimate-out {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.home-process__estimate-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.home-process__no-obligation {
  margin: clamp(16px, 3vw, 24px) 0 0;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.lead__post-submit {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.hero-cinema__region {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.home-fork__no-plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.home-fork__hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .home-process__timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-process__timeline-step {
    border-radius: 0;
    border-bottom: none;
    /* Колонка срока: «ЗАПУСК» / «1–2 НЕД» не должны наезжать на strong */
    padding-left: 76px;
  }

  .home-process__timeline-step:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .home-process__timeline-step:last-child {
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .home-process__timeline-step:not(:last-child)::after {
    display: none;
  }

  .home-process__timeline-when {
    position: absolute;
    left: 12px;
    top: 16px;
    width: 54px;
    max-width: 54px;
    text-align: center;
    line-height: 1.15;
    font-size: 10px;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .home-process__timeline-step strong,
  .home-process__timeline-step span:last-child {
    position: relative;
    z-index: 1;
  }

  .home-process__estimate {
    max-width: none;
  }
}

@media (max-width: 768px) {
  body[data-page="landing"] .lead__inner {
    display: flex;
    flex-direction: column;
  }

  body[data-page="landing"] .upload-section .lead__form {
    order: -1;
  }

  /* Лицо читается, но форма остаётся первой */
  body[data-page="landing"] .upload-section .lead__visual--founder {
    order: 2;
    max-width: min(300px, 82vw);
    margin-inline: auto;
  }
}
