.section-agents-scroll {
    /* background: #081611; */
    color: #f7f8f7;
    overflow: visible;
    background: var(--Prime-color-Deep-dark-green, linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%), #152B26);
    padding: 0;
}

.agents-scroll-track {
    height: calc(var(--steps, 1) * 53vh);
    position: relative;
    overflow: visible;
}

.agents-scroll-sticky {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    z-index: 1;
}

.agents-scroll-sticky.is-pinned {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.agents-scroll-sticky.is-after {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.section-agents-scroll .container {
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    margin-top: 116px;
    margin-bottom: 120px;
    max-width: 1320px !important;
}

.agents-scroll-grid {
    display: grid;
    grid-template-columns: minmax(280px, 61%) 1fr;
    gap: 0px;
    align-items: flex-start;
}

.agents-scroll-left {
    position: relative;
    max-width: 100%;
    width: 100%;
}

@media screen and (max-width: 768px) {
    .agents-scroll-left {
        max-width: 500px;
        margin: auto;
    }
}

.agents-scroll-left-sticky {
    position: relative;
    width: 100%;
    min-height: 480px;
    border-radius: 32px;
    overflow: hidden;
}

.agents-scroll-left-sticky img {
    position: absolute;
    z-index: 1;
    height: 100%;
    width: 100%;
    top: 0;
}

.agents-scroll-left-image,
.agents-scroll-left-image-mobile {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.agents-scroll-left-image.is-active,
.agents-scroll-left-image-mobile.is-active {
    opacity: 1;
}

.agents-scroll-left-image-mobile {
    display: none;
}

@media screen and (max-width: 768px) {
    .agents-scroll-left-image {
        display: none;
    }

    .agents-scroll-left-image-mobile {
        display: block;
        height: 100%;
    }
}

.agents-scroll-right {
    display: flex;
    gap: 32px;
    align-items: stretch;
}

.agents-scroll-progress {
    position: relative;
    flex-shrink: 0;
    width: 4px; /* Сделаем трек чуть выразительнее, чтобы линия смотрелась аккуратно */
    align-self: stretch;
}

/* Серый фоновый трек */
.agents-scroll-progress-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    display: none;
}

/* Зеленая линия заполнения, которая идет вслед за скроллом */
.agents-scroll-progress-fill {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0%; /* Управляется из JS */
    background: #5CCF9A;
    border-radius: 4px;
    transition: height 0.1s linear;
}

/* Белая точка, которая прыгает или плавно двигается по контенту */
.agents-scroll-progress-dot {
    position: absolute;
    left: 50%;
    top: 0px; /* Управляется из JS */
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFFBED;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.agents-scroll-items {
    display: flex;
    flex-direction: column;
    row-gap: 32px;
    flex: 1;
    max-width: 471px;
}

.agents-scroll-item {
    position: relative;
}

.agents-scroll-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #11221e 0.26%, #fffbed 46.61%, #11221e 93.71%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.agents-scroll-item.is-active::before {
    opacity: 0.6;
}

.agents-scroll-item .agents-scroll-content {
    font-size: 22px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.22);
    transition: color 0.45s ease;
}

.agents-scroll-item .agents-scroll-content p {
    margin: 0;
    opacity: 0.2;
    filter: blur(1.3420195579528809px);
    font-size: 24px;
    font-style: normal;
    font-weight: 300;
    line-height: 145%;
}

.agents-scroll-item.is-active .agents-scroll-content p{
    opacity: 1;
    filter: blur(0px);
    font-size: 24px;
    font-style: normal;
    font-weight: 300;
    color: #FFFBED;
    line-height: 145%;
}

.agents-scroll-item.is-active .agents-scroll-content {
    color: #fff;
}

@media screen and (max-width: 1000px) {

    .agents-scroll-item.is-active .agents-scroll-content p {
        font-size: 18px;
        font-style: normal;
        font-weight: 300;
        line-height: 145%;
    }
    .agents-scroll-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .agents-scroll-left-sticky {
        min-height: 300px;
    }

    .agents-scroll-track {
        height: calc(var(--steps) * 80vh);
    }

    .agents-scroll-items {
        row-gap: 32px;
    }
}

@media screen and (max-width: 768px) {
    .agents-scroll-left-sticky {
        min-height: 220px;
        border-radius: 20px;
    }

    .agents-scroll-sticky {
        height: 100vh;
    }

    .agents-scroll-item .agents-scroll-content p {
        font-size: 18px;
    }

    .agents-scroll-item .agents-scroll-content {
        font-size: 16px;
    }

    .agents-scroll-items {
        row-gap: 32px;
    }

    .agents-scroll-right {
        gap: 20px;
    }

    .agents-scroll-item::before {
        left: -23px;
        width: 2px;
        top: 2px;
    }

    .section-agents-scroll {
        padding-top: 0px;
        margin-top: 53px;
        .container {
            padding: 0 !important;
            margin-bottom: 0 !important;
            margin-top: 0 !important;
        }

        .agents-scroll-right {
            padding: 0 16px;
            max-width: 352px;
            margin: auto;
            padding: 0;
        }

        .agents-scroll-left-sticky {
            min-height: 430px;
        }
    }
}

@media screen and (max-width: 450px) {
    .agents-scroll-item.is-active .agents-scroll-content p {
        font-size: 16px;
    }
    .agents-scroll-item .agents-scroll-content p {
        font-size: 16px;
    }
    .section-agents-scroll .container {
        height: 100%;
    }

    .agents-scroll-grid {
        display: flex;
        flex-direction: column;
        height: 100%;
        gap: 0px;
    }

    .agents-scroll-left {
        height: 45%;
        margin-top: 0;
    }

    .section-agents-scroll .agents-scroll-left-sticky {
        min-height: 100%;
    }
    /* .agents-scroll-sticky {
        height: 95vh;
    }

    .agents-scroll-items {
        row-gap: 18px;
    }

    .section-agents-scroll .agents-scroll-left-sticky {
        min-height: 390px;
    } */
}
