.master-footer,
.master-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.master-footer {
    margin-bottom: 18px;
}
.master-footer .dot,
.master-header .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.master-footer.active .dot,
.master-header.active .dot {
    background-color: green;
    animation: blink_green 1s ease-in-out infinite;
    box-shadow: 0 0 3px 3px rgba(0, 255, 0, 0.3);
}
.master-footer.notactive .dot,
.master-header.notactive .dot {
    background-color: orangered;
    animation: blink_red 1s ease-in-out infinite;
    box-shadow: 0 0 3px 3px rgba(255, 69, 0, 0.3);
}
@keyframes blink_green {
    0% {
        opacity: 0.2;
        box-shadow: 0 0 3px 1.5px rgba(0, 255, 0, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 3px 3px rgba(0, 255, 0, 0.6);
    }
    100% {
        opacity: 0.2;
        box-shadow: 0 0 3px 1.5px rgba(0, 255, 0, 0.3);
    }
}
@keyframes blink_red {
    0% {
        opacity: 0.2;
        box-shadow: 0 0 3px 1.5px rgba(255, 69, 0, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 3px 3px rgba(255, 69, 0, 0.6);
    }
    100% {
        opacity: 0.2;
        box-shadow: 0 0 3px 1.5px rgba(255, 69, 0, 0.3);
    }
}
@media (max-width: 1170px) {
    .banner__form {
        min-width: unset;
    }
    .form-submit {
        flex-direction: column;
    }
}
.calc .small-12 {
    width: 100%;
}
.calc .material {
    padding: 40px;
    background-color: white;
    border-radius: 5px;
}
.fContact {
    margin-top: 31px;
    margin-bottom: 20px;
}
@media (max-width: 480px) {
    .fContact {
        text-align: center;
    }
}


#bcheck svg {
        height: 230px;
    }
    .whole text {
        fill: #fff;
        font-size: 28px;
    }

/* Затемнение */
.city-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.city-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Окно */
.city-popup {
    background: #fff;
    width: 95%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
}

.city-popup-content {
    padding: 30px;
    overflow-y: auto; /* Скролл только внутри списка городов */
}
.city-group h3 {
    margin-top: 10px;
    margin-bottom: 5px;
    border-bottom: 1px solid silver;
    display: block;
    padding-bottom: 5px;
}
.city-list {
    /* Разбиваем блок на 3 колонки */
    column-count: 3;
    /* Расстояние между колонками */
    column-gap: 20px;
    
    /* Убираем flex/grid, если они были */
    display: block; 
}
.city-list a.is-active {
    color: #333;
    font-weight: 700;
    background: #e7f1ff;
    pointer-events: none; /* Отключаем клик по уже выбранному городу */
    position: relative;
    padding-left: 20px;
}
.city-list a.is-active::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #007bff;
    border-radius: 50%;
}
/* Адаптивность для мобильных */
@media (max-width: 800px) {
    .city-list {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .city-list {
        column-count: 1;
    }
}

.city-list a {
    display: block;
    break-inside: avoid-column;
    
    padding: 5px 0;
    text-decoration: none;
    color: #007bff;
    font-size: 14px;
}

.city-list a:hover {
    background: #f0f7ff;
}

.city-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 35px;
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s;
}

.city-popup-close:hover { color: #333; }

/* Утилита для блокировки скролла body */
body.no-scroll {
    overflow: hidden;
}


@media (max-width: 990px) {

        .d-lg-none.mobileMenu,
        .mobile-show+[data-src="#svaz"] {
            display: none;
        }

        .phoneHeader.whatsapp {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            height: 100%;
            margin: auto;
            margin-top: auto;
            padding-top: 20px;
        }

        .header__left {
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: flex-start;
        }

        header {
            min-height: 85px;
        }
    }

/* Codex: contact template desktop/mobile wrappers for Fenom-safe markup. */
.codex-desktop-only {
    display: contents;
}

.codex-mobile-only {
    display: none;
}

@media (max-width: 767px) {
    .codex-desktop-only {
        display: none !important;
    }

    .codex-mobile-only {
        display: contents;
    }
}
/* Codex: keep fixed mobile header from widening the viewport. */
@media (max-width: 540px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden !important;
    }

    header {
        left: 0 !important;
        right: 0 !important;
        width: auto !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    header .w-container {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    header .w-container * {
        box-sizing: border-box;
    }
}

/* Codex: mobile root scroll fix. */
@media (max-width: 540px) {
    html,
    body {
        height: auto !important;
        min-height: 100% !important;
    }

    body {
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    body.no-scroll {
        height: 100vh !important;
        overflow: hidden !important;
    }
}
