/* === Chrome / Edge / Safari === */
::-webkit-scrollbar {
    width: 2px;                  /* товщина вертикального скролу */
    height: 2px;                 /* товщина горизонтального скролу */
}

::-webkit-scrollbar-track {
    background: #e0e0e0;         /* фон доріжки */
}

::-webkit-scrollbar-thumb {
    background: #8B8B8B;         /* сам повзунок */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6f6f6f;
}

/* === Firefox === */
html {
    scrollbar-width: thin;       /* тонкий скролбар */
    scrollbar-color: #8B8B8B #e0e0e0; /* thumb track */
}




/* ========== БАЗА ========== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Ysabeau', sans-serif;
    background: #ffffff;
}

body.modal-open {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
}

section{
    margin-bottom: 5.2vw;
}

a {
    color: inherit;
    text-decoration: none;
}


p {
    margin: 0;
    padding: 0;
}

button {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}



.container {
    max-width: 1200px;
    padding: 0 16px;
    margin: 0 auto;
}


.slider__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.52vw;
    font-family: 'Ysabeau', sans-serif;
    padding: 0.63vw 1.25vw;
    background: #3aaa35;
    color: #fff;
    border-radius: 2.08vw;
    font-size: 0.83vw;
    font-weight: 600;
    height: 2.86vw;
    text-decoration: none;
    transition: background 0.2s ease;
    text-transform: uppercase;
}

.slider__btn:hover {
    background: #31942d;
}

/* ІКОНОЧКА ПОТЯГУ (або твоє SVG) */
.slider__btn-icon {
    width: 1.25vw;
    height: 1.25vw;
    background: transparent url("/static/main/img/arrow-right.svg") center/contain no-repeat;
}

.measure__btn {
    width: fit-content;
    padding: 0.8vw 1.8vw;
    border-radius: 2vw;
    border: 1px solid #fff;
    background: #FFFFFF;
    color: #000000;
    font-family: 'Ysabeau', sans-serif;
    font-size: 0.83vw;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.6vw;
    cursor: pointer;
    transition: background .2s ease;
    text-transform: uppercase;
}


.measure__btn:hover {
    background: rgba(255,255,255,0.12);
}

.measure__btn-icon {
    width: 1.25vw;
    height: 1.25vw;
    background: url("/static/main/img/arrow-right-black.svg") center/contain no-repeat;
    display: inline-block;
}

.measure__btn:active {
    transform: translateY(0);
}


.desktop{
    display: block;
}
.mobile{
    display: none;
}

/* ===== HEADER ===== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    height: 6vw;
    background: rgba(0, 0, 0, 0.2);  /* прозорий темний фон */
    backdrop-filter: blur(4px);       /* легке розмиття як у макеті */
}

.header--white {
    position: static;       /* або relative – головне не fixed */
    top: auto;
    left: auto;
    background: #ffffff;
    backdrop-filter: none;
}


.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.05vw 2.6vw;
    height: 100%;
    position: relative;
}

/* Ліва частина */
.header__left {
    display: flex;
    align-items: center;
    gap: 0.8vw;
}

.header__contacts-label {
    font-family: 'Ysabeau', sans-serif;
    font-size: 1.04vw;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
}

.black-text {
    color: #000000;
}

.black-text a {
    color: #000000!important;
}

/* Бургер */
.header__burger {
    width: 2.6vw;
    height: 2.6vw;
    display: flex;
    flex-direction: column;
    justify-content: center;     /* вертикально центр */
    gap: 0.35vw;                 /* відстань між лініями */
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}




.header__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: calc(100% - 2.1vw);       /* повна висота мінус падінги */
    display: flex;
    align-items: center;
}
/* Картинка заповнює висоту контейнера */
.header__logo img {
    height: 100%;
    width: auto;
    display: block;
}

/* Навігація */
.header__nav {
    display: flex;
    gap: 2vw;
}

.header__nav a {
    font-family: 'Ysabeau', sans-serif;
    font-size: 1.04vw;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
}


.header__nav a:hover {
    opacity: 1;
}

.header__tg {
    display: none;
}


/* Toast-повідомлення */
.toast-container {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    min-width: 260px;
    max-width: 360px;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    font-size: 0.9rem;
    color: #111827;
    border-left: 4px solid #d1d5db;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast--success {
    border-left-color: #22c55e;
}

.toast--error {
    border-left-color: #ef4444;
}

.toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.toast--hide {
    opacity: 0;
    transform: translateY(-8px);
}

/* Повідомлення під формою */
.measure__messages {
    margin-top: 0.8vw;
}

.measure__message {
    font-size: 0.9rem;
    margin: 0;
}

.measure__message--error {
    color: #ef4444;
}

/* Стан успішної форми */
.measure__success-state {
    padding: 1.2rem 1rem;
    background-color: #f0fdf4;
    border-radius: 0.75rem;
    border: 1px solid #bbf7d0;
}

.measure__success-title {
    margin: 0 0 0.4rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #166534;
}

.measure__success-text {
    margin: 0;
    font-size: 0.9rem;
    color: #166534;
}



