
/* Сетка разделов */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0 40px 0;
}

.section-card {
    background: #F6F8FA;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    padding: 30px 20px;
}

.section-card:hover {
    background: #d9165626;
}

.section-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.section-card p {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* Сетка документов */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0 40px 0;
}

.document-card {
    background: #F6F8FA;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
}

.document-card:hover {
    background: #d9165626;
}

.document-card-inner {
    padding: 25px 16px;
}

.document-icon i {
    font-size: 48px;
    margin-bottom: 15px;
    display: inline-block;
}

/* Цвета иконок */
.fa-file-pdf { color: #e74c3c; }
.fa-file-word { color: #2b5797; }
.fa-file-excel { color: #1e7145; }
.fa-file-image { color: #8e44ad; }
.fa-file-lines { color: #3498db; }
.fa-file-archive { color: #f39c12; }
.fa-file { color: #7f8c8d; }

.document-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.document-size {
    font-size: 12px;
    color: #999;
}

/* Детальная страница */
.back-link {
    margin-bottom: 20px;
}

.back-link a {
    color: #D91656;
    text-decoration: none;
    font-size: 14px;
}

.doc-detail {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: #F6F8FA;
    border-radius: 16px;
}

.doc-detail-icon i {
    font-size: 96px;
}

.doc-detail-info {
    flex: 1;
}

.doc-detail-desc {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #333;
}

.doc-detail-meta {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.btn-download {
    display: inline-block;
    padding: 12px 28px;
    background: #28a745;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

.btn-download:hover {
    background: #218838;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #F6F8FA;
    border-radius: 12px;
}

.empty-state p {
    margin: 0;
    font-size: 16px;
    color: #999;
}

/* Адаптивность */
@media (max-width: 992px) {
    .sections-grid,
    .documents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .sections-grid,
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .doc-detail {
        flex-direction: column;
        text-align: center;
    }
    
    .doc-detail-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

.breadcrumb li:first-child::before {
    content: none !important;
}
