.slider {
    position: relative;
    width: 100%;
    overflow: visible;

}

.slider__wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    flex-shrink: 0;
    width: 100%;
}
.slider__dots {
    display: none;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Напівпрозорий темний оверлей поверх фото (як на макеті) */
.slider::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0));
    pointer-events: none;
}


.slider__content {
    position: absolute;
    left: 10.5vw;
    top: 24.65vw;
    width: 55.7vw;
    color: white;
    z-index: 6;
    background: rgba(29, 29, 29, 0.5); /* ← #1D1D1D з 50% прозорості */
    text-align: left;


}

/* ГОЛОВНИЙ ЗАГОЛОВОК */
.slider__title {
    margin-bottom: 0.78vw;
    padding: 2.6vw 2.6vw 0;

}

/* ПІДЗАГОЛОВОК */
.slider__subtitle {
    font-family: 'Ysabeau', sans-serif;
    font-size: 1.56vw;
    font-weight: 400;
    margin: 0 0 2.6vw 0;
    white-space: nowrap;
    padding: 0 2.6vw;
}


.promo-banner {
    display: flex;
    align-items: center;
    gap: 1.3vw;
    background: #3AAA35; /* аналог зеленого фону з прозорістю */
    padding: 2.6vw 2.6vw;
    backdrop-filter: blur(4px);
    width: 100%;
}

.project-card__info {
    display: flex;
    flex-direction: column; /* якщо потрібні рядки один під одним */
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.78vw;
    width: 28vw;

}

.project-card__info li {
    display: flex;
    align-items: center;

}

.slider-bottom__icon{
    max-width: 1.25vw;
    max-height: 1.25vw;
}

.project-info-label {
    color: #ffffff;
    font-size: 1.56vw;
    font-family: 'Ysabeau', sans-serif;
    font-weight: 500;
    margin-left: 0.8vw;

}

.project-info-value {
    font-size: 1.14vw;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    margin-left: auto;
}

.description{
    margin: 10.6vw 10.6vw 5.2vw;
}

.description__title{
    margin-bottom: 1.3vw;
}

.description__text {
    font-family: 'Ysabeau', sans-serif;
    font-size: 1.15vw;
    font-weight: 400;
}

.ba-section {
    margin: 0 2.6vw 5.2vw;

}



.ba-section__subtitle {
    font-family: 'Ysabeau', sans-serif;
    font-size: 2.08vw;
    font-weight: 400;
    color: #000;
    margin: 0 0 2.6vw 8vw;

}

/* ДВА СЛАЙДЕРИ ПОРУЧ */

.ba-section__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.56vw;
}

/* КОНТЕЙНЕР ОДНОГО СЛАЙДЕРА */

.ba-slider {
    --ba-pos: 50%; /* позиція лінії, по замовчуванню 50% */

    position: relative;
    width: 100%;
    /* БЕЗ aspect-ratio, висота піде від нижнього зображення */
    cursor: ew-resize;
    overflow: hidden;
}

/* СТЕК КАРТИНОК */

.ba-slider__images {
    position: relative;
    width: 100%;
}

/* БАЗОВИЙ ШАР (ПІСЛЯ) – В НОРМАЛЬНОМУ ПОТОЦІ */
.ba-slider__img--after {
    position: relative;   /* НЕ absolute */
    z-index: 1;
}

/* ВЕРХНІЙ ШАР (ДО) – ПОВЕРХ, ABSOLUTE + CLIP-PATH */
.ba-slider__img--before {
    position: absolute;
    inset: 0;
    z-index: 2;
    clip-path: polygon(
        0 0,
        var(--ba-pos) 0,
        var(--ba-pos) 100%,
        0 100%
    );
}

/* ЗАГАЛЬНІ СТИЛІ ДЛЯ IMG */

.ba-slider__img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Вертикальна лінія та кружок */

.ba-slider__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--ba-pos);
    transform: translateX(-50%);
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* кліки ловить контейнер */
}

.ba-slider__handle-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: #ffffff;
    opacity: 0.9;
}