/* ========== FOOTER ========== */

.site-footer {
    background: #2B1515;
    color: #FFFFFF;
    padding: 5.2vw 2.6vw 2.6vw;
    font-family: 'Ysabeau', sans-serif;
    font-size: 0.94vw;
}

.site-footer__inner {
    width: 100%;
}

/* Верхній ряд – лого + контакти */

.site-footer__top {
    display: flex;
}

.site-footer__top-left{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4vw;
    padding-bottom: 4.16vw;
    width: 100%;
}

.site-footer__logo img {
    display: block;
    width: 10.42vw;     /* підженеш під макет */
    height: auto;
}

.site-footer__col {
    min-width: 0;
}

.site-footer__label {
    font-size: 2.01vw;
    font-weight: 400;
    text-transform: lowercase;
    color: #8B8B8B;
    margin-bottom: 0.4vw;
}

.site-footer__link {
    font-size: 2.01vw;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
    white-space: nowrap;
}

.site-footer__link:hover {
    text-decoration: underline;
}

/* Лінія-поділювач */

.site-footer__divider {
    border-top: 1px solid rgba(255, 255, 255); /* F5F5F5 25% */
}

/* Нижній ряд – дрібний текст */

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2vw;
    font-size: 1.56vw;
    color: rgba(255, 255, 255, 0.7);
    padding-top: 2.6vw;
}

.site-footer__minor-link {
    color: inherit;
    text-decoration: none;
}

.site-footer__minor-link:hover {
    text-decoration: underline;
}

.site-footer__minor-text {
    white-space: nowrap;
}





/* ========== АДАПТИВ ========== */

@media (max-width: 480px) {


    section{
        margin-bottom: 21.3vw;
    }

    .slider__btn {
        width: fit-content;
        height: auto;
        font-size: 4.25vw;
        padding: 4vw 8vw;
        border-radius: 999px;
        gap: 5.5vw;
        font-weight: 600;
    }

    .slider__btn-icon {
        width: 6.4vw;
        height: 6.4vw;
    }

    .measure__btn {
        padding: 4vw 8vw;
        border-radius: 40px;
        font-size: 4.26vw;
        gap: 3.2vw;
        margin-top: 4vw;
    }

    .measure__btn-icon {
        width: 6.4vw;
        height: 6.4vw;
    }

    .desktop{
        display: none;
    }
    .mobile{
        display: block;
    }

    .header {
        height: 21.3vw;
    }

    .header__inner {
        padding: 4vw;
    }

    /* Ліва частина прилипає до лівого краю */
    .header__left {
        gap: 8px;
    }

    /* Бургер у квадраті з фоном, більший touch-target */
    .header__burger {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        justify-content: center;
        gap: 5px;
    }


    /* Текст "Наші контакти" ховаємо на мобілці */
    .header__contacts-label {
        display: none;
    }

    /* Лого строго по центру: даємо йому flex-grow, а крайнім блокам фіксовану ширину */
    .header__left,
    .header__right {
        flex: 0 0 auto;
    }

    .header__logo {
        height: calc(100% - 8vw);
    }

    .header__logo img {
        height: 100%;
    }

    /* Навігаційне меню ховаємо */
    .header__nav {
        display: none;
    }

    /* Telegram-кнопка справа, як у макеті */
    .header__tg {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header__tg-icon {
        width: 10.6vw;
        height: 10.6vw;
        border-radius: 50%;
    }

    .site-footer {
        padding: 13.3vw 4.26vw 2.6vw;
        font-size: 0.94vw;
    }

    .site-footer__top {
        flex-direction: column;
    }

    .site-footer__top-left {
        width: 100%;
        padding: 0;
        display: block;
        gap: 0;                       /* відстань між колонками */
        order: 2;

    }

    .site-footer__top-right {
        width: 100%;
        order: 1;
    }

    .site-footer__bottom {
        padding: 0 4.26vw 10.6vw;
        margin-bottom: 0 ;
    }

    .footer-map {
        width: 100%;
        height: 100%;
        overflow: hidden;
        box-shadow: 0 0 20px rgba(0,0,0,0.15);
    }

    .site-footer__logo img {
        display: block;
        width: 33.3vw;     /* підженеш під макет */
        height: auto;
        margin-bottom: 6.6vw;
    }

    .site-footer__col{
        margin-bottom: 6.6vw;
    }


    .site-footer__label {
        font-size: 8vw;
        font-weight: 400;
        margin-bottom: 1.3vw;
    }

    .site-footer__link {
        font-size: 9.3vw;
        font-weight: 600;

    }


    .site-footer__bottom {
        display: block;
        padding: 0;
        margin: 10.6vw 0;
    }

    .site-footer__minor-link{
        display: block;
        font-size: 6.9vw;
        margin-bottom: 6.6vw;
    }
    .site-footer__minor-text {
        display: block;       /* кожен елемент з нового рядка */
        margin-bottom: 6.6vw; /* необов'язково, просто для відступів */
        font-size: 5.3vw;
    }

    .site-footer__minor-text:last-child {
        margin-bottom: 0;
    }
}