/* ============================================
   DOCUMENTS PAGE STYLES
   Единые отступы, ровная сетка, выравнивание
   ============================================ */

/* ----- Глобальные настройки ----- */
body {
    background-color: #0a0c10;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: #eef2ff;
    line-height: 1.5;
}

/* ----- Единые отступы для секций ----- */
.section {
    padding: 4rem 5%;
    position: relative;
}

/* Герой секция — верхний отступ с учетом навбара */
.hero-section.section {
    padding-top: 6rem;
    padding-bottom: 3rem;
}

/* Секция документов — увеличенный нижний отступ для футера */
#documents.section {
    padding-top: 2rem;
    padding-bottom: 5rem;
}

/* ----- Контейнер для центрирования контента ----- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* ----- Герой (заголовок страницы) ----- */
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #8b9aff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #b9c3e0;
}

/* ----- Сетка документов ----- */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.document-card {
    background-color: rgba(18, 22, 28, 0.8);
    backdrop-filter: blur(2px);
    border-radius: 28px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    text-align: center;
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.3);
}

.document-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 123, 255, 0.4);
    box-shadow: 0 20px 32px -12px rgba(67, 97, 238, 0.2);
}

.document-icon {
    font-size: 3rem;
    color: #5f7cff;
    margin-bottom: 1rem;
}

.document-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #f0f3fa;
}

.document-description {
    color: #b9c3e0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.document-meta {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #8e9bc0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.8rem;
}

.document-meta i {
    margin-right: 0.3rem;
    color: #5f7cff;
}

/* ----- Анимации появления ----- */
.fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.25s;
}

.delay-3 {
    transition-delay: 0.4s;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

/* Планшеты */
@media (max-width: 992px) {
    .section {
        padding: 3rem 5%;
    }
    
    .hero-section.section {
        padding-top: 5rem;
        padding-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .documents-grid {
        gap: 1.5rem;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .hero-section.section {
        padding-top: 5rem;
        padding-bottom: 1.5rem;
    }
    
    #documents.section {
        padding-bottom: 4rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .document-card {
        padding: 1.5rem;
    }
}

/* Маленькие телефоны */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .document-title {
        font-size: 1.2rem;
    }
    
    .document-icon {
        font-size: 2.5rem;
    }
}