/*==================================================
        ВЫПОЛНЕННЫЕ РАБОТЫ НА СТРАНИЦЕ УСЛУГИ
==================================================*/

.service-projects {
    --sp-primary: #1689d8;
    --sp-primary-dark: #0870bd;
    --sp-secondary: #24b9e6;
    --sp-text: #17364e;
    --sp-muted: #687f92;
    --sp-border: #d9ebf7;
    --sp-light: #edf8ff;

    position: relative;
    margin-top: 70px;
    padding: 55px 42px 42px;
    overflow: hidden;
    border: 1px solid var(--sp-border);
    border-radius: 28px;
    background:
            radial-gradient(
                    circle at 95% 4%,
                    rgba(36, 185, 230, .16),
                    transparent 28%
            ),
            linear-gradient(
                    135deg,
                    #f8fcff 0%,
                    #ecf8ff 100%
            );
}

.service-projects::before {
    content: "";
    position: absolute;
    top: -150px;
    right: -130px;
    width: 330px;
    height: 330px;
    border: 65px solid rgba(22, 137, 216, .045);
    border-radius: 50%;
    pointer-events: none;
}

.service-projects__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 34px;
}

.service-projects__heading {
    max-width: 730px;
}

.service-projects__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--sp-primary);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.service-projects__eyebrow::before {
    content: "";
    width: 30px;
    height: 3px;
    border-radius: 10px;
    background: linear-gradient(
            90deg,
            var(--sp-primary),
            var(--sp-secondary)
    );
}

.service-projects__title {
    margin: 0 0 13px;
    color: var(--sp-text);
    font-size: clamp(27px, 3vw, 39px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.service-projects__subtitle {
    max-width: 680px;
    margin: 0;
    color: var(--sp-muted);
    font-size: 16px;
    line-height: 1.7;
}

.service-projects__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 19px;
    color: var(--sp-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #abd9f3;
    border-radius: 13px;
    background: rgba(255, 255, 255, .72);
    transition:
            color .25s ease,
            background .25s ease,
            transform .25s ease,
            box-shadow .25s ease;
}

.service-projects__all:hover {
    color: #fff;
    background: var(--sp-primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(22, 137, 216, .2);
}

.service-projects__all i {
    transition: transform .25s ease;
}

.service-projects__all:hover i {
    transform: translateX(4px);
}


/* Сетка */

.service-projects__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}


/* Карточка проекта */

.service-project-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--sp-border);
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 13px 32px rgba(13, 92, 149, .08);
    transition:
            transform .35s ease,
            border-color .35s ease,
            box-shadow .35s ease;
}

.service-project-card:hover {
    transform: translateY(-7px);
    border-color: #93d1f1;
    box-shadow: 0 24px 48px rgba(13, 92, 149, .16);
}

.service-project-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #deeff9;
}

.service-project-card__image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.service-project-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
            transform .55s ease,
            filter .55s ease;
}

.service-project-card:hover .service-project-card__image img {
    transform: scale(1.065);
    filter: saturate(1.07);
}

.service-project-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #7cb9db;
    font-size: 48px;
    background:
            linear-gradient(135deg, #eaf7ff, #d9effc);
}

.service-project-card__status {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 30px;
    background: rgba(7, 94, 155, .78);
    box-shadow: 0 7px 20px rgba(4, 48, 79, .14);
    backdrop-filter: blur(7px);
}

.service-project-card__hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 17px;
    background: linear-gradient(
            180deg,
            transparent 35%,
            rgba(4, 45, 75, .52)
    );
    opacity: 0;
    transition: opacity .3s ease;
}

.service-project-card:hover .service-project-card__hover {
    opacity: 1;
}

.service-project-card__open {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--sp-primary);
    font-size: 21px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 25px rgba(3, 43, 71, .2);
    transform: translateY(12px) scale(.9);
    transition: transform .3s ease;
}

.service-project-card:hover .service-project-card__open {
    transform: translateY(0) scale(1);
}


/* Содержимое карточки */

.service-project-card__body {
    display: flex;
    flex-direction: column;
    min-height: 265px;
    padding: 23px 23px 21px;
}

.service-project-card__location {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 11px;
    color: var(--sp-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.service-project-card__location i {
    flex: 0 0 auto;
    margin-top: 2px;
}

.service-project-card__title {
    margin: 0 0 12px;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.3;
}

.service-project-card__title a {
    color: var(--sp-text);
    text-decoration: none;
    transition: color .25s ease;
}

.service-project-card__title a:hover {
    color: var(--sp-primary);
}

.service-project-card__description {
    margin: 0 0 17px;
    color: var(--sp-muted);
    font-size: 14px;
    line-height: 1.65;
}

.service-project-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    margin-bottom: 19px;
}

.service-project-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    color: #496a82;
    font-size: 11px;
    line-height: 1.25;
    border: 1px solid #dcecf7;
    border-radius: 8px;
    background: #f4faff;
}

.service-project-card__meta i {
    color: var(--sp-primary);
}

.service-project-card__more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    color: var(--sp-primary);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    border-top: 1px solid #e4f0f7;
}

.service-project-card__more i {
    font-size: 16px;
    transition: transform .25s ease;
}

.service-project-card__more:hover {
    color: var(--sp-primary-dark);
}

.service-project-card__more:hover i {
    transform: translateX(5px);
}


/* Нижний CTA */

.service-projects__bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 27px;
    padding: 22px 24px;
    color: #fff;
    border-radius: 18px;
    background:
            radial-gradient(
                    circle at 90% 20%,
                    rgba(255, 255, 255, .17),
                    transparent 30%
            ),
            linear-gradient(
                    135deg,
                    var(--sp-primary-dark),
                    var(--sp-secondary)
            );
    box-shadow: 0 15px 35px rgba(16, 115, 182, .2);
}

.service-projects__bottom-text {
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-projects__bottom-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 49px;
    width: 49px;
    height: 49px;
    color: var(--sp-primary);
    font-size: 20px;
    border-radius: 14px;
    background: #fff;
}

.service-projects__bottom-text strong,
.service-projects__bottom-text > div > span {
    display: block;
}

.service-projects__bottom-text strong {
    margin-bottom: 3px;
    font-size: 16px;
}

.service-projects__bottom-text > div > span {
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
}

.service-projects__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 18px;
    color: var(--sp-primary-dark);
    font-size: 13px;
    font-weight: 800;
    border: 0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(2, 51, 84, .15);
    transition:
            transform .25s ease,
            box-shadow .25s ease;
}

.service-projects__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 27px rgba(2, 51, 84, .22);
}


/*==================================================
                    АДАПТИВ
==================================================*/

@media (max-width: 1100px) {

    .service-projects__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 767px) {

    .service-projects {
        margin-top: 50px;
        padding: 38px 20px 22px;
        border-radius: 22px;
    }

    .service-projects__head {
        display: block;
        margin-bottom: 26px;
    }

    .service-projects__all {
        margin-top: 19px;
    }

    .service-projects__grid {
        grid-template-columns: 1fr;
    }

    .service-project-card__body {
        min-height: auto;
    }

    .service-projects__bottom {
        display: block;
        padding: 21px;
    }

    .service-projects__button {
        width: 100%;
        margin-top: 18px;
    }

}

@media (max-width: 480px) {

    .service-projects__title {
        font-size: 27px;
    }

    .service-project-card__image {
        aspect-ratio: 4 / 3;
    }

    .service-projects__bottom-text {
        align-items: flex-start;
    }

}