/* Navigation Bar - Green Theme */
.navbar {
    background: rgba(15, 61, 42, 0.98) !important; /* Увеличили непрозрачность, чтобы карта не просвечивала */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000 !important; /* Увеличили z-index, чтобы шапка точно была поверх всего */
    padding: 0.4rem 1.5rem;
    min-height: var(--navbar-height);
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    overflow: visible; /* visible чтобы выпадающий поиск не обрезался */
}

/* Убрали hover-эффект шапки, чтобы не было темной полосы */

.nav-container {
    display: grid;
    grid-template-columns: auto minmax(260px, 420px) 1fr auto;
    align-items: center;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    gap: var(--spacing-md);
    width: 100%;
    justify-content: flex-start;
}

.header-spacer {
    /* Заполнитель для выравнивания */
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    color: var(--pale-green);
    transform: translateY(-1px);
}

.nav-logo img {
    width: 42px; /* Уменьшили для компактной шапки */
    height: 42px; /* Уменьшили для компактной шапки */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(34, 139, 34, 0.4);
    transition: all 0.3s ease;
    object-fit: contain; /* Сохраняем пропорции */
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1)); /* Дополнительная тень */
    margin: 0; /* Убрали отрицательные отступы */
}

.nav-logo:hover img {
    transform: scale(1.1) rotate(3deg); /* Больше увеличение и поворот */
    box-shadow: 0 6px 25px rgba(34, 139, 34, 0.6); /* Более выразительная тень */
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2)) brightness(1.1); /* Дополнительные эффекты */
}

/* Поисковая строка в шапке */
.header-search-container {
    display: flex !important;
    align-items: center;
    gap: var(--spacing-xs);
    max-width: 350px !important;
    width: auto !important;
    flex-shrink: 0;
    position: relative; /* Для позиционирования выпадающего списка */
    z-index: 10001; /* Выше шапки, чтобы выпадающий список был поверх всего */
}

.header-search-input {
    flex: 1;
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header-search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.header-search-button,
.header-show-all-button {
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.header-search-button:hover,
.header-show-all-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Кнопки действий в правом верхнем углу */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.header-action-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    line-height: 1.2;
}

.header-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.header-action-btn:active {
    transform: translateY(0);
}


/* Стили для кнопки входа (аналогично Ulubione) */
.login-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #FFD700;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.login-btn i {
    margin-right: 0.4rem;
    color: #FFD700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.login-btn span {
    color: #FFD700;
    white-space: nowrap;
}



/* Categories Panel - Overlay on map (not over sidebar) */
.categories-panel {
    position: fixed;
    top: var(--navbar-height);
    left: var(--sidebar-width);
    right: 0;
    width: auto;
    height: var(--categories-height);
    min-height: var(--categories-height);
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(45px) saturate(220%) !important;
    -webkit-backdrop-filter: blur(45px) saturate(220%) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    z-index: 200;
    padding: 0 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-sizing: border-box;
}

/* Убрали декоративный градиент под панелью категорий */


/* Кнопка фильтров */
.filters-button-container {
    width: auto;
    min-width: auto;
    max-width: none;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    position: relative; /* Для позиционирования выпадающей панели */
    margin: 0;
}

.filters-button {
    width: 288px; /* Соответствует ширине панели фильтров */
    height: 70px;
    padding: 0.35rem 0.8rem;
    background: linear-gradient(135deg, var(--deep-green) 0%, var(--accent-green) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    white-space: nowrap;
    box-shadow: 0 4px 15px var(--shadow-green);
    position: relative;
    overflow: hidden;
}

/* Убрали анимацию блика для упрощения */

.filters-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-green);
}

.filters-button i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.filters-button:hover i {
    transform: scale(1.1);
}

.filters-button.active {
    background: var(--deep-green);
    box-shadow: 0 4px 12px rgba(15, 61, 42, 0.28);
    transform: translateY(-1px);
}

.filters-button span {
    font-weight: 600;
    text-align: center;
    font-size: 0.8rem;
}

