.category-card {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    color: #fff;
    isolation: isolate;
    direction: ltr;
}

.category-card,
.category-card * {
    box-sizing: border-box;
}

.category-card .cat-img,
.category-card .cat-info {
    position: relative;
    overflow: hidden;
}

.category-card .cat-img {
    grid-column: 1;
    background: #e8eeee;
    -webkit-mask: url("../../img/category-card-image-mask.png") center / 100% 100% no-repeat;
    mask: url("../../img/category-card-image-mask.png") center / 100% 100% no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card .cat-img--empty {
    background: #e8eeee;
}

.category-card .cat-img img {
    display: block;
    object-fit: cover;
}

.category-card .cat-info {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 80px 60px;
    background: var(--uicolor);
    color: #fff;
    -webkit-mask: url("../../img/category-card-image-mask-reverse.png") center / 100% 100% no-repeat;
    mask: url("../../img/category-card-image-mask-reverse.png") center / 100% 100% no-repeat;
    direction: rtl;
}

.category-card__accent {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 5;
    width: 106px;
    height: 62px;
    background: var(--uicolor);
    -webkit-mask: url("../../img/category-card-accent-mask.png") center / 100% 100% no-repeat;
    mask: url("../../img/category-card-accent-mask.png") center / 100% 100% no-repeat;
    transform: translateX(-50%);
    pointer-events: none;
}

.category-card__head {
    position: relative;
    min-height: 176px;
}

.category-card__label {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    padding: 6px 18px;
    border-radius: 999px;
    background: var(--uicolor2);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
}

.category-card:nth-child(even) .category-card__label {
    background-color: var(--uicolor);
}

.category-card .content-box {
    max-width: 430px;
    margin: 0;
    padding: 0;
    border: 0;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.category-card .content-box a {
    display: block;
    overflow: visible;
    color: inherit;
    text-decoration: none;
    white-space: normal;
}

.category-card .content-box a:hover,
.category-card .content-box a:focus-visible {
    color: inherit;
}

.category-card__number {
    position: absolute;
    top: -20px;
    inset-inline-end: 0;
    color: white;
    font-size: clamp(78px, 7vw, 105px);
    font-weight: 700;
    line-height: 0.9;
    pointer-events: none;
    opacity: 0.1;
}

.category-card .-p-cat-desc {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.category-card__feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-card__feature i {
    flex: 0 0 auto;
    color: white;
    font-size: 11px;
    width: 20px;
    height: 20px;
    border-radius: 20px;
    background-color: var(--uicolor2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card:nth-child(even) .category-card__feature i {
    background-color: var(--uicolor);
}

.category-card__feature span {
    min-width: 0;
}

.category-card__read-more {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 6;
    display: grid;
    width: 106px;
    height: 106px;
    padding: 0;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #fff;
    text-decoration: none;
    transform: translate(-50%, -50%);
}

.service__icon {
    --cs-box-size: 60px;
    display: inline-flex;
    width: var(--cs-box-size);
    min-width: var(--cs-box-size);
    height: var(--cs-box-size);
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--uicolor);
    color: #fff;
    transition: transform 180ms ease;
}

.service__icon i {
    color: inherit;
    font-size: 18px;
    transform: rotate(315deg);
}

.category-card__read-more:hover .service__icon,
.category-card__read-more:focus-visible .service__icon {
    transform: rotate(45deg);
    background-color: var(--uicolor2);
}

.rentgo-cat-gallery__list > .category-card:nth-child(even) .cat-img {
    grid-column: 2;
    -webkit-mask-image: url("../../img/category-card-image-mask-reverse.png");
    mask-image: url("../../img/category-card-image-mask-reverse.png");
}

.rentgo-cat-gallery__list > .category-card:nth-child(even) .cat-info {
    grid-column: 1;
    grid-row: 1;
    -webkit-mask-image: url("../../img/category-card-image-mask.png");
    mask-image: url("../../img/category-card-image-mask.png");
    background-color: var(--uicolor2);
}

@media (max-width: 1199px) {

    .category-card .cat-info {
        padding: 68px 44px 58px;
    }
}

@media (max-width: 991px) {
    .category-card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .category-card .cat-img,
    .category-card .cat-info {
        grid-column: 1;
    }

    .category-card .cat-img {
        border-radius: 20px 20px 0 0;
        -webkit-mask: none;
        mask: none;
    }

    .category-card .cat-info {
        min-height: 360px;
        padding: 54px 38px 48px;
        border-radius: 0 0 20px 20px;
        -webkit-mask: none;
        mask: none;
    }

    .rentgo-cat-gallery__list > .category-card:nth-child(even) .cat-img {
        grid-column: 1;
        grid-row: auto;
        border-radius: 20px 20px 0 0;
        -webkit-mask: none;
        mask: none;
    }

    .rentgo-cat-gallery__list > .category-card:nth-child(even) .cat-info {
        grid-column: 1;
        grid-row: auto;
        border-radius: 0 0 20px 20px;
        -webkit-mask: none;
        mask: none;
    }

    .category-card__accent {
        display: none;
    }

    .category-card__read-more {
        top: 390px;
        width: 92px;
        height: 92px;
    }

    .service__icon {
        --cs-box-size: 54px;
    }
}

@media (max-width: 575px) {

    .category-card .cat-info {
        min-height: 200px;
        padding: 48px 24px 26px;
    }

    .category-card__head {
        min-height: 50px;
    }

    .category-card__label {
        margin-bottom: 18px;
        font-size: 12px;
        padding: 6px 10px;
    }

    .category-card .content-box {
        max-width: 78%;
        font-size: 20px;
    }

.category-card__feature span {
    font-size: 13px;
}

    .category-card__number {
        top: -28px;
        font-size: 54px;
    }

    .category-card .-p-cat-desc {
        gap: 12px;
        padding-top: 26px;
        font-size: 15px;
    }

    .category-card__read-more {
        top: 190px;
        width: 55px;
        height: 55px;
    }

    .service__icon {
        --cs-box-size: 37px;
    }
}