/* [FIX][#nav-visibility] Принудительное скрытие кнопок навигации */
.nav-button.is-hidden {
  display: none !important;
}
/* ======= ПЕРЕМЕННЫЕ ======= */
:root {
  --page-max: 1600px;
  --gutter: 24px;
  --sidebar-w: 350px;
  --header-h: 84px;
  --footer-h: 72px;
  --sidebar-left: 20px;
  --content-left: 0px;
  --content-width: 600px;
}

/* ======= ГЛОБАЛЬНЫЕ СТИЛИ ======= */
html, body {
  height: 100%;
  overflow: hidden !important;
}
body {
  background: #f5f7f9 !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  opacity: 1 !important;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1);
}
body::after {
  content: "";
  position: fixed;
  left: 0; right: 0; bottom: 0; height: 20px;
  background: #f5f7f9;
  z-index: 5;
  pointer-events: none;
}

/* ======= ТИПОГРАФИКА ======= */
body,
.landing-sidebar,
.course-sidebar-wrapper,
.course-header,
.progress-label,
.menu-group-title,
.course-step,
.course-step a,
.landing-main,
#content-container,
#content-container *,
.nav-wrapper,
.nav-button {
  font-family: 'Gilroy', sans-serif !important;
}

/* ======= ШАПКА ======= */
.header-full {
  width: 100%;
  position: fixed;
  top: 0; left: 0;
  z-index: 1000;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.header-wrapper {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
}
.header-left, .header-right {
  display: flex;
  flex-direction: column;
}
.header-title { font-size: 20px; font-weight: 700; margin: 0; color: #222; }
.header-subtitle { font-size: 15px; color: #666; }
.header-contacts { font-size: 16px; color: #666; font-weight: 400; line-height: 1.3; }

/* ======= СЕТКА/ОБОЛОЧКА ======= */
.landing-layout-flex {
  max-width: var(--page-max) !important;
  margin: 0 auto !important;
  padding: 0 var(--gutter) !important;
  position: relative !important;
  height: 0 !important;
  background: transparent !important;
}

/* ======= МЕНЮ ======= */
.landing-sidebar {
  width: var(--sidebar-w) !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
.landing-sidebar .course-sidebar-wrapper {
  position: fixed !important;
  top: calc(var(--header-h) + 10px) !important;
  bottom: 20px !important;
  left: var(--sidebar-left) !important;
  width: var(--sidebar-w) !important;
  overflow-y: auto !important;
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09) !important;
  border: 1px solid #eaeaea !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  z-index: 20 !important;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge Legacy */
}
.landing-sidebar .course-sidebar-wrapper::-webkit-scrollbar { width: 0; height: 0; }

/* ======= МЕНЮ-КОНТЕНТ ======= */
.course-header { font-weight: 600; font-size: 22px; margin-bottom: 16px; color: #333; padding-left: 20px; }
.progress-wrapper { margin-bottom: 24px; padding-left: 20px; }
.progress-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.progress-label span, .progress-percent { font-size: 18px; color: #bbb; }
.progress-bar { width: 100%; height: 10px; background-color: #B0D6BE; border-radius: 6px; overflow: hidden; }
.progress-bar > div { height: 100%; width: 0%; background-color: #54B268; transition: width 0.4s ease; }
.menu-group { margin-bottom: 16px; }
.menu-group-title { font-weight: 400; font-size: 18px; display: flex; align-items: center; cursor: pointer; padding: 8px 0 8px 20px; }
.menu-group-title img { width: 26px; height: 26px; margin-right: 12px; margin-left: 12px; flex-shrink: 0; }
.menu-group-content { display: none; margin-left: 22px; padding-left: 38px; }
.menu-group-content.open { display: block; }
.course-step { display: flex; align-items: center; padding: 7px 6px; border-radius: 14px; cursor: pointer; font-size: 17px; font-weight: 400; box-sizing: border-box; position: relative; transition: background 0.3s; }
.course-step a { text-decoration: none; color: #333; flex-grow: 1; font-size: 17px; margin-left: 12px; overflow: hidden; text-overflow: ellipsis; white-space: normal !important; word-break: break-word !important; overflow: visible !important; text-overflow: unset !important; }
.course-step img { width: 24px; height: 24px; flex-shrink: 0; }
.course-step:hover { background: #FBFEFC; }
.course-step.active { background-color: #E3F6EB; font-weight: 600; }
.course-step.disabled { opacity: 0.5; pointer-events: none; }
.course-step.disabled a { color: #aaa; }
.course-step.completed a { color: #333; }

/* ======= КОНТЕНТ ======= */
.landing-main {
  min-width: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  position: relative !important;
  height: 100% !important;
  overflow: hidden !important;
  padding: 0 !important;
  width: auto !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
}
#content-container {
  position: fixed !important;
  top: calc(var(--header-h) + 10px) !important;
  bottom: calc(var(--footer-h) + 40px) !important;
  left: calc(var(--sidebar-left) + var(--sidebar-w) + 20px) !important;
  right: 20px !important;
  overflow-y: auto !important;
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09) !important;
  border: 1px solid #eaeaea !important;
  padding: 30px !important;
  box-sizing: border-box !important;
  z-index: 10 !important;
  scrollbar-width: none; /* Firefox */
}
#content-container::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 48px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(40,60,60,0.13) 100%);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 2;
}
#content-container::-webkit-scrollbar { display: none; }
#content-container > * { max-width: 100%; overflow-wrap: break-word; }

/* Активируем затемнение, когда есть прокрутка и не в самом низу */
#content-container.has-bottom-fade::after {
  opacity: 1;
}

/* ======= НАВИГАЦИЯ ======= */
#nav-wrapper.nav-wrapper {
  position: fixed !important;
  left: calc(var(--sidebar-left) + var(--sidebar-w) + 20px) !important;
  right: 20px !important;
  bottom: 20px !important;
  height: var(--footer-h) !important;
  background: transparent !important;
  /* border: 1px solid #eaeaea !important; */ /* убрать границу */
  border-radius: 12px !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  z-index: 100 !important;
}
#nav-wrapper {
  padding: 0 !important;
  gap: 20px !important;
  position: relative !important;
}
#nav-wrapper > * {
  flex: 1 1 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.nav-button {
  flex: 1 1 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  /* если нужно, можно задать только вертикальные отступы */
  /* padding-top: 8px !important;
     padding-bottom: 8px !important; */
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.5s, color 0.5s, border-color 0.5s;

}

/* ========== 1. ОСНОВНЫЕ ПЕРЕМЕННЫЕ ========== */
:root {
  --primary-green: #5cb85c; /* Основной зелёный цвет */
  --light-green: #e0f7e0; /* Светлый зелёный (фон успеха) */
  --error-red: #e74c3c; /* Красный цвет для ошибок */
  --gray-bg: #f1f1f1; /* Серый фон страницы */
  --field-bg: #f6f8fa; /* Цвет фона инпутов */
  --text-gray: #666; /* Серый цвет текста по умолчанию */
  --shadow: 0 2px 8px rgba(0,0,0,0.05); /* Тень для блоков */
  --border-radius: 12px; /* Радиус скругления для блоков */
}

/* ========== 2. БАЗОВЫЕ СТИЛИ ========== */
body {
  
  margin: 0; /* Убираем внешние отступы */
  padding: 0; /* Убираем внутренние отступы */
  
  color: #333; /* Цвет текста */
  line-height: 1.5; /* Межстрочный интервал */
  
}

/* ========== 3. ШАПКА ========== */
.header-full {
  width: 100%;
  margin: 0 auto;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000; /* Поверх всего остального */
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.header-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: stretch ;
  padding: 20px 20px 20px 20px;
}

.header-left {

  line-height: 0.8;
}

.header-right {
  text-align: right;
  word-wrap: break-word;

}

.header-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 2px 0;
  color: #222;
}

.header-subtitle {
  font-size: 15px;
  color: #666;
  margin: 0;
}

.header-contacts {
  font-size: 16px;
  color: #666;
  line-height: 1.0;
  font-weight: 400;
}

/* ========== 4. ЛЕВОЕ МЕНЮ, ПРОГРЕСС, МЕНЮ-ГРУППЫ ========== */

/* Боковая панель */
.course-sidebar-wrapper {
  width: 350px !important;
  color: #333;
  background: #fff;
  z-index: 2;
  position: sticky;
  top: 20px;
  padding: 0 20px 20px 20px;
  margin-top: 20px;
  flex-shrink: 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

/* Заголовок меню */
.course-header {
  font-weight: 600;
  font-size: 22px;              
  margin-bottom: 16px;
  color: #333;
  padding-left: 20px;
}

/* Прогресс */
.progress-wrapper {
  margin-bottom: 24px;
  padding-left: 20px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.progress-label span {
  font-weight: 400;
  font-size: 18px;
  color: #bbb;
}

.progress-percent {
  font-size: 18px;
  color: #bbb;
  white-space: nowrap;
  text-align: right;
  margin-left: auto;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background-color: #B0D6BE;
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar > div {
  height: 100%;
  width: 0%;
  background-color: #54B268;
  transition: width 0.4s ease;
}

/* Группы меню */
.menu-group {
  margin-bottom: 16px;
}

.menu-group-title {
  font-weight: 400;
  font-size: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 0 8px 20px;      
}

.menu-group-title img {
  width: 26px;
  height: 26px;
  margin-right: 12px;
  margin-left: 12px;
  flex-shrink: 0;
}

.menu-group-content {
  display: none;
  margin-left: 22px;
  padding-left: 38px;
  
}

.menu-group-content.open {
  display: block;
  
}

/* Элементы меню */
.course-step {
  display: flex;
  align-items: center;
  padding: 7px 6px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 400;
  box-sizing: border-box;
  position: relative;
  transition: background 0.3s;
}

.course-step a {
  text-decoration: none;
  color: #333;
  flex-grow: 1;
  font-size: 17px;
  margin-left: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* ==== Особые стили для word-wrap ниже ==== */
  white-space: normal !important;
  word-break: break-word !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

.course-step img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.course-step:hover {
  background: #FBFEFC;
}

.course-step.active {
  background-color: #E3F6EB;
  font-weight: 600;
}

.course-step.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.course-step.disabled a {
  color: #aaa;
}

.course-step.completed a {
  color: #333;
}
/* ========== 5. ОСНОВНАЯ СТРУКТУРА, АНКЕТА, ИНПУТЫ, КНОПКИ, НАВИГАЦИЯ ========== */

/* Обёртка страницы */
.page-wrapper {
  display: flex;
  gap: 32px;
  max-width: 1200px;
  margin: 20px;
  padding: 40px 20px 20px 20px;
  align-items: flex-start;
}

/* Основной контейнер анкеты */
.anketa-container {
  flex-grow: 1;
  max-width: none !important;
  width: 100% !important;
  padding-left: 0px !important;
  margin-left: 0px !important;
}

/* Разделитель после бокового меню */
.course-sidebar-wrapper::after {
  content: "";
  display: block;
  width: 32px;
  flex-shrink: 0;
}

/* Входные поля */
.input-wrapper {
  background: #fff;
  border-radius: 12px !important;
  padding: 22px 28px;
  margin-bottom: 20px !important;
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.task-header span:first-child {
  font-weight: 700;
  font-size: 18px;
  color: #444;
}

/* Метки статуса */
.status-label {
  color: var(--primary-green);
  font-size: 16px;
  display: none;
}

.completion-time-field {
  color: #aaa;
  font-size: 14px;
  margin: 5px 0 12px 0;
  display: none;
}

.completion-time-field::before {
  content: " в ";
}

/* Стили input и textarea */
input, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e1e4e8;
  background: var(--field-bg);
  border-radius: 8px;
  font-size: 16px;
  color: var(--text-gray);
  transition: all 0.3s ease;
}

textarea {
  height: 100px;
  /* resize: vertical; */
}

label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-gray);
}

/* Сообщение об успешном выполнении задания */
.task-success-message {
  background: var(--light-green);
  border-radius: 8px;
  padding: 16px !important;
  margin: 10px 0 24px 0 !important;
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--text-gray);
}

/* Обёртка навигационных кнопок */
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 30px 0 20px;
  position: relative;
  z-index: 50;
}

/* Кнопки навигации */
.nav-button {
  width: 100%;
  padding: 20px 0;
  text-align: center;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  touch-action: manipulation;
  box-sizing: border-box;
}

.btn-back {
  background: #fff;
  color: rgba(92, 184, 92, 0.40) !important;
  border: none;
  border: none !important;
}

.btn-back:hover {
  color: #5CB85C !important;
}

.btn-next {
  background: var(--primary-green);
  color: #fff;
  border: none !important;
}

.btn-next:hover {
  background: #4cae4c;
  color: #e6ffe6 !important;
}

/* Убираем лишний фокус с кнопок */
.nav-button:focus, .nav-button:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Валидация input/textarea */
.js-error-border {
  border: 2px solid var(--error-red) !important;
  animation: shake 0.5s;
}

.js-success-border {
  border: 2px solid var(--primary-green) !important;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* ========== 6. МОДАЛЬНЫЕ ОКНА ========== */

#final-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#final-modal.visible {
  display: flex;
}

#final-modal .modal-content {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  width: 95%;
  text-align: center;
}

#final-modal .modal-button {
  margin-top: 24px;
  background: var(--primary-green);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  max-width: 600px;
  margin-bottom: 32px;
}

#final-modal h2 {
  color: #111;
}

/* ====== Спасибо/Финал модалка (универсально с конкурентов) ====== */
#thank-you-modal .modal-content,
#final-modal .modal-content {
  position: fixed;
  z-index: 10000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 40px 42px 34px 42px;
  border-radius: 10px !important;
  text-align: center;
  min-width: 400px;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(70,90,100,0.12);
  margin: 0 auto;
}

#thank-you-modal img,
#final-modal img {
  display: block;
  margin: 0 auto 20px auto;
  width: 105%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
}

#thank-you-modal h2,
#final-modal h2 {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
  margin-top: 0;
  letter-spacing: 0;
  line-height: 1.18;
}

