/* Блок "Первые 24 часа после звонка" */

.first-day {
  padding: 56px 0 72px;
  background: var(--bg-alt, #f9fafb);
  border-bottom: 1px solid rgba(148, 163, 184, 0.30);
}

@media (min-width: 900px) {
  .first-day {
    padding: 72px 0 88px;
  }
}

.first-day-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 32px;
  align-items: flex-start;
}

.first-day-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2, #6b7280);
  margin-bottom: 12px;
}

.first-day-title {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text, #0f172a);
}

@media (min-width: 900px) {
  .first-day-title {
    font-size: 28px;
  }
}

.first-day-subtitle {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted, #4b5563);
}

/* Шаги таймлайна */

.first-day-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.first-day-step {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

/* Цветные полоски для шагов - ОБНОВЛЕНО */
.first-day-step:nth-child(1) {
  border-top: 3px solid #0ea5e9;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 60%);
}

.first-day-step:nth-child(2) {
  border-top: 3px solid #ef4444; /* Красный вместо фиолетового */
  background: linear-gradient(180deg, #fef2f2 0%, #ffffff 60%);
}

.first-day-step:nth-child(3) {
  border-top: 3px solid #22c55e;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 60%);
}

.step-time {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0ea5e9;
  margin-bottom: 8px;
}

.step-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
}

/* Круглые иконки-шаги с цифрами */

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid #0ea5e9;
  background: #ecfeff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #0284c7;
  flex: 0 0 auto;
}

.step-icon::before {
  content: "1";
}

.step-icon-2::before {
  content: "2";
}

.step-icon-3::before {
  content: "3";
}

.step-body {
  font-size: 14px;
  color: var(--muted, #4b5563);
}

.step-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text, #0f172a);
  font-size: 15px;
}

.step-body p {
  margin: 0;
  line-height: 1.5;
}

/* Показываем только десктоп текст по умолчанию */
.step-text-mobile {
  display: none;
}

.step-text-desktop {
  display: block;
}

/* Правая карточка-гарантия */

.first-day-side {
  display: flex;
  justify-content: flex-end;
}

@media (min-width: 900px) {
  .first-day-side {
    align-self: center;
  }
}

.first-day-card {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 18px;
  padding: 20px 20px 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.45);
  max-width: 360px;
}

.first-day-card-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #f9fafb;
}

.first-day-card-text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #cbd5f5;
}

.first-day-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: #e5e7eb;
}

.first-day-card-list li::before {
  content: "•";
  color: #38bdf8;
  margin-right: 6px;
}

.first-day-card .btn {
  width: 100%;
  justify-content: center;
}

/* Кнопка внутри тёмной карточки */

.first-day-card .btn.btn-primary {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #0f172a;
}

.first-day-card .btn.btn-primary:hover {
  background: #0284c7;
  border-color: #0284c7;
}

/* ========================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ======================================== */

@media (max-width: 900px) {
  .first-day {
    padding: 40px 0 56px;
  }

  .first-day-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .first-day-title {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .first-day-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* Компактные шаги */
  .first-day-steps {
    gap: 12px;
  }

  .first-day-step {
    padding: 12px 14px;
  }

  .step-time {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .step-main {
    gap: 10px;
  }

  .step-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .step-title {
    font-size: 14px;
    margin-bottom: 3px;
  }

  /* Показываем мобильный текст, скрываем десктопный */
  .step-text-desktop {
    display: none;
  }

  .step-text-mobile {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
  }

  /* Упрощаем карточку на мобилке */
  .first-day-side {
    justify-content: flex-start;
  }

  .first-day-card {
    max-width: 100%;
    padding: 16px;
  }

  .first-day-card-title {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .first-day-card-text {
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.5;
  }

  .first-day-card-list {
    font-size: 12px;
    gap: 4px;
    margin-bottom: 12px;
  }

  .first-day-card .btn {
    font-size: 14px;
    padding: 12px 16px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 400px) {
  .first-day-title {
    font-size: 20px;
  }

  .step-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .step-title {
    font-size: 13px;
  }

  .step-text-mobile {
    font-size: 12px;
  }
}
