/* JustTrading Hero Section Overrides */
/* Vertical Rhythm System: All spacing values are multiples of 8px */
/* Typography System: 2 fonts - headings (unchanged) and body text (Inter) */

/* =========================================================
   Typography System - Осознанная типографика
   КРИТИЧНО: Этот файл загружается ПОСЛЕ других CSS
   Используем максимальную специфичность и !important
   ========================================================= */

/* ПРИНУДИТЕЛЬНОЕ ПРИМЕНЕНИЕ Inter ко всем текстовым элементам */
/* Группируем по типам для лучшей читаемости и поддержки */

/* 1. Статистика и карточки курсов в Hero */
.jt-stat-label,
.jt-stat-value,
.jt-course-card {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  line-height: 1.6 !important;
}

/* 2. Кнопки */
.jt-btn-primary,
.jt-filter-btn,
.jt-guarantees-btn,
.jt-student-journey-btn,
.jt-consultation-form-btn,
.jt-banner-btn {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  line-height: 1.6 !important;
}

/* 3. Плашки и метки на карточках */
.jt-program-card-label,
.jt-carousel-card-badge {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  line-height: 1.6 !important;
}

/* 4. Мета-информация карточек программ */
.jt-program-card-duration,
.jt-program-card-benefit,
.jt-program-card-meta,
.jt-program-card-meta * {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  line-height: 1.6 !important;
}

/* 5. Описания и основной текст */
.jt-program-card-full,
.jt-story-text,
.jt-carousel-card-text,
.jt-banner-subtitle,
.jt-guarantee-description,
.jt-student-journey-description,
.jt-goals-block-description,
.jt-consultation-form-description {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  line-height: 1.6 !important;
}

/* 6. Переключатели и навигация */
.jt-banner-switcher,
.jt-carousel-nav-btn,
.jt-gridywrap .jt-gridinfo .jt-grid-btn {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  line-height: 1.6 !important;
}

/* 7. Формы */
.jt-form-input,
.jt-form-checkbox {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  line-height: 1.6 !important;
}

/* 8. Принудительное применение ко всем элементам внутри hover панелей */
.jt-program-card-hover,
.jt-program-card-hover *,
.jt-program-card-hover-inner,
.jt-program-card-hover-inner * {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  line-height: 1.6 !important;
}

/* Текстовые элементы внутри контейнеров - более широкое покрытие */
.jt-hero-section p,
.jt-hero-section span:not(.jt-hero-title),
.jt-programs-section p,
.jt-programs-section span:not(.jt-programs-title):not(.jt-program-card-title),
.jt-program-card-content p,
.jt-program-card-content span:not(.jt-program-card-title),
.jt-program-card-content div:not(.jt-program-card-title):not(.jt-program-card-meta),
.jt-carousel-section p,
.jt-carousel-section span:not(.jt-carousel-title),
.jt-carousel-card-overlay p,
.jt-carousel-card-overlay span,
.jt-carousel-card-overlay div,
.jt-banner-section p,
.jt-banner-section span:not(.jt-banner-title):not(.jt-banner-content-title),
.jt-banner-content p,
.jt-banner-content span:not(.jt-banner-content-title),
.jt-banner-content div:not(.jt-banner-content-title),
.jt-guarantees-section p,
.jt-guarantees-section span:not(.jt-guarantees-title):not(.jt-guarantee-title),
.jt-student-journey-section p,
.jt-student-journey-section span:not(.jt-student-journey-title),
.jt-goals-section p,
.jt-goals-section span:not(.jt-goals-title):not(.jt-goals-block-title),
.jt-goals-block p,
.jt-goals-block span:not(.jt-goals-block-title),
.jt-consultation-form-section p,
.jt-consultation-form-section span:not(.jt-consultation-form-title) {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  line-height: 1.6 !important;
}

/* =========================================================
   Hero Section Styles - Matching Skillbox Reference
   ========================================================= */

.jt-hero-section {
  /* Нотариальный синий градиент (премиум, официальный стиль для юридической компании) */
  /* Идея: тёмно-синий → чуть светлее, но без "дешёвой синевы", холодный официальный тон */
  --jt-hero-blue-1: #0B1B33;
  --jt-hero-blue-2: #0F2542;
  --jt-hero-blue-3: #102A4A;
  --jt-hero-blue-4: #153052;

  /* тонкие "ink" слои для глубины (тёмные на тёмном фоне) */
  --jt-hero-ink-top: rgba(0, 0, 0, 0.15);
  --jt-hero-ink-bottom: rgba(0, 0, 0, 0.25);

  /* световые акценты (холодные, не золотые) */
  --jt-hero-blue-glow: rgba(47, 128, 237, 0.12);
  --jt-hero-white-glow: rgba(255, 255, 255, 0.08);
  --jt-hero-vignette: rgba(0, 0, 0, 0.30);
  --jt-hero-parallax-bg: 0px;
  --jt-hero-parallax-grain: 0px;
  --jt-hero-parallax-x-bg: 0px;
  --jt-hero-parallax-x-grain: 0px;

  background:
    linear-gradient(180deg, var(--jt-hero-ink-top) 0%, rgba(0, 0, 0, 0) 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 72%, var(--jt-hero-ink-bottom) 100%),
    linear-gradient(
      180deg,
      var(--jt-hero-blue-1) 0%,
      var(--jt-hero-blue-2) 30%,
      var(--jt-hero-blue-3) 56%,
      var(--jt-hero-blue-4) 78%,
      var(--jt-hero-blue-3) 100%
    );
  padding: 80px 0 96px; /* 100px → 96px (12×8) */
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  margin-top: 0;
  isolation: isolate;
  color: #FFFFFF;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
  /* Дорогой "внутренний контур" (как у премиум-карточек), не бросается в глаза */
  outline: 1px solid rgba(255, 255, 255, 0.06);
  outline-offset: -1px;
  /* perf: filter сильно дорогой при скролле (особенно вместе с blend/слоями) */
  /* filter: saturate(1.06) contrast(1.02); */
  contain: paint;
}

.jt-hero-section::before {
  content: "";
  position: absolute;
  /* perf: уменьшаем "огромный слой", чтобы меньше перерисовывать */
  inset: -22% -10% -36% -10%;
  /* Premium texture stack (современно, без "узоров 2007"):
     - micro-dots дают дорогую "матовую" текстуру
     - glass highlight сверху добавляет объём
     - grain убирает "пластик" на градиенте
     - vignette собирает взгляд в центр
  */
  background:
    /* 1) Micro-dots (редко и очень нежно) */
    radial-gradient(circle at 1px 1px, rgba(215, 225, 240, 0.055) 1px, rgba(0, 0, 0, 0) 1.75px),
    /* 2) Glass highlight сверху (как легкий блик на стекле) */
    radial-gradient(62% 52% at 50% -12%, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 68%),
    /* 3) Очень лёгкий grain (статичный, почти невидимый) */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg fill='rgba(255,255,255,0.028)'%3E%3Ccircle cx='14' cy='18' r='0.8'/%3E%3Ccircle cx='42' cy='33' r='0.8'/%3E%3Ccircle cx='71' cy='20' r='0.8'/%3E%3Ccircle cx='96' cy='44' r='0.8'/%3E%3Ccircle cx='122' cy='26' r='0.8'/%3E%3Ccircle cx='150' cy='58' r='0.8'/%3E%3Ccircle cx='21' cy='86' r='0.8'/%3E%3Ccircle cx='57' cy='74' r='0.8'/%3E%3Ccircle cx='88' cy='92' r='0.8'/%3E%3Ccircle cx='114' cy='78' r='0.8'/%3E%3Ccircle cx='141' cy='104' r='0.8'/%3E%3C/g%3E%3C/svg%3E"),
    /* 4) Vignette снизу (глубина) */
    radial-gradient(62% 58% at 50% 122%, var(--jt-hero-vignette) 0%, rgba(0, 0, 0, 0) 60%);
  background-repeat: repeat, no-repeat, repeat, no-repeat;
  background-position: 0 0, 50% 0, 0 0, 50% 122%;
  background-size: 28px 28px, auto, 220px 220px, auto;
  pointer-events: none;
  z-index: 0;
  /* perf: этот слой СТАТИЧНЫЙ — никаких transform, чтобы не лагало */
}

.jt-hero-section::after {
  content: "";
  position: absolute;
  /* perf: двигаем ТОЛЬКО лёгкие glow‑пятна, без сетки/графика/шума */
  inset: -10% -6% -18% -6%;
  background:
    radial-gradient(46% 46% at 18% 14%, var(--jt-hero-blue-glow) 0%, rgba(47, 128, 237, 0) 62%),
    radial-gradient(52% 48% at 80% 12%, var(--jt-hero-white-glow) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(34% 28% at 56% 8%, var(--jt-hero-blue-glow) 0%, rgba(47, 128, 237, 0) 62%);
  background-repeat: no-repeat;
  background-size: auto;
  opacity: 1;
  mix-blend-mode: normal;
  pointer-events: none;
  z-index: 0;
  /* По умолчанию не просим браузер держать отдельный композит-слой.
     Слой включим только когда JS реально активирует параллакс (см. класс ниже). */
  transform: none;
  will-change: auto;
}

/* Параллакс включается/выключается JS-ом через класс.
   Это убирает лишнюю нагрузку в моменты, когда параллакс не нужен. */
.jt-hero-section.jt-hero-parallax-on::after {
  transform: translate3d(var(--jt-hero-parallax-x-bg), var(--jt-hero-parallax-bg), 0);
  will-change: transform;
}

/* Контент Hero выше фоновых слоёв */
.jt-hero-section > .jt-container {
  position: relative;
  z-index: 1;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* Текст в Hero — белый (на тёмно-синем фоне), с лёгкой тенью для читаемости */
.jt-hero-section .jt-hero-title,
.jt-hero-section .jt-stat-label,
.jt-hero-section .jt-popular-title {
  color: #FFFFFF;
  /* на тёмном фоне нужна лёгкая тень для контраста */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .jt-hero-section::before,
  .jt-hero-section::after {
    transform: none !important;
    will-change: auto;
  }
}

.jt-hero-title {
  font-size: 48px;
  font-weight: 800;
  color: #FFFFFF;
  text-align: center;
  margin: 0 auto 32px;
  max-width: 900px;
  line-height: 1.25; /* 1.2 → 1.25 (closer to 8px rhythm) */
  padding: 0 24px;
}

.jt-hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 96px; /* Увеличено для четкого разделения фраз */
  margin: 0 auto 40px;
  flex-wrap: nowrap;
  max-width: 1400px; /* Увеличено пропорционально для размещения элементов с большим gap */
  padding: 0 24px;
}

.jt-stat-item {
  text-align: center;
  flex-shrink: 0;
}

.jt-stat-label {
  font-size: 14px;
  font-weight: 500;
  color: #D7E1F0;
  line-height: 1.6; /* Увеличен для лучшей читабельности */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.jt-stat-line-1,
.jt-stat-line-2 {
  display: block;
  white-space: nowrap;
}

.jt-hero-section .jt-courses-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 16px !important; /* 12px → 16px (2×8) */
  margin-bottom: 32px !important;
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  width: calc(100% - 48px) !important;
  box-sizing: border-box !important;
}

.jt-course-card {
  background: #FFFFFF;
  color: #111827;
  padding: 16px 24px; /* 12px 20px → 16px 24px (2×8, 3×8) */
  border: 1px solid rgba(17, 24, 39, 0.10);
  border-radius: 50px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: auto;
  height: auto;
}

.jt-course-card:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.98)) !important;
  border: 2px solid rgba(47, 128, 237, 0.4) !important;
  box-shadow: 0 8px 24px rgba(47, 128, 237, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-2px) !important;
}

.jt-hero-cta {
  text-align: center;
  margin-bottom: 48px; /* 50px → 48px (6×8) */
}

.jt-btn-primary {
  background: #2F80ED;
  color: #FFFFFF;
  border: none;
  padding: 16px 40px; /* 14px → 16px (2×8) */
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  /* transition: all 0.2s ease-in-out применяется через общий блок в конце файла */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.jt-btn-primary:hover {
  background: #1E6FD9;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(47, 128, 237, 0.4);
}

.jt-popular-title {
  font-size: 42px;
  font-weight: 800;
  color: #111827;
  text-align: center;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
  line-height: 1.25; /* Added for vertical rhythm */
}

/* =========================================================
   Masonry Grid для программ обучения
   ========================================================= */

.jt-gridywrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
  box-sizing: border-box;
}

.jt-gridywrap div[class*=jt-gridy] {
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0;
  float: left;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin: 8px;
  box-sizing: border-box;
}

.jt-gridywrap .jt-gridy-1,
.jt-gridywrap .jt-gridy-2,
.jt-gridywrap .jt-gridy-3 {
  width: 100%;
  overflow: hidden;
}

.jt-gridywrap .jt-gridy-1 { 
  width: calc(100% - 16px); 
}
.jt-gridywrap .jt-gridy-2 { 
  width: calc(100% - 16px); 
}
.jt-gridywrap .jt-gridy-3 { 
  width: calc(100% - 16px); 
}

.jt-gridywrap .jt-gridyhe-1 { height: 320px; }
.jt-gridywrap .jt-gridyhe-2 { height: 320px; }

@media screen and (min-width: 640px) {
  .jt-gridywrap .jt-gridyhe-2 { height: 320px; }
  .jt-gridywrap {
    width: 100%;
  }
  .jt-gridywrap .jt-gridy-1 { 
    width: calc(50% - 16px); 
  }
  .jt-gridywrap .jt-gridy-2 { 
    width: calc(50% - 16px); 
  }
  .jt-gridywrap .jt-gridy-3 { 
    width: calc(100% - 16px); 
  }
}

@media screen and (min-width: 1024px) {
  .jt-gridywrap .jt-gridy-1 { 
    width: calc(33.3% - 16px); 
  }
  .jt-gridywrap .jt-gridy-2 { 
    width: calc(66.6% - 16px); 
  }
  .jt-gridywrap .jt-gridy-3 { 
    width: calc(100% - 16px); 
  }
  .jt-gridywrap .jt-gridyhe-2 { height: 640px; }
}

/* Стили для изображений */
.jt-gridywrap .jt-gridimg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background-position: center center;
  background-size: cover;
}

.jt-gridywrap .jt-gridimg img {
  width: 100%;
}

/* Стили для overlay информации */
.jt-gridywrap .jt-gridinfo {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: all 0.8s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px; /* 20px → 24px (3×8) */
  box-sizing: border-box;
}

.jt-gridywrap .jt-gridinfo h3 {
  font-size: 24px;
  color: #FFFFFF;
  font-weight: 800;
  text-transform: none;
  margin: 0 0 32px; /* 30px → 32px (4×8) */
  position: relative;
  line-height: 1.25; /* Заголовок - оставляем как есть */
  font-family: 'Arial', sans-serif; /* Заголовок - не трогаем */
}

.jt-gridywrap .jt-gridinfo h3:after {
  content: '';
  width: 48px; /* 50px → 48px (6×8) */
  border-top: 3px solid #e3b948;
  display: block;
  margin: 24px auto 0; /* 20px → 24px (3×8) */
}

.jt-gridywrap .jt-gridinfo * {
  opacity: 0;
  transition: all 0.8s;
}

.jt-gridywrap .jt-gridinfo h3 {
  opacity: 1;
}

.jt-gridywrap .jt-gridinfo:hover * {
  opacity: 1;
}

.jt-gridywrap .jt-gridinfo:hover {
  background: rgba(0, 0, 0, 0.85);
}

.jt-gridywrap .jt-gridinfo:hover h3 {
  margin-bottom: 32px; /* 30px → 32px (4×8) */
  opacity: 1;
}

