

/* Start:/bitrix/templates/bs_education_s1/components/bitrix/news.list/specialStruct/style.css?17817759445654*/
/* ========================================
   Departments Grid
======================================== */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
    margin: 32px 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Card
======================================== */
.department-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 
        0 1px 2px rgba(15, 23, 42, 0.01),
        0 4px 24px rgba(15, 23, 42, 0.02);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.department-card:hover {
    transform: translateY(-4px);
    border-color: rgba(105, 15, 14, 0.15); /* Мягкий тон вашего цвета на границе */
    box-shadow: 0 12px 32px rgba(105, 15, 14, 0.04);
}

/* ========================================
   Title
======================================== */
.department-title {
    margin: 0 0 20px;
    font-size: 19px;
    line-height: 1.4;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.department-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.department-title a:hover {
    color: #690f0e; /* Подсветка заголовка вашим цветом */
}

/* ========================================
   Sections (Content)
======================================== */
.department-section {
    margin-bottom: 16px;
}

.department-label {
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #94a3b8;
}

.department-value {
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.department-value.is-empty {
    color: #cbd5e1;
    font-style: italic;
}

/* ========================================
   Head Block
======================================== */
.department-head {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.department-head-name {
    font-size: 14.5px;
    font-weight: 550;
    color: #0f172a;
}

.department-head-name.is-empty {
    color: #cbd5e1;
    font-weight: normal;
    font-style: italic;
}

.department-head-post {
    font-size: 12.5px;
    color: #64748b;
}

.department-head-post.is-empty {
    color: #cbd5e1;
    font-style: italic;
}

/* ========================================
   Links
======================================== */
.department-link {
    color: #690f0e; /* Ссылки внутри текста теперь тоже в вашем стиле */
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.department-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ========================================
   Footer
======================================== */
.department-footer {
    display: flex;
    flex-direction: column; 
    align-items: stretch;    
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

/* ========================================
   Regulation Button (Прозрачная с вашим цветом при наведении)
======================================== */
.department-doc,
.department-doc:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;                  
    min-height: 42px;             
    padding: 10px 20px;
    border-radius: 10px;          
    
    /* Базовый прозрачный стиль */
    background-color: #ffffff;    
    color: #0f172a !important;    /* Фиксируем темный текст до наведения */
    border: 1px solid #cbd5e1;    
    
    font-size: 14px;              
    font-weight: 600;             
    text-decoration: none !important;
    letter-spacing: -0.01em;
    text-align: center;
    
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* Эффект при наведении — окрашивание в #690f0e */
.department-doc:hover,
.department-doc:visited:hover {
    background-color: #690f0e;
    border-color: #690f0e;
    color: #ffffff !important;    /* Текст гарантированно становится белым */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(105, 15, 14, 0.2);
}

.department-doc:active {
    transform: scale(0.98);       
}

/* Состояние «Пусто» */
.department-doc.is-empty,
.department-doc.is-empty:visited {
    background-color: #f8fafc;
    color: #64748b !important;   
    border: 1px dashed #cbd5e1;
    box-shadow: none;
    pointer-events: none;         
    font-weight: 500;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 768px) {
    .departments-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    .department-card {
        padding: 20px;
        border-radius: 14px;
    }
    .department-title {
        font-size: 18px;
    }
}
/* End */
/* /bitrix/templates/bs_education_s1/components/bitrix/news.list/specialStruct/style.css?17817759445654 */
