* { box-sizing: border-box; margin:0; padding:0; }

:root {
    --bg-color: #1f1e1e;
    --primary-color: #1f1e1e;
    --secondary-color: #313030;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    color: #eee;
    line-height: 1.5;
}


.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--bg-color);
}

/* Навигация */
.navbar {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    padding: 10px 20px;
    z-index: 1;
    font-weight: bold;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    font-weight: bold;
    font-size: 1.4rem;
    color: #296AD6;
    text-decoration: none;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}
.nav-links li a {
    color: #eee;
    text-decoration: none;

}
.nav-links li a:hover {
    color: #9cb0ff;
}

/* === Бургер-меню === */

/* Стиль кнопки бургера */
.nav-toggle {
    display: none; /* Скрыта на десктопе */
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: #eee;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Адаптивность: мобильные устройства (до 768px) */
@media (max-width: 500px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 53px;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* Скрыто по умолчанию */
        transition: clip-path 0.4s ease-in-out;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-links li a {
        padding: 12px 20px;
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Анимация "X" при открытии */
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}