.ba-slider__handle-circle {
    position: relative;
    width: 2.55vw;     /* розмір зеленого круга */
    height: 2.55vw;
    background-color: #3AAA35;
    border-radius: 50%;
    border: 3px solid #ffffff;


    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-slider__icon {
    width: 1.45vw;   /* ← ТУТ керуєш шириною іконки */
    height: auto;   /* ← Пропорції */
}


/* Підписи "До ремонту" / "Після" */

.ba-slider__labels {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;

    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.ba-slider__label {
    font-family: 'Ysabeau', sans-serif;
    font-size: 0.84vw;
    font-weight: 600;
    padding: 0.83vw 1.56vw;
    width: 10.4vw;
    text-align: center;
}

.ba-slider__label--before {
    border-top-right-radius: 35px;
    background: #000000;
    color: #ffffff;
}

.ba-slider__label--after {
    border-top-left-radius: 35px;
    background: #ffffff;
    color: #000000;
}



/* Секція з об'єктами в 2 колонки + вставка з кнопкою */

.portfolio-objects {
    padding: 0 2.6vw;
    background-color: #ffffff;
    font-family: 'Ysabeau', sans-serif;
}

.portfolio-objects__inner {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.56vw;
}



.portfolio-objects__image-wrap {
    position: relative;
    height: 31.1vw;          /* фіксована висота картинок */
    overflow: hidden;
}

.portfolio-objects__image {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* вписуємо по висоті, обрізаємо по ширині */
    object-position: center;
    display: block;
}

/* Вставка з кнопкою після двох рядів */

.portfolio-objects__cta {
    grid-column: 1 / -1;
    background-color: #3BAA34;
    color: #ffffff;
    padding: 2.08vw 1.3vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-objects__cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 2.6vw;
}

.portfolio-objects__cta-text {
    margin: 0;
    font-size: 1.56vw;
    font-weight: 500;
    text-transform: uppercase;
}




/* Пагінація проєктів (детальна сторінка) */

.project-pagination {
    margin: 0 2.6vw 5.2vw;
    font-family: 'Ysabeau', sans-serif;
    color: #2E2D2B;
}

.project-pagination__inner {
    box-sizing: border-box;
}

/* Верхній ряд: два блоки (prev / next) */

.project-pagination__top {
    display: flex;
    justify-content: center;   /* група по центру */
    align-items: flex-start;
    margin-bottom: 2.6vw;
}

/* Кожен елемент має ширину тільки по контенту */
.project-pagination__item {
    flex: 1 1 0;                /* ← не розтягувати на 50% */
    min-width: 0;         /* критично: дозволяє тексту переноситись, а не розпирати flex-item */
    position: relative;
    display: flex;
    text-decoration: none;
    color: inherit;
    border-radius: 0.6vw;
    transition: transform 0.35s ease, color 0.35s ease;
    overflow: hidden; /* щоб затемнення не виходило за межі */
}

.project-pagination__item--prev::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to left,
        rgba(0,0,0,0.18) 0%,     /* темніше зліва */
        rgba(0,0,0,0.10) 40%,    /* плавний спад */
        rgba(0,0,0,0.03) 75%,    /* майже прозоро */
        rgba(0,0,0,0.00) 100%     /* повністю прозоро справа */
    );
    opacity: 0;                 /* спочатку невидимий */
    transition: opacity 0.35s ease;
    z-index: 0;
}



/* Градієнтний шар */
.project-pagination__item--next::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.18) 0%,     /* темніше зліва */
        rgba(0,0,0,0.10) 40%,    /* плавний спад */
        rgba(0,0,0,0.03) 75%,    /* майже прозоро */
        rgba(0,0,0,0.00) 100%     /* повністю прозоро справа */
    );
    opacity: 0;                 /* спочатку невидимий */
    transition: opacity 0.35s ease;
    z-index: 0;
}

/* Ховер: збільшення + включення градієнта */
.project-pagination__item:hover {
    transform: scale(1.03);
}

.project-pagination__item:hover::before {
    opacity: 1;
}

/* Контент поверх градієнта */
.project-pagination__meta,
.project-pagination__label,
.project-pagination__label-icon,
.project-pagination__title,
.project-pagination__type {
    position: relative;
    z-index: 1;
}


/* Лівий блок “дивиться” до центру */
.project-pagination__item--prev {
    justify-content: flex-end;
    text-align: right;
    padding-right: 2.6vw;
}

.project-pagination__item--prev .project-pagination__meta {
    align-items: flex-end;   /* ← тут магія */
}

/* Правий блок “дивиться” від центру */
.project-pagination__item--next {
    justify-content: flex-start;
    text-align: left;
    padding-left: 2.6vw;
}

.project-pagination__meta {
    display: flex;
    flex-direction: column;

}

/* LABEL з іконкою */
.project-pagination__label {
    display: inline-flex;
    align-items: center;
    gap: 0.78vw;
    font-size: 1.05vw;
    font-weight: 500;
    color: rgba(46, 45, 43, 0.7);
    margin-bottom: 1.05vw;
}

.project-pagination__label-icon img {
    width: 2.6vw;
    height: auto;
    display: block;
}


.project-pagination__title {

    margin:0 0 0.52vw;
    font-size: 2.08vw;
    font-weight: 400;
    text-transform: uppercase;
}

.project-pagination__type {
    margin: 0;
    font-size: 1.05vw;
    font-weight: 400;
}

/* Нижній блок: кнопка + текст */

.project-pagination__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.05vw;
}


.project-pagination__hint {
    margin: 0;
    font-size: 1.05vw;
    font-weight: 400;
}