/* Панель фильтров */
.filters-panel {
    position: fixed;
    /* top будет устанавливаться динамически через JavaScript */
    bottom: 80px; /* Отступ от подвала */
    right: 0; /* Выравниваем с левой панелью (без отступа) */
    width: 288px; /* Уменьшили еще на 10% (было 320px) */
    height: auto; /* Автоматическая высота */
    /* max-height будет устанавливаться динамически через JavaScript */
    background: rgba(255, 255, 255, 0.45) !important; /* Такой же glassmorphism как у панели категорий */
    backdrop-filter: blur(45px) saturate(220%) !important;
    -webkit-backdrop-filter: blur(45px) saturate(220%) !important;
    border: none; /* Убираем зеленую рамку */
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    z-index: 10000; /* Такой же как у подкатегорий */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.filters-panel.active {
    opacity: 1;
    visibility: visible;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem; /* Уменьшили padding для компактности */
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
}

.filters-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close-filters {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-filters:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.filters-content {
    padding: 1.5rem; /* Уменьшили с 2rem до 1.5rem */
}



.categories-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
    width: 100%;
}

.categories-container::-webkit-scrollbar {
    height: 4px;
}

.categories-container::-webkit-scrollbar-track {
    background: transparent;
}

.categories-container::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 2px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0.4rem 0.4rem 0.35rem 0.4rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    gap: 0.15rem;
    height: 70px;
    box-sizing: border-box;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.05) 0%, rgba(74, 124, 89, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.category-item:hover::before {
    opacity: 1;
}

.category-item:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(15, 61, 42, 0.16);
    z-index: 15;
}

.category-item.active {
    background: var(--primary-green);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 61, 42, 0.24);
    border-color: var(--primary-green);
    z-index: 20;
}

.category-icon {
    width: auto; /* Убираем фиксированную ширину */
    height: auto; /* Убираем фиксированную высоту */
    background: none; /* Убираем зеленый круг */
    border-radius: 0; /* Убираем круг */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    margin-bottom: 0.15rem;
    flex-shrink: 0;
    box-shadow: none; /* Убираем тень */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-icon i {
    font-size: 1.4rem; /* Увеличиваем размер иконки */
    color: var(--primary-green); /* Зеленый цвет иконки */
    transition: color 0.2s ease, transform 0.2s ease;
}



.category-item:hover .category-icon i {
    transform: scale(1.15); /* Увеличиваем иконку при наведении */
    color: var(--deep-green); /* Более темный зеленый при наведении */
}

.category-item.active .category-icon i {
    color: white; /* Белый цвет иконки на активной кнопке */
    transform: scale(1.2); /* Немного больше при активности */
}

.category-item span {
    font-size: 0.55rem; /* Уменьшили с 0.6rem для более компактного вида */
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.15; /* Немного увеличили line-height для лучшей читаемости */
    width: 100%;
    overflow: hidden;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    word-wrap: break-word;
    max-height: 2.2em;
    min-height: 2.2em;
    padding: 0;
}

.category-item:hover span {
    color: var(--primary-green);
    font-weight: 600;
}

/* Адаптивность текста категорий для больших экранов */
@media (min-width: 1600px) {
    .category-item {
        flex: 1 1 0;
        min-width: 0;
    }
    .category-item span {
        font-size: 0.75rem; /* Уменьшили с 0.85rem */
    }
}

@media (min-width: 1400px) {
    .category-item {
        flex: 1 1 0;
        min-width: 0;
    }
    .category-item span {
        font-size: 0.7rem; /* Уменьшили с 0.8rem */
    }
}

@media (min-width: 1200px) {
    .category-item {
        flex: 1 1 0;
        min-width: 0;
    }
    .category-item span {
        font-size: 0.7rem; /* Уменьшили с 0.8rem */
    }
}

.category-item.active span {
    color: white;
    font-weight: 600;
}

/* Индикатор для активной категории - показывает множественный выбор */
.category-item.active::after {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid var(--primary-green);
    opacity: 0.9;
    transition: all 0.3s ease;
    z-index: 10;
}

.category-item.active:hover::after {
    opacity: 1;
    transform: scale(1.1);
    background: white;
    box-shadow: 0 2px 8px rgba(34, 139, 34, 0.3);
}



/* Main Content
   NOTE: Layout is controlled later by the "map-first layout" block.
   Keep this section non-conflicting (no !important, no margins). */
.main-content {
    box-sizing: border-box;
}

/* place-details sizing handled in 03-map-filters.css @media(max-width: 992px) */

/* Специальный медиа-запрос для средних экранов */
@media (max-width: 1100px) and (min-width: 993px) {
    .place-details.active {
        top: var(--navbar-height) !important;
        left: 0 !important;
        width: var(--sidebar-width) !important;
        height: calc(100vh - var(--navbar-height)) !important;
        z-index: 500 !important;
    }
}

/* (layout handled later) */





.content-card {
    background: linear-gradient(135deg, rgba(248, 246, 240, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-light);
    border-radius: 25px;
    padding: 1.5rem;
    box-shadow: 
        0 10px 30px var(--shadow-green),
        0 0 0 1px rgba(168, 196, 176, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-green), var(--light-green));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card:hover::before {
    opacity: 1;
}

.content-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px var(--shadow-green),
        0 0 0 3px rgba(74, 124, 89, 0.2);
    border-color: var(--light-green);
}

.content-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    position: relative;
}

