/*
 * Файл: section-stages-compact.css
 * Опис: Компактна версія стилів для слайдера етапів,
 * призначена для використання на сторінках послуг.
 */


/* --- Загальна секція --- */
.work {
    background: none;
    padding: 30px 0;
}

/* --- Блок слайдера --- */
.work-slider {
    background: #f7f7f7;
    overflow: hidden;
    width: 100%;
    position: relative;
}

/* --- Один слайд --- */
.work-slide {
    padding: 15px 20px;
    display: none;
    animation: slideOut 2s;
}
.work-slide.active {
    display: block;
    animation: slideIn 2s;
}

/* --- Верхня частина слайда (номер і назва) --- */
.work-slide-top {
    display: flex;
}
.work-slide-step {
    flex: 0 0 auto;
    font-weight: 500;
    font-size: 16px; 
    line-height: 20px;
    color: #000000;
    font-family: var(--montserrat-family);
}
.work-slide-title {
    flex: 1 1 auto;
    font-weight: bold;
    font-size: 16px; 
    line-height: 20px;
    text-align: right;
    color: #000000;
    font-family: var(--montserrat-family);
    min-height: auto;
}

/* --- Опис слайда --- */
.work-slide-descr {
    margin-top: 15px;
    min-height: auto;
}
.work-slide-descr, .work-slide-descr p, .work-slide-descr a {
    font-family: var(--montserrat-family);
    font-size: 14px;
    line-height: 17px;
    color: #000000;
}

/* --- Навігаційні точки --- */
.work-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    margin-top: 30px;
    position: relative;
}
.work-dots li {
    list-style: none;
    flex: 1 1 auto;
    position: relative;
    z-index: 1;
    cursor: pointer;
}
.work-dots li:before {
    content: "";
    display: inline-block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #00594D;
    height: 2px;
    width: 100%;
    margin: auto;
    z-index: -1;
}
.work-dots-stepNumber {
    width: 30px;
    height: 30px;
    display: block;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: #FFFFFF;
    background: #00594D;
    border: 2px solid #00594D;
    flex: 0 0 30px;
    text-align: center;
    border-radius: 50%;
    line-height: 24px;
    margin-left: auto;
    margin-right: auto;
    transition: 0.3s;
}
li.active .work-dots-stepNumber {
    background: #E7A320;
}

.work-dots-holder {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    margin: auto;
    margin-bottom: 16px;
    text-align: center;
}
.work-dots-descr {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 15px;
    text-align: center;
    color: #7D7D7D;
    min-width: 60px;
    max-width: 130px;
    display: inline-block;
    width: auto;
    padding: 0px 11px;
    transition: 0.3s;
    position: relative;
    z-index: 1;
    border-radius: 10px;
    margin-left: -100%;
    margin-right: -100%;
}
.work-dots-descr::after, .work-dots-descr:before {
    opacity: 0;
    display: inline-block;
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: url("../../images/buble-arrow.svg");
    width: 20px;
    height: 26px;
    margin: auto;
    margin-top: -11px;
    z-index: -1;
    transition: 0.3s;
}
.work-dots-descr::after {
    background: #FAFAFA;
    height: 11px;
}
.work-dots li.active {
    z-index: 2;
}
li.active .work-dots-descr {
    padding-top: 20px;
    padding-bottom: 22px;
    background-color: #FAFAFA;
    border: 1px solid #DCDCDC;
    color: #222;
    max-width: 140px;
}
li.active .work-dots-descr::before, li.active .work-dots-descr::after {
    opacity: 1;
}



/* --- Анімації  --- */
@keyframes slideOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


@media screen and (max-width: 992px) {
    .work-dots {
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
    }
    .work-dots li {
        flex: 1 1 25%;
        margin-top: 70px;
    }
    .work-slide-title {
        padding-left: 15px;
    }
}
@media screen and (max-width: 767px) {
    .work-slide {
        margin-top: 20px;
    }
    .work-slider {
        margin-top: 30px;
    }
    .work .col6 {
        width: calc(100% - 28px);
    }
}
@media screen and (max-width: 560px) {
    .work-dots li {
        flex: 1 1 50%;
        margin-top: 80px;
    }
    .work-slide-top {
        flex-wrap: wrap;
    }
    .work-slide-step {
        flex: 1 1 100%;
        text-align: left; 
    }
    .work-slide-title {
        flex: 1 1 100%;
        text-align: left; 
        margin-top: 10px;
    }
}