.rpi-card {
    display: block;
    width: 100%;
    margin: 28px 0;
    border: 1px solid #e2e6ea;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .07);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
    box-sizing: border-box;
}

.rpi-card:hover {
    border-color: #cfd6dc;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .1);
    transform: translateY(-1px);
}

.rpi-card a {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    min-height: 104px;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.rpi-card img {
    display: block;
    width: 148px;
    height: 104px;
    object-fit: contain;
    object-position: center center;
    background: #f3f4f6;
    flex: 0 0 148px;
    margin: 0;
    transition: transform .25s ease;
}

.rpi-card:hover img {
    transform: scale(1.03);
}

.rpi-content {
    position: relative;
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px 18px;
    box-sizing: border-box;
}

.rpi-label {
    display: block;
    margin: 0 0 6px;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #2271b1;
}

.rpi-card h4 {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 700;
    color: #1d2327;
    overflow-wrap: anywhere;
}

.rpi-card a:hover h4 {
    color: #135e96;
}

@media (max-width: 768px) {
    .rpi-card {
        margin: 24px 0;
        border-radius: 14px;
    }

    .rpi-card a {
        min-height: 88px;
    }

    .rpi-card img {
        width: 112px;
        height: 88px;
        object-fit: contain;
        object-position: center center;
        background: #f3f4f6;
        flex-basis: 112px;
    }

    .rpi-content {
        padding: 13px 14px;
    }

    .rpi-label {
        margin-bottom: 5px;
        font-size: 9px;
    }

    .rpi-card h4 {
        font-size: 14px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .rpi-card {
        margin: 20px 0;
        border-radius: 12px;
    }

    .rpi-card a {
        min-height: 78px;
    }

    .rpi-card img {
        width: 96px;
        height: 78px;
        object-fit: contain;
        object-position: center center;
        background: #f3f4f6;
        flex-basis: 96px;
    }

    .rpi-content {
        padding: 11px 12px;
    }

    .rpi-label {
        margin-bottom: 4px;
        font-size: 8.5px;
    }

    .rpi-card h4 {
        font-size: 13px;
        line-height: 1.35;
    }
}
