/* ============================================
МОБИЛЬНЫЕ СТИЛИ (max-width: 1023px)
============================================ */
.screen { min-height: 100vh; padding: 5%; }
.section-title { font-size: 36px; margin-bottom: 40px; }

.screen-problem {
  background-image: url('../assets/images/backgrounds/mobile/bg_problem_mobile.webp') !important;
  background-size: cover !important;
  background-position: center !important;
}

/* ============================================
ЭКРАН 2: PROBLEM (МОБИЛЬНАЯ ВЕРСИЯ)
============================================ */
@media (max-width: 1023px) {
  /* 🔒 СЕКЦИЯ */
  #problem {
    padding: 30px 20px !important;
    min-height: auto !important;
    height: auto !important;
  }
  #problem-title { 
    font-size: 26px !important; 
    margin-bottom: 25px !important; 
    top: 0px !important; 
    left: 0px !important; 
}
  #problem-cards { 
    flex-direction: column !important; 
    gap: 12px !important; 
    margin-bottom: 20px !important; 
    width: 100% !important; 
    top: 0px !important; 
    left: 0px !important; 
}
  #problem-card-finance, 
  #problem-card-time, 
  #problem-card-parenting {
    flex-direction: column !important;   /* ← БЫЛО row, СТАЛО column */
    padding: 12px 10px !important;       /* ← Немного больше padding */
    min-width: auto !important; 
    max-width: 100% !important; 
    text-align: center !important;       /* ← Центрирование текста */
    gap: 4px !important;                 /* ← Отступ между элементами */
    align-items: center !important;      /* ← Центрирование по горизонтали */
  }
  
  /* Заголовки карточек */
  #problem-card-finance h3, 
  #problem-card-time h3, 
  #problem-card-parenting h3 { 
    font-size: 18px !important;          /* ← Чуть больше */
    margin-bottom: 4px !important; 
  }
  
  /* Цитаты */
  #problem-card-finance p, 
  #problem-card-time p, 
  #problem-card-parenting p { 
    font-size: 13px !important;          /* ← Чуть больше */
    margin-bottom: 4px !important; 
  }
  
  /* Иконки */
  #icon-finance, 
  #icon-time, 
  #icon-parenting { 
    width: 60px !important;              /* ← БЫЛО 40px, СТАЛО 60px */
    height: 60px !important;             /* ← БЫЛО 40px, СТАЛО 60px */
    margin-bottom: 6px !important;       /* ← Отступ снизу */
    flex-shrink: 0 !important; 
  }

  /* ============================================
  🔒 ЗОНА ДИАЛОГА (СЛОЙ 0 - ФОН)
  ============================================ */
  #dialogue-zone {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 400px !important;        /* 📏 Минимальная высота зоны */
    max-height: none !important;         /* ← УБРАЛИ ограничение, пусть растёт */
    margin-bottom: 0px !important;
    top: 0px !important;
    left: 0px !important;
    padding: 15px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    z-index: 1 !important;               /* Слой 0: фон зоны */
    overflow: visible !important;
  }

  /* ============================================
  🔒 АВАТАР АЛИНЫ (СЛОЙ 1 - ABSOLUTE)
  ============================================ */
  #avatar-alina-wrapper {
    position: absolute !important;       /* ← НЕ влияет на поток */
    top: 50px !important;                /* ⬆️⬇️ ВВЕРХ/ВНИЗ: меняй число */
    left: -20px !important;               /* ⬅️➡️ ВЛЕВО/ВПРАВО: меняй число */
    width: 120px !important;
    max-width: 150px !important;
    z-index: 2 !important;               /* Слой 1: аватары */
    transform: scale(1.5) !important;    /* 🔍 МАСШТАБ: меняй число */
  }

  /* ============================================
  🔒 АВАТАР ИВАНА (СЛОЙ 1 - ABSOLUTE)
  ============================================ */
  #avatar-ivan-wrapper {
    position: absolute !important;       /* ← НЕ влияет на поток */
    top: 140px !important;                /* ⬆️⬇️ ВВЕРХ/ВНИЗ: меняй число */
    right: -20px !important;              /* ⬅️➡️ ВЛЕВО/ВПРАВО: меняй число */
    width: 120px !important;
    max-width: 150px !important;
    z-index: 2 !important;               /* Слой 1: аватары */
    transform: scale(1.7) !important;    /* 🔍 МАСШТАБ: меняй число */
  }


  /* ============================================
  🔒 ЦЕНТРАЛЬНАЯ ЗОНА (СЛОЙ 2 - КОНТЕЙНЕР)
  ============================================ */
  #dialogue-center {
    position: relative !important;
    width: 100% !important;
    min-height: 350px !important;        /* 📏 Высота под баблы и кнопки */
    margin: 0px auto !important;           /* Центрирование */
    padding: 0px 0px !important;          /* Отступы по бокам */
    top: 0px !important;
    left: 0px !important;
    z-index: 3 !important;               /* Слой 2: контейнер для баблов */
    overflow: visible !important;
  }

  /* ============================================
  🔒 ШАБЛОНЫ (СКРЫТЫ)
  ============================================ */
  #bubble-template-ivan,
  #bubble-template-alina,
  #choice-template {
    display: none !important;
  }

  /* ============================================
  🔒 КОНТЕЙНЕР БАБЛОВ (СЛОЙ 3)
  ============================================ */
  #bubble-container {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 150px !important;        /* 📏 Резерв под баблы */
    margin: 5px auto !important;
    top: 0px !important;
    left: 0px !important;
    z-index: 4 !important;               /* Слой 3: баблы */
  }