/* Стили для кнопки */
.jt-gridywrap .jt-gridinfo .jt-grid-btn {
  color: #FFFFFF;
  text-decoration: none;
  margin: 0 auto;
  width: 56px !important; /* УВЕЛИЧЕНО: было 40px, теперь 56px (пропорционально увеличению шрифта 14px→20px) */
  height: 56px !important; /* УВЕЛИЧЕНО: было 40px, теперь 56px */
  line-height: 56px !important; /* УВЕЛИЧЕНО: для вертикального центрирования текста */
  border-radius: 28px !important; /* УВЕЛИЧЕНО: было 25px, теперь 28px (половина высоты) */
  border: 2px solid #e3b948;
  display: flex !important; /* Изменено с block на flex для лучшего центрирования */
  align-items: center !important; /* Вертикальное центрирование */
  justify-content: center !important; /* Горизонтальное центрирование */
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  /* transition: all 0.2s ease-in-out применяется через общий блок в конце файла */
  font-size: 20px !important; /* УВЕЛИЧЕНО: было 14px, теперь 20px (как у .jt-goals-block-description) */
  font-weight: 600;
  text-align: center !important; /* Центрирование текста */
}

.jt-gridywrap .jt-gridinfo .jt-grid-btn:hover {
  width: 200px !important; /* УВЕЛИЧЕНО: было 140px, теперь 200px (пропорционально увеличению шрифта) */
  background: #e3b948;
  color: #111827;
  border-color: #e3b948;
}

.jt-gridywrap .jt-gridinfo .jt-grid-btn span {
  opacity: 0;
  display: none;
  transition: opacity 0.3s;
  margin-right: 8px;
  font-size: 20px !important; /* УВЕЛИЧЕНО: было 14px (наследуется), теперь 20px явно */
  white-space: nowrap; /* Предотвращает перенос текста */
}

.jt-gridywrap .jt-gridinfo .jt-grid-btn:hover span {
  opacity: 1;
  display: inline;
}

.jt-gridywrap .jt-gridinfo .jt-grid-btn i {
  transition: opacity 0.3s;
}

  .jt-gridywrap .jt-gridinfo .jt-grid-btn:hover i {
    opacity: 0;
    display: none;
  }

/* =========================================================
   Programs Section - с тумблерами и карточками
   ========================================================= */

.jt-programs-section {
  background: #FFFFFF;
  padding: 80px 0;
  margin-top: 0;
}

.jt-programs-title {
  font-size: 42px;
  font-weight: 800;
  color: #111827;
  text-align: center;
  margin-bottom: 48px; /* 50px → 48px (6×8) */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
  line-height: 1.25; /* Added for vertical rhythm */
}

.jt-programs-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.jt-filter-btn {
  background: #F5F5F5;
  color: #111827;
  border: none;
  padding: 16px 24px; /* 12px → 16px (2×8) */
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important; /* Плавный переход для цвета фона и текста */
  text-transform: none; /* Фильтры остаются с обычным регистром (не CTA кнопки) */
  /* font-family применяется через общий селектор выше */
}

.jt-filter-btn:hover {
  background: #E0E0E0;
}

.jt-filter-btn.active {
  background: #111827;
  color: #FFFFFF;
}

.jt-filter-btn.jt-help-btn {
  background: #e3b948;
  color: #111827;
}

.jt-filter-btn.jt-help-btn:hover {
  background: #d4a83a;
}

.jt-programs-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.jt-programs-set {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: opacity 0.35s cubic-bezier(0.33, 1, 0.68, 1), transform 0.35s cubic-bezier(0.33, 1, 0.68, 1), visibility 0.35s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: opacity, transform, visibility;
}

.jt-program-card-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  height: 480px;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  will-change: opacity, transform;
}

.jt-program-card-item:hover {
  transform: translateY(-5px) scale(1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   Programs Section - Плавное появление/исчезновение карточек
   ========================================================= */

.jt-programs-set.is-hidden {
  opacity: 0;
  transform: translateY(6px);
  visibility: hidden;
  pointer-events: none;
}

.jt-programs-set.is-active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.jt-program-card-item.is-animating {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
}

.jt-program-card-item.is-animating.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .jt-programs-set,
  .jt-program-card-item {
    transition: none !important;
  }
  .jt-program-card-item.is-animating {
    opacity: 1;
    transform: none;
  }
}

.jt-program-card-img {
  display: none;
}

.jt-program-card-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: #FFFFFF;
  padding: 8px 16px; /* 6px 12px → 8px 16px (1×8, 2×8) */
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  /* font-family и line-height применяются через общий селектор выше */
}

.jt-program-card-content {
  padding: 24px;
  height: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  /* Возвращаем "плёнку": светлый градиент для читабельности на ярких картинках */
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.7) 75%,
    rgba(255, 255, 255, 0.95) 100%
  );
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.jt-program-card-title {
  font-size: 36px !important; /* УВЕЛИЧЕНО: было 28px, теперь 36px для лучшего визуального разделения с описанием */
  font-weight: 800;
  color: #111827;
  margin: 0 0 16px; /* 12px → 16px (2×8) */
  line-height: 1.25; /* Заголовок - оставляем как есть */
  font-family: 'Arial', sans-serif; /* Заголовок - не трогаем */
  text-shadow: none;
  position: relative;
  z-index: 3;
  transition: transform 0.63s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.jt-program-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  position: relative;
  z-index: 3;
  transition: transform 0.63s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Возвращаем исходные (тёмные) цвета meta на светлой плёнке */
.jt-program-card-duration {
  font-size: 14px;
  color: #111827;
  font-weight: 600;
  text-shadow: none;
  /* font-family и line-height применяются через общий селектор выше */
}

.jt-program-card-benefit {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 8px 16px; /* 6px 10px → 8px 16px (1×8, 2×8) */
  text-shadow: none;
  /* font-family и line-height применяются через общий селектор выше */
}

/* Hover panel: выезжает снизу плавно (как на референсе) */
.jt-program-card-hover {
  position: relative;
  margin-top: 16px; /* держим постоянным — убираем дергание от анимации margin */
  max-height: 0;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.63s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    max-height 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 2;
  overflow: hidden;
  will-change: max-height, opacity, transform;
}

.jt-program-card-hover-inner {
  padding: 0;
}

/* Принудительное применение шрифта к тексту внутри hover панели */
.jt-program-card-hover-inner *,
.jt-program-card-hover * {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  line-height: 1.6 !important;
}

.jt-program-card-full {
  margin: 0;
  font-size: 19px;
  line-height: 1.6; /* Уже установлен правильно */
  color: #1a1a1a !important; /* Как было: тёмный текст на светлой плёнке */
  opacity: 1;
  font-weight: 400 !important; /* УБРАНО: было 700 (жирный), теперь обычный */
  text-shadow: none;
}

.jt-program-card-item:hover .jt-program-card-hover {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
}

/* При наведении: добавляем отступы для правильного расположения */
.jt-program-card-item:hover .jt-program-card-title {
  transform: translateY(-1px);
}

.jt-program-card-item:hover .jt-program-card-meta {
  transform: translateY(0);
}

@media screen and (max-width: 1024px) {
  .jt-programs-grid {
    max-width: 100%;
  }
  
  .jt-programs-set {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .jt-program-card-item {
    height: 450px;
  }
  
  .jt-program-card-title {
    font-size: 32px !important; /* УВЕЛИЧЕНО: было 24px, теперь 32px для адаптива ≤1024px */
  }
}

@media screen and (max-width: 768px) {
  .jt-programs-title {
    font-size: 28px;
    margin-bottom: 32px; /* 30px → 32px (4×8) */
  }

  .jt-programs-filters {
    gap: 16px; /* 12px → 16px (2×8) */
    margin-bottom: 32px; /* 30px → 32px (4×8) */
  }

  .jt-filter-btn {
    padding: 16px 24px; /* 10px 18px → 16px 24px (2×8, 3×8) */
    font-size: 14px;
  }

  .jt-programs-set {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .jt-program-card-item {
    height: auto;
    min-height: 400px;
  }

  .jt-program-card-content {
    height: auto;
    min-height: 200px;
  }
  
  .jt-program-card-title {
    font-size: 28px !important; /* УВЕЛИЧЕНО: было 22px, теперь 28px для адаптива ≤768px */
  }
  
  .jt-program-card-text-wrapper {
    height: auto;
    min-height: 100px;
  }
}

/* КОНТЕЙНЕР - РОДИТЕЛЬ ДЛЯ АБСОЛЮТНОГО ПОЗИЦИОНИРОВАНИЯ */
.jt-success-stories {
  position: relative !important;
  width: 1200px !important;
  height: 900px !important;
  margin: 40px auto !important;
  padding: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
}

/* ПЕРЕОПРЕДЕЛЯЕМ ВСЕ ВОЗМОЖНЫЕ КОНФЛИКТУЮЩИЕ СТИЛИ */
.jt-success-stories * {
  box-sizing: border-box !important;
}

.jt-success-stories > .jt-story-card {
  position: absolute !important;
  display: block !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
}

/* ОБЩИЕ СТИЛИ ДЛЯ ВСЕХ КАРТОЧЕК */
.jt-story-card {
  position: absolute !important;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: block !important;
  margin: 0 !important;
  float: none !important;
}

.jt-story-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* РАЗМЕРЫ КАРТОЧЕК */
.jt-large-card {
  width: 285px !important;
  height: 590px !important;
}

.jt-small-card {
  width: 285px !important;
  height: 285px !important;
}

/* ИЗОБРАЖЕНИЕ */
.jt-story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ТЕКСТ ПОВЕРХ ИЗОБРАЖЕНИЯ */
.jt-story-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  color: white;
  padding: 24px 16px; /* 20px 15px → 24px 16px (3×8, 2×8) */
  font-size: 16px;
  line-height: 1.6; /* 1.3 → 1.6 для лучшей читабельности */
}

/* ТОЧНЫЕ КООРДИНАТЫ КАЖДОЙ КАРТОЧКИ (x, y) */

/* ПЕРВЫЙ РЯД */
#jt-card1 {
  top: 0 !important;
  left: 0 !important;
}

#jt-card2 {
  top: 0 !important;
  left: 305px !important;
}

#jt-card3 {
  top: 0 !important;
  left: 610px !important;
}

#jt-card4 {
  top: 0 !important;
  left: 915px !important;
}

/* ВТОРОЙ РЯД */
#jt-card5 {
  top: 305px !important;
  left: 0 !important;
}

#jt-card6 {
  top: 305px !important;
  left: 305px !important;
}

#jt-card7 {
  top: 305px !important;
  left: 915px !important;
}

#jt-card8 {
  top: 610px !important;
  left: 915px !important;
}

/* ТРЕТИЙ РЯД */
#jt-card9 {
  top: 610px !important;
  left: 0 !important;
}

#jt-card10 {
  top: 610px !important;
  left: 305px !important;
}

#jt-card11 {
  top: 305px !important;
  left: 610px !important;
  height: 590px !important;
}

/* Responsive для Hero Section */
@media (max-width: 1024px) {
  .jt-hero-title {
    font-size: 40px;
    max-width: 800px;
  }

  .jt-hero-section .jt-courses-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    width: calc(100% - 48px) !important;
  }

  .jt-success-stories {
    width: 100%;
    max-width: 1200px;
    height: auto;
    min-height: 900px;
  }
}

@media (max-width: 768px) {
  .jt-hero-section {
    padding: 48px 0 64px; /* 50px 0 60px → 48px 0 64px (6×8, 8×8) */
  }

  .jt-hero-title {
    font-size: 32px;
    margin-bottom: 32px; /* 30px → 32px (4×8) */
    max-width: 600px;
  }

  .jt-hero-stats {
    gap: 24px; /* 20px → 24px (3×8) */
    margin-bottom: 32px;
  }

  .jt-stat-label {
    font-size: 13px;
  }

  .jt-stat-value {
    font-size: 14px;
  }

  .jt-hero-section .jt-courses-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: calc(100% - 32px) !important;
  }

  .jt-course-card {
    padding: 16px 16px; /* 10px → 16px (2×8) */
    font-size: 13px;
  }

  .jt-popular-title {
    font-size: 24px;
    margin-bottom: 32px; /* 30px → 32px (4×8) */
  }

  .jt-gridywrap {
    padding: 0 16px 32px; /* 30px → 32px (4×8) */
  }

  .jt-gridywrap .jt-gridyhe-1,
  .jt-gridywrap .jt-gridyhe-2 {
    height: 280px;
  }

  .jt-gridywrap .jt-gridinfo h3 {
    font-size: 18px;
    margin-bottom: 24px; /* 20px → 24px (3×8) */
  }

  .jt-gridywrap .jt-gridinfo .jt-grid-btn {
    width: 50px !important; /* УВЕЛИЧЕНО: было 40px, теперь 50px (адаптив для ≤768px) */
    height: 50px !important; /* УВЕЛИЧЕНО: было 40px, теперь 50px */
    line-height: 50px !important; /* УВЕЛИЧЕНО: для вертикального центрирования */
    font-size: 18px !important; /* УВЕЛИЧЕНО: было 14px, теперь 18px (адаптив) */
  }

  .jt-gridywrap .jt-gridinfo .jt-grid-btn:hover {
    width: 170px !important; /* УВЕЛИЧЕНО: было 120px, теперь 170px (пропорционально) */
  }
  
  .jt-gridywrap .jt-gridinfo .jt-grid-btn span {
    font-size: 18px !important; /* УВЕЛИЧЕНО: для адаптива ≤768px */
  }

  .jt-success-stories {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 800px;
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .jt-hero-section {
    padding: 40px 0 48px; /* 50px → 48px (6×8) */
  }

  .jt-hero-title {
    font-size: 24px;
    margin-bottom: 24px;
    max-width: 100%;
    padding: 0 16px;
  }

  .jt-hero-stats {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
  }

  .jt-hero-section .jt-courses-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: calc(100% - 32px) !important;
  }

  .jt-course-card {
    padding: 8px 16px; /* 12px → 16px (2×8) */
    font-size: 12px;
  }

  .jt-btn-primary {
    padding: 16px 32px; /* 12px 28px → 16px 32px (2×8, 4×8) */
    font-size: 14px;
  }

  .jt-popular-title {
    font-size: 20px;
    padding: 0 16px;
  }

  .jt-success-stories {
    width: 100%;
    height: auto;
    padding: 0 16px;
  }
  
  .jt-story-card {
    position: relative !important;
    width: 100% !important;
    height: 304px !important; /* 300px → 304px (38×8) */
    margin-bottom: 24px; /* 20px → 24px (3×8) */
    left: 0 !important;
    top: 0 !important;
  }
}

/* =========================================================
   Infinite Carousel Section - Бегущая строка
   ========================================================= */

.jt-infinite-carousel-section {
  width: 100%;
  padding: 40px 0 60px;
  background: #FFFFFF;
  overflow: hidden;
  position: relative;
}

.jt-carousel-title {
  font-size: 42px;
  font-weight: 800;
  color: #111827;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.jt-carousel-wrapper {
  width: 100vw;
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
  margin-left: calc(-50vw + 50%);
}

.jt-carousel-track {
  display: flex;
  gap: 24px;
  will-change: transform;
  width: fit-content;
  padding: 0 24px;
}

.jt-carousel-card {
  flex-shrink: 0;
  width: 404px !important; /* ФИКСИРОВАНО: увеличено ещё на 8% (374 * 1.08 = 404px) - ЗАФИКСИРОВАНО для предотвращения уменьшения */
  height: 504px !important; /* ФИКСИРОВАНО: увеличено ещё на 8% (467 * 1.08 = 504px) - ЗАФИКСИРОВАНО для предотвращения уменьшения */
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  /* transition: all 0.2s ease-in-out применяется через общий блок в конце файла */
  cursor: pointer;
  display: flex;
  align-items: flex-end; /* контент у нижнего края */
}

