.main {
    flex: 1;
    margin: 80px auto;
    max-width: 1300px;
    width: calc(100% - 80px);
    background-color: white;
    padding: 60px 50px;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.documents-section h1 {
    text-align: center;
    font-size: 48px;
    margin: 0 0 20px 0;
    color: #2c2c2c;
    letter-spacing: 1px;
}

.documents-subtitle {
    text-align: center;
    font-size: 22px;
    color: #555;
    margin: 0 auto 50px auto;
    max-width: 850px;
    line-height: 1.6;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.document-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: linear-gradient(180deg, #f8fbfc 0%, #eef4f7 100%);
    border: 1px solid #d9e5eb;
    border-radius: 16px;
    padding: 28px 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    min-height: 290px;
}

.document-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(70, 102, 114, 0.18);
    border-color: #9fb9c6;
}

.document-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background-color: #466672;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.document-icon .material-icons {
    font-size: 34px;
    color: white;
}

.document-card h2 {
    font-size: 30px;
    color: #2f3e46;
    margin: 0 0 15px 0;
}

.document-card p {
    text-align: left;           /* убираем центр */
    word-break: break-word;     /* перенос длинных слов */
    hyphens: auto;              /* нормальные переносы */
}

.document-link {
    display: inline-block;
    margin-top: 24px;
    font-size: 18px;
    font-weight: 700;
    color: #466672;
    transition: color 0.2s ease;
}

.document-card:hover .document-link {
    color: #2c4e5b;
}

@media (max-width: 1100px) {
    .documents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main {
        width: calc(100% - 30px);
        padding: 40px 20px;
        margin: 50px auto;
    }

    .documents-section h1 {
        font-size: 36px;
    }

    .documents-subtitle {
        font-size: 18px;
        margin-bottom: 35px;
    }

    .documents-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .document-card {
        min-height: auto;
        padding: 24px 20px;
    }

    .document-card h2 {
        font-size: 26px;
    }

    .document-card p {
        font-size: 17px;
    }
}