#archive-services {
    padding-bottom: 100px;
}

#archive-services h1 {
    /*max-width: 980px;*/
}

#archive-services .title-wrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.services-block-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-item {
    display: flex;
    border: 1px solid #eee;
    border-radius: 16px;
    /*padding: 25px;*/
    background: #fff;
    /*gap: 20px;*/
    min-height: 240px;
    transition: all 0.3s ease-in-out;
}

.service-item:hover {
    border: 1px solid #FF7004;
}

.service-item:hover .service-title {
    color: #FF7004;
}

.service-item:hover .btn {
    background: #FF7004;
}


.service-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    height: 100%;
}

.service-image img {
    border-radius: 16px;
    object-fit: cover;
    width: 100%;
    min-width: 240px;
    max-width: 240px;
    max-height: 240px;
    display: block;
}

.service-right-wrap {
    display: flex;
    flex-direction: column;
    gap: 13px;
    width: 100%;

    padding: 28px;
}

.service-right-wrap .p3 {
    margin-top: 0;
    margin-bottom: 0;
    color: #999999;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;       /* Количество строк */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;     /* Добавляет многоточие в конце */
}

.service-right-wrap .p3.service-attr {
    color: #FF7004;
    padding: 0;
    background: none;
}

.service-right-wrap .h4 {
    font-size: 20px;
    line-height: 22px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.service-item .btn {
    height: 42px;
    font-size: 14px;
}


.service-right-top-wrap {
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.service-right-bottom-wrap {
    display: flex;
    margin-top: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.service-attr {
    border-radius: 10px;
    padding: 15px;
    background: var(--bg-primary-second);
    align-items: center;
    align-content: center;
}

.projects-footer.btn {
    padding: 0;
}

@media (max-width: 1030px) {
    .services-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 768px) {
    .service-item {
        flex-direction: column;
    }

    .service-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-width: unset;
    }

    #archive-services {
        padding-bottom: 50px;
    }
}