.content-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--light-green), var(--soft-green));
    transition: width 0.4s ease;
}

.content-card:hover h3::after {
    width: 100%;
}

.content-card p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.content-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.content-card .card-meta span {
    color: var(--accent-green);
    font-size: 0.9rem;
    font-weight: 500;
}





/* Map Zoom Controls - Green Theme */
.map-zoom-controls {
    position: fixed;
    bottom: 165px; /* Над кнопкой стилей карты */
    left: calc(25% + 2rem); /* Адаптивно относительно карточек (25% + отступ) */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.zoom-btn {
    background: rgba(74, 124, 89, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.zoom-btn:hover {
    background: rgba(74, 124, 89, 0.9);
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.zoom-btn:active {
    transform: scale(0.95);
}

/* Map Styles Button - Green Theme */
.map-styles-button {
    position: fixed;
    bottom: 90px; /* Подняли выше подвала */
    left: calc(25% + 1.5rem); /* Адаптивно относительно карточек (25% + отступ) */
    z-index: 1000;
    transition: all 0.3s ease;
}

.styles-toggle {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 
        0 8px 25px var(--shadow-green),
        0 0 0 3px rgba(74, 124, 89, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.styles-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg) translate(-100%, -100%);
    transition: transform 0.6s ease;
}

.styles-toggle:hover::before {
    transform: rotate(45deg) translate(100%, 100%);
}

.styles-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 30px var(--shadow-green),
        0 0 0 4px rgba(168, 196, 176, 0.3);
}

.styles-dropdown {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(248, 246, 240, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 1rem;
    min-width: 200px;
    box-shadow: 
        0 15px 40px var(--shadow-green),
        0 0 0 1px rgba(168, 196, 176, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.styles-dropdown::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--cream-white);
}

.map-styles-button:hover .styles-dropdown,
.styles-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.style-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-medium);
}

.style-option:hover {
    background: rgba(45, 90, 39, 0.08);
    color: var(--primary-green);
    transform: translateX(5px);
}

.style-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.style-desc {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ==================== HAMBURGER BUTTON ==================== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, var(--deep-green) 0%, #0a2e1d 100%);
    z-index: 10002;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    min-height: var(--navbar-height);
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.mobile-menu-logo img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-items {
    padding: 0.75rem 0;
    flex: 1;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-item:hover,
.mobile-menu-item:active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.mobile-menu-item i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.7;
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 1.25rem;
}

.mobile-menu-login {
    color: #FFD700;
}

.mobile-menu-login i {
    color: #FFD700;
    opacity: 1;
}

/* ==================== MOBILE NAVBAR RESPONSIVE ==================== */
@media (max-width: 768px) {
    .header-actions {
        display: none !important;
    }

    .header-spacer {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .nav-container {
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .header-search-container {
        max-width: none !important;
        width: 100% !important;
        flex-shrink: 1;
        min-width: 0;
    }

    .header-search-input {
        min-width: 0;
        width: 100%;
    }

    .nav-logo h2 {
        display: none;
    }

    /* Скрываем десктопный футер на мобильных */
    .footer {
        display: none !important;
    }
}

/* ==================== MOBILE MENU FOOTER ==================== */
.mobile-menu-footer {
    margin-top: auto;
    padding: 1rem 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-menu-social {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.mobile-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.mobile-menu-contact {
    text-align: center;
}

.mobile-menu-contact a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

.mobile-menu-contact a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.mobile-menu-contact a i {
    font-size: 0.7rem;
}

.mobile-menu-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.mobile-menu-legal a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.72rem;
    transition: color 0.2s ease;
}

.mobile-menu-legal a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.mobile-menu-legal span {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.68rem;
}