#thank-you-modal .ty-modal-text,
#final-modal .ty-modal-text {
  font-size: 16px;
  color: #222;
  line-height: 1.33;
  margin-bottom: 100px;
  margin-top: 0;
  padding: 0;
}

#thank-you-modal .modal-btn,
#final-modal .modal-btn {
  margin-top: 30px;
  font-size: 17px;
  background: #54B268;
  color: #fff;
  border: none;
  padding: 13px 38px;
  border-radius: 8px;
  cursor: pointer;
  min-width: 110px;
  width: auto;
  display: inline-block;
  font-weight: 500;
  box-shadow: none;
  transition: background .2s;
  margin-bottom: 0;
}

#thank-you-modal .modal-btn:hover,
#final-modal .modal-btn:hover {
  background: #419b53;
}

@media (max-width: 600px) {
  #thank-you-modal .modal-content,
  #final-modal .modal-content {
    min-width: 0;
    max-width: 97vw;
    padding: 7vw 1vw 7vw 1vw;
  }
  #thank-you-modal img,
  #final-modal img {
    width: 98vw;
    max-width: 98vw;
  }
}

/* ========== 7. BITRIX24 СТИЛИ ========== */
.landing-block:not(.landing-ui-panel):not(.landing-ui-component-sidebar):not(.landing-semantic-background),
.landing-component:not(.landing-ui-sidebar),
.landing-ui-card:not(.landing-ui-panel),
.landing-card:not(.landing-ui-component)  {
  border-radius: 10px !important;
  padding: 0 60px 0 60px; /* ОТСТУПЫ внутренние ДЛЯ БЛОКА КОНТЕНТА */
}

