.graph-two-block {}

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

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

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

}


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

}

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

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

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


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

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

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

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

}

.graph-two-block .item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    width: 280px;
    position: absolute;
    height: fit-content;
}

.graph-two-block .item:nth-child(5n+1) {
    top: 180px;
    left: 68px;
}

.graph-two-block .item:nth-child(5n+2) {
    top: 135px;
    left: 335px;
}

.graph-two-block .item:nth-child(5n+3) {
    top: 153px;
    left: 640px;
}

.graph-two-block .item:nth-child(5n+4) {
    top: 96px;
    left: 960px;
}

.graph-two-block .item:nth-child(5n+5) {
    top: 0;
    left: 1220px;
}

.graph-two-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-two-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-two-block .item__text {
    padding-left: 60px;
    font-family: 'Inter Tight';
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: 0%;
    vertical-align: bottom;


}

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

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

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

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

    }

    .graph-two-block .item {
        width: 220px;
    }
}

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

    .graph-two-block .item:nth-child(5n+2) {
        top: 140px;
        left: 285px;
    }

    .graph-two-block .item:nth-child(5n+3) {
        top: 145px;
        left: 600px;
    }

    .graph-two-block .item:nth-child(5n+4) {
        top: 120px;
        left: 900px;
    }

    .graph-two-block .item:nth-child(5n+5) {
        top: 20;
        left: 1180px;
    }

}

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

    .graph-two-block .items__wrapper {
        position: relative;
        align-items: flex-start;
        margin-top: 40px;
        min-height: 200px;
        height: auto;
    }

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

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

@media (max-width: 1420px) {}

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

}

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

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

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

    .graph-two-block .items__wrapper {
        flex-direction: column;
        gap: 20px;
    }

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

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

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

}

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

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


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

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

}

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

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

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

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

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

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

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

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

    .graph-two-block .graph__image.bottom {
        height: 150px;
    }
    .graph-two-block .item__text{
        font-size: 14px;
    }
}

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

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