.marketing-page {
  /* Палитра */
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #2e1d5e;
  --text-main: #212529;
  --text-muted: #6c757d;
  --text-light: #ffffff;
  --border: #e9ecef;
  --accent: #2e1d5e;
  --accent-hover: #412b85;
  --success: #00d28f;
  --success-soft: rgba(0, 210, 143, 0.15);
  
  /* Тени и скругления */
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(46, 29, 94, 0.08);
  --shadow-hover: 0 15px 40px rgba(46, 29, 94, 0.12);
  
  /* Размеры контента */
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1140px;
  --container-narrow: 800px;

  color: var(--text-main);
  font-family: var(--font-main);
  background: var(--bg-white);
  line-height: 1.6;
}

.marketing-page *, 
.marketing-page *::before, 
.marketing-page *::after {
  box-sizing: border-box;
}

.marketing-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

.marketing-page a { text-decoration: none; color: inherit; }
.marketing-page ul { margin: 0; padding: 0; list-style: none; }
.marketing-page .text-center { text-align: center; }
.marketing-page .text-muted { color: var(--text-muted); }

/* =========================================
   СЕТКА И КОНТЕЙНЕРЫ
   ========================================= */
.marketing-page .container {
  width: 100%;
  max-width: calc(var(--container) + 40px);
  margin: 0 auto;
  padding: 0 20px;
}
.marketing-page .container--narrow {
  max-width: calc(var(--container-narrow) + 40px);
}

.marketing-page .marketing-section { padding: 80px 0; }
.marketing-page .bg-light { background-color: var(--bg-light); }
.marketing-page .bg-white { background-color: var(--bg-white); }
.marketing-page .section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* =========================================
   ТИПОГРАФИКА
   ========================================= */
.marketing-page h1, 
.marketing-page h2, 
.marketing-page h3 {
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.marketing-page h1 { font-size: clamp(36px, 5vw, 56px); }
.marketing-page h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 24px; }
.marketing-page h3 { font-size: 20px; }
.marketing-page p { margin: 0 0 16px; }
.marketing-page p:last-child { margin-bottom: 0; }

.marketing-page .section-intro { margin-bottom: 48px; }
.marketing-page .section-label {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.marketing-page .section-label--light {
  color: var(--success);
  background: rgba(0, 210, 143, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
}

/* =========================================
   КНОПКИ И ССЫЛКИ
   ========================================= */
.marketing-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}
.marketing-page .btn-primary {
  background: var(--accent);
  color: var(--text-light);
  box-shadow: 0 8px 20px rgba(46, 29, 94, 0.2);
}
.marketing-page .btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(46, 29, 94, 0.3);
}
.marketing-page .link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}
.marketing-page .link-more:hover { gap: 12px; }

/* =========================================
   БЛОК 1: HERO (ГЛАВНЫЙ ЭКРАН)
   ========================================= */
.marketing-page .marketing-hero {
  padding: 60px 0 100px;
  background: radial-gradient(circle at top right, var(--success-soft), transparent 40%), var(--bg-light);
}
.marketing-page .marketing-hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.marketing-page .marketing-hero__text p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 90%;
}
.marketing-page .marketing-hero__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* =========================================
   БЛОК 2: ФАКТЫ О СПЕЦИАЛЬНОСТИ
   ========================================= */
.marketing-page .cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.marketing-page .fact-card {
  background: var(--bg-white);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.marketing-page .fact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.marketing-page .fact-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--success-soft);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.marketing-page .fact-card ul li { margin-bottom: 8px; color: var(--text-muted); }

.marketing-page .fact-card__icon svg {
  width: 32px;
  height: 32px;
  fill: none !important;
  stroke: var(--success) !important; /* Жестко задаем зеленый цвет */
  stroke-width: 2 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.marketing-page .fact-card:hover .fact-card__icon svg {
  transform: scale(1.15) rotate(-5deg);
}

/* Выравнивание квалификации */
.marketing-page .fact-card__qualification {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}

/* =========================================
   БЛОК 4: ПРЕИМУЩЕСТВА
   ========================================= */
.marketing-page .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.marketing-page .benefit-item {
  padding: 30px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--success);
}
.marketing-page .benefit-item h3 { margin-bottom: 12px; }
.marketing-page .benefit-item p { font-size: 15px; color: var(--text-muted); }