.landing-block-node-text {
  border-radius: 12px; /* закругляем блоки с цветными рамками! */
  overflow: hidden; /* На всякий случай */
}


/* Скрытие футера Bitrix24 */
.bitrix-footer {
  display: none !important;
}

/* Отступ от шапки */
.landing-main {
  padding-top: 20px !important;
}

/* Закругляем все видео-блоки */
.landing-block-node-embed,
.landing-block-node-embed video,
.landing-block-node-embed iframe {
  border-radius: 16px; /* можешь менять радиус */
  overflow: hidden;
}




.landing-layout-flex { 
  margin-top: 80px; 
  max-width: 2000px !important;
  width: 80% !important;
  gap: 20px !important;  
} 

.landing-sidebar.g-max-width-100x {
  width: 350px !important;
}






/* Главный контейнер - ОБНОВЛЕНО */
main.landing-public-mode {
  flex: 1;
  margin-top: 80px; 
  padding: 20px 0 0 0; /* Верхний отступ 20px, нижний 0 */
}

/* Контейнер меню+контента - ОБНОВЛЕНО */
.landing-layout-flex {
  display: flex;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
  min-height: calc(100vh - 100px); /* 100vh - шапка 80px + отступ 20px */
}

/* Боковое меню - ОБНОВЛЕНО */
.landing-sidebar {
  width: 350px;
  flex-shrink: 0;
  position: sticky;
  top: 100px; /* Шапка 80px + отступ 20px */
  height: calc(100vh - 120px); /* 100vh - (шапка 80px + отступы 40px) */
  background: white;
  border-radius: 12px;
  overflow-y: auto; /* Возвращаем скролл */
  box-shadow: none; /* Убираем тень */
  margin-top: 0; /* Убираем лишний отступ */
}

