

/* Start:/bitrix/templates/bs_education_s1/components/bitrix/news.list/.default/style.css?17807565098703*/
/* =========================================================================
   1. ОБЩИЕ СТИЛИ И КОНТЕЙНЕР
   ========================================================================= */
.mto-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333333;
    line-height: 1.5;
    margin: 20px 0;
}

/* =========================================================================
   2. НАВИГАЦИЯ ПО ВКЛАДКАМ (ТАБЫ)
   ========================================================================= */
.mto-tabs-nav {
    display: inline-flex; /* Переключатель выглядит как единый цельный блок */
    gap: 4px;
    margin-bottom: 24px;
    background-color: #f1f5f9; /* Светло-серый подложечный фон */
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow-x: auto;
    scrollbar-width: none; /* Скрываем скроллбар в Firefox */
}
.mto-tabs-nav::-webkit-scrollbar {
    display: none; /* Скрываем скроллбар в Chrome/Safari */
}

.mto-tab-btn {
    background: none;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b; /* Спокойный цвет для неактивных вкладок */
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Эффект при наведении на неактивную вкладку */
.mto-tab-btn:hover {
    color: #0f172a;
    background-color: #e2e8f0;
}

/* Яркий стиль для активной вкладки */
.mto-tab-btn.active {
    color: #ffffff !important;         /* Белый текст */
    background-color: #2563eb !important;  /* Насыщенный синий фон */
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25); /* Мягкое свечение кнопки */
}

.mto-tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}
.mto-tab-panel.active {
    display: block;
}

/* =========================================================================
   3. СОВРЕМЕННАЯ ТАБЛИЦА
   ========================================================================= */
.mto-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}
.mto-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 2px solid #e2e8f0;
}
.mto-table td {
    padding: 16px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}
.mto-table tbody tr:last-child td {
    border-bottom: none;
}
.mto-table tbody tr:hover {
    background-color: #f1f5f9; /* Подсветка строки при наведении */
}

/* Ограничение ширины колонок для баланса */
.mto-table th:nth-child(1), .mto-table td:nth-child(1) { width: 25%; }
.mto-table th:nth-child(2), .mto-table td:nth-child(2) { width: 35%; }
.mto-table th:nth-child(3), .mto-table td:nth-child(3) { width: 20%; text-align: center; }
.mto-table th:nth-child(4), .mto-table td:nth-child(4) { width: 20%; text-align: center; }

/* =========================================================================
   4. КНОПКИ ВЫЗОВА МОДАЛЬНЫХ ОКН
   ========================================================================= */
.mto-btn-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f0fdf4; /* Нежно-зеленый фон */
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 180px;
}
.mto-btn-trigger:hover {
    background-color: #166534;
    color: #ffffff;
    border-color: #166534;
    box-shadow: 0 2px 4px rgba(22, 101, 52, 0.15);
}

/* Изменение цвета кнопки для ОВЗ */
td[itemprop^="ovz"] .mto-btn-trigger {
    background-color: #eff6ff; /* Нежно-синий */
    color: #1e40af;
    border-color: #bfdbfe;
}
td[itemprop^="ovz"] .mto-btn-trigger:hover {
    background-color: #1e40af;
    color: #ffffff;
    border-color: #1e40af;
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.15);
}

/* =========================================================================
   5. МОДАЛЬНЫЕ ОКНА
   ========================================================================= */
.mto-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6); /* Полупрозрачный темный фон */
    backdrop-filter: blur(4px); /* Эффект размытия заднего плана */
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.mto-modal-overlay.is-active {
    display: flex;
    opacity: 1;
}
.mto-modal-window {
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: left;
    transform: translateY(20px);
    transition: transform 0.25s ease;
}
.mto-modal-overlay.is-active .mto-modal-window {
    transform: translateY(0);
}
.mto-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.mto-modal-close:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}
.mto-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 14px;
    padding-right: 40px; /* Защита от накладывания текста на крестик */
}
.mto-modal-content {
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
}
.mto-modal-content ul, .mto-modal-content ol {
    margin: 10px 0;
    padding-left: 20px;
}
.mto-modal-content li {
    margin-bottom: 6px;
}

/* =========================================================================
   6. ВСПОМОГАТЕЛЬНЫЕ СТИЛИ И АДАПТИВНОСТЬ
   ========================================================================= */
.mto-empty-msg {
    padding: 30px;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    /* Перестраиваем таблицу в мобильные карточки */
    .mto-table, .mto-table thead, .mto-table tbody, .mto-table th, .mto-table td, .mto-table tr { 
        display: block; 
    }
    .mto-table thead { 
        display: none; 
    }
    .mto-table tr {
        margin-bottom: 16px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: #fff;
        padding: 8px 0;
    }
    .mto-table td {
        border-bottom: 1px dashed #f1f5f9;
        position: relative;
        padding: 12px 16px;
        width: auto !important;
        text-align: left !important;
    }
    .mto-table td:last-child {
        border-bottom: none;
    }
    /* Добавляем текстовые метки перед контентом на мобильных */
    .mto-table td::before {
        content: attr(itemprop);
        display: block;
        font-weight: 600;
        font-size: 12px;
        color: #94a3b8;
        text-transform: uppercase;
        margin-bottom: 4px;
    }
    .mto-table td[itemprop^="address"]::before { content: "Адрес:"; }
    .mto-table td[itemprop^="name"]::before { content: "Наименование:"; }
    .mto-table td[itemprop^="osn"]::before { content: "Оснащенность:"; }
    .mto-table td[itemprop^="ovz"]::before { content: "Доступность для ОВЗ:"; }
    
    .mto-btn-trigger {
        max-width: 100%;
    }
}
/* End */
/* /bitrix/templates/bs_education_s1/components/bitrix/news.list/.default/style.css?17807565098703 */
