.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.category-block {
    text-align: center;
    flex: 0 1 auto;
    min-width: 300px;
}

.category-block h5 {
    margin-bottom: 10px;
    text-align: center;
}

.profession-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.profession-item {
    width: 300px;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.profession-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .profession-item {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .profession-item {
        width: 90%;
    }
}