.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.3s;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    position: sticky;
    top: 0;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 1rem;
    border-bottom: 1px solid #eee;
    z-index: 2;
}

.mobile-menu-close {
    border: none;
    background: none;
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-search {
    position: sticky;
    top: 52px;
    background: white;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    z-index: 1;
}

.mobile-search input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.mobile-search .search-button {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-color);
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-section {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
}

.mobile-section h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    margin: 0 0 0.75rem 0;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 0.5rem;
}

.mobile-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.mobile-section h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: inherit;
    font-weight: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.mobile-nav a:hover {
    color: var(--primary-color);
}

/* Аккордеон для секций */
.mobile-accordion {
    position: relative;
}

.mobile-section-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.mobile-section-toggle h3 {
    margin: 0;
    flex: 1;
}

.mobile-section-icon {
    font-size: 0.75rem;
    color: var(--primary-color);
    transition: transform 0.3s;
    margin-left: 0.5rem;
}

.mobile-accordion.active .mobile-section-icon {
    transform: rotate(180deg);
}

.mobile-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-accordion.active .mobile-section-content {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

/* Для секций без аккордеона (Преподаватели, Все нейросети) */
.mobile-section:not(.mobile-accordion) .mobile-section-content {
    max-height: none;
    overflow: visible;
}

/* Кнопка бургер-меню */
.mobile-menu-toggle {
    display: none;
    border: none;
    background: none;
    padding: 0.5rem;
    cursor: pointer;
    margin-left: auto;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* Когда шапка становится непрозрачной */
.site-header.solid .mobile-menu-toggle span {
    background: var(--text-color);
}

/* Для прозрачной шапки */
.site-header.transparent .mobile-menu-toggle span {
    background: white;
}

/* Показываем кнопку только на мобильных */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav, 
    .search-box {
        display: none;
    }
    
    /* Добавим стили для контейнера шапки */
    .header-container {
        justify-content: space-between;
        gap: 1rem;
    }
} 