/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    position: relative;
        box-sizing: border-box;

}

header {
    width: 100%;
    height: 70px;
    display: flex;
    background-color: #fff;
}

nav {
    width: 50%;
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
.logo {
    width: 50%;
    height: 70px;
}

.logo img {
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

a {
    text-decoration: none;
    color: #383838;
}

a:hover {
    color: #3e8622;
}
/* Карта - точно внизу */
.map-wrapper {
    position: relative;
    margin-top: 70px;
    z-index: 1 !important; /* Минимальный индекс */
}

footer {
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    padding: 20px;
}

/* Мобильное меню - теперь с transform */
@media (max-width: 768px) {
    /* Показываем кнопку */
    .menu-toggle {
        display: block !important;
    }
    
    /* Скрытое меню */
    nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vh !important;
        height: 100vh !important;
        background: white !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        transform: translateY(-100%) !important;
        transition: transform 0.4s ease !important;
        z-index: 10001 !important; /* Ниже кнопки, но выше всего */
        padding: 20px !important;
        box-shadow: 0 0 20px rgba(0,0,0,0.3) !important;
    }
    
    /* Видимое меню */
    nav.mobile-visible {
        transform: translateY(0) !important;
    }
    
    /* Ссылки в меню */
    nav a {
        padding: 15px 0 !important;
        width: 100% !important;
        text-align: center !important;
        font-size: 18px !important;
        border-bottom: 1px solid #eee !important;
        color: #333 !important;
    }
    
    /* Блокировка прокрутки */
    body.menu-open {
        overflow: hidden !important;
        height: 100vh !important;
    }
}