/* Service page */

.services-section {
    padding-top: 64px;
    padding-bottom: 64px;
    background-color: var(--white);
}

.services-body-div {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.services-top-part {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.services-top-part-info {
    display: flex;
    flex-direction: column;
}

.services-top-part-image img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

@media (max-width: 576px) {
    .services-top-part-image img {
        height: 180px;
    }
}

.our-process {
    display: flex;
    flex-direction: row;
    gap: 4px;
    color: var(--grey-500);
}

.our-process img {
    filter: invert(40%) sepia(8%) saturate(547%) hue-rotate(190deg) brightness(95%) contrast(83%);
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.component {
    border-top: 1px solid var(--grey-50);
    overflow: hidden;
}

.components-grid .component:not(:last-child) {
    border-right: 1px solid var(--grey-50);
}

.component-header {
    padding: 15px 17px;
    border-bottom: 5px solid var(--blue);
    color: var(--grey-300);
}

.component-body {
    padding: 32px 17px;
    height: 450px;
    display: flex;
    flex-direction: column;
    background-color: var(--blue-05);
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: calc(0.4s + var(--component-index, 0) * 0.15s);
}

.components-grid.is-visible .component-body {
    opacity: 1;
    transform: translate(0, 0);
}

.component-body .subtitle-2 {
    margin-bottom: 48px;
}

.component-description {
    margin-top: auto;
}

@media (max-width: 1199.98px) {
    .services-body-div {
        gap: 32px;
    }

    .services-top-part {
        grid-template-columns: 1fr;
    }

    .components-grid {
        grid-template-columns: 1fr;
        border-bottom: 1px solid var(--grey-50);
        margin-bottom: 32px;
    }

    .components-grid .component:not(:last-child) {
        border-right: none;
    }

    .component-body {
        height: auto;
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (min-width: 1200px) {
    .component.fade-el {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.our-process-row {
    justify-content: space-between;
    align-items: center;
}

.our-process-row .btn-outline-with-arrow {
    margin: 0 0;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .services-body-div .components-grid {
        height: 725px;
        border-bottom: 1px solid var(--grey-10);
    }

    .services-body-div .component {
        display: flex;
        flex-direction: column;
        border-right: 1px solid var(--grey-10);
    }

    .services-body-div .component:last-child {
        border-right: none;
    }

    .services-body-div .component-header {
        border-bottom: none;
    }

    .services-body-div .component-body {
        border-top: 5px solid var(--blue);
        margin-top: auto;
    }

    .services-body-div .component:nth-child(1) .component-body {
        height: 500px;
    }

    .services-body-div .component:nth-child(2) .component-body {
        height: 550px;
    }

    .services-body-div .component:nth-child(3) .component-body {
        height: 600px;
    }

    .services-body-div .component:nth-child(4) .component-body {
        height: 650px;
    }
}

@media (min-width: 1400px) {
    .services-body-div .components-grid {
        height: 715px;
        border-bottom: 1px solid var(--grey-10);
    }

    .services-body-div .component {
        display: flex;
        flex-direction: column;
        border-right: 1px solid var(--grey-10);
    }

    .services-body-div .component:last-child {
        border-right: none;
    }

    .services-body-div .component-header {
        border-bottom: none;
    }

    .services-body-div .component-body {
        border-top: 5px solid var(--blue);
        margin-top: auto;
    }

    .services-body-div .component:nth-child(1) .component-body {
        height: 400px;
    }

    .services-body-div .component:nth-child(2) .component-body {
        height: 450px;
    }

    .services-body-div .component:nth-child(3) .component-body {
        height: 500px;
    }

    .services-body-div .component:nth-child(4) .component-body {
        height: 550px;
    }
}

.btn-outline-with-arrow {
    margin: 0 auto;
}