.services {
    position: relative;
}


.services_container {
    overflow: hidden;
    position: relative;
}

.services__body {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 32px;
}


.services__card {
    flex: 0 0 516px;
    padding: 56px 40px 54px;
    background-color: #FFFFFF;
    border-radius: 8px;
    margin: 0 16px;
    height: 100%;
    position: relative;
    min-height: 270px;
}

.services__card:nth-child(1) {
    text-align: right;
}


.services__card a:hover {
    text-decoration: none;
}

.card__container {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}


.card__body {
    flex-grow: 1;
}


.card__bottom {
    margin-top: 32px;
}

.card__title {
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
}

.card__assets {
    display: flex;
    font-style: normal;
    font-weight: normal;
}

a.app-link {
    display: flex;
    align-items: center;
    color: #000000;
    font-size: 16px;
    line-height: 148%;
}

a.app-link:not(:last-child) {
    margin-right: 45px;
}

.app-icon {
    font-size: 2.4em;
    display: inline-block;
    color: var(--primary-color);
}

.app-store {
    margin-left: 10px;
}

.services__phones-images {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
    gap: 32px;
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
}

.phones-images__wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: end;
}

.phones-images__wrapper img {
    position: absolute;
    filter: drop-shadow(0px 5px 5px #88a3aa);
}

.phones-images__wrapper picture {
    width: 100%;
    max-width: 197px;
}

.phones-images__wrapper picture:nth-child(1) img {
    top: 45px;
    right: 325px;
}


.phones-images__wrapper picture:nth-child(2) img {
    top: 183px;
    right: 96px;
}
.phones-images__wrapper picture:nth-child(3) img {
    top: 67px;
    right: 0;
}
@media (max-width: 1920px) and (min-width: 1367px) {
    .phones-images__wrapper picture:nth-child(1) img {
        right: calc(5px + (325 - 5) * ((100vw - 1367px) / (1920 - 1367)));
    }

    .phones-images__wrapper picture:nth-child(2) img {
        right: calc(-80px + (96 + 80) * ((100vw - 1400px) / (1920 - 1400)));
    }
}

@media (max-width: 1919px) {
    .services {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 1860px) {
    .services__phones-images {
        width: 100%;
    }
    .phones-images__wrapper picture:nth-child(3) img {
        right: auto;
        left: 0;
        transform: scale(-1, 1);
    }
}

@media (max-width: 1366px) {
    .phones-images__wrapper picture:nth-child(1) img {
        display: none;
    }

    .phones-images__wrapper picture:nth-child(2) img {
        right: 0;
    }
}

@media (max-width: 1023px) {
    .card__assets {
        justify-content: center;
    }

    .services__body {
        flex-direction: column;
        align-items: center;
    }

    .services__card {
        flex: inherit;
        margin: 0 0 32px 0;
        max-width: 600px;
        width: 100%;
        padding: 40px 32px;
    }

    .card__container {
        text-align: center;
    }
}
@media (max-width: 767px) {
    .phones-images__wrapper picture:nth-child(3) img {
        display: none;
    }
}
@media (max-width: 480px) {
    .app-store {
        display: none;
    }
    .app-icon {
        color: #fff;
        transition: var(--transition);
    }
    .card__bottom {
        margin-top: 16px;
    }
    .card__assets {
        align-items: center;
        gap: 20px;
    }

    a.app-link {
        display: flex;
        align-items: center;
        background-color: var(--gray-color);
        line-height: 148%;
        box-shadow: rgba(0, 0, 0, 0.2) 0px 12px 28px 0px, rgba(0, 0, 0, 0.1) 0px 2px 4px 0px, rgba(255, 255, 255, 0.05) 0px 0px 0px 1px inset;
        padding: 10px;
        border-radius: 8px;
        transition: var(--transition);
        font-size: 8px;
    }

    a.app-link:not(:last-child) {
        margin-right: 0;
    }
    a.app-link:hover {
        transform: translateY(-7px);
    }
    a.app-link:hover .app-icon {
        color: var(--primary-color);
    }
}