@media (max-width: 480px) {

    .slider {
        height: 218.7vw; /* секція на весь екран */
    }

    .slider__wrapper {
        height: 100%;
    }

    .slide {
        height: 100%;
        width: 100%;
        position: relative;
        flex: 0 0 100%; /* слайд на всю ширину */
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* заповнює весь слайд */
        object-position: center; /* обрізає від центру */
        display: block;
    }

    /* затемнення на мобілці можна зробити більш рівномірним */
    .slider::before {
        background: linear-gradient(
                to bottom,
                rgba(0, 0, 0, 0.70) 0%,
                rgba(0, 0, 0, 0.45) 40%,
                rgba(0, 0, 0, 0.70) 100%
        );
    }

    /* контент більше не “коробка справа”, а блок по всій ширині */
    .slider__content {
        position: absolute;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        padding: 8vw 0 0;
        text-align: left;

    }

    .slider__title {
        letter-spacing: 0;
        margin: 0;
        margin-block-start: 0;
        padding: 0 4.26vw;
    }

    .slider__subtitle {
        font-size: 9.33vw;
        font-weight: 400;
        margin: 0 0 8vw 0;
        white-space: normal; /* дозволяємо перенос рядків */
        padding: 0 4.26vw;
    }


    .promo-banner {
        display: block;
        align-items: center;
        background: rgba(29, 29, 29, 0.5); /* ← #1D1D1D з 50% прозорості */
        padding: 5.3vw 4.26vw;
        border-radius: 0;
        backdrop-filter: blur(4px);
        width: 100%;
        height: auto;
        background: #3AAA35; /* аналог зеленого фону з прозорістю */
    }

    .project-card__info {
        gap: 1.3vw;
        width: 100%;

    }


    .slider-bottom__icon{
        max-width: 6.4vw;
        max-height: 6.4vw;
    }

    .project-info-label {
        font-size: 4.26vw;
        margin-left: 2.6vw;

    }

    .project-info-value {
        font-size: 4.26vw;
        font-weight: 600;
    }

    .description{
        margin: 16vw 4.26vw;
    }

    .description__title{
        margin-bottom: 5.3vw;
    }

    .description__text {
        font-size: 4.8vw;
    }

    .ba-section {
        margin: 0 0 16vw 0;
        padding: 0;

    }

    .ba-section__title-mob{
        padding: 0 4.26vw;
        margin: 0 0 5.3vw 0;
    }

    .ba-section__title {
        font-size: 6.93vw;
        font-weight: 200;
        margin: 0;
    }

    .ba-section__subtitle {
        font-size: 5.3vw;
        margin: 0 0 5.3vw 0;
        padding: 0 4.26vw;
    }

    /* ДВА СЛАЙДЕРИ ПОРУЧ */

    .ba-section__grid {
        display: block;
        grid-template-columns: none;
        gap: 2.6vw;
    }

    .ba-slider {
        margin-top: 1vw;
    }

    .ba-slider__handle-line {
        width: 3px;
    }


    .ba-slider__handle-circle {
        position: relative;
        width: 8vw;     /* розмір зеленого круга */
        height: 8vw;
    }

    .ba-slider__icon {
        width: 5.3vw;   /* ← ТУТ керуєш шириною іконки */
        height: auto;   /* ← Пропорції */
    }

    .ba-slider__label {
        font-size: 3.73vw;
        font-weight: 600;
        padding: 2.13vw 3.2vw;
        width: 31.4vw;
    }

    .ba-slider__label--before {
        border-top-right-radius: 5.3vw;
    }

    .ba-slider__label--after {
        border-top-left-radius: 5.3vw;
    }


    .portfolio-objects {
        padding: 0 4.26vw;
        margin-bottom: 5.86vw;

    }

    .portfolio-objects__inner {
        grid-template-columns: 1fr;
        gap: 5.3vw;
    }



    .portfolio-objects__image-wrap {
        height: 61.7vw;
    }


    .portfolio-objects__cta {
        padding: 8vw 4.26vw;
    }

    .portfolio-objects__cta-content {
        gap: 5.85vw;
        flex-direction: column;
        text-align: center;
    }

    .portfolio-objects__cta-text {
        font-size: 6.93vw;
        text-align: center;
    }


    .project-pagination {
        margin: 0 4.26vw 21.3vw;
    }


    .project-pagination__top {
        flex-direction: column;
        margin-bottom: 2.6vw;
    }

    .project-pagination__item{
        margin-bottom: 10.6vw;
    }


    /* Лівий блок “дивиться” до центру */
    .project-pagination__item--prev {
        align-self: flex-end;
        justify-content: flex-end;
        text-align: right;
        padding-right: 0;
        order: 2;
    }

    .project-pagination__item--prev .project-pagination__meta {
        align-items: flex-end;
    }

    /* Правий блок “дивиться” від центру */
    .project-pagination__item--next {
        justify-content: flex-start;
        text-align: left;
        padding-left: 0;
        order: 1;

    }


    /* LABEL з іконкою */
    .project-pagination__label {
        gap: 4vw;
        font-size: 4.8vw;
        margin-bottom: 2.6vw;
    }

    .project-pagination__label-icon img {
        width: 8vw;

    }


    .project-pagination__title {
        margin: 0;
        font-size: 6.93vw;
        font-weight: 300;
    }

    .project-pagination__type {
        margin: 0;
        font-size: 4.8vw;
        font-weight: 400;
    }

/* Нижній блок: кнопка + текст */

.project-pagination__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.05vw;
}

.project-pagination__bottom .btn{
    order: 2;
}

.project-pagination__hint {
    margin-bottom: 5.3vw;
    font-size: 5.3vw;
    text-align: center;
    order: 1;
}

}



