.card-grid {
    position: relative;
    overflow: hidden;
}
.card-grid__heading {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    margin: 0;
}
.card-grid__items {
    display: flex;
    flex-wrap: wrap;
}
.content-card {
    position: relative;
    flex: none;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.content-card__image {
    position: absolute;
    height: auto;
    pointer-events: none;
}
.content-card__text {
    position: absolute;
    margin: 0;
    z-index: 1;
}
.content-card {
    overflow: visible;
}
.content-card__link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}
.content-card__link:hover {
    background: rgb(0 0 0/.015);
}
@media (max-width:1199px) {
    .card-grid {
        padding: 0 clamp(16px,2vw,32px);
        min-height: 0;
        overflow: visible;
    }
    .card-grid .card-grid__heading {
        position: static;
        transform: none;
        max-width: 1000px;
        width: 100%;
        margin: 0 auto 40px;
        font: 700 clamp(28px,4.4vw,48px)/1.15 var(--heading-font);
        overflow-wrap: anywhere;
    }
    .card-grid .card-grid__items {
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr));
        width: 100%;
        margin: 0;
        gap: 20px;
    }
    .card-grid .content-card {
        width: auto;
        height: auto;
        min-height: 260px;
        order: initial;
        translate: none;
        display: flex;
        flex-direction: column;
        padding: 28px;
        gap: 12px;
        border-radius: 24px;
        overflow: hidden;
    }
    .card-grid .content-card .content-card__text {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        margin: 0;
        font-size: 17px;
        line-height: 1.45;
        text-align: left;
    }
    .card-grid .content-card .content-card__text-0 {
        font-size: 24px;
        line-height: 1.2;
        font-weight: 700;
        margin-bottom: 8px;
    }
    .card-grid .content-card .content-card__image {
        left: auto;
        top: auto;
        right: 0;
        bottom: 0;
        width: 45%;
        height: auto;
        max-height: 190px;
        object-fit: contain;
    }
    .service-cards.card-grid .content-card {
        padding-bottom: 88px;
    }
    .service-cards.card-grid .content-card__image {
        width: 48px;
        right: 24px;
        bottom: 24px;
    }
    .process.card-grid .content-card {
        padding-bottom: 180px;
        min-height: 340px;
    }
    .process.card-grid .content-card .content-card__image-0,.process.card-grid .content-card .content-card__image-2 {
        display: none;
    }
    .process.card-grid .content-card .content-card__image-1 {
        width: 80%;
        height: 160px;
        left: 10%;
        bottom: 0;
    }
    .card-grid:is(.technology-dev,.technology-bitrix) .content-card .content-card__image {
        position: relative;
        order: 1;
        right: auto;
        bottom: auto;
        width: 100%;
        height: 120px;
        max-height: none;
        margin-top: auto;
        padding-top: 20px;
    }
    .card-grid:is(.solutions-dev,.solutions-bitrix) .content-card {
        padding-bottom: 160px;
    }
    .card-grid:is(.solutions-dev,.solutions-bitrix) .content-card .content-card__image {
        width: 70%;
        height: 160px;
        object-position: bottom right;
    }
    .card-grid:is(.benefits-home,.benefits-tilda,.benefits-dev,.benefits-bitrix) .content-card {
        min-height: 210px;
        justify-content: center;
        background-position: center;
    }
    .card-grid:is(.benefits-home,.benefits-tilda,.benefits-dev,.benefits-bitrix) .content-card .content-card__text {
        width: 65%;
        font-size: 22px;
    }
}
@media (min-width:1200px) {
    .process.card-grid .content-card__text {
        left: 0;
        width: 100%;
    }
}
@media (min-width:1200px) {
    .card-grid:is(.technology-dev,.technology-bitrix) .content-card__text {
        left: 0;
        width: 100%;
    }
}
