/* PROCESS */

.process {
    padding: 0 0 190px;
}

.process > .container {
    max-width: 1394px;
}

.process__head {
    position: relative;
    height: 314px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 113px;
    margin-bottom: 15px;
    z-index: 1;
}

.process__head svg {
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
    pointer-events: none;
}

.process__title {
    margin-bottom: 16px;
}

.process__head p {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 35px;
    line-height: 42px;
    color: #1A1A1A;
    max-width: 895px;
}

.process__tabs {
    background-color: #fff;
    padding: 100px 15px 80px;
}

.process__tabs-list {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 0 auto 30px;
    max-width: 1140px;
}

.process__tabs-item {
    position: relative;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% / 3);
    padding: 0 10px 0 35px;
    font-weight: 700;
    font-size: 15px;
    line-height: 18px;
    height: 65px;
    -webkit-border-radius: 5px 0 0 5px;
    -moz-border-radius: 5px 0 0 5px;
    border-radius: 5px 0 0 5px;
    cursor: pointer;
    z-index: 1;
    transition: all .3s;
    background: linear-gradient(to right, var(--color-light-gray) calc(100% - 27px), transparent 28px);
}

.process__tabs-bg {
    position: absolute;
    z-index: -1;
    right: 0;
    top: 0;
    transition: all .3s;
}

.process__tabs-arrows {
    display: flex;
}

.process__tabs-arrows svg path {
    transition: all .3s;
}

.process__tabs-arrows svg path {
    fill: var(--color-accent);
}

.process__tabs-item.process__tabs-item--active .process__tabs-bg path {
    fill: #2F2F2F;
}

.process__tabs-item.process__tabs-item--active {
    color: var(--color-accent);
    background: linear-gradient(to right, #2F2F2F calc(100% - 27px), transparent 28px);
}

.process__tabs-item.process__tabs-item--active .process__tabs-arrows svg path {
    fill: transparent;
}

.process__tabs-arrows svg:nth-child(2), .process__tabs-arrows svg:nth-child(3) {
    margin-left: -10px;
}

.process__stages.hidden {
    display: none;
}

.process__stages {
    display: flex;
    gap: 20px;
    max-width: 1140px;
    margin: 0 auto;
}

.process__stages-item {
    background-color: var(--color-light-gray);
    width: calc(100% / 3);
    padding: 40px 45px;
    min-width: 402px;
    height: 269px;
}

.process__stages-item:nth-child(1) {
    clip-path: polygon(0% 0%, 77% 0%, 100% 50%, 77% 100%, 0% 100%);
}

.process__stages-item:nth-child(2) {
    clip-path: polygon(80% 0, 100% 50%, 80% 100%, 0 100%, 21% 50%, 0 0);
    margin-left: -94px;
    min-width: 458px;
    padding-left: 125px;
}

.process__stages-item:nth-child(3) {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 22% 50%);
    margin-left: -90px;
    width: 100%;
    padding-left: 113px;
}


.process__stages-item span {
    font-weight: 700;
    font-size: 12px;
    line-height: 15px;
    width: 103px;
    height: 32px;
    background-color: var(--color-accent);
    display: flex;
    align-items: center;
    margin-bottom: 17px;
    text-transform: uppercase;
}

.process__stages-item:nth-child(1) span {
    clip-path: polygon(0 0, 80% 0, 100% 100%, 0% 100%);
    padding-right: 39px;
    padding-left: 19px;
}

.process__stages-item:nth-child(2) span {
    clip-path: polygon(0 0, 80% 0, 100% 100%, 20% 100%);
    width: 120px;
    justify-content: center;
    margin-left: -23px;
}

.process__stages-item:nth-child(3) span {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%);
    padding-left: 39px;
}

.process__stages-item h3 {
    font-size: 15px;
    line-height: 24px;
    text-transform: uppercase;
    margin-bottom: 7px;
    max-width: 276px;
}

.process__stages-item p {
    color: #575757;
    max-width: 276px;
}

@media (max-width: 1200px) {
    .process__stages-item:nth-child(1) {
        min-width: 354px;
        width: 100%;
    }

    .process__stages-item:nth-child(2) {
        min-width: initial;
        width: 100%;
    }

    .process__stages-item:nth-child(3) {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 21% 50%);
        padding-left: 102px;
        min-width: initial;
    }
}

@media (max-width: 1020px) {
    .process__stages-item:nth-child(1) {
        padding: 40px 45px 40px 25px;
        min-width: 320px;
    }

    .process__stages-item:nth-child(2) {
        min-width: 320px;
        margin-left: -80px;
        padding-left: 112px;
    }

    .process__stages-item:nth-child(3) {
        min-width: 320px;
        padding: 40px 22px 40px 87px;
        margin-left: -75px;
    }
}

@media (max-width: 992px) {
    .process__head {
        padding: 0 30px;
    }

    .process__head p {
        font-size: 27px;
        line-height: 38px;
    }
}

@media (max-width: 950px) {
    .process__stages {
        flex-direction: column;
        background-color: var(--color-light-gray);
        padding: 35px;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        border-radius: 10px;
        border: 2px solid var(--color-accent);
    }

    .process__stages-item:nth-child(1), .process__stages-item:nth-child(2), .process__stages-item:nth-child(3) {
        clip-path: none;
        margin-left: 0;
        min-width: initial;
        min-height: initial;
        padding: 0;
        height: auto;
        background: transparent;
    }

    .process__stages-item:nth-child(1) span, .process__stages-item:nth-child(2) span, .process__stages-item:nth-child(3) span {
        clip-path: none;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
        padding: 0;
        margin-left: 0;
        width: 100px;
        justify-content: center;
    }

    .process__stages-item p {
        max-width: initial;
    }
}

@media (max-width: 900px) {
    .process__tabs-item {
        padding: 0 10px 0 15px;
    }

    .process {
        padding: 0 0 100px;
    }
}

@media (max-width: 800px) {
    .process__tabs-list {
        flex-direction: column;
    }

    .process__tabs-item {
        width: 100%;
        padding: 0 10px 0 30px;
    }
}

@media (max-width: 590px) {
    .process__head svg {
        opacity: 0.5;
    }

    .process {
        padding: 0 0 80px;
    }

    .process__tabs {
        padding: 60px 15px 60px;
    }
}

@media (max-width: 480px) {
    .process__head p {
        font-size: 18px;
        line-height: 31px;
    }

    .process__head {
        padding: 0 15px;
        height: 267px;
        overflow: hidden;
    }

    .process__tabs-item {
        font-size: 13px;
    }

    .process__stages {
        padding: 15px;
    }
}

/* \PROCESS */