.file-card {
    display: grid;
    box-sizing: border-box;
    width: 100%;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 18px 0;
    padding: 13px 15px;
    border: 1px solid #dce2e8;
    border-radius: 14px;
    background: #f8fafb;
    color: #293241;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.35;
}

.file-card__type {
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: #687386;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.file-card__type--pdf {
    background: #d92d20;
}

.file-card__type--word {
    background: #1769c2;
}

.file-card__type--excel {
    background: #18864b;
}

.file-card__type--image {
    background: #7b4cc2;
}

.file-card__content {
    min-width: 0;
}

.file-card__name {
    overflow: hidden;
    color: #202733;
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-card__size {
    margin-top: 4px;
    color: #6d7685;
    font-size: 12px;
}

.file-card__download {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border-radius: 9px;
    color: #fff;
    background: #2ca348;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.file-card__download:hover {
    color: #fff;
    background: #258d3d;
}

.page-content-image,
.pageContent .page-content-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 12px;
}

@media (max-width: 620px) {
    .file-card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px;
        padding: 11px;
    }

    .file-card__type {
        width: 48px;
        height: 48px;
    }

    .file-card__download {
        grid-column: 1 / -1;
        width: 100%;
    }
}