/* ============================================
🔒 БАБЛ АЛИНЫ (bubble-left)
============================================ */
#bubble-container .comic-bubble.bubble-left {
  position: relative !important;
  width: 90% !important;              /* 📏 ШИРИНА БАБЛА: меняй число */
  min-width: 150px !important;        /* 📏 МИН. ШИРИНА: меняй число */
  max-width: 90% !important;          /* 📏 МАКС. ШИРИНА: меняй число */
  font-size: 14px !important;
  padding: 12px 16px !important;
  margin: 10px 0 10px auto !important;  /* Выровнен вправо (от Алины) */
  z-index: 4 !important;
  top: -140px !important;                   /* ⬆️⬇️ ВВЕРХ/ВНИЗ: меняй число */
  left: 0 !important;
  right: 0px !important;                 /* ⬅️➡️ ВЛЕВО/ВПРАВО: меняй число */
}

/* ============================================
🔒 БАБЛ ИВАНА (bubble-right)
============================================ */
#bubble-container .comic-bubble.bubble-right {
  position: relative !important;
  width: 90% !important;              /* 📏 ШИРИНА БАБЛА: меняй число */
  min-width: 150px !important;        /* 📏 МИН. ШИРИНА: меняй число */
  max-width: 90% !important;          /* 📏 МАКС. ШИРИНА: меняй число */
  font-size: 16px !important;
  padding: 12px 16px !important;
  margin: 10px auto 10px 0 !important;  /* Выровнен влево (от Ивана) */
  z-index: 4 !important;
  top: 70px !important;                   /* ⬆️⬇️ ВВЕРХ/ВНИЗ: меняй число */
  left: -30px !important;                  /* ⬅️➡️ ВЛЕВО/ВПРАВО: меняй число */
  right: auto !important;
}

/* ============================================
🔒 КОНТЕЙНЕР ВЫБОРА (РЕЗЕРВИРУЕМ МЕСТО)
============================================ */
#choices-container {
  position: relative !important;
  width: 100% !important;
  min-height: 240px !important;        /* 📏 Высота резерва (меняй если нужно) */
  margin: 0px auto 0px auto !important;
  z-index: 5 !important;
  overflow: visible !important;
}

/* ============================================
🔒 ОБЩИЕ НАСТРОЙКИ ДЛЯ ВСЕХ КНОПОК
============================================ */
#choices-container .choice-btn {
  position: absolute !important;
  left: 50% !important;                /* Центрирование по горизонтали */
  transform: translateX(-50%) scale(1) !important;  /* 🔍 Скейл + центрирование */
  width: 70% !important;               /* 📏 Ширина всех кнопок одинаковая */
  max-width: 350px !important;         /* 📏 Максимальная ширина */
  min-width: 290px !important;         /* 📏 Минимальная ширина */
  font-size: 11px !important;
  padding: 12px 16px !important;
  margin: 0 !important;
  z-index: 6 !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

/* ============================================
🔒 ПОЛОЖЕНИЕ КАЖДОЙ КНОПКИ (ТОЛЬКО top)
============================================ */
#choices-container .choice-btn:nth-child(1) {
  top: -160px !important;                 /* ⬆️⬇️ Первая кнопка (CRASH) */
  left: 120px !important;
}

#choices-container .choice-btn:nth-child(2) {
  top: -100px !important;                /* ⬆️⬇️ Вторая кнопка (NEUTRAL) */
  left: 120px !important;
}

#choices-container .choice-btn:nth-child(3) {
  top: -40px !important;               /* ⬆️⬇️ Третья кнопка (COACH) */
  left: 120px !important;
}

/* ============================================
🎨 ЦВЕТНАЯ ПОДСВЕТКА КНОПОК ВЫБОРА (ЭКРАН 2)
============================================ */

/* 🔴 CRASH — красный */
#choices-container .choice-btn.crash {
  background: rgba(192, 57, 43, 0.15) !important;   /* Светло-красный фон */
  border-color: #C0392B !important;                  /* Красная рамка */
  color: #2C1810 !important;
}
#choices-container .choice-btn.crash::before {
  content: "💥 ";                                     /* Иконка для CRASH */
}

/* ⚪ NEUTRAL — серый */
#choices-container .choice-btn.neutral {
  background: rgba(127, 140, 141, 0.15) !important;  /* Светло-серый фон */
  border-color: #7F8C8D !important;                  /* Серая рамка */
  color: #2C1810 !important;
}
#choices-container .choice-btn.neutral::before {
  content: "⚖️ ";                                     /* Иконка для NEUTRAL */
}