.jt-carousel-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jt-carousel-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.jt-carousel-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 65%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 40%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.jt-carousel-card-overlay {
  position: static !important; /* КРИТИЧНО: чтобы badge позиционировался от .jt-carousel-card */
  width: 100%;
  background: transparent; /* градиент теперь через ::before */
  padding: 32px 24px 24px; /* 28px 18px 18px → 32px 24px 24px (4×8, 3×8, 3×8) */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 144px; /* 140px → 144px (18×8) */
  z-index: 2; /* поверх градиента */
}

.jt-carousel-card-badge {
  position: absolute;
  top: 16px !important;
  left: 16px !important;
  right: auto !important;
  bottom: auto !important;
  background: rgba(0, 0, 0, 0.7);
  color: #FFFFFF;
  padding: 8px 16px; /* как у "Курс" */
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  max-width: calc(100% - 32px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 3; /* поверх всего */
  box-shadow: none;
}

.jt-carousel-card-text {
  font-size: 18px;
  font-weight: 400 !important; /* УБРАНО: было 700 (жирный), теперь обычный */
  color: #FFFFFF;
  line-height: 1.6; /* 1.3 → 1.6 для лучшей читабельности */
  text-align: left;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-top: auto;
}

.jt-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px; /* 20px → 24px (3×8) */
}

.jt-carousel-nav-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #111827;
  background: #FFFFFF;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* transition: all 0.2s ease-in-out применяется через общий блок в конце файла */
  padding: 0;
}

.jt-carousel-nav-btn:hover {
  background: #e3b948;
  border-color: #e3b948;
  transform: scale(1.1);
}

.jt-carousel-nav-btn:active {
  transform: scale(0.95);
}

.jt-carousel-nav-btn svg {
  width: 24px;
  height: 24px;
}

/* Responsive для Carousel */
@media (max-width: 1024px) {
  .jt-infinite-carousel-section {
    padding: 35px 0 50px;
  }

  .jt-carousel-title {
    font-size: 36px;
    margin-bottom: 32px; /* 35px → 32px (4×8) */
  }

  .jt-carousel-card {
    width: 352px !important; /* ФИКСИРОВАНО: увеличено ещё на 8% (326 * 1.08 = 352px) - ЗАФИКСИРОВАНО для предотвращения уменьшения */
    height: 443px !important; /* ФИКСИРОВАНО: увеличено ещё на 8% (410 * 1.08 = 443px) - ЗАФИКСИРОВАНО для предотвращения уменьшения */
  }

  .jt-carousel-card-text {
    font-size: 17px;
  }

  .jt-carousel-card-badge {
    font-size: 13px;
    padding: 8px 16px; /* 7px 14px → 8px 16px (1×8, 2×8) */
  }

  .jt-carousel-card-overlay {
    padding: 24px 16px 16px;
    min-height: 128px; /* 130px → 128px (16×8) */
  }

  .jt-carousel-wrapper {
    margin-bottom: 24px; /* 25px → 24px (3×8) */
  }

  .jt-carousel-nav {
    margin-top: 16px; /* 15px → 16px (2×8) */
  }
}

@media (max-width: 768px) {
  .jt-infinite-carousel-section {
    padding: 30px 0 45px;
  }

  .jt-carousel-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding: 0 16px;
  }

  .jt-carousel-card {
    width: 327px !important; /* ФИКСИРОВАНО: увеличено ещё на 8% (303 * 1.08 = 327px) - ЗАФИКСИРОВАНО для предотвращения уменьшения */
    height: 415px !important; /* ФИКСИРОВАНО: увеличено ещё на 8% (384 * 1.08 = 415px) - ЗАФИКСИРОВАНО для предотвращения уменьшения */
  }

  .jt-carousel-card-overlay {
    padding: 24px 16px 16px; /* 22px 14px 14px → 24px 16px 16px (3×8, 2×8, 2×8) */
    min-height: 120px;
  }

  .jt-carousel-card-text {
    font-size: 16px;
  }

  .jt-carousel-card-badge {
    font-size: 12px;
    padding: 8px 16px; /* 6px 12px → 8px 16px (1×8, 2×8) */
    top: 16px;
    right: 16px;
  }

  .jt-carousel-wrapper {
    margin-bottom: 24px; /* 20px → 24px (3×8) */
  }

  .jt-carousel-nav {
    margin-top: 16px; /* 15px → 16px (2×8) */
  }

  .jt-carousel-nav-btn {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .jt-infinite-carousel-section {
    padding: 25px 0 40px;
  }

  .jt-carousel-title {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .jt-carousel-card {
    width: 302px !important; /* ФИКСИРОВАНО: увеличено ещё на 8% (280 * 1.08 = 302px) - ЗАФИКСИРОВАНО для предотвращения уменьшения */
    height: 378px !important; /* ФИКСИРОВАНО: увеличено ещё на 8% (350 * 1.08 = 378px) - ЗАФИКСИРОВАНО для предотвращения уменьшения */
  }

  .jt-carousel-card-overlay {
    padding: 24px 16px 16px; /* 18px 12px 12px → 24px 16px 16px (3×8, 2×8, 2×8) */
    min-height: 112px; /* 110px → 112px (14×8) */
  }

  .jt-carousel-card-text {
    font-size: 15px;
  }

  .jt-carousel-card-badge {
    font-size: 11px;
    padding: 8px 16px; /* 5px 10px → 8px 16px (1×8, 2×8) */
    top: 16px; /* 14px → 16px (2×8) */
    right: 16px; /* 14px → 16px (2×8) */
  }

  .jt-carousel-wrapper {
    margin-bottom: 16px; /* 15px → 16px (2×8) */
  }

  .jt-carousel-nav {
    margin-top: 16px; /* 10px → 16px (2×8) */
  }

  .jt-carousel-nav-btn {
    width: 44px;
    height: 44px;
  }

  .jt-carousel-nav-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* =========================================================
   Banner Section - Большой баннер с переключателями
   ========================================================= */

.jt-banner-section {
  width: 100%;
  padding: 80px 0;
  background: #FFFFFF;
  position: relative;
}

.jt-banner-title {
  font-size: 48px;
  font-weight: 800;
  color: #111827;
  text-align: center;
  margin-bottom: 24px; /* 20px → 24px (3×8) */
  line-height: 1.25; /* 1.2 → 1.25 (closer to 8px rhythm) */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.jt-banner-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: #6B7280;
  text-align: center;
  margin-bottom: 64px; /* 60px → 64px (8×8) */
  line-height: 1.6; /* 1.5 → 1.6 для лучшей читабельности */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
  /* font-family применяется через общий селектор выше */
}

.jt-banner-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 40px;
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 20px;
}

.jt-banner-switchers {
  position: absolute;
  bottom: 32px; /* 30px → 32px (4×8) */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px; /* 12px → 16px (2×8) */
  flex-wrap: nowrap;
  z-index: 10;
  white-space: nowrap;
}

.jt-banner-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s ease;
  will-change: opacity;
  border-radius: 20px;
  overflow: hidden;
}

.jt-banner-item.active {
  opacity: 1;
  visibility: visible;
}

