.servicesSection {
    --section-mt: 80rem;
    --section-mb: 80rem;

    --h2-mb: 30rem;

    --item-p: 40rem 40rem 50rem;
    --item-bor-rad: 15rem;
    --sub-title-mb: 50rem;

    --item-icon-mb: 30rem;

    --item-title-fz: 24rem;
    --item-title-lh: 1.5;
    --item-title-mb: 10rem;
    --item-descr-fz: 18rem;
    --item-descr-lh: 1.6;

    --item-price-fz: 22rem;
    --item-price-lh: 1.5;
    --item-price-mb: 10rem;
    --item-time-fz: 18rem;
    --item-time-lh: 1.5;

    --item-item-gap: 30rem;

}

.servicesSection:last-of-type {
    margin-bottom: var(--section-mb);
}

.servicesSection {
    margin-top: var(--section-mt);
}

.servicesSection .subTitle {
    margin-bottom: var(--sub-title-mb);
    max-width: 1070rem;
}



.servicesSection__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #D8DCEC;
    border-radius: var(--item-bor-rad);
    background-color: #D8DCEC;
    overflow: hidden;
    gap: 1px 1px;

}

.service {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--item-item-gap);
    background-color: #ffff;
    padding: var(--item-p);
}

/* .service:nth-child(1) {
    border-top-left-radius: var(--item-bor-rad);
}

.service:nth-child(2) {
    border-top-right-radius: var(--item-bor-rad);
}

.service:nth-child(3) {
    border-bottom-left-radius: var(--item-bor-rad);
}

.service:nth-child(4) {
    border-bottom-right-radius: var(--item-bor-rad);
} */


.service__title {
    font-size: var(--item-title-fz);
    font-weight: 700;
    line-height: var(--item-title-lh);
    margin-bottom: var(--item-title-mb);
}

.service__title a {
    color: var(--main-color);
    text-decoration: underline;
}

.service__title:hover a {
    color: var(--hover-main-color);
}


.service__descr {
    font-size: var(--item-descr-fz);
    line-height: var(--item-descr-lh);
    color: #5B6273;
}

.service img {
    margin-bottom: var(--item-icon-mb);
}

.service__img span {
    display: block;
    margin-top: -10rem;
    font-size: 15rem;
    line-height: 1.5;
}

.service__priceValue {
    font-size: var(--item-price-fz);
    font-weight: 500;
    line-height: var(--item-price-lh);
    color: #152037;
}

.service__time {
    font-size: var(--item-time-fz);
    line-height: var(--item-time-lh);
    color: #A1A6AF;

}

@media (max-width:1200px) {
    .servicesSection {

        --h2-fz: 42rem;
        --h2-mb: 20rem;

        --item-p: 30rem;
        --sub-title-fz: 24rem;
        --sub-title-mb: 50rem;


        --item-title-fz: 22rem;
        --item-descr-fz: 18rem;

        --item-price-fz: 18rem;
        --item-time-fz: 16rem;


    }

    .service__title {
        font-weight: 600;
    }

}

@media (max-width:1024px) {
    .servicesSection {
        --section-mt: 60rem;
        --section-mb: 60rem;

        --h2-fz: 32rem;
        --sub-title-fz: 18rem;
        --sub-title-mb: 40rem;

    }

    .service__descr {
        color: #152037;
    }
}

@media (max-width:768px) {
    .servicesSection {
        --section-mt: 50rem;
        --section-mb: 50rem;
        --sub-title-mb: 30rem;

        --item-bor-rad: 10rem;

        --h2-mb: 10rem;

        --item-p: 20rem;
        --item-icon-mb: 15rem;
        --item-descr-fz: 16rem;
    }

    .servicesSection__wrapper {
        /* display: block; */
        display: flex;
        flex-direction: column;
    }

    .service__img span {
        margin-top: 0rem;
    }



    .service {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;

    }

    .service__text {
        max-width: 418rem;
    }

    .service__price {
        flex-shrink: 0;
        max-width: 170rem;
        width: 100%;

        text-align: left;
    }

    .service img {
        max-width: 36rem
    }

    /* .service:nth-child(1) {
        border-top-left-radius: var(--item-bor-rad);
        border-top-right-radius: var(--item-bor-rad);
    }

    .service:nth-child(2) {
        border-top-right-radius: unset;
    }

    .service:nth-child(3) {
        border-bottom-left-radius: unset;
    }

    .service:nth-child(4) {
        border-bottom-right-radius: var(--item-bor-rad);
        border-bottom-left-radius: var(--item-bor-rad);
    } */
}

@media (max-width:560px) {
    .servicesSection {
        --section-mt: 40rem;
        --sub-title-mb: 20rem;
        --sub-title-fz: 16rem;
        --section-mb: 40rem;


        --h2-fz: 24rem;
        --h2-mb: 20rem;

        --item-item-gap: 10rem;
        --item-p: 20rem;
        --item-icon-mb: 10rem;
        --item-title-fz: 18rem;
        --item-descr-fz: 16rem;
        --item-descr-lh: 1.5;
    }

    .servicesSection h2 {
        line-height: 1.2;
    }

    .servicesSection .subTitle {
        line-height: 1.5;
    }

    .service {
        flex-direction: column;
        align-items: start;
    }
}