.documents-page {
    background: #f3f3f3;
    min-height: 100vh;
    padding-top: 56px;
    padding-bottom: 80px;
}

.documents-hero {
    padding: 36px 0 24px;
}

.documents-title {
    margin: 0 0 12px;
    font-weight: 700;
    font-size: 56px;
    line-height: 1;
    color: #16355b;
}

.documents-subtitle {
    margin: 0;
    max-width: 780px;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.25;
    color: #6b7380;
}

.documents-list-section {
    padding-bottom: 20px;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.document-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 28px;
    padding: 28px 32px;
    box-sizing: border-box;
}

.document-card__left {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
    flex: 1;
}

.document-card__icon {
    width: 82px;
    height: 82px;
    min-width: 82px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0.04em;
}

.document-card__icon--pdf {
    background: rgba(64, 157, 235, 0.12);
    color: #409deb;
}

.document-card__icon--doc {
    background: rgba(22, 53, 91, 0.10);
    color: #16355b;
}

.document-card__content {
    min-width: 0;
}

.document-card__title {
    margin: 0 0 10px;
    font-weight: 700;
    font-size: 34px;
    line-height: 1.15;
    color: #16355b;
}

.document-card__desc {
    margin: 0 0 14px;
    font-weight: 400;
    font-size: 22px;
    line-height: 1.35;
    color: #6b7380;
}

.document-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 18px;
    line-height: 1.3;
    color: #8a93a3;
}

.document-card__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.document-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: 0.2s ease;
    box-sizing: border-box;
}

.document-btn--light {
    background: #f4f8fc;
    border: 1px solid #d9e6f3;
    color: #16355b;
}

.document-btn--light:hover {
    background: #ebf3fb;
}

.document-btn--primary {
    background: #409deb;
    border: 1px solid #409deb;
    color: #ffffff;
}

.document-btn--primary:hover {
    background: #2f90e2;
}

/* ADMIN */

.admin-documents-page {
    padding-bottom: 100px;
}

.admin-documents-hero__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.admin-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 18px 28px;
    border-radius: 999px;
    background: #409deb;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    transition: 0.2s ease;
}

.admin-add-btn:hover {
    background: #2f90e2;
}

.admin-documents-table-wrap {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 28px;
    overflow: hidden;
}

.admin-documents-table__head,
.admin-documents-table__row {
    display: grid;
    grid-template-columns: 2.2fr 0.7fr 0.9fr 0.8fr 1.4fr;
    gap: 18px;
    align-items: center;
    padding: 22px 28px;
}

.admin-documents-table__head {
    background: #f7f9fc;
    border-bottom: 1px solid #ececec;
    font-size: 16px;
    font-weight: 700;
    color: #7d8796;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-documents-table__row {
    border-bottom: 1px solid #f0f0f0;
}

.admin-documents-table__row:last-child {
    border-bottom: none;
}

.admin-documents-table__title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-documents-table__title strong {
    font-size: 24px;
    line-height: 1.2;
    color: #16355b;
    font-weight: 700;
}

.admin-documents-table__title span {
    font-size: 16px;
    line-height: 1.35;
    color: #7d8796;
}

.doc-badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    width: fit-content;
}

.doc-badge--pdf {
    background: rgba(64, 157, 235, 0.12);
    color: #409deb;
}

.doc-badge--doc {
    background: rgba(22, 53, 91, 0.10);
    color: #16355b;
}

.status-badge--active {
    background: rgba(66, 193, 110, 0.14);
    color: #2d9b53;
}

.status-badge--draft {
    background: rgba(255, 184, 0, 0.16);
    color: #b88200;
}

.status-badge--hidden {
    background: rgba(130, 136, 149, 0.14);
    color: #707887;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 999px;
    background: #f4f8fc;
    border: 1px solid #d9e6f3;
    color: #16355b;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    transition: 0.2s ease;
}

.admin-action-btn:hover {
    background: #ebf3fb;
}

.admin-action-btn--danger {
    background: #fff5f5;
    border-color: #ffd7d7;
    color: #d05151;
}

.admin-action-btn--danger:hover {
    background: #ffefef;
}

/* TABLET */

@media (max-width: 1200px) {
    .documents-title {
        font-size: 46px;
    }

    .documents-subtitle {
        font-size: 24px;
    }

    .document-card__title {
        font-size: 28px;
    }

    .document-card__desc {
        font-size: 20px;
    }

    .admin-documents-table__head,
    .admin-documents-table__row {
        grid-template-columns: 2fr 0.8fr 1fr 0.9fr 1.3fr;
    }
}

/* MOBILE */

@media (max-width: 992px) {
    .admin-documents-hero__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .document-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .document-card__left {
        width: 100%;
    }

    .document-card__actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .admin-documents-table-wrap {
        overflow-x: auto;
    }

    .admin-documents-table {
        min-width: 980px;
    }
}

@media (max-width: 768px) {
    .documents-page {
        padding-top: 36px;
        padding-bottom: 64px;
    }

    .documents-hero {
        padding: 26px 0 20px;
    }

    .documents-title {
        font-size: 34px;
        line-height: 1.05;
    }

    .documents-subtitle {
        font-size: 18px;
        line-height: 1.35;
    }

    .document-card {
        padding: 20px;
        border-radius: 22px;
    }

    .document-card__left {
        align-items: flex-start;
        gap: 16px;
    }

    .document-card__icon {
        width: 64px;
        height: 64px;
        min-width: 64px;
        border-radius: 18px;
        font-size: 16px;
    }

    .document-card__title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .document-card__desc {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .document-card__meta {
        font-size: 14px;
        gap: 10px;
    }

    .document-btn {
        min-width: 130px;
        padding: 12px 18px;
        font-size: 15px;
    }

    .admin-add-btn {
        padding: 14px 22px;
        font-size: 16px;
    }
}