.graph-three-block {}

.graph-three-block .graph-block__wrapper {
    padding: 72px;
    border-radius: 30px;
    background: var(--bg-primary-second);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.graph-three-block .block-title {
    margin-bottom: 20px;
}

.graph-three-block .block-subtitle {
    color: var(--text-primary-main);

}


.graph-three-block .block-subtitle {
    max-width: 498px;
    position: relative;
    z-index: 2;

}

.graph-three-block .graph__image.right {
    width: 960px;
    height: 703px;
    right: 0;
    top: 0;
    position: absolute;
    z-index: 1;
}

.graph-three-block .graph__image.right img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top right;
}

.graph-three-block .graph__image.bottom {
    height: 450px;
    width: calc(100% + 15px);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}


.graph-three-block .graph__image.bottom img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
}

.graph-three-block .block-subtitle {
    padding-bottom: 260px;
    max-width: 378px;
}

.graph-three-block .block-title.bottom {
    max-width: 730px;
}

.graph-three-block .items__wrapper {
    position: absolute;
    display: flex;
    width: 100%;
    left: 0;
    bottom: 0;
    flex-direction: row;
    min-height: 357px;
    justify-content: space-between;
}

.graph-three-block .items__wrapper::before {
    position: absolute;
    content: '';
    background-image: url(images/arrow.png.webp);
    top: 100px;
    left: 360px;
    width: 160px;
    height: 55px;
    background-size: contain;
    background-repeat: no-repeat;
}

.graph-three-block .item {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    width: 320px;
    position: absolute;
    height: fit-content;
}

.graph-three-block .item:nth-child(3n+1) {
    top: 170px;
    left: 80px;
}

.graph-three-block .item:nth-child(3n+2) {
    top: 90px;
    left: 584px;
}

.graph-three-block .item:nth-child(3n+3) {
    top: 20px;
    left: 1138px;
}

.graph-three-block .item::before {
    position: absolute;
    width: 10px;
    height: 100%;
    background-image: url(./images/line.svg);
    background-size: contain;
    background-repeat: no-repeat;
    content: '';
    left: 35px;
    top: 80px;
}

.graph-three-block .item__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 100%;
    border: 5px solid var(--bg-alt-third);
    background: var(--bg-primary-main);
}

.graph-three-block .item__text {
    padding-top: 18px;
}

.graph-three-block .item__icon img {
    width: 34px;
    height: 34px;
}

.graph-three-block .graph__bg {
    position: absolute;
    width: calc(100% + 20px);
    height: 357px;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-image: url(images/graph_three.png.webp);
    background-size: cover;
    background-repeat: no-repeat;
}

.graph-three-block .note {
    position: absolute;
    bottom: 72px;
    right: 72px;
    background: var(--bg-primary-main);
    width: 325px;
    border-radius: 12px;
    padding: 14px;
    padding-top: 20px;
}

.graph-three-block .note__img {
    position: absolute;
    width: 40px;
    height: 40px;
    top: -24px;
    left: 10px;
}

.graph-three-block .note__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.graph-three-block .note__text {
    color: var(--text-primary-main);
}

@media (max-width: 1560px) {
    .graph-three-block .graph-block__wrapper {
        padding: 40px;
    }

    .graph-three-block .block-subtitle {
        padding-bottom: 300px;

    }

    .graph-three-block .item {
        width: 280px;
    }
}

@media (max-width: 1480px) {
    .graph-three-block .item:nth-child(3n+1) {
        top: 140px;
        left: 40px;
    }

    .graph-three-block .item:nth-child(3n+2) {
        top: 140px;
        left: 485px;
    }

    .graph-three-block .item:nth-child(3n+3) {
        top: -15px;
        left: 1000px;
    }

}

@media (max-width: 1335px) {
    .graph-three-block .graph__bg {
        display: none;
    }

    .graph-three-block .item {
        width: calc((100% - 20px) / 3);
    }

    .graph-three-block .items__wrapper {
        position: relative;
        align-items: center;
        margin-top: 40px;
        min-height: 150px;
        height: auto;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .graph-three-block .item {
        position: relative;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }

    .graph-three-block .block-subtitle {
        padding: 0;
    }

    .graph-three-block .note {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin-top: 40px;
    }

    .graph-three-block .items__wrapper::before {
        transform: scaleY(-1) rotate(34deg);
        top: unset;
        bottom: 20px;
    }
}


@media (max-width: 1240px) {
    .graph-three-block .graph__image.right {
        width: 541px;
        height: 375px;
    }

}

@media (max-width: 1000px) {
    .graph-three-block .graph__image.right {
        position: relative;
        width: 100%;
        bottom: -40px;
        right: -40px;
        top: unset;
    }

    .graph-three-block .block-subtitle.bottom {
        margin-bottom: 200px;
    }

    .graph-three-block .graph__image.bottom {
        height: 300px;
    }

    .graph-three-block .items__wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .graph-three-block .item {
        flex-direction: row;
        width: unset;
        align-items: center;
    }

    .graph-three-block .item__text {
        padding: 0;
        width: unset;
    }

    .graph-three-block .item::before {
        display: none;
    }

    .graph-three-block .items__wrapper::before {
        bottom: 60px;
        left: 400px;
        transform: scaleY(-1) rotate(49deg);
    }

}

@media (max-width: 660px) {
    .graph-three-block .graph__image.right {
        height: 320px;
    }

    .graph-three-block .graph__image.right img {
        object-position: bottom right;
    }


    .graph-three-block .graph__image.bottom {
        height: 200px;
    }

    .graph-three-block .block-subtitle.bottom {
        margin-bottom: 150px;
    }

    .graph-three-block .note {
        width: 100%;
        margin-top: 30px;
    }

    .graph-three-block .items__wrapper::before {
        display: none;
    }


}

@media (max-width: 530px) {
    .graph-three-block .item__icon {
        width: 60px;
        height: 60px;
    }

    .graph-three-block .item__icon img {
        width: 25px;
        height: 25px;
    }

    .graph-three-block .items__wrapper {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .graph-three-block .graph__image.right {
        height: 270px;
        bottom: -20px;
        right: -20px;
    }

    .graph-three-block .graph__image.right img {
        object-position: bottom right;
    }

    .graph-three-block .graph-block__wrapper {
        padding: 20px;
    }

    .graph-three-block .btn {
        text-align: center;
    }

    .graph-three-block .block-subtitle.bottom {
        margin-bottom: 100px;
    }

    .graph-three-block .graph__image.bottom {
        height: 150px;
    }

    .graph-three-block .item__text {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .graph-three-block .graph__image.right {
        height: 220px;
    }
}

@media (max-width: 370px) {
    .graph-three-block .graph__image.right {
        height: 190px;
    }
}