

/* Start:/local/templates/main/components/bitrix/menu/sidebar/style.css?17839483832773*/
@media (max-width: 768px) {
  /* 1. Перестраиваем десктопную флекс-структуру страницы сверху вниз */
  .page-type-content,
  .page-type-content.page-action-list {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  /* 2. Изолируем левый блок под мобильное меню */
  .page-type-content .left-side {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 15px 0;
    padding: 0;
    position: relative; /* Оставляем для позиционирования тени-подсказки */
  }

  /* Скрываем десктопный заголовок */
  .nav-company h2 {
    display: none;
  }

  /* Тень-подсказка у правого края для индикации скролла */
  .page-type-content .left-side::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 30px;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(244,245,247,0.9));
    pointer-events: none;
    z-index: 2;
  }

  /* 3. Горизонтальная лента меню со скроллом */
  ul.sidebar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 10px 25px 10px 15px;
    margin: 0;
    list-style: none;
    width: 100%;
    box-sizing: border-box;
  }
  
  ul.sidebar::-webkit-scrollbar {
    display: none;
  }

  /* 4. Защита элементов списка от деформации и сжатия */
  ul.sidebar li {
    display: block;
    flex: 0 0 auto !important; 
    margin: 0;
    padding: 0;
  }

  /* 5. Декоративные стили кнопок */
  ul.sidebar li a {
    display: inline-block;
    padding: 8px 16px !important;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    transition: all 0.2s ease;
  }

  /* Активное состояние кнопки */
  ul.sidebar li a.selected {
    background-color: #D7F4E8;
    color: #001E42;
    border-color: #D7F4E8;
  }

  /* 6. Возвращаем флекс-структуру контентной части */
  .page-type-content .right-side {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-type-content .right-side > div {
    max-width: 100%;
  }
}
/* End */


/* Start:/local/templates/main/components/bitrix/breadcrumb/.default/style.css?1735027957580*/
/*.bx-breadcrumb {*/
/*	margin: 10px 0;*/
/*}*/
/*.bx-breadcrumb i {*/
/*	color: #b5bdc2;*/
/*	line-height: 13px;*/
/*	font-size: 12px;*/
/*	vertical-align: middle;*/
/*	margin-right: 5px;*/
/*}*/
/*.bx-breadcrumb .bx-breadcrumb-item {*/
/*	float: left;*/
/*	white-space: nowrap;*/
/*	line-height: 13px;*/
/*	vertical-align: middle;*/
/*	margin-right: 10px;*/
/*}*/
/*.bx-breadcrumb .bx-breadcrumb-item span {*/
/*	font-size: 13px;*/
/*	white-space: normal;*/
/*}*/
/*.bx-breadcrumb .bx-breadcrumb-item a {border-bottom: none;}*/
/*.bx-breadcrumb .bx-breadcrumb-item a:hover {}*/

/* End */


/* Start:/local/templates/main/components/bitrix/news/courses/style.css?1783945077173*/
@media only screen and (max-width: 600px) {
    .page-action-list .news-list {
        grid-template-columns: repeat(1, 1fr) !important;
        margin: 10px 0 80px;
    }
}
/* End */


/* Start:/local/templates/main/components/bitrix/news/courses/bitrix/news.detail/.default/style.css?17839353665863*/
div.news-detail
{
	word-wrap: break-word;
}
div.news-detail img.detail_picture
{
	float:left;
	margin:0 8px 6px 1px;
}
.news-date-time
{
	color:#486DAA;
}

.button-in-action {
text-align: center;
display: block;
max-width: 250px;
background-color: #db4c3e; 
padding: 15px 30px; 
font-size: 18px;
text-decoration: none; 
border-radius: 10px; 
line-height: 1.4;
transition: 0.3s;
margin:auto;
}

.button-in-action span {
color: #ffffff !important;
}

.button-in-action:hover {
box-shadow: 0px 0px 8px #db4c3e;
transition: 0.3s;
}



/* Главный контейнер (Фото + Инфо) */
.course-main-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

