

/* Start:/local/templates/learn/template_styles.css?17871114273132*/
/* ==========================================
   БАЗОВЫЕ НАСТРОЙКИ И КАРКАС
========================================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f6f9; /* Мягкий серый фон для сайта */
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Центрирующий контейнер */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.site-main {
    flex-grow: 1; /* Растягивает контент, чтобы подвал всегда был внизу */
    padding: 40px 0;
}

.page-title {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 28px;
    color: #2c3e50;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

/* ==========================================
   ШАПКА (HEADER)
========================================== */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between; /* Распределяем: лево - центр - право */
    align-items: center;
    height: 70px;
}

.header-logo a {
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: #2c3e50;
}

.header-logo a span {
    color: #4caf50; /* Выделяем кусок логотипа зеленым */
}

/* Контейнер для меню (стили самого меню задает Битрикс) */
.header-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end; /* Выравниваем по правому краю */
    padding-right: 40px; /* Делаем аккуратный отступ от кнопки профиля */
}

/* ==========================================
   КНОПКИ АВТОРИЗАЦИИ / ПРОФИЛЯ
========================================== */
.header-auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login, .btn-profile {
    background: #4caf50;
    color: #fff !important;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-login:hover, .btn-profile:hover {
    background: #388e3c;
}

.btn-logout {
    text-decoration: none;
    font-size: 20px;
    padding: 5px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.btn-logout:hover {
    opacity: 1;
}

/* ==========================================
   ПОДВАЛ (FOOTER)
========================================== */
.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 30px 0;
    margin-top: auto;
}

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

.footer-links a {
    color: #aeb6bf;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}
/* End */


/* Start:/local/templates/learn/components/bitrix/menu/learn_top/style.css?17871122475808*/
/* ==========================================
   ОСНОВНОЕ МЕНЮ
========================================== */
.custom-top-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.custom-top-menu > li {
    position: relative;
    display: flex;
    align-items: center;
    height: 70px; /* Должно совпадать с высотой шапки */
}

.custom-top-menu > li > a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.2s ease;
}

.custom-top-menu > li > a:hover {
    color: #4caf50; /* Зеленый цвет при наведении на главные пункты */
}

/* ==========================================
   ВЫПАДАЮЩЕЕ МЕНЮ (КАК НА СКРИНШОТЕ)
========================================== */
.custom-top-menu .menu-dropdown {
    position: absolute;
    top: 70px; /* Появляется строго под шапкой */
    left: -15px; /* Немного сдвигаем для выравнивания */
    background: #ffffff; /* Белая подложка контейнера */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Мягкая тень */
    list-style: none;
    margin: 0;
    padding: 8px; /* Создает эффект белых промежутков между пунктами */
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

/* Плавное появление при наведении */
.custom-top-menu li.menu-item-parent:hover .menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Элементы внутри выпадающего меню */
.custom-top-menu .menu-dropdown li {
    margin-bottom: 4px; /* Белый зазор между серыми плашками */
    height: auto;
}

.custom-top-menu .menu-dropdown li:last-child {
    margin-bottom: 0;
}

/* Дизайн самих серых плашек (подпунктов) */
.custom-top-menu .menu-dropdown a {
    display: block;
    background: #f5f5f5; /* Светло-серый фон как на картинке */
    color: #333;
    font-weight: 500;
    font-size: 15px;
    padding: 12px 16px;
    border-radius: 8px; /* Закругления у плашек */
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Эффект при наведении на подпункт */
.custom-top-menu .menu-dropdown a:hover {
    background: #e2e4e8; /* Делаем плашку чуть темнее */
    color: #000;
}

/* ==========================================
   СТРАНИЦА КУРСА: СЕТКА МОДУЛЕЙ
========================================== */
.course-header {
    margin-bottom: 40px;
}

.course-progress-bar {
    background: #e0e0e0;
    border-radius: 10px;
    height: 12px;
    width: 100%;
    max-width: 400px;
    margin-top: 15px;
    overflow: hidden;
}

.course-progress-fill {
    background: #4caf50;
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Сетка карточек (3 в ряд на ПК) */
.course-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

/* Адаптивность для планшетов и телефонов */
@media (max-width: 992px) {
    .course-modules-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .course-modules-grid { grid-template-columns: 1fr; }
}

/* Сама карточка модуля */
.module-card {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Эффект при наведении (карточка приподнимается и появляется тень) */
.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.module-image {
    height: 160px;
    background-color: #f4f6f9; /* Заглушка, если нет картинки */
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #eef0f2;
}

.module-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.module-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.module-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Статус прохождения */
.module-status {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
    align-self: flex-start;
}

.module-status.completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.module-status.progress {
    background: #e3f2fd;
    color: #1976d2;
}

/* ==========================================
   СКРЫТАЯ ИНФОРМАЦИЯ (HOVER-БЛОК)
========================================== */
.module-hover-info {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
    border-top: 1px solid transparent;
}

/* Магия: при наведении раскрываем блок */
.module-card:hover .module-hover-info {
    max-height: 50px;
    opacity: 1;
    margin-top: 15px;
    padding-top: 15px;
    border-top-color: #eee;
}
/* End */
/* /local/templates/learn/template_styles.css?17871114273132 */
/* /local/templates/learn/components/bitrix/menu/learn_top/style.css?17871122475808 */
