

/* Start:/bitrix/templates/bs_education_s1/components/bitrix/news.list/spec_eduOp/style.css?17802151998862*/
/* =========================================================================
   1. ГЛОБАЛЬНАЯ СЕТКА КАРТОЧЕК (CSS GRID)
   ========================================================================= */
.edu-grid-container {
    display: grid;
    /* Автоматически рассчитывает колонки: минимум 400px каждая плитка */
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
    margin: 32px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
}

/* =========================================================================
   2. ДИЗАЙН ПЛИТКИ (КАРТОЧКИ)
   ========================================================================= */
.edu-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.02), 0 2px 4px -1px rgba(15, 23, 42, 0.02);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Эффект парения карточки при наведении (только на ПК) */
@media (hover: hover) {
    .edu-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 20px -3px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
        border-color: #cbd5e1;
    }
}

/* Шапка плитки */
.edu-card-header {
    padding: 24px 24px 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}
.edu-card-code {
    display: inline-block;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.edu-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
}

/* Блок основных характеристик внутри плитки */
.edu-card-info {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.edu-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 13.5px;
}
.edu-info-label {
    color: #64748b;
    font-weight: 500;
    padding-right: 16px;
    flex-shrink: 0;
}
.edu-info-value {
    color: #334155;
    font-weight: 600;
    text-align: right;
}

/* Блок документов (Вторая половина карточки) */
.edu-card-docs {
    padding: 20px 24px 24px 24px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: auto; /* Прижимает к низу, выравнивая плитки по высоте */
}
.edu-doc-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.edu-doc-label {
    color: #64748b;
    font-weight: 500;
}
.edu-empty {
    color: #94a3b8;
    font-weight: 300;
}

/* =========================================================================
   3. ИНТЕРАКТИВНЫЕ КНОПКИ И ССЫЛКИ
   ========================================================================= */
/* Текстовые ссылки */
.edu-card a.edu-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.15s ease;
}
.edu-card a.edu-link:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

/* Кнопка одного файла */
.edu-card a.edu-file-link {
    display: inline-flex;
    align-items: center;
    background-color: #f0fdf4;
    color: #166534;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #dcfce7;
    transition: all 0.2s ease;
}
.edu-card a.edu-file-link::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2.5' stroke='%23166534'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z' /%3E%3C/svg%3E");
}
.edu-card a.edu-file-link:hover {
    background-color: #dcfce7;
    border-color: #bbf7d0;
}

/* Кнопка открытия всплывающего окна (Множество файлов) */
.edu-card .edu-modal-trigger {
    background-color: #f0f9ff;
    color: #0369a1;
    border: 1px solid #e0f2fe;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}
.edu-card .edu-modal-trigger::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2.5' stroke='%230369a1'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-19.5 0A2.25 2.25 0 004.5 15h15a2.25 2.25 0 002.25-2.25m-19.5 0v.25A2.25 2.25 0 004.5 17.5h15a2.25 2.25 0 002.25-2.25v-.25m-16.5-3.75h.008v.008H3.75V11.25zm3.375 0h.008v.008H7.125V11.25z' /%3E%3C/svg%3E");
}
.edu-card .edu-modal-trigger:hover {
    background-color: #e0f2fe;
    border-color: #bae6fd;
}

/* =========================================================================
   4. МОДАЛЬНОЕ ОКНО (GLASSMORPHISM)
   ========================================================================= */
.edu-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.edu-modal-overlay.is-active { opacity: 1; visibility: visible; }
.edu-modal-container {
    background: #ffffff;
    width: 100%; max-width: 460px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    transform: scale(0.96);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden; margin: 20px;
}
.edu-modal-overlay.is-active .edu-modal-container { transform: scale(1); }
.edu-modal-header {
    padding: 20px 24px; background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    display: flex; align-items: center; justify-content: space-between;
}
.edu-modal-header h3 { margin: 0; font-size: 16px; font-weight: 600; color: #0f172a; }
.edu-modal-close {
    background: #f1f5f9; border: none; font-size: 20px;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #64748b; cursor: pointer; transition: all 0.15s ease;
}
.edu-modal-close:hover { background: #e2e8f0; color: #1e293b; }
.edu-modal-body { padding: 24px; max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.edu-modal-body .edu-file-link { width: 100%; box-sizing: border-box; margin: 0; padding: 12px 16px; }

/* =========================================================================
   5. МАКСИМАЛЬНАЯ АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ
   ========================================================================= */
@media screen and (max-width: 576px) {
    .edu-grid-container {
        grid-template-columns: 1fr; /* На смартфонах строго одна карточка в ряд */
        gap: 16px;
        margin: 16px 0;
    }
    .edu-card { border-radius: 16px; }
    .edu-card-header, .edu-card-info, .edu-card-docs { padding: 16px; }
    .edu-info-row, .edu-doc-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .edu-info-value, .edu-doc-content { text-align: left; width: 100%; }
    .edu-card .edu-modal-trigger, .edu-card a.edu-file-link, .edu-card a.edu-link {
        display: flex;
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
        margin-top: 4px;
    }
}
/* End */
/* /bitrix/templates/bs_education_s1/components/bitrix/news.list/spec_eduOp/style.css?17802151998862 */
