/* ===== Базовые настройки страницы модулей ===== */
.modules-page .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Типографика ===== */
.modules-page .page-title {
  font-size: 42px;
  font-weight: 800;
  color: #1e3a5f;
  margin-bottom: 24px;
  line-height: 1.2;
}
.modules-page h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 20px;
}
.modules-page h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 12px;
}
.modules-page .lead-text {
  font-size: 20px;
  color: #1e3a5f;
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.5;
}
.modules-page .regular-text {
  margin-bottom: 16px;
  color: #444;
}
.modules-page strong {
  color: #1e3a5f;
  font-weight: 600;
}

/* ===== Секции и отступы ===== */
.modules-page .page-section {
  padding: 60px 0;
  border-bottom: 1px solid #f0f0f0;
}
.modules-page .page-section:last-child {
  border-bottom: none;
}

/* ===== Выделенные блоки ===== */
.modules-page .highlight-box {
  background: #f7f9fb;
  border-left: 4px solid #E87722;
  padding: 24px 30px;
  margin-top: 30px;
  border-radius: 0 6px 6px 0;
  font-size: 18px;
  font-weight: 500;
  color: #1e3a5f;
}

/* ===== Split-секции ===== */
.modules-page .split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.modules-page .split-section--reverse {
  direction: rtl;
}
.modules-page .split-section--reverse > * {
  direction: ltr;
}

/* Заглушка для изображения (потом заменить на <img>) */
.modules-page .img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #ffffff;
  border: 2px dashed #d0d0d0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  padding: 20px;
  transition: all 0.3s ease;
}
.modules-page .img-placeholder:hover {
  border-color: #E87722;
  color: #E87722;
  background: #fffbf7;
}

/* ===== Списки с галочками ===== */
.modules-page .check-list {
  list-style: none;
  margin: 20px 0;
}
.modules-page .check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: #444;
}
.modules-page .check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background: #E87722;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* ===== Сетка карточек ===== */
.modules-page .section-title-center {
  text-align: center;
  margin-bottom: 40px;
}
.modules-page .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.modules-page .feature-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 28px;
  transition: all 0.3s ease;
  border-top: 3px solid transparent;
}
.modules-page .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  border-top-color: #E87722;
}
.modules-page .feature-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: #34495e;
}
.modules-page .feature-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}
.modules-page .feature-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* ===== Инфо-блоки ===== */
.modules-page .info-block {
  background: #f7f9fb;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 24px;
}
.modules-page .info-block:last-child {
  margin-bottom: 0;
}

/* ===== Секция преимущества ===== */
.modules-page .advantage-section {
  background: #1e3a5f;
  color: #fff;
  border-radius: 12px;
  padding: 60px;
  margin: 40px 0;
}
.modules-page .advantage-section h2 {
  color: #fff;
}
.modules-page .advantage-lead {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.5;
}
.modules-page .advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.modules-page .advantage-grid__item {
  background: rgba(255,255,255,0.1);
  padding: 16px 20px;
  border-radius: 6px;
  border-left: 3px solid #E87722;
  font-weight: 500;
}

/* ===== CTA Секция ===== */
.modules-page .cta-section {
  text-align: center;
  padding: 80px 0;
}
.modules-page .cta-steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap;
}
.modules-page .cta-step {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  background: #f7f9fb;
  padding: 30px;
  border-radius: 8px;
  text-align: left;
}
.modules-page .cta-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #E87722;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 16px;
}
.modules-page .cta-guarantees {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: #1e3a5f;
  font-weight: 500;
  line-height: 1.6;
}
.modules-page .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.modules-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.modules-page .btn--primary {
  background: #E87722;
  color: #fff;
}
.modules-page .btn--primary:hover {
  background: #d4691a;
  transform: translateY(-2px);
}

/* ===== Анимация появления при скролле ===== */
.modules-page .fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.modules-page .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Адаптивность ===== */
@media (max-width: 992px) {
  .modules-page .split-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .modules-page .split-section--reverse {
    direction: ltr;
  }
  .modules-page .advantage-section {
    padding: 40px 24px;
  }
}

@media (max-width: 768px) {
  .modules-page .page-title { font-size: 32px; }
  .modules-page h2 { font-size: 24px; }
  .modules-page .lead-text { font-size: 18px; }
  .modules-page .features-grid { grid-template-columns: 1fr; }
  .modules-page .cta-steps { flex-direction: column; align-items: center; }
  .modules-page .cta-step { width: 100%; }
  .modules-page .btn { width: 100%; }
}