.services {
    position: relative;
    z-index: 2;
}

.services__wrapper {
    position: relative;
    z-index: 1;
    padding-top: 68px;
}

.services__wrapper::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -20px;
    width: calc(100% - 14px);
    height: 200px;
    transform: translate(-50%, 0);
    background: #fff;
    border-radius: 5px;
    z-index: 0;
}

.services__top-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 40px;
}

.services__content-btn {
    margin-top: 25px;
}

.services__wrap {
    position: relative;
    z-index: 2;
}

.services__wrap .row {
    gap: 40px 0;
}

.service-card {
    position: relative;
    display: block;
    border: none;
    background: #0A3259;
    overflow: hidden;
    border-radius: 5px;
}

.service-card__image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.service-card__info {
    padding: 22px 24px 26px;
    color: #F6F5F3;
}

.service-card__info h3 {
    margin: 0 0 13px 0;
    padding: 0 45px 0 0;
    font-size: 22px;
    line-height: 1.28em;
    font-weight: 600;
    color: #fff;
    position: relative;
}

.service-card__info h3::before {
    content: '\e905';
    font-family: 'perritt-icon';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
    font-weight: normal;
    font-size: 32px;
}

.service-card__description {
    border-top: 1px solid #F6F5F3;
    padding-top: 9px;
}


@media (min-width: 768px) {
    .services__wrapper {
        padding-top: 44px;
    }

    .services__wrapper::before {
        top: -42px;
        width: calc(100% - 20px);
    }

    .services__top-content {
        padding: 0 59px;
        margin-bottom: 40px;
    }

    .services__content-btn {
        margin-top: 40px;
    }

    .service-card__image {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }

    .service-card__info {
        padding: 22px 24px 26px;
        color: #F6F5F3;
    }
}

@media (min-width: 1200px) {
    .services__wrapper {
        padding-top: 0;
    }

    .services__wrapper::before {
        top: -82px;
        width: calc(100% + 236px);
    }

    .services__top-content {
        padding: 0 0;
        margin-bottom: 40px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-end;
    }

    .services__content {
        width: calc(100% - 330px);
        text-align: left;
    }

    .services__content-btn {
        margin-top: 0;
        width: 330px;
        text-align: right;
    }

    .service-card {
        height: 350px;
    }

    .service-card__image {
        height: 100%;
    }

    .service-card__info {
        padding: 30px 38px 0 30px;
        color: #F6F5F3;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: flex-start;
        flex-direction: column;
        background: rgba(10, 50, 89, 0.25);
    }

    .service-card__info h3 {
        margin: 0 0 30px 0;
        padding: 0 200px 0 0;
        font-size: 40px;
        line-height: 1.30em;
    }

    .service-card__info h3::before {
        font-size: 37px;
        top: auto;
        bottom: 0;
        transform: none;
    }

    .service-card__description {
        padding-top: 26px;
        display: none;
    }

    .service-card:hover .service-card__info {
        padding: 30px 30px 50px 30px;
        background: rgba(10, 50, 89, 0.85);
    }

    .service-card:hover .service-card__description {
        display: block;
    }





}