/* =========================================
   БЛОК 5: ПРОФИЛИЗАЦИИ
   ========================================= */
.marketing-page .profile-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.marketing-page .profile-item {
  padding: 24px 30px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* =========================================
   БЛОК 6: ДВЕ КОЛОНКИ (Дисциплины и Сферы)
   ========================================= */
.marketing-page .two-cols-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Список дисциплин */
.marketing-page .disciplines-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.marketing-page .disciplines-list li {
  position: relative;
  padding: 16px 20px 16px 48px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  font-weight: 500;
}
.marketing-page .disciplines-list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
}

/* =========================================
   АККОРДЕОН (Сферы деятельности) - Версия с JS
   ========================================= */
.modern-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.modern-accordion__item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.modern-accordion__item:hover {
  border-color: rgba(46, 29, 94, 0.2);
  box-shadow: var(--shadow-sm);
}

/* Заголовок аккордеона (кликабельная зона) */
.modern-accordion__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--bg-white);
  user-select: none;
  transition: background-color 0.3s ease;
}

.modern-accordion__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  padding-right: 20px;
  transition: color 0.3s ease;
}

/* Иконка "плюс/минус" */
.modern-accordion__icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.modern-accordion__icon::before,
.modern-accordion__icon::after {
  content: "";
  position: absolute;
  background-color: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modern-accordion__icon::before { width: 2px; height: 12px; }
.modern-accordion__icon::after { width: 12px; height: 2px; }

/* Содержимое аккордеона (скрыто по умолчанию) */
.modern-accordion__content {
  max-height: 0; /* Скрываем контент через нулевую высоту */
  overflow: hidden;
  padding: 0 24px; /* Убираем padding сверху и снизу в закрытом виде */
  border-top: 1px solid transparent;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

/* 
   СОСТОЯНИЕ "ОТКРЫТО" (КЛАСС .is-open добавляется через JS) 
*/
.modern-accordion__item.is-open .modern-accordion__title {
  color: var(--accent);
}

.modern-accordion__item.is-open .modern-accordion__icon {
  background: var(--success-soft);
  transform: rotate(180deg);
}

/* Скрываем вертикальную палочку (превращаем плюс в минус) */
.modern-accordion__item.is-open .modern-accordion__icon::before {
  transform: rotate(90deg);
  opacity: 0; 
}

/* Показываем контент плавно */
.modern-accordion__item.is-open .modern-accordion__content {
  max-height: 500px; /* Достаточно большое значение, чтобы вместить текст */
  padding: 0 24px 24px 24px; /* Возвращаем нижний отступ */
  opacity: 1;
}

/* Список внутри аккордеона */
.modern-accordion__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.modern-accordion__list li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
}

.modern-accordion__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d28f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* =========================================
   БЛОК 7: ОТЗЫВЫ
   ========================================= */
.marketing-page .reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.marketing-page .review-card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.marketing-page .review-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.marketing-page .review-card__head img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--success-soft);
}
.marketing-page .review-card__head h3 { margin: 0; font-size: 18px; }
.marketing-page .review-card__head p { margin: 0; font-size: 14px; color: var(--text-muted); }
.marketing-page .review-card__text p { font-size: 15px; font-style: italic; }

/* =========================================
   БЛОК 8: ВИДЕО
   ========================================= */
.marketing-page .video-cover {
  position: relative;
  min-height: 500px;
  border-radius: var(--radius-lg);
  background: linear-gradient(rgba(26, 21, 40, 0.6), rgba(26, 21, 40, 0.8)), url("/General/img/video-poster.jpg") center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}
.marketing-page .video-cover__content h2, 
.marketing-page .video-cover__content p {
  color: var(--text-light);
}

/* =========================================
   БЛОК 9: ФОРМА И КОНТАКТЫ
   ========================================= */
.marketing-page .form-box {
  background: var(--bg-white);
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto 60px;
}
.marketing-page .form-box__header { margin-bottom: 30px; }
.marketing-page .contact-form { display: flex; flex-direction: column; gap: 20px; }
.marketing-page .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.marketing-page .form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.marketing-page .form-field input[type="text"],
.marketing-page .form-field input[type="tel"],
.marketing-page .form-field input[type="email"] {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-light);
  font-family: inherit;
  font-size: 16px;
  transition: all 0.2s;
}
.marketing-page .form-field input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(46, 29, 94, 0.1);
}