/* Основной контент - ОБНОВЛЕНО */
.landing-main {
  flex: 1;
  min-height: calc(100vh - 120px);
  position: relative;
  overflow-y: auto;
  padding-bottom: 20px; /* Фиксируем отступ снизу */
  margin-top: 0; /* Убираем лишний отступ */
}

/* Кнопки навигации - ОБНОВЛЕНО */
.nav-wrapper {
  margin: 40px 0 0 0 !important; /* Универсальный отступ сверху, между контентом и навигацией */
  padding: 0;
}

/* Адаптив - БЕЗ ИЗМЕНЕНИЙ */
@media (max-width: 992px) {
  .landing-layout-flex {
    flex-direction: column;
    padding: 0 20px;
  }
  
  .landing-sidebar {
    width: 100%;
    position: static;
    height: auto;
    max-height: 400px;
    margin-bottom: 20px;
  }
  
  .landing-main {
    min-height: auto;
  }
}

/* 1. Убираем полосу прокрутки в меню (но сохраняем функциональность) */
.landing-sidebar::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.landing-sidebar {
  -ms-overflow-style: none; /* IE и Edge */
  scrollbar-width: none; /* Firefox */
  overflow-y: scroll; /* Сохраняем возможность скролла */
}

/* 2. Убираем полоску в меню (границу и тень) */
#b5884.block-wrapper.block-html,
.landing-sidebar .landing-block {
  box-shadow: none !important;
  border: none !important;
  background-image: none !important;
}

