/* ===== МОБИЛЬНАЯ ВЕРХНЯЯ ПОЛОСКА ===== */
.mobile-top-bar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass, #fff);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 12px 16px;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border, rgba(0,0,0,0.08));
}

.mobile-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.mobile-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* ===== БУРГЕР-КНОПКА ===== */
.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    z-index: 1200;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text, #222);
    margin: 5px 0;
    border-radius: 2px;
    transition: background 0.3s, transform 0.3s, opacity 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== ЗАТЕМНЕНИЕ ===== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.35s;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== ВЫЕЗЖАЮЩЕЕ МЕНЮ ===== */
.mobile-main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    background: #fff;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    z-index: 1100;
    padding: 20px;
    overflow-y: auto;
    transition: left 0.35s ease-in-out;
    display: flex;
    flex-direction: column;
}

.mobile-main-nav.active {
    left: 0;
}

/* Логотип внутри меню */
.mobile-menu-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.mobile-menu-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    display: block;
}

.mobile-menu-logo .logo-subtitle {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--red-base, #d32f2f);
    margin-top: 2px;
}

/* Город внутри меню */
.mobile-menu-city {
    margin-bottom: 16px;
    flex-shrink: 0;
}

.mobile-menu-city .city-select {
    width: 100%;
    min-width: 0;
}

/* Пользователь внутри меню */
.mobile-menu-user {
    padding: 14px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.mobile-user-greeting {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    margin-bottom: 10px;
}

.mobile-user-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mobile-action-btn {
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.mobile-action-btn.btn-login {
    border: 1.5px solid var(--red-base, #d32f2f);
    color: var(--red-base, #d32f2f);
}

.mobile-action-btn.nav-link {
    background: #f5f5f5;
    color: #555;
}

.mobile-action-btn.btn-logout {
    color: #999;
    background: #f5f5f5;
}

/* Навигация внутри меню */
.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 8px 0 20px 0;
}

.mobile-menu-links li {
    margin-bottom: 2px;
}

.mobile-menu-links a {
    color: var(--text, #222);
    font-size: 16px;
    font-weight: 600;
    display: block;
    padding: 12px 0;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s;
}

.mobile-menu-links a:hover {
    color: var(--red-base, #d32f2f);
}

/* Кнопка заявки внутри меню */
.mobile-main-nav .mobile-btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
    padding: 14px;
    font-size: 15px;
    flex-shrink: 0;
}

/* ===== ПЕРЕКЛЮЧЕНИЕ ДЕСКТОП / МОБАЙЛ ===== */
@media (max-width: 768px) {
    .desktop-header {
        display: none !important;
    }
    .mobile-top-bar {
        display: flex;
    }
}

@media (min-width: 769px) {
    .mobile-top-bar,
    .mobile-main-nav,
    .mobile-nav-overlay {
        display: none !important;
    }
}
