* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

.wrapper {
    width: 1130px;
    margin: 0 auto;
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Шапка с бургером */
.header {
    background: #3f51b5;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Бургер-кнопка (скрыта на десктопе) */
.burger-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #fff;
}
.burger-menu .material-symbols-outlined {
    font-size: 32px;
}

/* Меню навигации */
.menu {
    background: #303f9f;
    color: #fff;
    padding: 15px;
    display: flex;
    gap: 20px;
}
.menu a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.menu a:hover {
    text-decoration: underline;
}
.menu .material-symbols-outlined {
    font-size: 20px;
}

/* Основной контент и сайдбар */
.main {
    display: flex;
    flex: 1;
}

.content {
    width: 800px;
    padding: 20px;
    background: #fafafa;
}

.sidebar {
    width: 330px;
    padding: 20px;
    background: #e0e0e0;
}

/* Кнопка закрытия для сайдбара на мобильных (скрыта на десктопе) */
.close-sidebar {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    align-self: flex-end;
    margin-bottom: 20px;
}
.close-sidebar .material-symbols-outlined {
    font-size: 32px;
}

.footer {
    background: #212121;
    color: #fff;
    padding: 20px;
}

/* Оверлей (скрыт по умолчанию) */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .wrapper {
        width: 100%;
        margin: 0;
	}
	
    .main {
        flex-direction: column;
	}
	
    .content {
        width: 100%;
	}
	
    /* Создаём отступ под фиксированное меню, чтобы контент не уходил под него */
    .main::after {
        content: '';
        display: block;
        height: 100px; /* Подберите под фактическую высоту вашего меню + отступы */
	}
	
    /* Сайдбар на мобильных: скрыт, появляется по клику */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: #e0e0e0;
        z-index: 1000;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding: 20px;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
	}
	
    .sidebar.active {
        left: 0;
	}
	
    .close-sidebar {
        display: block;
	}
	
    .overlay.active {
        display: block;
	}
	
    .burger-menu {
        display: block;
	}
	
    /* Нижнее плавающее меню */
    .menu {
        position: fixed;
        bottom: 20px;
        left: 16px;
        right: 16px;
        width: auto;
        background: #303f9f;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 12px 0;
        z-index: 1000;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        border-radius: 40px;
        gap: 0;
	}
	
    .menu a {
        margin: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        font-size: 11px;
        padding: 4px 0;
        border: none;
        gap: 2px;
        color: #fff;
        text-decoration: none;
	}
	
    .menu .material-symbols-outlined {
        font-size: 24px;
	}
}