/* ========== УНИФИЦИРОВАННАЯ ТИПОГРАФИКА КОНТЕНТА ========= */
/* Этот файл обеспечивает единообразное форматирование текста на всех страницах */

/* ========== ОСНОВНЫЕ ЗАГОЛОВКИ И ОПИСАНИЯ ========= */
/* ВЫСОКАЯ СПЕЦИФИЧНОСТЬ: Используем !important для гарантированного применения */
.section-title,
.page-title,
.content-block-700 .section-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 32px !important;
  font-weight: 500 !important; /* medium */
  color: #000000 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

.section-description,
.page-subtitle,
.content-block-700 .section-description {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 20px !important;
  font-weight: 400 !important; /* regular */
  color: #0A306D !important; /* ИСПРАВЛЕНО: Полный синий цвет для лучшей видимости */
  margin: 40px auto 75px auto !important; /* центрирование и отступы */
  line-height: 1.4 !important;
  max-width: 800px !important; /* ограничение ширины для читаемости */
  text-align: center !important;
  
  /* ИСПРАВЛЕНО: Убираем скрытую анимацию, делаем текст видимым по умолчанию */
  opacity: 1 !important;
  transform: translateX(0) !important;
  transition: opacity 0.6s ease-out 0.4s, transform 0.6s ease-out 0.4s;
}

/* АНИМАЦИИ: Активное состояние */
.content-block-700.aos-animate .section-description,
.aos-animate .section-description,
.aos-animate .page-subtitle {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* ========== КОНТЕНТНЫЕ БЛОКИ ========= */
.content-wrapper {
  width: 100%;
  text-align: center;
  padding-top: 80px;
}

.page-hero {
  text-align: center;
  padding: 60px 0 80px 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========== АДАПТИВНОСТЬ ========= */
/* ПЛАНШЕТЫ: 768px и меньше */
@media (max-width: 768px) {
  .section-title,
  .page-title,
  .content-block-700 .section-title {
    font-size: 28px !important;
  }
  
  .section-description,
  .page-subtitle,
  .content-block-700 .section-description {
    font-size: 18px !important;
    margin: 30px auto 60px auto !important;
    padding: 0 20px !important;
  }
  
  .page-hero {
    padding: 40px 20px 60px 20px !important;
  }
}

/* МОБИЛЬНЫЕ: 480px и меньше */
@media (max-width: 480px) {
  .section-title,
  .page-title,
  .content-block-700 .section-title {
    font-size: 24px !important;
  }
  
  .section-description,
  .page-subtitle,
  .content-block-700 .section-description {
    font-size: 16px !important;
    margin: 20px auto 40px auto !important;
  }
  
  .page-hero {
    padding: 30px 15px 40px 15px !important;
  }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ ТЕКСТОВЫЕ СТИЛИ ========= */
.content-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #0A306D;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.content-text p {
  margin-bottom: 20px;
}

.content-text h2 {
  font-size: 24px;
  font-weight: 600;
  color: #000000;
  margin: 40px 0 20px 0;
}

.content-text h3 {
  font-size: 20px;
  font-weight: 500;
  color: #000000;
  margin: 30px 0 15px 0;
}

/* ========== СПИСКИ ========= */
.content-text ul,
.content-text ol {
  margin: 20px 0;
  padding-left: 30px;
}

.content-text li {
  margin-bottom: 10px;
  color: #0A306D;
}

/* ========== CMS ГОТОВНОСТЬ ========= */
/* CSS переменные для легкой настройки через CMS */
:root {
  --content-title-color: #000000;
  --content-text-color: #0A306D;
  --content-title-size: 32px;
  --content-description-size: 20px;
  --content-text-size: 16px;
  --content-max-width: 800px;
  --content-line-height: 1.4;
}

/* Альтернативные стили с использованием CSS переменных */
.section-title--cms,
.page-title--cms {
  color: var(--content-title-color);
  font-size: var(--content-title-size);
}

.section-description--cms,
.page-subtitle--cms {
  color: var(--content-text-color);
  font-size: var(--content-description-size);
  max-width: var(--content-max-width);
  line-height: var(--content-line-height);
}

/* ========== ИСКЛЮЧЕНИЯ ДЛЯ FOOTER ========= */
/* Предотвращаем конфликты стилей типографики с footer */
.footer,
.footer *,
.footer .footer-content,
.footer .footer-brand,
.footer .footer-column,
.footer .footer-brand-title,
.footer .footer-brand-subtitle,
.footer .footer-brand-description,
.footer .footer-column-title,
.footer .footer-link,
.footer .footer-contact-item,
.footer .footer-contact-link,
.footer .footer-copyright,
.footer .footer-legal-link {
  /* Сбрасываем все возможные конфликтующие стили */
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  margin: 0 !important; /* ИСПРАВЛЕНИЕ: убираем наследование margin */
  padding: inherit !important;
  text-align: inherit !important;
  line-height: inherit !important;
  max-width: inherit !important;
  opacity: inherit !important;
  transform: inherit !important;
}

/* Восстанавливаем правильные цвета для footer */
.footer .footer-brand-title {
  color: #ffffff !important;
}

.footer .footer-brand-subtitle {
  color: #ffffff !important;
}

.footer .footer-brand-description {
  color: rgba(255, 255, 255, 0.8) !important;
}

.footer .footer-column-title {
  color: #ffffff !important;
}

.footer .footer-link {
  color: rgba(255, 255, 255, 0.8) !important;
}

.footer .footer-contact-item {
  color: rgba(255, 255, 255, 0.8) !important;
}

.footer .footer-contact-link {
  color: rgba(255, 255, 255, 0.8) !important;
}

.footer .footer-copyright p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.footer .footer-legal-link {
  color: rgba(255, 255, 255, 0.8) !important;
}