.jt-banner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.jt-banner-content {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.jt-banner-content-title {
  font-size: 42px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 32px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.jt-banner-btn {
  background: #e3b948;
  color: #111827;
  border: none;
  padding: 16px 40px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  /* transition: all 0.2s ease-in-out применяется через общий блок в конце файла */
  text-transform: uppercase !important; /* ЕДИНЫЙ СТИЛЬ: все заглавные буквы для CTA кнопок */
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.jt-banner-btn:hover {
  background: #d4a83a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.jt-banner-switcher {
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  border: 2px solid #111827;
  padding: 16px 32px; /* 12px 28px → 16px 32px (2×8, 4×8) */
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Arial', sans-serif;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.jt-banner-switcher:hover {
  background: rgba(255, 255, 255, 1);
  border-color: #111827;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.jt-banner-switcher.active {
  background: #111827;
  color: #FFFFFF;
  border-color: #111827;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive для Banner Section */
@media (max-width: 1024px) {
  .jt-banner-section {
    padding: 60px 0;
  }

  .jt-banner-title {
    font-size: 40px;
  }

  .jt-banner-subtitle {
    font-size: 18px;
    margin-bottom: 48px; /* 50px → 48px (6×8) */
  }

  .jt-banner-container {
    height: 448px; /* 450px → 448px (56×8) */
    margin-bottom: 32px; /* 35px → 32px (4×8) */
  }

  .jt-banner-content-title {
    font-size: 36px;
    margin-bottom: 32px; /* 28px → 32px (4×8) */
  }

  .jt-banner-btn {
    padding: 16px 40px; /* 14px 36px → 16px 40px (2×8, 5×8) */
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .jt-banner-section {
    padding: 50px 0;
  }

  .jt-banner-title {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .jt-banner-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .jt-banner-container {
    height: 400px;
    margin-bottom: 32px; /* 30px → 32px (4×8) */
    border-radius: 16px;
  }

  .jt-banner-content {
    padding: 0 24px; /* 20px → 24px (3×8) */
  }

  .jt-banner-content-title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .jt-banner-btn {
    padding: 16px 32px; /* 12px → 16px (2×8) */
    font-size: 15px;
  }

  .jt-banner-switcher {
    padding: 16px 24px; /* 10px → 16px (2×8) */
    font-size: 14px;
    white-space: nowrap;
  }
  
  .jt-banner-switchers {
    flex-wrap: nowrap;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .jt-banner-section {
    padding: 40px 0;
  }

  .jt-banner-title {
    font-size: 28px;
  }

  .jt-banner-subtitle {
    font-size: 15px;
    margin-bottom: 32px; /* 30px → 32px (4×8) */
  }

  .jt-banner-container {
    height: 352px; /* 350px → 352px (44×8) */
    margin-bottom: 24px; /* 25px → 24px (3×8) */
  }

  .jt-banner-content-title {
    font-size: 24px;
    margin-bottom: 24px; /* 20px → 24px (3×8) */
  }

  .jt-banner-btn {
    padding: 16px 32px; /* 10px 28px → 16px 32px (2×8, 4×8) */
    font-size: 14px;
  }

  .jt-banner-switcher {
    padding: 8px 24px; /* 20px → 24px (3×8) */
    font-size: 13px;
    white-space: nowrap;
  }
  
  .jt-banner-switchers {
    flex-wrap: nowrap;
    gap: 8px; /* 6px → 8px (1×8) */
    bottom: 24px; /* 20px → 24px (3×8) */
  }
  
  .jt-banner-content {
    top: 35%;
  }
}

/* =========================================================
   Guarantees Section - Гарантии и обязательства
   ========================================================= */

.jt-guarantees-section {
  width: 100% !important;
  padding: 60px 0 !important;
  background: #F9F9F9 !important;
  position: relative;
}

.jt-guarantees-section .jt-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.jt-guarantees-title {
  font-size: 42px !important;
  font-weight: 800 !important;
  color: #111827 !important;
  text-align: center !important;
  margin-bottom: 40px !important;
  line-height: 1.2 !important;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.jt-guarantees-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 24px !important;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Первая строка: 2 карточки (каждая занимает 3 колонки из 6) */
.jt-guarantees-grid .jt-guarantee-card:nth-child(1),
.jt-guarantees-grid .jt-guarantee-card:nth-child(2) {
  grid-column: span 3 !important;
}

/* Вторая строка: 3 карточки (каждая занимает 2 колонки из 6) */
.jt-guarantees-grid .jt-guarantee-card:nth-child(3),
.jt-guarantees-grid .jt-guarantee-card:nth-child(4),
.jt-guarantees-grid .jt-guarantee-card:nth-child(5) {
  grid-column: span 2 !important;
}

.jt-guarantee-card {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  /* transition: all 0.2s ease-in-out применяется через общий блок в конце файла */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.jt-guarantee-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.jt-guarantee-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.jt-guarantee-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.jt-guarantee-card:hover .jt-guarantee-image img {
  transform: scale(1.05);
}

.jt-guarantee-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.jt-guarantee-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
  line-height: 1.3;
}

.jt-guarantee-description {
  font-size: 19px;
  font-weight: 400 !important; /* УБРАНО: было 700 (жирный), теперь обычный */
  color: #1a1a1a !important; /* Микроконтраст: тёмно-серый вместо чистого чёрного для снижения нагрузки на глаза */
  line-height: 1.6; /* Уже установлен правильно */
  flex: 1;
}

.jt-guarantees-cta {
  text-align: center;
  margin-top: 48px; /* 50px → 48px (6×8) */
}

.jt-guarantees-btn {
  display: inline-block;
  background: #e3b948;
  color: #111827;
  border: none;
  padding: 16px 48px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.jt-guarantees-btn:hover {
  background: #d4a83a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive для Guarantees Section */
@media (max-width: 1024px) {
  .jt-guarantees-section {
    padding: 50px 0;
  }

  .jt-guarantees-title {
    font-size: 36px;
    margin-bottom: 32px; /* 35px → 32px (4×8) */
  }

  .jt-guarantees-grid {
    gap: 24px; /* 20px → 24px (3×8) */
  }

  .jt-guarantee-image {
    height: 224px; /* 220px → 224px (28×8) */
  }

  .jt-guarantee-content {
    padding: 24px; /* 20px → 24px (3×8) */
  }

  .jt-guarantee-title {
    font-size: 22px;
  }
  
  .jt-guarantee-description {
    font-size: 18px;
    font-weight: 400 !important; /* УБРАНО: было 700 (жирный), теперь обычный */
  }
  
  .jt-guarantees-cta {
    margin-top: 40px;
  }
  
  .jt-guarantees-btn {
    padding: 14px 36px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .jt-guarantees-section {
    padding: 40px 0;
  }

  .jt-guarantees-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding: 0 16px;
  }

  .jt-guarantees-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }

  /* На мобильных все карточки в одну колонку */
  .jt-guarantees-grid .jt-guarantee-card:nth-child(1),
  .jt-guarantees-grid .jt-guarantee-card:nth-child(2),
  .jt-guarantees-grid .jt-guarantee-card:nth-child(3),
  .jt-guarantees-grid .jt-guarantee-card:nth-child(4),
  .jt-guarantees-grid .jt-guarantee-card:nth-child(5) {
    grid-column: span 1;
  }

  .jt-guarantee-image {
    height: 200px;
  }

  .jt-guarantee-content {
    padding: 20px;
  }

  .jt-guarantee-title {
    font-size: 20px;
    margin-bottom: 16px; /* 12px → 16px (2×8) */
  }

  .jt-guarantee-description {
    font-size: 17px;
    font-weight: 400 !important; /* УБРАНО: было 700 (жирный), теперь обычный */
  }
  
  .jt-guarantees-cta {
    margin-top: 40px;
  }
  
  .jt-guarantees-btn {
    padding: 14px 40px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .jt-guarantees-section {
    padding: 30px 0;
  }

  .jt-guarantees-title {
    font-size: 24px;
    margin-bottom: 24px; /* 25px → 24px (3×8) */
  }

  .jt-guarantees-grid {
    gap: 16px;
  }

  .jt-guarantee-image {
    height: 184px; /* 180px → 184px (23×8) */
  }

  .jt-guarantee-content {
    padding: 24px; /* 18px → 24px (3×8) */
  }

  .jt-guarantee-title {
    font-size: 18px;
  }

  .jt-guarantee-description {
    font-size: 16px;
    font-weight: 700;
  }
  
  .jt-guarantees-cta {
    margin-top: 30px;
  }
  
  .jt-guarantees-btn {
    padding: 12px 32px;
    font-size: 15px;
  }
}

/* =========================================================
   Student Journey Section - От первых сделок к доходу
   ========================================================= */

.jt-student-journey-section {
  width: 100%;
  padding: 80px 0;
  background: #FFFFFF;
  position: relative;
}

.jt-student-journey-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px; /* 60px → 64px (8×8) */
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.jt-student-journey-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  justify-content: flex-start;
}

.jt-student-journey-cta {
  margin-top: auto;
  padding-top: 24px; /* 20px → 24px (3×8) */
  text-align: center;
}

.jt-student-journey-btn {
  display: inline-block;
  background: #e3b948;
  color: #111827;
  border: none;
  padding: 16px 40px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase !important; /* ЕДИНЫЙ СТИЛЬ: все заглавные буквы для CTA кнопок */
  text-decoration: none;
  letter-spacing: 0.5px;
}

.jt-student-journey-btn:hover {
  background: #d4a83a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.jt-student-journey-title {
  font-size: 48px;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  margin: 0;
}

.jt-student-journey-description {
  font-size: 24px;
  font-weight: 400;
  color: #6B7280;
  line-height: 1.6; /* Уже установлен правильно */
  margin: 0;
}

.jt-student-journey-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.jt-student-journey-image-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.jt-student-journey-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive для Student Journey Section */
@media (max-width: 1024px) {
  .jt-student-journey-section {
    padding: 60px 0;
  }

  .jt-student-journey-content {
    gap: 40px;
  }

  .jt-student-journey-title {
    font-size: 40px;
  }

  .jt-student-journey-description {
    font-size: 20px;
  }

  .jt-student-journey-media {
    min-height: 350px;
  }
  
  .jt-student-journey-cta {
    padding-top: 24px; /* 18px → 24px (3×8) */
  }
  
  .jt-student-journey-btn {
    padding: 16px 40px; /* 14px 36px → 16px 40px (2×8, 5×8) */
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .jt-student-journey-section {
    padding: 50px 0;
  }

  .jt-student-journey-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 16px;
  }

  .jt-student-journey-text {
    order: 1;
  }

  .jt-student-journey-media {
    order: 2;
    min-height: 300px;
  }
  
  .jt-student-journey-cta {
    padding-top: 16px;
    margin-top: 0;
  }
  
  .jt-student-journey-btn {
    padding: 16px 32px; /* 14px → 16px (2×8) */
    font-size: 16px;
  }

  .jt-student-journey-title {
    font-size: 32px;
  }

  .jt-student-journey-description {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .jt-student-journey-section {
    padding: 40px 0;
  }

  .jt-student-journey-content {
    gap: 24px;
  }

  .jt-student-journey-title {
    font-size: 28px;
  }

  .jt-student-journey-description {
    font-size: 17px;
  }

  .jt-student-journey-media {
    min-height: 250px;
  }
  
  .jt-student-journey-cta {
    padding-top: 16px; /* 14px → 16px (2×8) */
  }
  
  .jt-student-journey-btn {
    padding: 16px 32px; /* 12px 28px → 16px 32px (2×8, 4×8) */
    font-size: 15px;
  }
}

/* =========================================================
   Goals Section - Как АналитикПро помогает достигать целей
   ========================================================= */

.jt-goals-section {
  width: 100%;
  padding: 80px 0;
  background: #FFFFFF;
  position: relative;
}

.jt-goals-section .jt-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.jt-goals-title {
  font-size: 48px;
  font-weight: 800;
  color: #111827;
  text-align: center;
  margin-bottom: 60px;
  line-height: 1.2;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.jt-goals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto auto;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.jt-goals-block {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jt-goals-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Единая карточка с изображением и текстом (левая, занимает 2 строки) */
.jt-goals-block-cases-unified {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.jt-goals-cases-image {
  width: 100%;
  height: 50%;
  min-height: 250px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.jt-goals-cases-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jt-goals-cases-content {
  padding: 32px;
  background: #FFFFFF;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.jt-goals-block-materials {
  background: #F9F9F9;
}

.jt-goals-block-title {
  font-size: 36px !important; /* ИСПРАВЛЕНО: теперь как .jt-consultation-form-title (36px), а не 48px */
  font-weight: 800;
  color: #111827;
  margin-bottom: 16px;
  line-height: 1.3;
}

.jt-goals-block-description {
  font-size: 20px;
  color: #6B7280;
  line-height: 1.6; /* 1.75 → 1.6 для единообразия */
  margin: 0;
}


/* Карточка с платформой (нижняя правая) */
.jt-goals-block-platform {
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
}

.jt-goals-block-platform .jt-goals-platform-image {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.jt-goals-block-platform .jt-goals-platform-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Карточка поддержки команды (нижняя на всю ширину) */
.jt-goals-block-support-full {
  grid-column: span 2;
  background: #FFFFFF;
  padding: 0;
  overflow: hidden;
}

.jt-goals-support-content {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: none;
  margin: 0;
}

.jt-goals-support-image {
  flex: 1 1 50%;
  width: 50%;
  min-height: 320px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.jt-goals-support-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jt-goals-support-text {
  flex: 1 1 50%;
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.jt-goals-experts-circle {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.jt-goals-expert-avatar {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 4px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.jt-goals-expert-avatar:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.jt-goals-expert-avatar:nth-child(2) {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.jt-goals-expert-avatar:nth-child(3) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.jt-goals-expert-avatar:nth-child(4) {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.jt-goals-expert-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  z-index: 2;
  background: linear-gradient(135deg, #e3b948 0%, #f0c85f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 4px solid #FFFFFF;
}

.jt-goals-expert-text {
  font-size: 11px;
  font-weight: 700;
  color: #111827;
  text-align: center;
  line-height: 1.2;
}


/* Responsive для Goals Section */
@media (max-width: 1024px) {
  .jt-goals-section {
    padding: 60px 0;
  }

  .jt-goals-title {
    font-size: 40px;
    margin-bottom: 48px; /* 50px → 48px (6×8) */
  }
  
  .jt-goals-block-title {
    font-size: 28px !important; /* ИСПРАВЛЕНО: теперь как .jt-consultation-form-title (28px) для адаптива ≤1024px */
  }

  .jt-goals-grid {
    gap: 24px; /* 20px → 24px (3×8) */
  }

  .jt-goals-block {
    padding: 32px; /* 28px → 32px (4×8) */
  }

}

@media (max-width: 768px) {
  .jt-goals-section {
    padding: 50px 0;
  }

  .jt-goals-title {
    font-size: 32px;
    margin-bottom: 40px;
    padding: 0 16px;
  }
  
  .jt-goals-block-title {
    font-size: 28px !important; /* ИСПРАВЛЕНО: теперь как .jt-consultation-form-title (28px) для адаптива ≤768px */
  }

  .jt-goals-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }

  .jt-goals-block {
    padding: 24px;
  }

  .jt-goals-block-support-full {
    grid-column: span 1;
  }

  .jt-goals-support-content {
    flex-direction: column;
    gap: 24px;
  }

  .jt-goals-support-image {
    width: 100%;
    max-width: none;
    flex-basis: auto;
    min-height: 240px;
  }

  .jt-goals-support-text {
    width: 100%;
    padding: 24px;
  }

  .jt-goals-partners-logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .jt-goals-experts-circle {
    width: 250px;
    height: 250px;
  }

  .jt-goals-expert-avatar {
    width: 60px;
    height: 60px;
  }

  .jt-goals-expert-center {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .jt-goals-section {
    padding: 40px 0;
  }

  .jt-goals-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .jt-goals-block-title {
    font-size: 24px !important; /* ИСПРАВЛЕНО: теперь как .jt-consultation-form-title (24px) для адаптива ≤480px */
  }

  .jt-goals-block-description {
    font-size: 15px;
  }
}

/* =========================================================
   Consultation Form Section - Форма консультации
   ========================================================= */

.jt-consultation-form-section {
  width: 100%;
  padding: 80px 0;
  background: #FFFFFF;
  position: relative;
}

.jt-consultation-form-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  background: #e3b948;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.jt-consultation-form-header {
  margin-bottom: 32px;
}

.jt-consultation-form-title {
  font-size: 36px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 16px;
  line-height: 1.2;
}

.jt-consultation-form-description {
  /* ВАЖНО: делаем как .jt-student-journey-description (24px) */
  font-size: 24px !important;
  color: #1a1a1a !important; /* Микроконтраст: тёмно-серый вместо чистого чёрного для снижения нагрузки на глаза */
  line-height: 1.6; /* Уже установлен правильно */
  margin: 0;
  margin-left: 0 !important; /* Выравнивание по левому краю, как заголовок */
  margin-right: auto !important;
  text-align: left !important; /* Принудительное выравнивание текста по левому краю */
}

.jt-consultation-form-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

/* КРИТИЧНО: Высокая специфичность для перекрытия глобальных стилей системы */
.jt-consultation-form-section .jt-form-input {
  width: 100% !important;
  padding: 16px 24px !important; /* 14px 18px → 16px 24px (2×8, 3×8) */
  border: 2px solid #E5E7EB !important;
  border-radius: 12px !important;
  font-size: 24px !important; /* Изменено с 16px на 24px для соответствия размеру .jt-student-journey-description */
  font-weight: 400 !important;
  color: #111827 !important;
  background: #FFFFFF !important;
  transition: border-color 0.3s ease !important;
  box-sizing: border-box !important;
}

.jt-consultation-form-section .jt-form-input:focus {
  outline: none !important;
  border-color: #e3b948 !important;
}

.jt-consultation-form-section .jt-form-input::placeholder {
  color: #111827 !important;
  opacity: 0.7 !important;
  font-size: 24px !important; /* Размер placeholder тоже 24px */
}

.jt-consultation-form-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 16px; /* 12px → 16px (2×8) */
  margin-bottom: 32px;
}

/* КРИТИЧНО: Высокая специфичность для перекрытия глобальных стилей системы */
.jt-consultation-form-section .jt-consultation-form-checkboxes .jt-form-checkbox,
.jt-consultation-form-section .jt-form-checkbox {
  display: flex !important;
  align-items: flex-start !important;
  gap: 16px !important; /* 12px → 16px (2×8) */
  cursor: pointer !important;
  font-size: 24px !important; /* Изменено с 14px на 24px для соответствия размеру .jt-student-journey-description */
  color: #111827 !important;
  line-height: 1.6 !important; /* 1.5 → 1.6 для лучшей читабельности */
}

/* Применяем размер шрифта к тексту внутри span */
.jt-consultation-form-section .jt-consultation-form-checkboxes .jt-form-checkbox span,
.jt-consultation-form-section .jt-form-checkbox span {
  font-size: 24px !important;
  line-height: 1.6 !important;
  color: #111827 !important;
}

.jt-consultation-form-section .jt-consultation-form-checkboxes .jt-form-checkbox input[type="checkbox"],
.jt-consultation-form-section .jt-form-checkbox input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  margin-top: 2px !important;
  cursor: pointer !important;
  accent-color: #e3b948 !important;
  flex-shrink: 0 !important;
}

.jt-consultation-form-section .jt-consultation-form-checkboxes .jt-form-checkbox a,
.jt-consultation-form-section .jt-form-checkbox a {
  color: #111827 !important;
  text-decoration: underline !important;
  transition: color 0.3s ease !important;
  font-size: 24px !important;
}

.jt-consultation-form-section .jt-consultation-form-checkboxes .jt-form-checkbox a:hover,
.jt-consultation-form-section .jt-form-checkbox a:hover {
  color: #e3b948 !important;
}

/* КРИТИЧНО: Высокая специфичность для перекрытия глобальных стилей системы */
.jt-consultation-form-section .jt-consultation-form-btn {
  width: 100% !important;
  background: #111827 !important;
  color: #FFFFFF !important;
  border: none !important;
  padding: 16px 32px !important; /* 18px → 16px (2×8) */
  font-size: 24px !important; /* Изменено с 18px на 24px для соответствия размеру .jt-student-journey-description */
  font-weight: 700 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important; /* ЕДИНЫЙ СТИЛЬ: все заглавные буквы для CTA кнопок */
  letter-spacing: 0.5px !important;
}

.jt-consultation-form-section .jt-consultation-form-btn:hover {
  background: #333333 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.jt-consultation-form-section .jt-consultation-form-btn:active {
  transform: translateY(0) !important;
}

/* Responsive для Consultation Form */
@media (max-width: 1024px) {
  .jt-consultation-form-section .jt-consultation-form-checkboxes .jt-form-checkbox,
  .jt-consultation-form-section .jt-form-checkbox {
    font-size: 20px !important; /* Соответствует .jt-student-journey-description на этом разрешении */
  }
  
  .jt-consultation-form-section .jt-consultation-form-checkboxes .jt-form-checkbox span,
  .jt-consultation-form-section .jt-form-checkbox span {
    font-size: 20px !important;
  }
  
  .jt-consultation-form-section .jt-consultation-form-checkboxes .jt-form-checkbox a,
  .jt-consultation-form-section .jt-form-checkbox a {
    font-size: 20px !important;
  }
  
  /* Адаптивные размеры для инпутов и кнопки */
  .jt-consultation-form-section .jt-form-input {
    font-size: 20px !important;
  }
  
  .jt-consultation-form-section .jt-form-input::placeholder {
    font-size: 20px !important;
  }
  
  .jt-consultation-form-section .jt-consultation-form-btn {
    font-size: 20px !important;
  }
  
  .jt-consultation-form-description {
    font-size: 20px !important;
  }
}

@media (max-width: 768px) {
  .jt-consultation-form-section {
    padding: 50px 0;
  }

  .jt-consultation-form-wrapper {
    padding: 32px 24px;
    margin: 0 16px;
  }

  .jt-consultation-form-title {
    font-size: 28px;
  }

  .jt-consultation-form-description {
    font-size: 18px !important;
  }

  .jt-consultation-form-fields {
    grid-template-columns: 1fr;
  }

  .jt-consultation-form-section .jt-consultation-form-checkboxes .jt-form-checkbox,
  .jt-consultation-form-section .jt-form-checkbox {
    font-size: 18px !important; /* Соответствует .jt-student-journey-description на этом разрешении */
  }
  
  .jt-consultation-form-section .jt-consultation-form-checkboxes .jt-form-checkbox span,
  .jt-consultation-form-section .jt-form-checkbox span {
    font-size: 18px !important;
  }
  
  .jt-consultation-form-section .jt-consultation-form-checkboxes .jt-form-checkbox a,
  .jt-consultation-form-section .jt-form-checkbox a {
    font-size: 18px !important;
  }
  
  /* Адаптивные размеры для инпутов и кнопки */
  .jt-consultation-form-section .jt-form-input {
    font-size: 18px !important;
  }
  
  .jt-consultation-form-section .jt-form-input::placeholder {
    font-size: 18px !important;
  }
  
  .jt-consultation-form-section .jt-consultation-form-btn {
    font-size: 18px !important;
  }
}

@media (max-width: 480px) {
  .jt-consultation-form-section {
    padding: 40px 0;
  }

  .jt-consultation-form-wrapper {
    padding: 24px 24px; /* 20px → 24px (3×8) */
  }

  .jt-consultation-form-title {
    font-size: 24px;
  }

  .jt-consultation-form-description {
    font-size: 17px !important;
  }

  .jt-consultation-form-btn {
    padding: 16px 24px;
    font-size: 17px !important; /* Соответствует .jt-student-journey-description на этом разрешении */
  }

  .jt-consultation-form-section .jt-consultation-form-checkboxes .jt-form-checkbox,
  .jt-consultation-form-section .jt-form-checkbox {
    font-size: 17px !important; /* Соответствует .jt-student-journey-description на этом разрешении */
  }
  
  /* Адаптивные размеры для инпутов */
  .jt-consultation-form-section .jt-form-input {
    font-size: 17px !important;
  }
  
  .jt-consultation-form-section .jt-form-input::placeholder {
    font-size: 17px !important;
  }
  
  .jt-consultation-form-section .jt-consultation-form-checkboxes .jt-form-checkbox span,
  .jt-consultation-form-section .jt-form-checkbox span {
    font-size: 17px !important;
  }
  
  .jt-consultation-form-section .jt-consultation-form-checkboxes .jt-form-checkbox a,
  .jt-consultation-form-section .jt-form-checkbox a {
    font-size: 17px !important;
  }
}

/* =========================================================
   Footer Section - Подвал сайта
   ========================================================= */

.jt-footer {
  width: 100%;
  background: #1A1A1A;
  color: #FFFFFF;
  padding: 60px 0 0;
  margin-top: 80px;
}

.jt-footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.jt-footer-content {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr 1fr;
  gap: 48px 32px; /* 50px 30px → 48px 32px (6×8, 4×8) */
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.jt-footer-brand {
  max-width: 100%;
}

.jt-footer-logo-link {
  font-size: 28px;
  font-weight: 800;
  color: #FFFFFF;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.jt-footer-logo-link:hover {
  color: #e3b948;
}

.jt-footer-tagline {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 24px;
}

.jt-footer-social {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.jt-footer-info-section {
  margin-top: 32px;
}

.jt-footer-info-section .jt-footer-column-title {
  margin-bottom: 16px;
}

.jt-footer-column-combined {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.jt-footer-sub-column {
  display: flex;
  flex-direction: column;
}

.jt-footer-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.3s ease;
}

.jt-footer-social-link:hover {
  background: #e3b948;
  color: #111827;
  transform: translateY(-2px);
}

.jt-footer-social-link svg {
  width: 20px;
  height: 20px;
}

.jt-footer-column-title {
  font-size: 18px;
  font-weight: 700;
  color: #e3b948;
  margin-bottom: 20px;
  line-height: 1.3;
}

.jt-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.jt-footer-links li {
  margin-bottom: 12px;
}

.jt-footer-link {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1.5;
}

.jt-footer-link:hover {
  color: #e3b948;
}

.jt-footer-bottom {
  padding: 32px 0; /* 30px → 32px (4×8) */
}

.jt-footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.jt-footer-copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.jt-footer-bottom-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.jt-footer-bottom-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.jt-footer-bottom-link:hover {
  color: #e3b948;
}

.jt-footer-katalizator {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8) !important;
}

.jt-footer-katalizator:hover {
  color: #e3b948 !important;
}

/* Responsive для Footer */
@media (max-width: 1200px) {
  .jt-footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px 24px; /* 25px → 24px (3×8) */
  }
  
  .jt-footer-brand {
    grid-column: span 4;
  }
}

@media (max-width: 1024px) {
  .jt-footer-content {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
  }
  
  .jt-footer-brand {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {
  .jt-footer {
    padding: 40px 0 0;
    margin-top: 60px;
  }

  .jt-footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .jt-footer-brand {
    grid-column: span 1;
    max-width: 100%;
  }

  .jt-footer-bottom-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .jt-footer-bottom-links {
    flex-direction: column;
    gap: 16px; /* 12px → 16px (2×8) */
  }
}

@media (max-width: 480px) {
  .jt-footer {
    padding: 30px 0 0;
  }

  .jt-footer-container {
    padding: 0 16px;
  }

  .jt-footer-content {
    gap: 24px;
  }

  .jt-footer-logo-link {
    font-size: 24px;
  }

  .jt-footer-tagline {
    font-size: 14px;
  }

  .jt-footer-column-title {
    font-size: 16px;
  }

  .jt-footer-link {
    font-size: 14px;
  }
}

/* =========================================================
   JUSTTRADING: ЕДИНЫЙ РАЗМЕР ТЕКСТА (как в "Путь студентов")
   Цель: привести тексты/карточки/кнопки/бейджи/переключатели
   к размеру .jt-student-journey-description (24px) + адаптив
   ВАЖНО: только для justtrading.ru (файл лежит в skillbox_files проекта)
   ========================================================= */

:root {
  --jt-ui-font-base: 24px;  /* desktop */
  --jt-ui-font-1024: 20px;  /* <=1024 */
  --jt-ui-font-768: 18px;   /* <=768 */
  --jt-ui-font-480: 17px;   /* <=480 */
}

/* Тексты/описания (в т.ч. блок "Как ... помогает", бегущая строка) */
.jt-program-card-full,
.jt-story-text,
.jt-carousel-card-text,
.jt-banner-subtitle,
.jt-guarantee-description,
.jt-student-journey-description,
.jt-goals-block-description,
.jt-consultation-form-description,
.jt-goals-section p,
.jt-goals-block p,
.jt-goals-section span:not(.jt-goals-title):not(.jt-goals-block-title),
.jt-goals-block span:not(.jt-goals-block-title),
.jt-programs-section p,
.jt-program-card-content p,
.jt-program-card-content span:not(.jt-program-card-title),
.jt-carousel-card-overlay p,
.jt-carousel-card-overlay span,
.jt-carousel-card-overlay div,
.jt-guarantees-section p,
.jt-student-journey-section p,
.jt-consultation-form-section p {
  font-size: var(--jt-ui-font-base) !important;
}

/* UI: карточки/кнопки/бейджи/переключатели/фильтры/метки */
.jt-course-card,
.jt-filter-btn,
.jt-btn-primary,
.jt-guarantees-btn,
.jt-student-journey-btn,
.jt-consultation-form-btn,
.jt-banner-btn,
.jt-program-card-label,
.jt-carousel-card-badge,
.jt-banner-switcher,
.jt-carousel-nav-btn,
.jt-stat-label,
.jt-stat-value,
.jt-program-card-duration,
.jt-program-card-benefit {
  font-size: var(--jt-ui-font-base) !important;
}

@media (max-width: 1024px) {
  .jt-program-card-full,
  .jt-story-text,
  .jt-carousel-card-text,
  .jt-banner-subtitle,
  .jt-guarantee-description,
  .jt-student-journey-description,
  .jt-goals-block-description,
  .jt-consultation-form-description,
  .jt-goals-section p,
  .jt-goals-block p,
  .jt-goals-section span:not(.jt-goals-title):not(.jt-goals-block-title),
  .jt-goals-block span:not(.jt-goals-block-title),
  .jt-programs-section p,
  .jt-program-card-content p,
  .jt-program-card-content span:not(.jt-program-card-title),
  .jt-carousel-card-overlay p,
  .jt-carousel-card-overlay span,
  .jt-carousel-card-overlay div,
  .jt-guarantees-section p,
  .jt-student-journey-section p,
  .jt-consultation-form-section p {
    font-size: var(--jt-ui-font-1024) !important;
  }

  .jt-course-card,
  .jt-filter-btn,
  .jt-btn-primary,
  .jt-guarantees-btn,
  .jt-student-journey-btn,
  .jt-consultation-form-btn,
  .jt-banner-btn,
  .jt-program-card-label,
  .jt-carousel-card-badge,
  .jt-banner-switcher,
  .jt-carousel-nav-btn,
  .jt-stat-label,
  .jt-stat-value,
  .jt-program-card-duration,
  .jt-program-card-benefit {
    font-size: var(--jt-ui-font-1024) !important;
  }
}

@media (max-width: 768px) {
  .jt-program-card-full,
  .jt-story-text,
  .jt-carousel-card-text,
  .jt-banner-subtitle,
  .jt-guarantee-description,
  .jt-student-journey-description,
  .jt-goals-block-description,
  .jt-consultation-form-description,
  .jt-goals-section p,
  .jt-goals-block p,
  .jt-goals-section span:not(.jt-goals-title):not(.jt-goals-block-title),
  .jt-goals-block span:not(.jt-goals-block-title),
  .jt-programs-section p,
  .jt-program-card-content p,
  .jt-program-card-content span:not(.jt-program-card-title),
  .jt-carousel-card-overlay p,
  .jt-carousel-card-overlay span,
  .jt-carousel-card-overlay div,
  .jt-guarantees-section p,
  .jt-student-journey-section p,
  .jt-consultation-form-section p {
    font-size: var(--jt-ui-font-768) !important;
  }

  .jt-course-card,
  .jt-filter-btn,
  .jt-btn-primary,
  .jt-guarantees-btn,
  .jt-student-journey-btn,
  .jt-consultation-form-btn,
  .jt-banner-btn,
  .jt-program-card-label,
  .jt-carousel-card-badge,
  .jt-banner-switcher,
  .jt-carousel-nav-btn,
  .jt-stat-label,
  .jt-stat-value,
  .jt-program-card-duration,
  .jt-program-card-benefit {
    font-size: var(--jt-ui-font-768) !important;
  }
}

@media (max-width: 480px) {
  .jt-program-card-full,
  .jt-story-text,
  .jt-carousel-card-text,
  .jt-banner-subtitle,
  .jt-guarantee-description,
  .jt-student-journey-description,
  .jt-goals-block-description,
  .jt-consultation-form-description,
  .jt-goals-section p,
  .jt-goals-block p,
  .jt-goals-section span:not(.jt-goals-title):not(.jt-goals-block-title),
  .jt-goals-block span:not(.jt-goals-block-title),
  .jt-programs-section p,
  .jt-program-card-content p,
  .jt-program-card-content span:not(.jt-program-card-title),
  .jt-carousel-card-overlay p,
  .jt-carousel-card-overlay span,
  .jt-carousel-card-overlay div,
  .jt-guarantees-section p,
  .jt-student-journey-section p,
  .jt-consultation-form-section p {
    font-size: var(--jt-ui-font-480) !important;
  }

  .jt-course-card,
  .jt-filter-btn,
  .jt-btn-primary,
  .jt-guarantees-btn,
  .jt-student-journey-btn,
  .jt-consultation-form-btn,
  .jt-banner-btn,
  .jt-program-card-label,
  .jt-carousel-card-badge,
  .jt-banner-switcher,
  .jt-carousel-nav-btn,
  .jt-stat-label,
  .jt-stat-value,
  .jt-program-card-duration,
  .jt-program-card-benefit {
    font-size: var(--jt-ui-font-480) !important;
  }
}

/* =========================================================
   JUSTTRADING: УБИРАЕМ ЖИРНЫЙ ШРИФТ ИЗ ОПИСАНИЙ КАРТОЧЕК
   Цель: все описания должны быть обычным шрифтом (400)
   ========================================================= */
.jt-program-card-full,
.jt-carousel-card-text,
.jt-guarantee-description,
.jt-goals-block-description,
.jt-program-card-content p,
.jt-program-card-content span:not(.jt-program-card-title),
.jt-carousel-card-overlay p,
.jt-carousel-card-overlay span,
.jt-carousel-card-overlay div,
.jt-goals-section p,
.jt-goals-block p,
.jt-goals-section span:not(.jt-goals-title):not(.jt-goals-block-title),
.jt-goals-block span:not(.jt-goals-block-title),
.jt-programs-section p {
  font-weight: 400 !important; /* Принудительно убираем жирный шрифт из всех описаний */
}

/* =========================================================
   JUSTTRADING: УВЕЛИЧИВАЕМ ЗАГОЛОВКИ КАРТОЧЕК
   Цель: заголовки должны быть крупнее описаний для визуального разделения
   ========================================================= */
@media (max-width: 480px) {
  .jt-program-card-title {
    font-size: 24px !important; /* УВЕЛИЧЕНО: было 22px, теперь 24px для адаптива ≤480px */
  }
}

/* =========================================================
   JUSTTRADING: ИЕРАРХИЯ ЗАГОЛОВКОВ (H1/H2/H3/H4)
   Цель: чёткая визуальная разница между уровнями заголовков
   ========================================================= */

:root {
  --jt-h1-size: 56px;
  --jt-h2-size: 42px;
  --jt-h3-size: 28px;
  --jt-h4-size: 24px;
}

/* H1 (ОНЛАЙН ПЛАТФОРМА...) */
h1,
.jt-hero-title {
  font-size: var(--jt-h1-size) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
}

/* H2 (КЛЮЧЕВЫЕ ПРОГРАММЫ..., Как АналитикПро помогает..., и т.п.) */
h2,
.jt-popular-title,
.jt-programs-title,
.jt-guarantees-title,
.jt-student-journey-title,
.jt-goals-title,
.jt-carousel-title,
.jt-banner-title {
  font-size: var(--jt-h2-size) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

/* H3 (статистика/названия карточек курсов) */
h3,
.jt-stat-label,
.jt-program-card-title {
  font-size: var(--jt-h3-size) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

/* H4 (шаги/карточки "Выберите курс" и т.п.) */
h4,
.jt-guarantee-title {
  font-size: var(--jt-h4-size) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

/* =========================================================
   JUSTTRADING: ПРИНУДИТЕЛЬНЫЙ LINE-HEIGHT 1.6 ДЛЯ ВСЕГО ОСНОВНОГО ТЕКСТА
   Цель: гарантировать читабельность (1.5-1.7) для всех текстовых элементов
   Исключения: заголовки (H1-H4) остаются с меньшим line-height
   ========================================================= */
/* Все описания, параграфы и текстовые элементы */
.jt-program-card-full,
.jt-story-text,
.jt-carousel-card-text,
.jt-banner-subtitle,
.jt-guarantee-description,
.jt-student-journey-description,
.jt-goals-block-description,
.jt-consultation-form-description,
.jt-goals-section p,
.jt-goals-block p,
.jt-goals-section span:not(.jt-goals-title):not(.jt-goals-block-title),
.jt-goals-block span:not(.jt-goals-block-title),
.jt-programs-section p,
.jt-program-card-content p,
.jt-program-card-content span:not(.jt-program-card-title),
.jt-carousel-card-overlay p,
.jt-carousel-card-overlay span,
.jt-carousel-card-overlay div,
.jt-guarantees-section p,
.jt-student-journey-section p,
.jt-consultation-form-section p,
.jt-consultation-form-section span:not(.jt-consultation-form-title),
.jt-consultation-form-section .jt-form-input,
.jt-consultation-form-section .jt-form-checkbox,
.jt-consultation-form-section .jt-form-checkbox span,
.jt-hero-section p,
.jt-hero-section span:not(.jt-hero-title),
.jt-programs-section span:not(.jt-programs-title):not(.jt-program-card-title),
.jt-program-card-content div:not(.jt-program-card-title):not(.jt-program-card-meta),
.jt-carousel-section p,
.jt-carousel-section span:not(.jt-carousel-title),
.jt-banner-section p,
.jt-banner-section span:not(.jt-banner-title):not(.jt-banner-content-title),
.jt-banner-content p,
.jt-banner-content span:not(.jt-banner-content-title),
.jt-banner-content div:not(.jt-banner-content-title),
.jt-guarantees-section span:not(.jt-guarantees-title):not(.jt-guarantee-title),
.jt-student-journey-section span:not(.jt-student-journey-title) {
  line-height: 1.6 !important; /* Принудительно 1.6 для читабельности (в диапазоне 1.5-1.7) */
}

/* =========================================================
   JUSTTRADING: МИКРОКОНТРАСТ ДЛЯ ТЕКСТА (#1a1a1a вместо #111827)
   Цель: снизить нагрузку на глаза, используя тёмно-серый вместо чистого чёрного
   Применяется ко всем текстовым элементам, кроме заголовков и специальных элементов
   ========================================================= */
/* Все описания, параграфы и текстовые элементы - тёмно-серый цвет */
.jt-program-card-full,
.jt-story-text,
.jt-banner-subtitle,
.jt-guarantee-description,
.jt-student-journey-description,
.jt-goals-block-description,
.jt-consultation-form-description,
.jt-goals-section p,
.jt-goals-block p,
.jt-goals-section span:not(.jt-goals-title):not(.jt-goals-block-title),
.jt-goals-block span:not(.jt-goals-block-title),
.jt-programs-section p,
.jt-program-card-content p,
.jt-program-card-content span:not(.jt-program-card-title),
.jt-guarantees-section p,
.jt-student-journey-section p,
.jt-consultation-form-section p,
.jt-consultation-form-section span:not(.jt-consultation-form-title),
.jt-hero-section p,
.jt-hero-section span:not(.jt-hero-title),
.jt-programs-section span:not(.jt-programs-title):not(.jt-program-card-title),
.jt-program-card-content div:not(.jt-program-card-title):not(.jt-program-card-meta),
.jt-carousel-section p,
.jt-carousel-section span:not(.jt-carousel-title),
.jt-banner-section p,
.jt-banner-section span:not(.jt-banner-title):not(.jt-banner-content-title),
.jt-banner-content p,
.jt-banner-content span:not(.jt-banner-content-title),
.jt-banner-content div:not(.jt-banner-content-title),
.jt-guarantees-section span:not(.jt-guarantees-title):not(.jt-guarantee-title),
.jt-student-journey-section span:not(.jt-student-journey-title) {
  color: #1a1a1a !important; /* Микроконтраст: тёмно-серый вместо чистого чёрного для снижения нагрузки на глаза */
}

/* Исключения: элементы, которые должны оставаться чёрными или иметь свой цвет */
/* Заголовки остаются чёрными для контраста */
/* Тексты в overlay карточек карусели остаются белыми */
/* Элементы форм могут иметь свой цвет */

/* =========================================================
   JUSTTRADING: КОНТРОЛЬ ШИРИНЫ СТРОК (max-width: 65ch)
   Цель: ограничить длину строк до 60-80 символов для лучшей читабельности
   Применяется только к текстовым элементам, не к контейнерам/сеткам
   ========================================================= */
/* Описания и параграфы в карточках и секциях */
.jt-program-card-full,
.jt-goals-block-description,
.jt-guarantee-description,
.jt-student-journey-description,
.jt-goals-section p,
.jt-goals-block p,
.jt-programs-section p,
.jt-program-card-content p,
.jt-guarantees-section p,
.jt-student-journey-section p {
  max-width: 65ch !important; /* Ограничение ширины строки для читабельности (60-80 символов) */
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Исключение: описание формы консультации должно быть выровнено по левому краю, как заголовок */
.jt-consultation-form-section .jt-consultation-form-description {
  max-width: 65ch !important; /* Ограничение ширины строки */
  margin-left: 0 !important; /* Выравнивание по левому краю, как заголовок */
  margin-right: auto !important;
  text-align: left !important; /* Принудительное выравнивание текста по левому краю */
}

/* Жёсткая фиксация выравнивания в шапке формы (если где-то задан text-align: center) */
.jt-consultation-form-header,
.jt-consultation-form-title,
.jt-consultation-form-description {
  text-align: left !important;
}

/* Тексты в overlay карточек карусели (уже ограничены шириной карточки, но добавим для консистентности) */
.jt-carousel-card-overlay p,
.jt-carousel-card-overlay span,
.jt-carousel-card-overlay div {
  max-width: 100% !important; /* В карточках карусели используем всю доступную ширину */
}

/* Исключения: элементы, которые должны быть на всю ширину контейнера */
.jt-consultation-form-section .jt-form-input,
.jt-consultation-form-section .jt-form-checkbox,
.jt-consultation-form-section .jt-consultation-form-btn {
  max-width: 100% !important; /* Формы должны быть на всю ширину */
}

/* Адаптив: на мобильных устройствах используем всю доступную ширину */
@media (max-width: 768px) {
  .jt-program-card-full,
  .jt-goals-block-description,
  .jt-guarantee-description,
  .jt-student-journey-description,
  .jt-consultation-form-description,
  .jt-goals-section p,
  .jt-goals-block p,
  .jt-programs-section p,
  .jt-program-card-content p,
  .jt-guarantees-section p,
  .jt-student-journey-section p {
    max-width: 100% !important; /* На мобильных используем всю ширину для экономии места */
    margin-left: 0 !important; /* На мобильных выравнивание по левому краю */
    margin-right: 0 !important;
  }
}

@media (max-width: 1024px) {
  :root {
    --jt-h1-size: 48px;
    --jt-h2-size: 36px;
    --jt-h3-size: 26px;
    --jt-h4-size: 22px;
  }
}

@media (max-width: 768px) {
  :root {
    --jt-h1-size: 40px;
    --jt-h2-size: 32px;
    --jt-h3-size: 24px;
    --jt-h4-size: 20px;
  }
}

/* =========================================================
   JUSTTRADING: ЕДИНЫЙ СТИЛЬ ТЕКСТА ДЛЯ ВСЕХ CTA КНОПОК
   Цель: все CTA кнопки должны иметь ВСЕ ЗАГЛАВНЫЕ БУКВЫ (uppercase)
   Это повышает заметность и конверсию (стандарт для высококонверсионных CTA)
   ========================================================= */
/* Все основные CTA кнопки - все заглавные буквы */
.jt-btn-primary,
.jt-guarantees-btn,
.jt-student-journey-btn,
.jt-consultation-form-btn,
.jt-banner-btn {
  text-transform: uppercase !important; /* ЕДИНЫЙ СТИЛЬ: все заглавные буквы для CTA кнопок */
  letter-spacing: 0.5px !important; /* Улучшает читаемость заглавных букв */
}

/* Исключения: фильтры и навигационные кнопки остаются с обычным регистром */
/* .jt-filter-btn - остаётся с text-transform: none (не CTA кнопка) */

@media (max-width: 480px) {
  :root {
    --jt-h1-size: 34px;
    --jt-h2-size: 28px;
    --jt-h3-size: 22px;
    --jt-h4-size: 18px;
  }
}

/* =========================================================
   JUSTTRADING: ФИКСАЦИЯ РАЗМЕРА КАРТОЧЕК В БЕГУЩЕЙ СТРОКЕ
   Цель: гарантировать, что размер карточек не уменьшится после обновлений
   Используется максимальная специфичность и !important для защиты от перезаписи
   ========================================================= */
/* КРИТИЧНО: Защита размера карточек с максимальной специфичностью */
.jt-infinite-carousel-section .jt-carousel-wrapper .jt-carousel-track .jt-carousel-card,
.jt-carousel-section .jt-carousel-wrapper .jt-carousel-track .jt-carousel-card,
.jt-carousel-wrapper .jt-carousel-track .jt-carousel-card,
.jt-carousel-track .jt-carousel-card,
.jt-carousel-card {
  width: 404px !important; /* ФИКСИРОВАНО: финальный размер для десктопа - ЗАЩИЩЕНО от уменьшения */
  height: 504px !important; /* ФИКСИРОВАНО: финальный размер для десктопа - ЗАЩИЩЕНО от уменьшения */
  min-width: 404px !important; /* Дополнительная защита: минимальная ширина */
  min-height: 504px !important; /* Дополнительная защита: минимальная высота */
}

@media (max-width: 1024px) {
  .jt-infinite-carousel-section .jt-carousel-wrapper .jt-carousel-track .jt-carousel-card,
  .jt-carousel-section .jt-carousel-wrapper .jt-carousel-track .jt-carousel-card,
  .jt-carousel-wrapper .jt-carousel-track .jt-carousel-card,
  .jt-carousel-track .jt-carousel-card,
  .jt-carousel-card {
    width: 352px !important; /* ФИКСИРОВАНО: финальный размер для ≤1024px - ЗАЩИЩЕНО от уменьшения */
    height: 443px !important; /* ФИКСИРОВАНО: финальный размер для ≤1024px - ЗАЩИЩЕНО от уменьшения */
    min-width: 352px !important;
    min-height: 443px !important;
  }
}

@media (max-width: 768px) {
  .jt-infinite-carousel-section .jt-carousel-wrapper .jt-carousel-track .jt-carousel-card,
  .jt-carousel-section .jt-carousel-wrapper .jt-carousel-track .jt-carousel-card,
  .jt-carousel-wrapper .jt-carousel-track .jt-carousel-card,
  .jt-carousel-track .jt-carousel-card,
  .jt-carousel-card {
    width: 327px !important; /* ФИКСИРОВАНО: финальный размер для ≤768px - ЗАЩИЩЕНО от уменьшения */
    height: 415px !important; /* ФИКСИРОВАНО: финальный размер для ≤768px - ЗАЩИЩЕНО от уменьшения */
    min-width: 327px !important;
    min-height: 415px !important;
  }
}

@media (max-width: 480px) {
  .jt-infinite-carousel-section .jt-carousel-wrapper .jt-carousel-track .jt-carousel-card,
  .jt-carousel-section .jt-carousel-wrapper .jt-carousel-track .jt-carousel-card,
  .jt-carousel-wrapper .jt-carousel-track .jt-carousel-card,
  .jt-carousel-track .jt-carousel-card,
  .jt-carousel-card {
    width: 302px !important; /* ФИКСИРОВАНО: финальный размер для ≤480px - ЗАЩИЩЕНО от уменьшения */
    height: 378px !important; /* ФИКСИРОВАНО: финальный размер для ≤480px - ЗАЩИЩЕНО от уменьшения */
    min-width: 302px !important;
    min-height: 378px !important;
  }
}

/* =========================================================
   JUSTTRADING: МОДАЛЬНОЕ ОКНО ДЛЯ КАРТОЧЕК ПРОГРАММ ОБУЧЕНИЯ
   Цель: модальное окно с изображением слева и описанием справа
   Применены все улучшения UX/UI: типографика, цвета, line-height, max-width
   ========================================================= */
/* Overlay модального окна */
.jt-program-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px); /* Размытие фона для премиум-эффекта */
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Плавное появление overlay */
  overflow-y: auto;
}

.jt-program-modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* Модальное окно */
.jt-program-modal {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px); /* Начальное состояние: меньше и ниже */
  opacity: 0; /* Начальная прозрачность */
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important; /* Плавное появление с легким "отскоком" */
  position: relative;
}

.jt-program-modal-overlay.active .jt-program-modal {
  transform: scale(1) translateY(0); /* Финальное состояние: нормальный размер и позиция */
  opacity: 1; /* Полная непрозрачность */
}

/* Изображение слева */
.jt-program-modal-image {
  width: 50%;
  min-width: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  opacity: 0; /* Начальная прозрачность */
  transform: translateX(-20px); /* Начальное смещение влево */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.15s !important; /* Плавное появление с задержкой */
}

.jt-program-modal-overlay.active .jt-program-modal-image {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* Контент справа */
.jt-program-modal-content {
  width: 50%;
  padding: 48px;
  display: flex;
  flex-direction: column;
  overflow-y: visible; /* Убрали скролл - контент должен помещаться */
  max-height: 90vh;
  justify-content: space-between; /* Распределяем контент равномерно */
}

/* Кнопка закрытия */
.jt-program-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  z-index: 10001;
  transition: all 0.2s ease-in-out;
}

.jt-program-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: rotate(90deg);
}

/* Заголовок модального окна */
.jt-program-modal-title {
  font-size: 42px !important; /* H2 размер */
  font-weight: 800 !important;
  color: #111827 !important;
  margin: 0 0 32px 0 !important;
  line-height: 1.2 !important;
  font-family: 'Arial', sans-serif !important;
  max-width: 65ch !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  opacity: 0; /* Начальная прозрачность */
  transform: translateY(-10px); /* Начальное смещение */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s !important; /* Плавное появление с задержкой */
}

.jt-program-modal-overlay.active .jt-program-modal-title {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Описание программы */
.jt-program-modal-description {
  font-size: var(--jt-ui-font-base) !important; /* как базовый текст на странице */
  color: #1a1a1a !important; /* Микроконтраст */
  line-height: 1.6 !important; /* Читабельность */
  margin: 0 0 24px 0 !important;
  max-width: 65ch !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  font-weight: 400 !important;
  flex-shrink: 0; /* Не сжимается */
  opacity: 0; /* Начальная прозрачность */
  transform: translateY(-10px); /* Начальное смещение */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.2s !important; /* Плавное появление с задержкой */
}

.jt-program-modal-overlay.active .jt-program-modal-description {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Список преимуществ */
.jt-program-modal-benefits {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px 0 !important; /* Уменьшили отступы */
  flex-shrink: 0; /* Не сжимается */
  opacity: 0; /* Начальная прозрачность */
  transform: translateY(-10px); /* Начальное смещение */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.3s !important; /* Плавное появление с задержкой */
}

.jt-program-modal-overlay.active .jt-program-modal-benefits {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.jt-program-modal-benefits li {
  font-size: var(--jt-ui-font-base) !important; /* как базовый текст на странице */
  color: #1a1a1a !important;
  line-height: 1.6 !important;
  margin-bottom: 12px !important; /* Уменьшили отступы между пунктами */
  padding-left: 32px;
  position: relative;
  max-width: 65ch;
  opacity: 0; /* Начальная прозрачность для каждого пункта */
  transform: translateX(-10px); /* Начальное смещение влево */
  transition: all 0.2s ease-in-out !important; /* Плавное появление каждого пункта */
}

.jt-program-modal-overlay.active .jt-program-modal-benefits li {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* Каскадное появление пунктов списка */
.jt-program-modal-overlay.active .jt-program-modal-benefits li:nth-child(1) {
  transition-delay: 0.4s !important;
}
.jt-program-modal-overlay.active .jt-program-modal-benefits li:nth-child(2) {
  transition-delay: 0.5s !important;
}
.jt-program-modal-overlay.active .jt-program-modal-benefits li:nth-child(3) {
  transition-delay: 0.6s !important;
}

.jt-program-modal-benefits li:last-child {
  margin-bottom: 0 !important;
}

.jt-program-modal-benefits li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #e3b948;
  font-weight: 800;
  font-size: 24px;
}

/* Кнопка "Подробней о курсе" */
.jt-program-modal-btn {
  width: 100% !important;
  background: #111827 !important;
  color: #FFFFFF !important;
  border: none !important;
  padding: 16px 32px !important;
  font-size: 20px !important; /* Как у описания */
  font-weight: 700 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.2s ease-in-out !important;
  text-transform: uppercase !important; /* ЕДИНЫЙ СТИЛЬ: все заглавные буквы */
  letter-spacing: 0.5px !important;
  margin-top: auto !important; /* Прижимается к низу */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  opacity: 0; /* Начальная прозрачность */
  transform: translateY(10px); /* Начальное смещение вниз */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.4s !important; /* Плавное появление с задержкой */
}

.jt-program-modal-overlay.active .jt-program-modal-btn {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.jt-program-modal-btn:hover {
  background: #333333 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.jt-program-modal-btn:active {
  transform: translateY(0) !important;
}

/* Адаптив для модального окна */
@media (max-width: 1024px) {
  .jt-program-modal {
    flex-direction: column;
    max-height: 95vh;
  }
  
  .jt-program-modal-image {
    width: 100%;
    min-width: 100%;
    height: 300px;
  }
  
  .jt-program-modal-content {
    width: 100%;
    padding: 32px;
    max-height: calc(95vh - 300px); /* Учитываем высоту изображения */
  }
  
  .jt-program-modal-title {
    font-size: 36px !important;
    margin-bottom: 24px !important;
  }
  
  .jt-program-modal-description {
    font-size: var(--jt-ui-font-1024) !important;
    margin-bottom: 20px !important;
  }
  
  .jt-program-modal-benefits {
    margin: 20px 0 24px 0 !important;
  }
  
  .jt-program-modal-benefits li {
    font-size: var(--jt-ui-font-1024) !important;
    margin-bottom: 10px !important;
  }
  
  .jt-program-modal-btn {
    font-size: 18px !important;
    padding: 14px 28px !important;
  }
}

@media (max-width: 768px) {
  .jt-program-modal-overlay {
    padding: 20px 16px;
  }
  
  .jt-program-modal {
    border-radius: 16px;
  }
  
  .jt-program-modal-image {
    height: 250px;
  }
  
  .jt-program-modal-content {
    padding: 24px;
    max-height: calc(95vh - 250px); /* Учитываем высоту изображения */
  }
  
  .jt-program-modal-title {
    font-size: 32px !important;
    margin-bottom: 20px !important;
  }
  
  .jt-program-modal-description {
    font-size: var(--jt-ui-font-768) !important;
    margin-bottom: 16px !important;
  }
  
  .jt-program-modal-benefits {
    margin: 16px 0 20px 0 !important;
  }
  
  .jt-program-modal-benefits li {
    font-size: var(--jt-ui-font-768) !important;
    padding-left: 28px;
    margin-bottom: 8px !important;
  }
  
  .jt-program-modal-btn {
    font-size: 18px !important;
    padding: 14px 24px !important;
  }
  
  .jt-program-modal-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .jt-program-modal-image {
    height: 200px;
  }
  
  .jt-program-modal-content {
    padding: 20px;
    max-height: calc(95vh - 200px); /* Учитываем высоту изображения */
  }
  
  .jt-program-modal-title {
    font-size: 28px !important;
    margin-bottom: 16px !important;
  }
  
  .jt-program-modal-description {
    font-size: var(--jt-ui-font-480) !important;
    margin-bottom: 12px !important;
  }
  
  .jt-program-modal-benefits {
    margin: 12px 0 16px 0 !important;
  }
  
  .jt-program-modal-benefits li {
    font-size: var(--jt-ui-font-480) !important;
    padding-left: 24px;
    margin-bottom: 6px !important;
  }
  
  .jt-program-modal-btn {
    font-size: 17px !important;
    padding: 12px 20px !important;
  }
}

/* =========================================================
   JUSTTRADING: ПЛАВНЫЕ ПЕРЕХОДЫ ДЛЯ ВСЕХ ИНТЕРАКТИВНЫХ ЭЛЕМЕНТОВ
   Цель: добавить transition: all 0.2s ease-in-out для всех интерактивных элементов
   Плавность = качество (кнопки, ссылки, карточки)
   ========================================================= */
/* Все кнопки */
.jt-btn-primary,
.jt-filter-btn,
.jt-guarantees-btn,
.jt-student-journey-btn,
.jt-consultation-form-btn,
.jt-banner-btn,
.jt-carousel-nav-btn,
.jt-gridywrap .jt-gridinfo .jt-grid-btn,
button,
input[type="submit"],
input[type="button"] {
  transition: all 0.2s ease-in-out !important; /* Плавные переходы для всех кнопок */
}

/* Все ссылки */
a,
.jt-footer-link,
.jt-program-card-label a,
.jt-carousel-card,
.jt-course-card {
  transition: all 0.2s ease-in-out !important; /* Плавные переходы для всех ссылок */
}

/* Все карточки */
.jt-guarantee-card,
.jt-goals-block,
.jt-carousel-card,
.jt-course-card,
.jt-gridywrap .jt-gridinfo {
  transition: all 0.2s ease-in-out !important; /* Плавные переходы для всех карточек */
}

/* Интерактивные элементы форм */
.jt-form-input,
.jt-form-checkbox,
.jt-form-checkbox input[type="checkbox"],
select,
textarea {
  transition: all 0.2s ease-in-out !important; /* Плавные переходы для элементов форм */
}

/* Дополнительные интерактивные элементы */
.jt-banner-switcher,
.jt-carousel-card-badge,
.jt-program-card-label,
.jt-stat-item {
  transition: all 0.2s ease-in-out !important; /* Плавные переходы для дополнительных элементов */
}

/* =========================================================
   JUSTTRADING: FINAL OVERRIDE — badge "N курсов" строго сверху-слева
   Причина: badge лежит внутри overlay; overlay должен быть static.
   ========================================================= */
.jt-infinite-carousel-section .jt-carousel-card {
  position: relative !important;
}

.jt-infinite-carousel-section .jt-carousel-card .jt-carousel-card-overlay {
  position: static !important;
}

.jt-infinite-carousel-section .jt-carousel-card .jt-carousel-card-badge {
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 10 !important;
}

/* =========================================================
   Модальное окно для заявки на обучение
   ========================================================= */

.jt-training-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Плавное появление overlay */
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px); /* Размытие фона для премиум-эффекта */
  -webkit-backdrop-filter: blur(4px);
}

.jt-training-modal.active {
  display: flex;
  opacity: 1;
}

.jt-training-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.jt-training-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  overflow: hidden;
  transform: scale(0.9) translateY(20px); /* Начальное состояние: меньше и ниже */
  opacity: 0; /* Начальная прозрачность */
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important; /* Плавное появление с легким "отскоком" */
  z-index: 10001;
}

/* Модальные окна стратегий - шире и без ограничения высоты */
.jt-strategy-modal-content {
  max-width: 1100px !important; /* Увеличено с 900px до 1100px */
  max-height: none !important; /* Убираем ограничение высоты для стратегий */
  overflow: visible !important; /* Убираем скролл */
}

.jt-training-modal.active .jt-training-modal-content {
  transform: scale(1) translateY(0) !important; /* Финальное состояние: нормальный размер и позиция */
  opacity: 1 !important; /* Полная непрозрачность */
}

.jt-training-modal-image-side {
  width: 45%;
  min-width: 300px;
  background: #F9F9F9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0; /* Начальная прозрачность */
  transform: translateX(-20px); /* Начальное смещение влево */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.15s !important; /* Плавное появление с задержкой */
}

.jt-training-modal.active .jt-training-modal-image-side {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.jt-training-modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jt-training-modal-form-side {
  width: 55%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  overflow: visible !important; /* Убираем скролл */
  max-height: none !important; /* Убираем ограничение высоты */
}

.jt-training-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px !important; /* Уменьшено с 32px */
}

.jt-training-modal-title {
  font-size: 36px !important; /* Уменьшено с 42px для экономии места */
  font-weight: 800 !important;
  color: #111827 !important;
  line-height: 1.2 !important;
  margin: 0 0 24px 0 !important; /* Уменьшено с 32px */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  opacity: 0; /* Начальная прозрачность */
  transform: translateY(-10px); /* Начальное смещение */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s !important; /* Плавное появление с задержкой */
}

.jt-training-modal.active .jt-training-modal-title {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.jt-training-modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #6B7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.jt-training-modal-close:hover {
  color: #111827;
  transform: rotate(90deg);
}

.jt-training-modal-body {
  flex: 1;
  opacity: 0; /* Начальная прозрачность */
  transform: translateY(-10px); /* Начальное смещение */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.2s !important; /* Плавное появление с задержкой */
}

.jt-training-modal.active .jt-training-modal-body {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.jt-training-modal-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.jt-training-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jt-training-form-label {
  font-size: 24px !important; /* Как у .jt-student-journey-description */
  font-weight: 400 !important;
  color: #6B7280 !important; /* Темно-серый цвет */
  line-height: 1.6 !important;
}

.jt-training-form-input {
  padding: 14px 16px;
  border: 2px solid #F5F5F5;
  border-radius: 8px;
  font-size: 24px !important; /* Как у .jt-student-journey-description */
  font-family: inherit;
  transition: border-color 0.2s ease;
  background: #FFFFFF;
  color: #1a1a1a !important; /* Темный цвет текста */
  line-height: 1.6 !important;
}

.jt-training-form-input:focus {
  outline: none;
  border-color: #e3b948;
}

.jt-training-form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.jt-training-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 24px !important; /* Как у .jt-student-journey-description */
  color: #6B7280 !important; /* Темно-серый цвет */
  cursor: pointer;
  line-height: 1.6 !important;
}

.jt-training-checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.jt-training-checkbox-label a {
  color: #e3b948;
  text-decoration: underline;
}

.jt-training-modal-footer {
  display: flex;
  gap: 16px;
  margin-top: 20px !important; /* Уменьшено с 24px */
  padding-top: 20px !important; /* Уменьшено с 24px */
  border-top: 1px solid #F5F5F5;
  opacity: 0; /* Начальная прозрачность */
  transform: translateY(10px); /* Начальное смещение вниз */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.4s !important; /* Плавное появление с задержкой */
}

.jt-training-modal.active .jt-training-modal-footer {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.jt-training-modal-btn {
  flex: 1;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.jt-training-modal-btn-primary {
  background: #e3b948;
  color: #111827;
}

.jt-training-modal-btn-primary:hover {
  background: #f0c85f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(227, 185, 72, 0.3);
}

.jt-training-modal-btn-secondary {
  background: transparent;
  color: #6B7280;
  border: 2px solid #F5F5F5;
}

.jt-training-modal-btn-secondary:hover {
  border-color: #6B7280;
  color: #111827;
}

/* Responsive для модального окна */
@media (max-width: 768px) {
  .jt-training-modal-content {
    flex-direction: column;
    width: 95%;
    max-height: 95vh;
  }

  .jt-training-modal-image-side {
    width: 100%;
    min-width: auto;
    height: 200px;
  }

  .jt-training-modal-form-side {
    width: 100%;
    padding: 24px;
  }

  .jt-training-modal-title {
    font-size: 24px;
  }

  .jt-training-modal-footer {
    flex-direction: column;
  }

  .jt-training-modal-btn {
    width: 100%;
  }
}

/* =========================================================
   FINAL FIX: HERO pills hover (без конфликтов и без "золотых" флэшей)
   Причина фикса: в файле выше есть глобальный `transition: all !important` для `.jt-course-card`,
   он ломает hover. Здесь мы задаём нужный transition и убираем движение.
   ========================================================= */
.jt-hero-section .jt-course-card {
  /* перебиваем глобальный transition: all */
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;

  /* запрещаем "прыжки" (они и дают флаппинг на границе курсора) */
  transform: none !important;
}

.jt-hero-section .jt-course-card:hover {
  /* серебристое "стекло" без золота в заливке */
  background-color: rgba(245, 246, 248, 0.98) !important;

  /* НЕ меняем толщину рамки (чтобы не было микросдвигов) */
  border-color: rgba(47, 128, 237, 0.4) !important;

  /* золотой акцент — только как тонкое кольцо через box-shadow (без outline) */
  box-shadow:
    0 10px 26px rgba(17, 24, 39, 0.12),
    0 0 0 1px rgba(227, 185, 72, 0.22) !important;

  transform: none !important;
}

/* =========================================================
   МЕНЮ: Темно-синее как в примере (Nextons-style, но не копия)
   ========================================================= */
header {
  background: #0B1B33 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.mobile-menu-toggle {
  display: none !important;
}

.logo {
  display: none !important;
}

.main-nav {
  display: flex !important;
  align-items: center;
  gap: 40px;
  flex: 1;
  justify-content: center;
}

.main-nav .nav-link {
  color: #FFFFFF !important;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
  padding: 0;
}

.main-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.85) !important;
  opacity: 0.9;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0;
}

.header-actions,
.header-contacts {
  display: none !important;
}

.btn.btn-primary {
  background: #2F80ED !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 10px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn.btn-primary:hover {
  background: #1E6FD9 !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

@media (max-width: 980px) {
  .header-inner {
    padding: 16px 24px;
  }

  .main-nav {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .main-nav .nav-link {
    font-size: 14px;
  }

  .btn.btn-primary {
    padding: 8px 20px;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .main-nav {
    display: none !important;
  }

  .header-inner {
    justify-content: flex-end;
  }
}

/* JustTrading навигация (.jt-nav .jt-nav-link) */
.jt-nav {
  color: #111827 !important; /* графитовый цвет текста */
}

.jt-nav-link {
  color: #111827 !important; /* графитовый цвет текста */
  transition: color 0.2s ease !important;
}

.jt-nav-link:hover,
.jt-nav-link.active {
  color: #e3b948 !important; /* новый премиум-золотой для активных/текущих элементов */
}

/* Dropdown панель */
.jt-dropdown-panel {
  border-color: #e3b948 !important; /* новый премиум-золотой */
}

/* Dropdown элементы */
.jt-dropdown-item {
  color: #111827 !important; /* графитовый цвет текста */
}

.jt-dropdown-item:hover {
  background: rgba(227, 185, 72, 0.06) !important; /* тускло золотистый фон при hover */
  color: #e3b948 !important; /* новый премиум-золотой цвет */
}

/* =========================================================
   СТИЛИ ДЛЯ МОДАЛЬНЫХ ОКОН СТРАТЕГИЙ (плашки)
   ========================================================= */
.jt-strategy-modal-description {
  margin-bottom: 24px !important; /* Уменьшено с 32px */
}

.jt-strategy-modal-description p {
  font-size: var(--jt-ui-font-base) !important; /* как базовый текст на странице */
  line-height: 1.6 !important;
  color: #111827 !important; /* графитовый цвет */
  margin: 0;
  font-weight: 400;
}

.jt-strategy-modal-courses {
  margin-top: 24px !important; /* Уменьшено с 40px */
}

.jt-strategy-modal-courses h3 {
  font-size: 22px !important; /* Уменьшено с 28px */
  font-weight: 700 !important;
  color: #111827 !important; /* графитовый цвет */
  margin: 0 0 16px 0 !important; /* Уменьшено с 20px */
}

.jt-strategy-modal-courses ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.jt-strategy-modal-courses li {
  font-size: var(--jt-ui-font-base) !important; /* как базовый текст на странице */
  line-height: 1.6 !important;
  color: #111827 !important; /* графитовый цвет */
  padding: 6px 0 !important; /* Уменьшено с 10px */
  padding-left: 28px !important; /* Уменьшено с 32px */
  position: relative;
  font-weight: 400;
}

.jt-strategy-modal-courses li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #e3b948 !important; /* премиум-золотой */
  font-weight: 700;
  font-size: 18px !important; /* Уменьшено с 22px */
}

/* Стили для ссылок курсов */
.jt-strategy-modal-courses .jt-strategy-course-link {
  color: #111827 !important; /* графитовый цвет */
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}

.jt-strategy-modal-courses .jt-strategy-course-link:hover {
  color: #e3b948 !important; /* премиум-золотой при наведении */
  text-decoration: none !important;
}

/* =========================================================
   КРИТИЧНО: Максимально специфичные селекторы для гарантии применения
   Размеры шрифтов должны совпадать с базовым текстом на странице:
   desktop: 24px, <=1024: 20px, <=768: 18px, <=480: 17px
   ========================================================= */
.jt-training-modal.jt-strategy-modal .jt-strategy-modal-description p,
.jt-training-modal.jt-strategy-modal .jt-strategy-modal-description,
.jt-training-modal.active .jt-strategy-modal-description p,
.jt-training-modal.active .jt-strategy-modal-description {
  font-size: var(--jt-ui-font-base) !important;
  line-height: 1.6 !important;
  color: #111827 !important;
  font-weight: 400 !important;
}

.jt-training-modal.jt-strategy-modal .jt-strategy-modal-courses li,
.jt-training-modal.jt-strategy-modal .jt-strategy-modal-courses .jt-strategy-course-link,
.jt-training-modal.active .jt-strategy-modal-courses li,
.jt-training-modal.active .jt-strategy-modal-courses .jt-strategy-course-link {
  font-size: var(--jt-ui-font-base) !important;
  line-height: 1.6 !important;
  color: #111827 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}

.jt-training-modal.jt-strategy-modal .jt-strategy-modal-courses .jt-strategy-course-link:hover,
.jt-training-modal.active .jt-strategy-modal-courses .jt-strategy-course-link:hover {
  color: #e3b948 !important;
  text-decoration: none !important;
}

.jt-program-modal-overlay.active .jt-program-modal-description,
.jt-program-modal-overlay .jt-program-modal-description {
  font-size: var(--jt-ui-font-base) !important;
  line-height: 1.6 !important;
  color: #1a1a1a !important;
  font-weight: 400 !important;
}

.jt-program-modal-overlay.active .jt-program-modal-benefits li,
.jt-program-modal-overlay .jt-program-modal-benefits li {
  font-size: var(--jt-ui-font-base) !important;
  line-height: 1.6 !important;
  color: #1a1a1a !important;
  font-weight: 400 !important;
}

@media (max-width: 1024px) {
  .jt-training-modal.jt-strategy-modal .jt-strategy-modal-description p,
  .jt-training-modal.jt-strategy-modal .jt-strategy-modal-courses li,
  .jt-training-modal.jt-strategy-modal .jt-strategy-modal-courses .jt-strategy-course-link,
  .jt-program-modal-overlay .jt-program-modal-description,
  .jt-program-modal-overlay .jt-program-modal-benefits li {
    font-size: var(--jt-ui-font-1024) !important;
  }
}

@media (max-width: 768px) {
  .jt-training-modal.jt-strategy-modal .jt-strategy-modal-description p,
  .jt-training-modal.jt-strategy-modal .jt-strategy-modal-courses li,
  .jt-training-modal.jt-strategy-modal .jt-strategy-modal-courses .jt-strategy-course-link,
  .jt-program-modal-overlay .jt-program-modal-description,
  .jt-program-modal-overlay .jt-program-modal-benefits li {
    font-size: var(--jt-ui-font-768) !important;
  }
}

@media (max-width: 480px) {
  .jt-training-modal.jt-strategy-modal .jt-strategy-modal-description p,
  .jt-training-modal.jt-strategy-modal .jt-strategy-modal-courses li,
  .jt-training-modal.jt-strategy-modal .jt-strategy-modal-courses .jt-strategy-course-link,
  .jt-program-modal-overlay .jt-program-modal-description,
  .jt-program-modal-overlay .jt-program-modal-benefits li {
    font-size: var(--jt-ui-font-480) !important;
  }
}

/* Заголовок модального окна стратегии */
.jt-strategy-modal-title {
  color: #111827 !important; /* графитовый цвет */
}

/* Контентная часть модального окна стратегии */
.jt-strategy-modal-content-side {
  padding: 36px !important; /* Уменьшено с 48px для экономии места */
}

/* =========================================================
   Модальное окно для карточек карусели
   ========================================================= */
.jt-carousel-card-modal-links {
  margin: 24px 0 40px 0 !important;
  padding-bottom: 16px !important;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

.jt-program-modal-overlay.active .jt-carousel-card-modal-links {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.jt-carousel-card-modal-links h3 {
  font-size: var(--jt-ui-font-base) !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 0 16px 0 !important;
}

.jt-carousel-card-modal-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.jt-carousel-card-modal-links-list li {
  font-size: var(--jt-ui-font-base) !important;
  line-height: 1.6 !important;
  color: #1a1a1a !important;
  margin-bottom: 12px !important;
  padding-left: 32px;
  position: relative;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.jt-program-modal-overlay.active .jt-carousel-card-modal-links-list li {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.jt-carousel-card-modal-links-list li:last-child {
  margin-bottom: 0 !important;
}

.jt-carousel-card-modal-links-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #e3b948;
  font-weight: 800;
  font-size: 18px;
}

.jt-carousel-card-modal-link {
  color: #1a1a1a !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
  display: inline-block;
}

.jt-carousel-card-modal-link:hover {
  color: #e3b948 !important;
  text-decoration: none !important;
}

/* Каскадное появление пунктов списка */
.jt-program-modal-overlay.active .jt-carousel-card-modal-links-list li:nth-child(1) {
  transition-delay: 0.4s !important;
}
.jt-program-modal-overlay.active .jt-carousel-card-modal-links-list li:nth-child(2) {
  transition-delay: 0.5s !important;
}
.jt-program-modal-overlay.active .jt-carousel-card-modal-links-list li:nth-child(3) {
  transition-delay: 0.6s !important;
}
.jt-program-modal-overlay.active .jt-carousel-card-modal-links-list li:nth-child(4) {
  transition-delay: 0.7s !important;
}
.jt-program-modal-overlay.active .jt-carousel-card-modal-links-list li:nth-child(5) {
  transition-delay: 0.8s !important;
}
.jt-program-modal-overlay.active .jt-carousel-card-modal-links-list li:nth-child(6) {
  transition-delay: 0.9s !important;
}

/* Адаптив для модального окна карточек карусели */
@media (max-width: 1024px) {
  .jt-carousel-card-modal-links {
    margin: 20px 0 32px 0 !important;
    padding-bottom: 12px !important;
  }
  
  .jt-carousel-card-modal-links h3 {
    font-size: var(--jt-ui-font-1024) !important;
    margin-bottom: 14px !important;
  }
  
  .jt-carousel-card-modal-links-list li {
    font-size: var(--jt-ui-font-1024) !important;
    margin-bottom: 10px !important;
    padding-left: 28px;
  }
}

@media (max-width: 768px) {
  .jt-carousel-card-modal-links {
    margin: 16px 0 28px 0 !important;
    padding-bottom: 10px !important;
  }
  
  .jt-carousel-card-modal-links h3 {
    font-size: var(--jt-ui-font-768) !important;
    margin-bottom: 12px !important;
  }
  
  .jt-carousel-card-modal-links-list li {
    font-size: var(--jt-ui-font-768) !important;
    padding-left: 28px;
    margin-bottom: 8px !important;
  }
}

@media (max-width: 480px) {
  .jt-carousel-card-modal-links {
    margin: 12px 0 24px 0 !important;
    padding-bottom: 8px !important;
  }
  
  .jt-carousel-card-modal-links h3 {
    font-size: var(--jt-ui-font-480) !important;
    margin-bottom: 10px !important;
  }
  
  .jt-carousel-card-modal-links-list li {
    font-size: var(--jt-ui-font-480) !important;
    padding-left: 24px;
    margin-bottom: 6px !important;
  }
}

/* =========================================================
   HERO V2 (premium legal layout): left content + right clipped media
   ========================================================= */

/* убираем принудительный center/flex из старого hero только для v2 */
.jt-hero-section.jt-hero-v2 > .jt-container {
  text-align: left !important;
  display: grid !important;
  align-items: center !important;
}

.jt-hero-section.jt-hero-v2 .jt-hero-v2-inner {
  grid-template-columns: minmax(420px, 1.15fr) minmax(360px, 0.85fr);
  gap: 40px;
}

.jt-hero-section.jt-hero-v2 .jt-hero-v2-left {
  position: relative;
  z-index: 1;
}

/* в v2 левую часть делаем "как у международных фирм": строго, но не кричаще */
.jt-hero-section.jt-hero-v2 .jt-hero-title {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 820px;
  padding: 0;
}

.jt-hero-section.jt-hero-v2 .jt-hero-stats {
  justify-content: flex-start;
  gap: 56px;
  padding: 0;
}

.jt-hero-section.jt-hero-v2 .jt-courses-grid {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 980px !important;
}

.jt-hero-section.jt-hero-v2 .jt-hero-cta {
  text-align: left;
}

/* правый блок */
.jt-hero-section.jt-hero-v2 .jt-hero-v2-right {
  position: relative;
  min-height: 520px;
}

.jt-hero-section.jt-hero-v2 .jt-hero-v2-media {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;

  /* тот самый "косой срез" */
  clip-path: polygon(14% 0%, 100% 0%, 100% 100%, 0% 100%);

  /* premium: тень + внутренний контур */
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  outline: 1px solid rgba(255, 255, 255, 0.10);
  outline-offset: -1px;
}

/* дополнительные "геометрические плитки" справа (вдохновение как на рефе, но без копии) */
.jt-hero-section.jt-hero-v2 .jt-hero-v2-right::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  /* тонкая стеклянная геометрия поверх (очень мягко) */
  background:
    linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 55%);
  clip-path: polygon(72% 0%, 100% 0%, 100% 100%, 86% 100%, 62% 48%);
  opacity: 0.45;
}

.jt-hero-section.jt-hero-v2 .jt-hero-v2-right::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 120px;
  height: 96px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  clip-path: polygon(12% 0%, 100% 0%, 88% 100%, 0% 100%);
  pointer-events: none;
  z-index: 2;
  opacity: 0.55;
}

.jt-hero-section.jt-hero-v2 .jt-hero-v2-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms cubic-bezier(0.33, 1, 0.68, 1);
}

.jt-hero-section.jt-hero-v2 .jt-hero-v2-slide.is-active {
  opacity: 1;
}

.jt-hero-section.jt-hero-v2 .jt-hero-v2-img,
.jt-hero-section.jt-hero-v2 .jt-hero-v2-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.92);
  transform: scale(1.03);
}

.jt-hero-section.jt-hero-v2 .jt-hero-v2-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 27, 51, 0.78) 0%, rgba(11, 27, 51, 0.28) 55%, rgba(11, 27, 51, 0.12) 100%),
    radial-gradient(60% 55% at 70% 15%, rgba(47, 128, 237, 0.16) 0%, rgba(47, 128, 237, 0) 65%);
  pointer-events: none;
}

/* аккуратная анимация "появления" слева (без кича) */
.jt-hero-section.jt-hero-v2 .jt-hero-v2-left > * {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 600ms ease, transform 600ms ease;
}

.jt-hero-section.jt-hero-v2.jt-hero-v2-ready .jt-hero-v2-left > * {
  opacity: 1;
  transform: none;
}

/* мобильная адаптация */
@media (max-width: 980px) {
  .jt-hero-section.jt-hero-v2 > .jt-container {
    grid-template-columns: 1fr !important;
  }

  .jt-hero-section.jt-hero-v2 .jt-hero-v2-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .jt-hero-section.jt-hero-v2 .jt-hero-v2-right {
    min-height: 360px;
  }

  .jt-hero-section.jt-hero-v2 .jt-hero-v2-media {
    position: relative;
    clip-path: none; /* на мобиле лучше без клипа */
  }
}

/* =========================================================
   LEGAL HERO (Nextons-inspired idea, NOT a copy)
   Full media background + diagonal right panel + white geo layers
   ========================================================= */

.legal-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  min-height: 900px;
  padding: 0;
  margin: 0;
  isolation: isolate;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
  outline: 1px solid rgba(255, 255, 255, 0.06);
  outline-offset: -1px;

  /* fallback color if media fails */
  background: linear-gradient(180deg, #0B1B33 0%, #0F2542 40%, #153052 100%);
}

.legal-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* затемнение ТОЛЬКО слева под текст (без серой пленки на всем видео) */
.legal-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(90deg, rgba(11, 27, 51, 0.62) 0%, rgba(11, 27, 51, 0.22) 42%, rgba(11, 27, 51, 0) 72%);
}

.legal-hero__slide {
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.legal-hero__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ВАЖНО: без серой пленки — всё цветное и яркое */
  filter: saturate(1.12) contrast(1.06) brightness(1.03);
  transform: none;
}

/* раздвижные ворота: новый слайд въезжает справа, старый уезжает влево */
.legal-hero__slide.is-active {
  transform: translateX(0);
  z-index: 1;
}

.legal-hero__slide.is-exiting {
  transform: translateX(100%);
  z-index: 1;
}

.legal-hero__slide.is-entering {
  transform: translateX(-100%);
  z-index: 3;
}

/* правая диагональная панель: 30% ширины (70/30 split) */
.legal-hero__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 30%;
  z-index: 2;

  /* диагональ + чуть сложнее форма (не копия) */
  clip-path: polygon(22% 0%, 100% 0%, 100% 100%, 30% 100%, 0% 74%, 0% 26%);
}

.legal-hero__panel-media {
  position: absolute;
  inset: 0;
  background: url("/skillbox_files/hero_media/panel.jpg");
  background-size: cover;
  background-position: center;
  filter: none;
  opacity: 1;
}

/* тонкая "пленка", чтобы панель выглядела как отдельный материал */
.legal-hero__panel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* лёгкий блик, без затемняющей пленки */
  background: linear-gradient(225deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 60%);
}

/* белые геометрические слои (как “плитки”), но с другой формой/углами */
.legal-hero__geo {
  position: absolute;
  right: 26px;
  bottom: 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.legal-hero__geo--a {
  width: 240px;
  height: 160px;
  clip-path: polygon(18% 0%, 100% 0%, 86% 100%, 0% 100%);
  opacity: 0.96;
}

.legal-hero__geo--b {
  width: 190px;
  height: 128px;
  right: 140px;
  bottom: 70px;
  clip-path: polygon(22% 0%, 100% 0%, 78% 100%, 0% 100%);
  opacity: 0.62;
  background: rgba(245, 247, 250, 0.86);
}

.legal-hero__geo--c {
  width: 140px;
  height: 98px;
  right: 64px;
  bottom: 160px;
  clip-path: polygon(26% 0%, 100% 0%, 74% 100%, 0% 100%);
  opacity: 0.42;
  background: rgba(255, 255, 255, 0.78);
}

/* контент */
.legal-hero__content {
  position: relative;
  z-index: 3;
  padding: 92px 0 84px;
  max-width: 70%;
}

/* анимированный текст-слайдер слева */
.legal-hero__text-slider {
  position: relative;
  min-height: 156px; /* чтобы высота не прыгала при разных фразах */
  overflow: hidden;
}

/* Слайды текста: переключаются быстро, а красота — на уровне слов */
.legal-hero__text-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}

.legal-hero__text-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.legal-hero__headline {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.legal-hero__word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(-34px, 0, 0);
  filter: blur(6px);

  animation: legalWordIn 420ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
  animation-delay: var(--d, 0ms);
}

/* фаза «стало четко» — включаем классом через JS */
.legal-hero__text-slide.is-active.is-solid .legal-hero__word {
  opacity: 1;
}

/* уход текста быстрее, чтобы было ощущение динамики */
.legal-hero__text-slide.is-leaving .legal-hero__word {
  animation: legalWordOut 240ms ease forwards;
}

.legal-hero__word.is-accent {
  /* акцент не как у рефа (у них фиолетовый), а наш — холодный синий */
  color: rgba(47, 128, 237, 0.96);
}

@keyframes legalWordIn {
  0% {
    opacity: 0;
    transform: translate3d(-38px, 0, 0);
    filter: blur(8px);
  }
  70% {
    opacity: 0.22; /* сначала тускло */
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
  100% {
    opacity: 0.22;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes legalWordOut {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate3d(22px, 0, 0);
    filter: blur(2px);
  }
}

.legal-hero__title {
  max-width: 720px;
  padding: 0 !important;
  margin: 0 0 28px 0 !important;
  text-align: left !important;
  color: #FFFFFF !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.legal-hero__cta {
  text-align: left;
}

/* контролы как в рефе: слева снизу, аккуратно */
.legal-hero__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
}

.legal-hero__arrow {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.22);
  color: #FFFFFF;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.legal-hero__arrow:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.30);
  border-color: rgba(255, 255, 255, 0.32);
}

.legal-hero__dots {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 6px;
}

.legal-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.legal-hero__dot.is-active {
  background: rgba(255, 255, 255, 0.90);
}

@media (max-width: 980px) {
  .legal-hero {
    border-radius: 0;
    min-height: 560px;
  }

  .legal-hero__panel {
    width: 56%;
    opacity: 0.9;
  }

  .legal-hero__content {
    padding: 72px 0 86px;
  }

  .legal-hero__geo--a { width: 200px; height: 132px; }
  .legal-hero__geo--b { width: 160px; height: 108px; right: 110px; bottom: 62px; }
  .legal-hero__geo--c { width: 120px; height: 86px; right: 56px; bottom: 138px; }
}

@media (max-width: 640px) {
  .legal-hero__panel {
    display: none; /* на мобиле оставляем чистый медиа-фон + текст */
  }

  .legal-hero__title {
    font-size: 34px !important;
  }
}
