/* Удалены стили для .library-header, так как теперь используется класс .hero из style.css */

/* Стили для страницы библиотеки */

.documents-list {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.document-category:first-child {
    grid-column: 1 / -1;
    order: 1;
}

.document-category:nth-child(2) {
    order: 2;
}

.document-category:nth-child(3) {
    order: 3;
}

.document-category {
    margin-bottom: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    height: fit-content;
}

.document-category h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--primary-color);
}

.document-category h3 i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.document-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-items li {
    border-bottom: 1px solid var(--border-color);
}

.document-items li:last-child {
    border-bottom: none;
}

.document-link {
    display: flex;
    align-items: flex-start;
    padding: 0.8rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.document-link:hover {
    background-color: var(--light-gray);
    transform: translateX(5px);
}

.document-link i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 0.8rem;
    margin-top: 0.2rem;
}

.document-info {
    flex: 1;
}

.document-info h4 {
    color: var(--dark-color);
    margin: 0 0 0.4rem 0;
    font-size: 0.95rem;
}

.document-info p {
    color: var(--gray-color);
    margin: 0;
    font-size: 0.85rem;
}

.file-size {
    color: var(--primary-color);
    font-weight: 500;
}

/* Медиа-запросы перенесены в responsive.css */

@media (max-width: 991px) {
    .documents-list {
        padding: 0 1.5rem;
        gap: 1.2rem;
    }
    
    .document-category {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .documents-list {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .document-category {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }
    .document-link {
        flex-direction: column;
        align-items: flex-start;
    }

    .document-link i {
        margin-bottom: 0.4rem;
    }
    
    .document-category h3 {
        font-size: 1.1rem;
    }
    
    .document-info h4 {
        font-size: 0.9rem;
    }
    
    .document-info p {
        font-size: 0.8rem;
    }
} 