/* ===== Стиль "лист бумаги" для шагов (улучшенный вариант) ===== */
.steps-paper {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.steps-paper h2 {
  font-size: 2rem;
  text-align: left;
  margin-bottom: 20px;
}

.steps-paper .section-intro,
.steps-paper .section-outro {
  color: #333;
  text-align: left;
  margin-bottom: 40px;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Контейнер карточек */
.steps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  justify-content: flex-start;
  align-items: stretch;
}

/* ===== Каждая карточка как "лист" ===== */
.step-card {
  position: relative;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(145deg, #fffdf2, #fff9e6);
  border-radius: 12px;
  padding: 30px 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* Цветная линия сверху карточки */
.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background: linear-gradient(135deg, #0056b3, #007bff);
  border-radius: 12px 12px 0 0;
}

.step-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(145deg, #fffef5, #fff9e0);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* ===== Номер ===== */
.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0056b3, #007bff);
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15), inset 0 0 6px rgba(255,255,255,0.3);
  border: 2px solid rgba(255,255,255,0.4);
}

/* ===== Контент ===== */
.step-content h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #222;
}

.step-content p {
  margin: 0;
  color: #000;
  line-height: 1.7;
  font-size: 1rem;
}

/* ===== Завершающий блок ===== */
.section-outro {
  background: #f8f8f0;
  border-left: 4px solid #007bff;
  padding: 25px 30px;
  border-radius: 8px;
  font-style: italic;
  margin-top: 20px;
}

/* ===== Адаптив ===== */
@media (max-width: 900px) {
  .steps-row {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .step-card {
    flex: 1 1 100%;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  }
  .step-number {
    margin-bottom: 10px;
  }
  .step-content h3 {
    font-size: 1.2rem;
  }
}