/* 🟡 COACH — золотой */
#choices-container .choice-btn.coach {
  background: rgba(212, 168, 67, 0.2) !important;    /* Светло-золотой фон */
  border-color: #D4A843 !important;                  /* Золотая рамка */
  color: #2C1810 !important;
}
#choices-container .choice-btn.coach::before {
  content: "✨ ";                                     /* Иконка для COACH */
}

/* Hover-эффекты для мобильных (нажатие) */
#choices-container .choice-btn.crash:active {
  background: #C0392B !important;
  color: #FAF8F5 !important;
}
#choices-container .choice-btn.neutral:active {
  background: #7F8C8D !important;
  color: #FAF8F5 !important;
}
#choices-container .choice-btn.coach:active {
  background: #D4A843 !important;
  color: #FAF8F5 !important;
}

  /* ============================================
  🔒 ТРИГГЕР ИВАНА (СЛОЙ 5 - ПОВЕРХ ВСЕХ)
  ============================================ */
  #dialogue-trigger {
    position: absolute !important;
    top: 55% !important;                 /* ⬆️⬇️ ВВЕРХ/ВНИЗ: меняй число */
    right: 10% !important;               /* ⬅️➡️ ВЛЕВО/ВПРАВО: меняй число */
    width: 30px !important;
    height: 30px !important;
    z-index: 10 !important;              /* Слой 5: поверх всего */
  }

  /* ============================================
  🔒 ТРИГГЕР АЛИНЫ (СЛОЙ 5 - ПОВЕРХ ВСЕХ)
  ============================================ */
  #alina-trigger {
    position: absolute !important;
    top: 30% !important;                 /* ⬆️⬇️ ВВЕРХ/ВНИЗ: меняй число */
    left: 8% !important;                /* ⬅️➡️ ВЛЕВО/ВПРАВО: меняй число */
    width: 30px !important;
    height: 30px !important;
    z-index: 10 !important;              /* Слой 5: поверх всего */
  }

  /* ============================================
  🔒 CTA КНОПКА (СЛОЙ 6)
  ============================================ */
  #problem-cta {
    position: relative !important;
    width: 90% !important;
    max-width: 400px !important;
    padding: 14px 28px !important;
    font-size: 16px !important;
    margin: 30px auto 0 auto !important; /* ← ПОЛОЖИТЕЛЬНЫЙ отступ сверху */
    top: -85px !important;                 /* ← УБРАЛИ -20px */
    left: 0px !important;
    transform: scale(1) !important;
    z-index: 6 !important;               /* Слой 6: CTA */
  }

  /* ============================================
  🔒 КНОПКА "ПОВТОРИТЬ ДИАЛОГ" (ЭКРАН 2)
  ============================================ */
  #problem-restart-btn {
    position: relative !important;
    top: -85px !important;                 /* ⬆️⬇️ ВВЕРХ/ВНИЗ: меняй число */
    left: 0px !important;                /* ⬅️➡️ ВЛЕВО/ВПРАВО: меняй число */
    width: 90% !important;
    max-width: 320px !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
    margin: 15px auto 0 auto !important;
    transform: scale(1) !important;      /* 🔍 МАСШТАБ: меняй число */
  }
} /* <-- ЗАКРЫВАЮЩАЯ СКОБКА ДЛЯ @media ЭКРАНА 2 */

/* ============================================
ЭКРАН 3: SOLUTION (МОБИЛЬНАЯ ВЕРСИЯ - ИСПРАВЛЕННАЯ)
============================================ */
.screen-solution {
  background-image: url('../assets/images/backgrounds/mobile/bg_solution_mobile.webp') !important;
  background-size: cover !important;
  background-position: center !important;
}

