.page__diploms {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    margin: 32px 0 40px;
}

.page__diploms > div {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
    background: #f8f8fa;
    border: 1px solid #e1e2e8;
    border-top: 3px solid #3B3B97;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(40, 45, 90, 0.08);
}

.page__diploms img {
    display: block;
    width: 100%;
    height: 360px;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

@media only screen and (max-width: 1100px) {
    .page__diploms {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .page__diploms img {
        height: 420px;
    }
}

@media only screen and (max-width: 640px) {
    .page__diploms {
        grid-template-columns: 1fr;
        gap: 14px;
        margin: 24px 0 32px;
    }

    .page__diploms > div {
        padding: 12px;
        border-radius: 8px;
    }

    .page__diploms img {
        height: 440px;
        max-height: 70vh;
    }
}