/* Слева фото */
.course-main-left {
    flex: 1 1 1%; /* Базовый размер 400px, может увеличиваться и сжиматься */
    max-width: 100%;
}
.course-main-left .main-img {
    border-radius: 4px;
}

/* Справа характеристики */
.course-main-right {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
}

/* Список метаданных */
.course-info-meta {
    background: #f8fafc;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #edf2f7;
}
.course-info-meta .meta-item {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.4;
}
.course-info-meta .meta-item:last-child {
    margin-bottom: 0;
}
.course-info-meta .meta-item strong {
    color: #4a5568;
    display: inline-block;
    margin-right: 5px;
}

/* Текстовые блоки контента */
.text-info-courses {
    margin-top: 30px;
}
.course-text-block {
    margin-bottom: 25px;
}
.course-html-content {
    font-size: 15px;
    line-height: 1.6;
    color: #2d3748;
}

/* Блок карты */
.course-map-block {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}
.map-address-text {
    font-size: 15px;
    margin-top: 8px;
}

/* Сброс на мобильных */
@media (max-width: 768px) {
    .course-main-flex {
        flex-direction: column; /* На мобилках фото встанет сверху, инфо снизу */
        gap: 20px;
    }
    .course-main-left, .course-main-right {
        flex: 1 1 100%;
    }
    .course-main-left .main-img {
        width: 100% !important; /* На мобилках картинка займет всю ширину */
        height: 300px !important; /* Уменьшаем высоту для мобильных экранов */
    }
}



/* Контейнер сетки */
.brands-grid {
  display: grid !important; /* !important защищает от перебивания другими стилями темы */
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* Ровно 3 колонки, делят место поровну */
  gap: 4px; /* Расстояние между элементами ровно 4px */
  margin: 20px 0;
  width: 100%;
  box-sizing: border-box;
}

/* Элемент-ссылка (прямоугольный блок) */
.brand-item {
  display: block;
  width: 100%; /* Занимает ровно выделенную колонку, не больше */
  aspect-ratio: 16 / 9; /* Автоматически считает высоту от ширины, исключая наложение */
  border: 1px solid #e0e0e0;
  border-radius: 4px; /* Небольшое скругление под мелкий шаг сетки */
  overflow: hidden; /* Скрывает картинку при увеличении */
  background-color: #fff;
  position: relative;
  box-sizing: border-box;
  
  /* Добавлен transition для плавности изменения рамки/фона самой карточки */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Эффект при наведении на карточку */
.brand-item:hover {
  border-color: #a0a0a0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Легкая плавная тень */
}

/* Обертка для центрирования логотипа */
.brand-img-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px; /* Уменьшили отступ, так как сетка стала плотнее */
  box-sizing: border-box;
}

/* Базовое состояние картинки — жестко прописываем начальную точку анимации */
.brand-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  
  /* Принудительно задаем начальный масштаб */
  transform: scale(1) translateZ(0); 
  
  /* Усиливаем приоритет плавности с помощью !important, чтобы никто не перебил */
  transition: transform 0.4s ease-in-out !important; 
  
  /* Помогаем браузеру задействовать видеокарту для плавной анимации */
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Состояние при наведении — тоже добавляем translateZ для аппаратного ускорения */
.brand-item:hover .brand-img-wrapper img {
  transform: scale(1.2) translateZ(0) !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* По 2 в ряд на планшетах */
  }
  .brand-img-wrapper img {
    filter: none !important;
	}
}
@media (max-width: 480px) {
  .brands-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr)); /* По 1 в ряд на телефонах */
  }
  .brand-img-wrapper img {
    filter: none !important;
	}
}
/* End */
/* /local/templates/main/components/bitrix/menu/sidebar/style.css?17839483832773 */
/* /local/templates/main/components/bitrix/breadcrumb/.default/style.css?1735027957580 */
/* /local/templates/main/components/bitrix/news/courses/style.css?1783945077173 */
/* /local/templates/main/components/bitrix/news/courses/bitrix/news.detail/.default/style.css?17839353665863 */