@media (max-width: 1023px) {
  /* 🔒 СЕКЦИЯ: Разрешаем сжиматься по содержимому */
  #solution {
    padding: 40px 20px 60px 20px !important;
    min-height: auto !important; 
    height: auto !important;
  }

  /* 🔒 ЗАГОЛОВОК */
  #solution-title {
    font-size: 28px !important;
    margin-bottom: 20px !important;
    top: 0px !important;
    left: 0px !important;
  }

  /* 🔒 ОСНОВНОЙ КОНТЕНТ */
  #solution-content {
    flex-direction: column !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
    top: 0px !important;
    left: 30px !important; /* Вернул 0, чтобы не было смещения всего блока */
  }

  /* 🔒 ПРЕИМУЩЕСТВА */
  #solution-benefits { max-width: 100% !important; gap: 10px !important; }
  #solution-benefit-1, #solution-benefit-2, #solution-benefit-3, #solution-benefit-4 { gap: 12px !important; }
  #solution-benefit-1 h3, #solution-benefit-2 h3, #solution-benefit-3 h3, #solution-benefit-4 h3 { font-size: 16px !important; margin-bottom: 6px !important; }
  #solution-benefit-1 p, #solution-benefit-2 p, #solution-benefit-3 p, #solution-benefit-4 p { font-size: 14px !important; }
  #icon-benefit-safe, #icon-benefit-psychology, #icon-benefit-tools, #icon-benefit-together { width: 40px !important; height: 40px !important; }

  /* 🔒 СКРИНШОТ */
  #solution-screenshot { 
    max-width: 100% !important; 
    top: 50px !important; 
    left: -30px !important; 
}
  #game-screenshot { 
    border-radius: 8px !important; 
    width: 100% !important; 
}

  /* 🔒 ЗОНА ДИАЛОГА */
  #solution-dialogue-zone {
    min-height: auto !important; /* Убрали фиксированную высоту */
    margin-bottom: 20px !important;
    top: 0px !important;
    left: 0px !important;
    position: relative !important;
  }

  /* 🔒 АВАТАРЫ */
  #solution-avatar-alina-wrapper, #solution-avatar-ivan-wrapper {
    width: 100px !important;
    position: absolute !important;
    z-index: 2 !important;
  }
  #solution-avatar-alina-wrapper { left: 0px !important; top: 180px !important; transform: scale(1.05) !important; }
  #solution-avatar-ivan-wrapper { right: 0px !important; top: 300px !important; transform: scale(1.15) !important; }

  /* 🔒 ЦЕНТРАЛЬНАЯ ЗОНА (Главный виновник растягивания!) */
  #solution-dialogue-center {
    position: relative !important;
    width: 100% !important;
    min-height: 50px !important; /* Уменьшили с 450px, чтобы не держал пустоту */
    margin: 0 !important;
    top: 0 !important;
    left: 0 !important;
  }

  /* 🔒 ШАБЛОНЫ (скрыты) */
  #solution-bubble-template-alina, #solution-bubble-template-ivan { display: none !important; }

  /* 🔥 РЕАЛЬНЫЕ БАБЛЫ НА МОБИЛЬНОМ */
  #solution-bubble-container .comic-bubble.bubble-left {
    position: absolute !important;
    top: 0px !important;
    left: 110px !important;
    right: auto !important;
    width: auto !important;
    max-width: 60vw !important;
    min-width: 150px !important;
    font-size: 13px !important;
    padding: 10px 14px !important;
    z-index: 10 !important;
    margin: 0 !important;
  }
  #solution-bubble-container .comic-bubble.bubble-right {
    position: absolute !important;
    top: 180px !important;
    right: 110px !important;
    left: auto !important;
    width: auto !important;
    max-width: 60vw !important;
    min-width: 150px !important;
    font-size: 13px !important;
    padding: 10px 14px !important;
    z-index: 10 !important;
    margin: 0 !important;
  }
  #solution-bubble-container .comic-bubble::after { display: none !important; }

  /* ============================================ */
  /* 🔒 ИСПРАВЛЕНИЕ ФИНАЛЬНЫХ ЭЛЕМЕНТОВ (Без отрицательных top!) */
  /* ============================================ */
  
  /* Оверлей: используем margin-top вместо top для надежного сдвига */
  #solution-overlay {
    position: relative !important;
    width: 100% !important;
    max-width: 320px !important;
    min-height: 130px !important;
    padding: 20px !important;
    margin: 0px auto 0px auto !important; /* 30px сверху, auto по бокам (центровка), 20px снизу */
    top: 50px !important;
    left: auto !important;
    transform: none !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 8px 32px rgba(44, 24, 16, 0.15) !important;
  }

  /* Текст, кнопки и шкала идут естественным потоком друг за другом */
  #solution-final-text {
    font-size: 15px !important;
    max-width: 100% !important;
    margin: 0 auto 0px auto !important; /* Естественный отступ снизу */
    padding: 0 10px !important;
    top: -65px !important; /* УБРАЛИ -400px */
    left: auto !important;
    position: relative !important;
  }

  #solution-cta {
    padding: 14px 28px !important;
    font-size: 16px !important;
    width: 90% !important;
    max-width: 320px !important;
    margin: 0 auto 0px auto !important; /* Естественный отступ снизу */
    top: -40px !important; /* УБРАЛИ -430px */
    left: auto !important;
    transform: scale(1) !important;
    position: relative !important;
    display: block !important;
  }

  #solution-restart-btn {
    padding: 10px 20px !important;
    font-size: 13px !important;
    margin: 0 auto !important;
    top: -25px !important; /* УБРАЛИ -450px */
    left: auto !important;
    transform: scale(1) !important;
    position: relative !important;
    display: block !important;
  }

  #resonance-container {
    margin: 0px auto !important; /* Естественный отступ */
    top: -280px !important; /* УБРАЛИ -450px */
    left: auto !important;
    position: relative !important;
  }
  #resonance-meter { height: 35px !important; }
  #resonance-meter text { font-size: 8px !important; }
  #resonance-slider { r: 6px !important; }
  #resonance-value { font-size: 14px !important; margin-top: 8px !important; }
}

