/*
 * Theme Name: Zero WP 3.0
 * Description: Ultra-minimal WordPress starter theme. Optimized for converting html-layouts to websites. Also is a good start for SPA, creating unique projects.
 * Theme URI:   https://github.com/solidcreature/zero_wp
 * Author:      Nikolay Mironov
 * Author URI:  http://wpfolio.ru
*/

body {
	text-align: center;
	background: #F8F5F0;
}

.page-design {
	width: 100%;
	max-width: 1600px;
}

/* Бургер */
.burger-menu {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    gap: 6px;
}

.burger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background: #e0e0e0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Анимация превращения в крестик */
.burger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger-menu.active span:nth-child(2) {
    opacity: 0;
}
.burger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Боковое меню */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 289px;
    height: 100vh;
    background-color: #003366;
    padding-top: 100px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
	text-align: left;
	font-family: sans-serif;
	font-size: 20px;
}

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

.side-menu-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 40px;
}

.side-menu .sub-menu {
	margin-top: 30px;
}

.side-menu-list li {
    margin-bottom: 30px;
}

.side-menu-list a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.side-menu-list a:hover {
    opacity: 0.8;
}

/* Затемнение фона при открытом меню */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}