.marketing-page .social-block h2 { margin-bottom: 24px; font-size: 24px; }
.marketing-page .social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Обновленные кнопки соцсетей (иконки) */
.marketing-page .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.marketing-page .social-links a svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: transform 0.2s;
}
.marketing-page .social-links a:hover {
  background: var(--accent);
  color: var(--bg-white);
  transform: translateY(-3px);
}
.marketing-page .social-links a:hover svg {
  transform: scale(1.1);
}

/* =========================================
   СТИЛИ ДЛЯ НОВОЙ ФОРМЫ (Чекбоксы и Ошибки)
   ========================================= */

/* Контейнер чекбокса */
.marketing-page .form-group.form-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* Центрируем чекбокс относительно одной строки текста */
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 16px;
  position: relative;
  cursor: pointer;
}

/* Кастомный чекбокс */
.marketing-page .form-check-input {
  order: 1; /* Оставляет чекбокс слева от label */
  appearance: none;
  -webkit-appearance: none;
  width: 24px; /* Сделали чуть крупнее для удобства клика */
  height: 24px;
  border: 2px solid var(--border);
  border-radius: 6px;
  background-color: var(--bg-white);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  margin: 0;
}

/* Эффект при наведении на всю строку */
.marketing-page .form-group.form-check:hover .form-check-input {
  border-color: var(--success);
}

.marketing-page .form-group.form-check:hover label {
  color: var(--text-main);
}

/* Состояние "Выбрано" */
.marketing-page .form-check-input:checked {
  background-color: var(--success);
  border-color: var(--success);
}

/* Галочка внутри чекбокса (с анимацией) */
.marketing-page .form-check-input::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  /* Изначально галочка скрыта и уменьшена */
  transform: rotate(45deg) scale(0); 
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
}

/* Появление галочки с эффектом пружинки (bounce) */
.marketing-page .form-check-input:checked::after {
  transform: rotate(45deg) scale(1);
  opacity: 1;
}

/* Фокус при навигации с клавиатуры (Tab) */
.marketing-page .form-check-input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--success-soft);
}

/* Текст чекбокса */
.marketing-page .form-group.form-check label {
  order: 2;
  flex: 1;
  font-size: 15px; /* Сделали текст чуть крупнее */
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  margin: 0;
  line-height: 1.4;
  user-select: none; /* Запрещаем выделение текста при быстрых кликах */
  transition: color 0.3s ease;
}

/* Ошибки для чекбоксов */
.marketing-page .form-group.form-check .error {
  order: 3;
  flex-basis: 100%;
  font-size: 13px;
  font-weight: 500;
  margin-left: 36px; /* Отступ: 24px чекбокс + 12px gap, чтобы ошибка была ровно под текстом */
  margin-top: -4px; /* Прижимаем ошибку ближе к тексту */
  color: #d32f2f !important; /* Перебиваем инлайновый стиль из MODX, делаем цвет более приятным */
}

/* Ошибки обычных полей */
.marketing-page .form-field label .error {
  font-weight: 500;
  font-size: 12px;
  margin-left: 6px;
  color: #d32f2f !important;
}

/* Сообщения (alert) */
.marketing-page .alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.marketing-page .alert-success {
  background-color: var(--success-soft);
  color: #008a5e; 
  border: 1px solid rgba(0, 210, 143, 0.3);
}
.marketing-page .alert-danger {
  background-color: #ffe5e5;
  color: #d32f2f;
  border: 1px solid #ffcdd2;
}

/* =========================================
   АДАПТИВНОСТЬ (MEDIA QUERIES)
   ========================================= */
@media (max-width: 991px) {
  .marketing-page .marketing-hero__content,
  .marketing-page .two-cols-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .marketing-page .marketing-hero { text-align: center; padding: 40px 0 60px; }
  .marketing-page .marketing-hero__text p { margin: 0 auto 32px; }
  .marketing-page .marketing-section { padding: 60px 0; }
  .marketing-page .video-cover { min-height: 350px; }
}

@media (max-width: 768px) {
  .marketing-page .form-box { padding: 30px 20px; }
  .marketing-page .form-grid { grid-template-columns: 1fr; }
  .marketing-page .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .marketing-page h1 { font-size: 32px; }
  .marketing-page h2 { font-size: 24px; }
  .marketing-page .marketing-hero__text p { font-size: 16px; }
  .marketing-page .btn { width: 100%; }
}