/* ============================================
ФОНЫ ЭКРАНОВ 4-11 (МОБИЛЬНАЯ ВЕРСИЯ)
============================================ */
.screen-how-it-works { background-image: url('../assets/images/backgrounds/mobile/bg_how_it_works_mobile.webp'); background-size: cover; background-position: center; }
.screen-modules { background-image: url('../assets/images/backgrounds/mobile/bg_modules_mobile.webp'); background-size: cover; background-position: center; }
.screen-experts { background-image: url('../assets/images/backgrounds/mobile/bg_experts_team_mobile.webp'); background-size: cover; background-position: center; }
.screen-features { background-image: url('../assets/images/backgrounds/mobile/bg_features_mobile.webp'); background-size: cover; background-position: center; }
.screen-waitlist { background-image: url('../assets/images/backgrounds/mobile/bg_waitlist_mobile.webp'); background-size: cover; background-position: center; }
.screen-faq { background-image: url('../assets/images/backgrounds/mobile/bg_faq_mobile.webp'); background-size: cover; background-position: center; }
.screen-contacts { background-image: url('../assets/images/backgrounds/mobile/bg_contacts_mobile.webp'); background-size: cover; background-position: center; }
.screen-footer { background-image: url('../assets/images/backgrounds/mobile/bg_footer_mobile.webp'); background-size: cover; background-position: center; min-height: auto; padding: 40px 5%; }

/* ============================================
ЭКРАН 4: HOW IT WORKS (МОБИЛЬНАЯ ВЕРСИЯ)
============================================ */
@media (max-width: 1023px) {
    .screen-how-it-works {
        padding: 60px 5% !important;
    }

    .screen-how-it-works .container {
        max-width: 100% !important;
    }

    .steps-grid {
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
    }

    /* ==========================================
    🎛 НАСТРОЙКИ КАРТОЧКИ
    ========================================== */
    .step-card {
        /* 📏 РАЗМЕРЫ КАРТОЧКИ */
        --card-width: 100% !important;
        --card-max-width: 360px !important;
        --card-padding: 20px !important;
        
        width: var(--card-width) !important;
        max-width: var(--card-max-width) !important;
        padding: var(--card-padding) !important;
        
        /* 📐 ПОЗИЦИОНИРОВАНИЕ */
        position: relative !important;
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
        
        /* 🔢 Z-INDEX КАРТОЧКИ */
        z-index: 1 !important;
    }

    /* ==========================================
    🎛 НАСТРОЙКИ ЦИФРЫ (КРУЖОК С НОМЕРОМ)
    ========================================== */
    .step-number {
        /* 📏 РАЗМЕРЫ ЦИФРЫ */
        --number-size: 45px !important;
        --number-font: 20px !important;
        
        width: var(--number-size) !important;
        height: var(--number-size) !important;
        font-size: var(--number-font) !important;
        
        /*  ПОЗИЦИОНИРОВАНИЕ */
        position: absolute !important;
        top: -22px !important;  /* ⬆️⬇️ ВВЕРХ/ВНИЗ: меняй число */
        left: 50% !important;
        transform: translateX(-50%) !important;
        
        /* 🔢 Z-INDEX ЦИФРЫ */
        z-index: 10 !important;
        
        /*  СТИЛИ */
        background: #D4A843 !important;
        color: #2C1810 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-family: 'Montserrat', sans-serif !important;
        font-weight: bold !important;
        box-shadow: 0 4px 10px rgba(212, 168, 67, 0.4) !important;
    }

    /* ==========================================
    🎛 НАСТРОЙКИ ИЗОБРАЖЕНИЯ
    ========================================== */
    .step-image, .step-icon-placeholder {
        /* 📏 РАЗМЕРЫ ИЗОБРАЖЕНИЯ - МЕНЯЙ ПОД НУЖНЫЙ ФОРМАТ */
        --image-width: 100% !important;
        --image-height: 350px !important;  /* ⬆️️ ВЫСОТА: меняй для 5:4 или 3:4 */
        --image-aspect-ratio: 4/5 !important;  /* 📐 ФОРМАТ: 5/4 или 3/4 */
        
        width: var(--image-width) !important;
        height: var(--image-height) !important;
        aspect-ratio: var(--image-aspect-ratio) !important;
        
        /* 📐 ПОЗИЦИОНИРОВАНИЕ */
        position: relative !important;
        margin-top: 15px !important;
        margin-bottom: 15px !important;
        
        /* 🔢 Z-INDEX ИЗОБРАЖЕНИЯ */
        z-index: 2 !important;
        
        /* 🎨 СТИЛИ */
        border-radius: 12px !important;
        overflow: hidden !important;
        background: #F5EDE0 !important;
        flex-shrink: 0 !important;
    }

    .step-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        transition: transform 0.5s ease !important;
    }

    .step-card:hover .step-image img {
        transform: scale(1.05) !important;
    }

    /* ==========================================
    🎛 НАСТРОЙКИ ТЕКСТОВОГО КОНТЕНТА
    ========================================== */
    .step-content {
        /* 📐 ПОЗИЦИОНИРОВАНИЕ */
        position: relative !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        
        /* 🔢 Z-INDEX ТЕКСТА */
        z-index: 3 !important;
    }

    .step-title {
        /* 📏 РАЗМЕРЫ ЗАГОЛОВКА */
        --title-size: 16px !important;
        
        font-size: var(--title-size) !important;
        font-family: 'Montserrat', sans-serif !important;
        font-weight: bold !important;
        color: #2C1810 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        margin: 0 !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }

    .step-desc {
        /* 📏 РАЗМЕРЫ ОПИСАНИЯ */
        --desc-size: 14px !important;
        
        font-size: var(--desc-size) !important;
        font-family: 'Lora', serif !important;
        color: #5C4033 !important;
        line-height: 1.5 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    /* ==========================================
    🎛 НАСТРОЙКИ КНОПКИ CTA
    ========================================== */
    .steps-cta {
        margin-top: 40px !important;
        text-align: center !important;
        position: relative !important;
        z-index: 5 !important;
    }

    .steps-cta .btn-primary {
        width: 100% !important;
        max-width: 335px !important;
        padding: 16px 32px !important;
        font-size: 16px !important;
    }
}

/* ============================================
НАСТРОЙКА ПОЗИЦИИ И РАЗМЕРА БУРГЕР-МЕНЮ
============================================ */
@media (max-width: 1023px) {
  .burger-menu {
    display: flex !important;      /* Переопределяем display: none из JS */
    position: fixed !important;    /* Фиксируем, чтобы не уезжала при скролле */
    top: 20px !important;          /* ⬆️⬇️ ОТСТУП СВЕРХУ */
    right: 90px !important;         /* ⬅️➡️ ОТСТУП СЛЕВА (поменяй на right: 20px, если нужно справа) */
    width: 40px !important;        /* 📏 РЕАЛЬНЫЙ РАЗМЕР КНОПКИ */
    height: 40px !important;       /* 📏 РЕАЛЬНЫЙ РАЗМЕР КНОПКИ */
    padding: 0 !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
  }

  /* Заставляем иконку внутри кнопки подстраиваться под размер кнопки */
  .burger-menu img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    display: block;
  }
}

