.webfus-categories {
    position: relative;
    margin-bottom: 80px;
}

.webfus-categories:last-child {
    margin-bottom: 30px;
}

.webfus-categories .maxwidth-theme {
    padding-block: 0 !important;
}

.webfus-categories__head {
    margin-bottom: 24px;
}

.webfus-categories__head:last-child {
    margin-bottom: 0;
}

.webfus-categories__title {
    display: block;
    margin: 0;
    font-size: 28px;
    color: #1d2029;
    line-height: 1.2;
    font-weight: bold;
}

.webfus-categories__list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.webfus-categories__item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: calc(20% - 24px * 4 / 5);
    height: 375px;
}

.webfus-categories__link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.webfus-categories__bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webfus-categories__bg img {
    min-height: 100%;
    min-width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}

.webfus-categories__bg:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25%;
    background: linear-gradient(0deg, rgba(22, 36, 39, 0.3), transparent);
}

.webfus-categories__text {
    display: block;
    width: 100%;
    padding: 20px;
    text-align: center;
    position: relative;
}

.webfus-categories__name {
    font-size: 18px;
    color: #fff;
    font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
    .webfus-categories__item:hover .webfus-categories__bg img {
        transform: scale(1.1);
    }
}

@media (max-width: 1199px) {
    .webfus-categories {
        margin-bottom: 60px;
    }

    .webfus-categories__item {
        width: calc(100% / 3 - 24px * 2 / 3);
    }
}


@media (max-width: 767px) {
    .webfus-categories {
        margin-bottom: 40px;
    }

    .webfus-categories__item {
        width: 100%;
        height: 122px;
    }

    .webfus-categories__text {
        text-align: left;
        padding: 15px;
    }

    .webfus-categories__name {
        font-size: 15px;
    }

    .webfus-categories__title {
        font-size: 22px;
    }

    .webfus-categories__bg:after {
        height: 50%;
    }
}