:root{
    --front-tast-item-height: 600px;
    --bullets-size: 30px;
}

.front-tasks__header.section-header{
    position: sticky;
    margin: 0;
    top: 30px; 
    height: calc(100px + var(--front-tast-item-height) - 62px);
	z-index: 2;
    margin-bottom: calc(50px + 62px);
}

.front-tasks__items{
    height: calc(100vh * attr(data-count));
    margin-top: calc(var(--front-tast-item-height) * -1);
}
.front-tasks__item{
    z-index: 1;
    position: sticky;
    padding: 10px;
    height: var(--front-tast-item-height);
    top: 180px;
}

.front-tasks__item:not(:first-child) {
    margin-top: 60px;
}




.front-tasks__item > *{
    flex-basis: 50%;
}

.front-tasks__item-pagination{
    display: block;
}


.front-tasks__item-content-outer{
    position: relative;
}




.front-tasks__item .block-bg-img{
    width: 100%;
    height: 600px;
    transition: height 0.3s ease;
}

.front-tasks__item .block-bg-img__item-text-inner{
    flex:1 1 auto;

}

.front-tasks__item .block-bg-img__item-picture{
    min-height: 500px;
}


.front-tasks__item-title{
    margin: 0;
    font-weight: 600;
}

.front-tasks__item-description > p {
    margin: 0 0 10px 0;
}

.front-tasks__item-footer{
    background-color: var(--color-gray2);
    border-radius: var(--border-radius);
}

.front-tasks__item-footer-text1{
    margin-bottom: 5px;
}

.front-tasks__item-footer-btn{
    margin-top: 30px;
}

.front-tasks__item .animate-show{
    animation-duration: 0.6s;
    animation-name: styckiSlideRightShow;
}

.front-tasks__item .animate-hide{
    opacity: 0;
    animation-duration: 0.6s;
    animation-name: styckiHide;
}


.front-tasks__bullets {
    position: absolute;
    top: calc(100px + var(--front-tast-item-height) / 2);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.front-tasks__bullets span {
    width: var(--bullets-size);
    height: var(--bullets-size);

    font-size: 14px;

    border-radius: 50%;
    background-color: var(--color-gray2);
    box-shadow: var(--box-shadow);
    transform: scale(1);

    transition: color .2s ease-in, background-color .2s ease-in, transform .2s linear;
}

.front-tasks__bullets span.active {
    color: var(--color-white);
    background-color: var(--color-main2);
    transform: scale(1.2);
}

@media (max-width: 991px) {
    .front-tasks__header.section-header {
        margin-bottom: calc(30px + 62px);
        height: calc(170px + var(--front-tast-item-height) - 62px);
	}

    .front-tasks__bullets {
        top: calc(170px + var(--front-tast-item-height) / 2);
    }

    .front-tasks__item {
        top: 230px;
    }
}

@media(max-width:767px){
    :root{
        --front-tast-item-height: 500px;
    }

    .front-tasks  .front-tasks__bullets {
        flex-direction: row;
        top: calc(170px + (var(--bullets-size) / 2));
        gap: 20px;
        margin-top: 0 !important;
    }

    .front-tasks__item{
        flex-direction: column;
    }

    .front-tasks__item-text{
        flex: 1 1 auto;
    }
    .front-tasks__item .block-bg-img__item-picture{
        display: none;
    }
}

@media (max-width: 575px) {
    :root{
        --front-tast-item-height: 530px;
    }

    .front-tasks__header.section-header {
        align-items: flex-start;
        height: calc(258px + var(--front-tast-item-height) - 62px);
        /* position: relative; */
        top: -255px;
    }

    .front-tasks__header .front-tasks__header-text {
        max-width: 340px;
        margin: 0 auto;
    }

    .front-tasks  .front-tasks__bullets {
        top: calc(258px + (var(--bullets-size) / 2));
    }

    .front-tasks__item {
        top: 30px;
    }

    .front-tasks__item-description > br {
        display: none;
    }
}

@keyframes styckiSlideRightShow {
    from {
        transform: translateX(40px);
        opacity: 0.2;
    }
  
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

@keyframes styckiHide {
    from {
        opacity: 0.8;
    }
    
    to {
        opacity: 0;
     }
}