/* ============================================
ЭКРАН 8: WAITLIST (МОБИЛЬНАЯ ВЕРСИЯ)
============================================ */
@media (max-width: 1023px) {
    .screen-waitlist {
        padding: 60px 5% !important;
    }
    
    .waitlist-title {
        font-size: 32px !important;
        margin-bottom: 16px !important;
    }
    
    .waitlist-subtitle {
        font-size: 16px !important;
        margin-bottom: 24px !important;
    }
    
    .waitlist-bonuses {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 30px !important;
        max-width: 400px !important;
    }
    
    .waitlist-bonuses li {
        font-size: 14px !important;
    }
    
    /* Персонажи сверху, форма снизу */
    .waitlist-form-wrapper {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .character {
        width: 150px !important;
        height: 150px !important;
        order: -1; /* Персонажи сверху */
    }
    
    .character-alina {
        position: absolute !important;
        top: -10px !important;
        left: 5% !important;
    }
    
    .character-ivan {
        position: absolute !important;
        top: -10px !important;
        right: 5% !important;
    }
    
    .waitlist-form {
        width: 100% !important;
        max-width: 400px !important;
        padding: 24px 20px !important;
        margin-top: 140px !important; /* Отступ под персонажами */
    }
    
    .form-field input {
        height: 48px !important;
        font-size: 14px !important;
    }
    
    .radio-group {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .radio-label {
        min-width: auto !important;
        width: 100% !important;
        padding: 12px 16px !important;
    }
    
    .radio-text {
        font-size: 13px !important;
    }
    
    .waitlist-cta {
        font-size: 15px !important;
        padding: 16px 24px !important;
    }
    
    .social-proof p {
        font-size: 13px !important;
    }
}

/* ============================================
ЭКРАН 5: MODULES (МОБИЛЬНАЯ ВЕРСИЯ)
============================================ */
@media (max-width: 1023px) {
    .screen-modules {
        padding: 60px 5% !important;
    }
    
    .modules-subtitle {
        font-size: 14px !important;
        margin-bottom: 30px !important;
    }
    
    .modules-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Карточка на мобильном */
    .module-card {
        max-width: 400px !important;
        margin: 0 auto !important;
    }
    
    .module-content {
        padding: 16px 16px 18px 16px !important;
    }
    
    .module-icon {
        font-size: 28px !important;
        margin-bottom: 8px !important;
    }
    
    .module-title {
        font-size: 17px !important;
        margin-bottom: 8px !important;
    }
    
    .module-desc {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    
    /* Подсказка всегда видна на мобильном */
    .module-hint {
        position: static !important;
        transform: none !important;
        opacity: 0.8 !important;
        margin-top: 8px !important;
        font-size: 11px !important;
    }
    
    /* Бонусная карточка */
    .bonus-module-card {
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }
    
    .bonus-title {
        font-size: 16px !important;
    }
    
    /* Модальное окно диалога */
    .module-dialogue-modal {
        padding: 24px 16px !important;
    }
    
    .module-dialogue-title {
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }
    
    .replica-avatar {
        width: 40px !important;
        height: 40px !important;
    }
    
    .replica-text {
        font-size: 14px !important;
    }
    
    .replica-content {
        padding: 12px 14px !important;
    }
}

/* ============================================
🔧 ФИКС МОДАЛКИ МОДУЛЕЙ НА МОБИЛЬНОМ
(выходила за правый и нижний края экрана)
============================================ */

/* Оверлей: фиксируем размеры и центрируем */
.module-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    padding: 20px 16px !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    z-index: 10000 !important;
}

.module-modal-overlay.active {
    display: flex !important;
}

/* Модалка: ограничиваем ширину и высоту */
.module-modal {
    width: 100% !important;
    max-width: 480px !important;
    max-height: calc(100vh - 40px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
}

/* Контент реплик: не даёт вылезти за границы */
.replica-content {
    min-width: 0 !important;       /* ← критично для flex-детей */
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

.replica-text {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
}

/* Аватары не должны сжиматься или растягиваться */
.replica-avatar {
    flex-shrink: 0 !important;
}

/* CTA-кнопка внутри модалки */
.module-dialogue-cta {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.module-dialogue-cta .btn-primary {
    max-width: 100% !important;
}

/* Заголовок модалки: перенос длинных слов */
.module-modal-title {
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    max-width: calc(100% - 40px) !important; /* место под крестик */
}

/* ============================================
ЭКРАН 7: FEATURES (МОБИЛЬНАЯ ВЕРСИЯ)
============================================ */
@media (max-width: 1023px) {
    .screen-features {
        padding: 60px 5% !important;
    }
    .screen-features .section-title {
        font-size: 32px !important;
        margin-bottom: 30px !important;
    }
    /* Карточки в одну колонку */
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 40px !important;
    }
    .feature-card {
        padding: 20px 18px !important;
    }
    .feature-icon {
        font-size: 28px !important;
        margin-bottom: 10px !important;
    }
    .feature-title {
        font-size: 16px !important;
    }
    .feature-desc {
        font-size: 13px !important;
    }
    /* Мета-спор */
    .meta-dialogue-title {
        font-size: 18px !important;
    }
    .meta-dialogue-subtitle {
        font-size: 13px !important;
        margin-bottom: 16px !important;
    }
    .meta-dialogue-window {
        padding: 20px 16px !important;
    }
    .meta-dialogue-body {
        max-height: 380px !important;
        gap: 16px !important;
    }
    .meta-dialogue-controls {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .meta-dialogue-next {
        width: 100% !important;
    }
    .meta-dialogue-cta {
        font-size: 15px !important;
        padding: 14px 24px !important;
    }
    /* Примечание: размеры .replica-avatar / .replica-text / .replica-content
       на мобильном уже заданы глобально в блоке Экрана 5 — переопределять не нужно */
}

/* ============================================
ЭКРАН 7: МЕТА-СПОР (МОБИЛЬНАЯ ВЕРСИЯ)
============================================ */
@media (max-width: 1023px) {
    .meta-dialogue-body {
        height: 280px !important;
        max-height: 280px !important;
    }
    .meta-dialogue-controls {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .meta-dialogue-next,
    .meta-dialogue-cta {
        width: 100% !important;
    }
}

/* ============================================
ЭКРАН 7: РАЗМЕРЫ + ИКОНКИ (МОБИЛЬНАЯ ВЕРСИЯ)
============================================ */
@media (max-width: 1023px) {
    .feature-icon {
        width: 56px !important;
        height: 56px !important;
    }
    /* Аватары мета-спора крупнее глобальных 40px */
    .meta-dialogue-body .replica-avatar {
        width: 80px !important;
        height: 80px !important;
    }
    .meta-dialogue-body .replica-text {
        font-size: 15px !important;
    }
    .meta-dialogue-body {
        height: 200px !important;
        max-height: 200px !important;
    }
}

/* ============================================
🔒 ФИКСИРОВАННЫЙ ФОН — ТОЛЬКО ЭКРАНЫ 2, 3, 4, 5, 7
Контент скроллится, фон стоит на месте.
Остальные экраны (1, 6, 8, 9, 10, 11) —
фон скроллится вместе с контентом, как раньше
============================================ */
.screen-problem,        /* 2 */
.screen-solution,       /* 3 */
.screen-how-it-works,   /* 4 */
.screen-modules,        /* 5 */
.screen-features {      /* 7 */
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: center center !important;
}

/* ============================================
ЭКРАН 6: EXPERTS (МОБИЛЬНАЯ ВЕРСИЯ)
============================================ */
@media (max-width: 1023px) {
    .screen-experts {
        padding: 60px 5% !important;
    }
    .screen-experts .section-title {
        font-size: 28px !important;
    }
    /* Основной эксперт — колонкой */
    .expert-lead {
        flex-direction: column !important;
        text-align: center !important;
        padding: 28px 20px !important;
        gap: 20px !important;
    }
    .expert-lead .expert-photo {
        width: 160px !important;
        height: 160px !important;
    }
    /* Команда — одна колонка */
    .experts-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .expert-card .expert-photo {
        width: 120px !important;
        height: 120px !important;
    }
    /* Партнёры — столбиком */
    .experts-partners {
        flex-direction: column !important;
        align-items: center !important;
        gap: 16px !important;
    }
    .partner-card {
        width: 100%;
        max-width: 400px;
    }
    /* Научная база */
    .experts-science {
        padding: 20px 18px !important;
    }
    .experts-science p {
        font-size: 14px !important;
    }
}

/* ============================================
ЭКРАН 9: FAQ (МОБИЛЬНАЯ ВЕРСИЯ)
============================================ */
@media (max-width: 1023px) {
    .screen-faq {
        padding: 60px 5% !important;
    }
    .screen-faq .section-title {
        font-size: 32px !important;
    }
}

/* ============================================
FAQ-ALL: КНОПКА "НАЗАД" (МОБИЛЬНАЯ ВЕРСИЯ)
============================================ */
@media (max-width: 1023px) {
    .faq-all-back {
        top: 20px !important;
        font-size: 12px !important;
        padding: 8px 16px !important;
    }
}

/* ============================================
FAQ-ALL: СТАТИЧНЫЙ ФОН
Фон стоит на месте, скроллится только контент.
#faq-all есть только на faq-all.html → index.html не заденет
============================================ */
#faq-all {
    background-attachment: fixed !important;   /* ← фон прибит к экрану */
    background-size: cover !important;         /* ← cover считается от вьюпорта */
    background-position: center center !important;
}

/* ============================================
ЭКРАН 10: CONTACTS (МОБИЛЬНАЯ ВЕРСИЯ)
============================================ */
@media (max-width: 1023px) {
    .screen-contacts {
        padding: 60px 5% !important;
    }
    .screen-contacts .section-title {
        font-size: 28px !important;
    }
    .contacts-subtitle {
        font-size: 15px !important;
        margin-bottom: 30px !important;
    }
    /* Карточки в одну колонку */
    .contacts-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .contact-card {
        padding: 24px 18px !important;
    }
    .contact-icon {
        width: 52px !important;
        height: 52px !important;
    }
    .contact-value {
        font-size: 17px !important;
    }
    /* Блок поддержки */
    .contacts-support {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 20px !important;
    }
}

/* ============================================
ЭКРАН 11: FOOTER (МОБИЛЬНАЯ ВЕРСИЯ 2.0)
Чистое вертикальное расположение,
крупное лого, подписи VK, копирайт внизу
============================================ */
@media (max-width: 1023px) {
    .screen-footer {
        padding: 50px 5% 30px !important;
    }
    .footer-main {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center !important;
        margin-bottom: 30px !important;
    }
    /* Бренд: лого крупное, по центру */
    .footer-brand {
        align-items: center !important;
        text-align: center !important;
    }
    .footer-logo {
        width: 140px !important;       /* 📏 КРУПНОЕ лого на мобильном */
        margin-bottom: 16px !important;
    }
    /* Навигация и документы: по центру, в две колонки для экономии места */
    .footer-nav,
    .footer-docs {
        text-align: center !important;
    }
    .footer-nav ul,
    .footer-docs ul {
        display: inline-block;
        text-align: left;
    }
    .footer-col-title {
        font-size: 15px !important;
        margin-bottom: 16px !important;
        text-align: center;
    }
    .footer-nav a,
    .footer-docs a {
        font-size: 15px !important;
    }
    /* Нижняя строка: всё в колонку, по центру */
    .footer-bottom {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 20px !important;
    }
    .footer-bottom-left a {
        font-size: 15px !important;
    }
    /* Соцсети: в одну строку с подписями */
    .footer-bottom-right {
        gap: 20px !important;
        justify-content: center !important;
    }
    .footer-social-item a {
        width: 44px !important;
        height: 44px !important;
    }
    .footer-social-item img {
        width: 22px !important;
        height: 22px !important;
    }
    .footer-social-item span {
        font-size: 11px !important;
        max-width: 90px !important;
    }
    /* Строка разработчика */
    .footer-developer {
        font-size: 14px !important;
        margin: 16px 0 12px !important;
    }
    /* Реквизиты */
    .footer-requisites {
        font-size: 12px !important;
    }
    /* Копирайт — внизу */
    .footer-copyright {
        font-size: 12px !important;
        margin-top: 20px !important;
        padding-top: 14px !important;
    }
}

/* ============================================
ФУТЕР: ФИНАЛЬНЫЕ ПРАВКИ (МОБИЛЬНАЯ ВЕРСИЯ)
- Логотип ×2 (140 → 280px)
- Списки навигации/документов выровнены по левому краю
- Заголовки колонок остаются по центру
============================================ */
@media (max-width: 1023px) {
    /* Логотип ×2 */
    .footer-logo {
        width: 280px !important;
        height: auto !important;
    }
    
    /* Списки навигации и документов — по левому краю */
    .footer-nav,
    .footer-docs {
        text-align: center !important;   /* центр для заголовков */
    }
    .footer-nav ul,
    .footer-docs ul {
    display: block !important;
    width: 100% !important;
    max-width: 320px !important;   /* общая ширина для обоих списков */
    margin: 0 auto !important;
    text-align: left !important;
}
    /* Заголовки остаются по центру */
    .footer-col-title {
        text-align: center !important;
        font-size: 16px !important;
    }
    
    /* Элементы списка крупнее для читаемости */
    .footer-nav a,
    .footer-docs a {
        font-size: 16px !important;
        padding: 4px 0 !important;
    }
    
    /* Реквизиты на мобильном — в 2 строки (иначе не влезут) */
    .footer-requisites {
        flex-direction: column !important;
        gap: 4px !important;
    }
    .footer-requisites p {
        white-space: normal !important;
        text-align: center !important;
    }
}