/* 3. Фиксируем отступ контента от шапки */
main.landing-public-mode {
  padding-top: 20px !important; /* Жестко фиксируем 20px */
  margin-top: 80px; /* Отступ под шапкой ПРОБЛЕМА ТУТ, как отделить десктом от мобилки */
}

.landing-layout-flex {
  margin-top: 0 ; /* Убираем дублирующий отступ */
}

/* 4. Дополнительная защита для родительских элементов */
.landing-sidebar.g-max-width-100x {
  border: none !important;
  box-shadow: none !important;
  background-clip: padding-box;
}

/* 5. Гарантия отсутствия лишних отступов */
.landing-main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Если нужно убрать тень конкретно у реального меню — уточнить класс */
.course-sidebar-wrapper {
  box-shadow: none !important;
}






/* Уменьшить жирность текста в кнопке Внести оплаты */
button, .btn, .ui-btn {
  font-weight: 400 !important;
}

/* Убрать сообщения между кнопками навигации */
#error-message {
  /* display: none !important; */
}

/* Картинка модалки благодарности не выпирает справо */
#thank-you-modal .modal-content,
#final-modal .modal-content {
  box-sizing: border-box;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ========== 8. АДАПТИВ ========== */
@media (max-width: 992px) {
  .page-wrapper {
    display: flex;
    gap: 32px !important;
    padding: 40px 20px 0 20px;
  }
  .course-sidebar-wrapper {
    width: 100%;
    position: static;
    margin-bottom: 20px;
  }
  .header-wrapper {
    flex-direction: column;
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .landing-block:not(.landing-ui-panel):not(.landing-ui-component-sidebar):not(.landing-semantic-background),
  .landing-component:not(.landing-ui-sidebar),
  .landing-ui-card:not(.landing-ui-panel),
  .landing-card:not(.landing-ui-component) {
    padding: 0; /* ОТСТУПЫ внутренние ДЛЯ БЛОКА КОНТЕНТА */
  }
  
  .header-wrapper {
    padding: 15px;
  }
  
  
  .header-title {
    font-size: 18px;
  }
  


  main.landing-public-mode {
    margin-top: 20px !important; /* Только тут! */
  }
  .landing-layout-flex {
    margin-top: 0 !important; /* Никаких дубликатов */
  }
  .landing-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }



  .nav-wrapper {
    flex-direction: column;
    gap: 10px;
    
  }
  
  .nav-button {
    display: block;
    width: 100%;
    pointer-events: auto;
    margin: 0;
  }
  
  
  .input-wrapper {
    padding: 15px 18px;
    
  }
  
  .header-right {
    display: none !important;
  }
  
  .header-title {
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
  }
  
  .header-left {
    padding-left: 16px !important;
    width: 100% !important;
  }
  
  .landing-layout-flex,
  .page-wrapper,
  .anketa-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    box-sizing: border-box !important;
  }
  

}



