/* ============================================
   GRID for [roboty_latest] — SAFE VERSION
   ============================================ */

.roboty-latest-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-content: flex-start;
}

.roboty-latest-card {
    width: calc(25% - 18px);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.roboty-latest-card:hover {
    transform: translateY(-3px);
}

.roboty-latest-img img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* MOBILE: 2 в ряд */
@media (max-width: 768px) {
    .roboty-latest-card {
        width: calc(50% - 12px);
    }
    .roboty-latest-grid {
        gap: 20px;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    .roboty-latest-card {
        width: calc(50% - 8px);
    }
    .roboty-latest-grid {
        gap: 16px;
    }
}