/* docs.css - стили для страницы "Документы и статьи" */

/* Hero секция */
.docs-hero {
    position: relative;
    height: 25vh;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 85px;
    overflow: hidden;
}

.docs-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.docs-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/pattern-books.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.docs-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.docs-hero-content {
	text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.docs-hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease;
}

.docs-hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: #f0f0f0;
    animation: fadeInUp 1s ease;
}

/* Основная секция */
.docs-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

/* Фильтр категорий */
.docs-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 40px 0 30px;
}

.filter-btn {
    padding: 12px 25px;
    border: none;
    background-color: white;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
}

.filter-btn:hover {
    background: linear-gradient(135deg, #539a3c, #f3932F);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(83, 154, 60, 0.3);
    border-color: transparent;
}

.filter-btn.active {
    background: linear-gradient(135deg, #539a3c, #f3932F);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(83, 154, 60, 0.3);
}

/* Сетка документов */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Карточка документа */
.doc-card {
    background-color: white;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #539a3c, #f3932F);
    transition: height 0.3s ease;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(83, 154, 60, 0.1);
    border-color: rgba(83, 154, 60, 0.3);
}

.doc-card:hover::before {
    height: 100%;
}

.doc-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #539a3c20, #f3932F20);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #539a3c;
    transition: all 0.3s ease;
}

.doc-card:hover .doc-icon {
    background: linear-gradient(135deg, #539a3c, #f3932F);
    color: white;
}

.doc-content {
    flex: 1;
}

.doc-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
    line-height: 1.5;
}

.doc-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #666;
}

.doc-type i,
.doc-size i {
    margin-right: 5px;
}

.doc-links {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.doc-link,
.doc-download {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.doc-link {
    background-color: #f0f7f0;
    color: #539a3c;
}

.doc-link:hover {
    background-color: #539a3c;
    color: white;
}

.doc-download {
    background-color: #539a3c;
    color: white;
}

.doc-download:hover {
    background-color: #f3932F;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(243, 147, 47, 0.3);
}

.doc-download i,
.doc-link i {
    margin-right: 8px;
}
/* Выделение года в документах */
.doc-year {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(83, 154, 60, 0.1);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.doc-year i {
    font-size: 0.75rem;
}
/* Примечание */

.docs-note {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, #e8f0e8, #ffffff);
    border-radius: 16px;
    padding: 30px;
    margin-top: 50px;
    border: 1px solid rgba(83, 154, 60, 0.2);
}

.note-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #539a3c, #f3932F);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.note-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}

.note-text p {
    color: #444;
    line-height: 1.6;
}

.note-text a {
    color: #539a3c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.note-text a:hover {
    color: #d94430;
    text-decoration: underline;
}

/* Анимации */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    .docs-hero-title {
        font-size: 2.8rem;
    }
    
    .docs-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .docs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .docs-hero {
        margin-top: 80px;
    }
    
    .docs-hero-title {
        font-size: 2.2rem;
    }
    
    .docs-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .docs-grid {
        grid-template-columns: 1fr;
    }
    
    .docs-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        text-align: center;
    }
    
    .doc-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .docs-note {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .docs-hero-title {
        font-size: 1.8rem;
    }
    
    .docs-hero-subtitle {
        font-size: 1rem;
    }
    
    .doc-title {
        font-size: 1rem;
    }
    
    .doc-links {
        flex-direction: column;
        width: 100%;
    }
    
    .doc-link,
    .doc-download {
        width: 100%;
        justify-content: center;
    }
}