/* VERSION 1.2 | 2025-07-10
   FIX: #arrow-align | Центровка стрелок кнопок.
   Только CSS. Рабочий код не трогался.
*/
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.nav-arrow svg {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}






/* VERSION 1.3.1 | 2025-08-28 | mobile-adaptive.css
   История:
   - v1.3.1: [FIX][#mobile-scroll][#nav-size] Восстановили скролл и размеры кнопок с "старого" кода.
*/

/* ========== АДАПТИВ ДЛЯ ПЛАНШЕТОВ ========== */
@media (max-width: 992px) {
  /* Разрешаем скролл */
  html, body {
    height: auto !important;
    overflow: auto !important;
  }

  /* Сетка в колонку */
  .landing-layout-flex {
    flex-direction: column !important;
    padding: 0 20px !important;
  }

  /* Левое меню вниз */
  .course-sidebar-wrapper,
  .landing-sidebar {
    width: 100% !important;
    position: static !important;
    height: auto !important;
    margin-bottom: 20px !important;
  }

  /* Шапка */
  .header-wrapper {
    flex-direction: column !important;
    padding: 20px !important;
  }

  /* Контент */
  #content-container {
    position: relative !important;
    top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important;
    width: 100% !important; height: auto !important;
    margin: 0 !important; padding: 20px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
  }
  .landing-main {
    min-height: auto !important;
    margin-top: 0 !important; padding: 0 !important;
  }

  /* Навигация */
  #nav-wrapper.nav-wrapper {
    position: relative !important;
    left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100% !important;
    margin: 20px 0 !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .nav-button {
    width: 100% !important;
    padding: 20px 0 !important;    /* ← как в старом коде */
    font-size: 16px !important;    /* ← как в старом коде */
    border-radius: 8px !important;
    min-height: 44px !important;
  }
}

/* ========== АДАПТИВ ДЛЯ МОБИЛОК ========== */
@media (max-width: 576px) {
  /* Убираем внутренние отступы у блоков */
  .landing-block:not(.landing-ui-panel):not(.landing-ui-component-sidebar):not(.landing-semantic-background),
  .landing-component:not(.landing-ui-sidebar),
  .landing-ui-card:not(.landing-ui-panel),
  .landing-card:not(.landing-ui-component) {
    padding: 0 !important;
  }

  /* Шапка компактнее */
  .header-wrapper { padding: 15px !important; }
  .header-title {
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
  }
  .header-right { display: none !important; }
  .header-left { padding-left: 16px !important; width: 100% !important; }

  /* Контент */
  .landing-layout-flex,
  .page-wrapper,
  .anketa-container {
    max-width: 100% !important; width: 100% !important;
    margin: 0 !important;
    padding-left: 8px !important; padding-right: 8px !important;
    box-sizing: border-box !important;
  }

  /* Навигация компактнее */
  .nav-button {
    padding: 18px 0 !important;
    font-size: 15px !important;
  }
}



/* ========== СКРЫТИЕ МЕНЮ НА МОБИЛКЕ ========== */
@media (max-width: 768px) {
  .landing-sidebar,
  .course-sidebar-wrapper {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Освобождаем место где было меню */

}

/* [FINAL][#mobile] Чистый адаптив для мобилок */
@media (max-width: 992px) {
  html, body {
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Контент идёт в поток */
  #content-container {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 auto !important;
    padding: 15px 10px 30px 10px !important; /* боковые и нижний отступ */
    box-sizing: border-box !important;
  }

  .landing-main,
  .page-wrapper,
  .landing-layout-flex {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 auto !important;
  }

  /* Навигация идёт после контента */
  #nav-wrapper.nav-wrapper {
    position: relative !important;
    width: 100% !important;
    margin: 20px 0 40px 0 !important; /* снизу отступ */
    padding: 0 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    box-sizing: border-box !important;
  }

  .nav-button {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
  }
}

#nav-wrapper {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

#nav-wrapper.visible {
  opacity: 1;
  pointer-events: auto;
}

#nav-wrapper.fixed {
  position: fixed;
  left: calc(var(--sidebar-left) + var(--sidebar-w) + 20px);
  right: 20px;
  bottom: 20px;
}





/* ======= УВЕЛИЧЕННЫЕ ШРИФТЫ ДЛЯ КУРСА ======= */
#content-container {
  font-size: 20px !important;
  line-height: 1.6 !important;
  color: #333 !important;
}

#content-container h1 {
  font-size: 42px !important;
  font-weight: 700 !important;
  color: #2c3e50 !important;
  margin-bottom: 30px !important;
  line-height: 1.3 !important;
}

#content-container h2 {
  font-size: 32px !important;
  font-weight: 600 !important;
  color: #2c3e50 !important;
  margin: 40px 0 20px 0 !important;
  line-height: 1.3 !important;
}

#content-container h3 {
  font-size: 26px !important;
  font-weight: 600 !important;
  color: #34495e !important;
  margin: 30px 0 15px 0 !important;
}

#content-container p {
  font-size: 18px !important;
  line-height: 1.6 !important;
  color: #333 !important;
  margin-bottom: 20px !important;
}

#content-container strong {
  font-weight: 600 !important;
  color: #2c3e50 !important;
}

/* Видео контейнер */
.video-section {
  margin: 40px 0;
}

.video-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
}

/* Контент блоки */
.content-block {
  max-width: 800px;
  margin: 0;
}

/* Списки в тексте */
#content-container p:has(> strong) {
  margin-top: 25px !important;
}

/* Отступы после заголовков */
#content-container h2 + p {
  margin-top: 10px !important;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  #content-container {
    font-size: 20px !important;
  }
  
  #content-container h1 {
    font-size: 32px !important;
  }
  
  #content-container h2 {
    font-size: 26px !important;
  }
  
  #content-container h3 {
    font-size: 22px !important;
  }
  
  #content-container p {
    font-size: 20px !important;
  }
}