/* Стили для адаптивного меню */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.navbar {
    background: #333;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

/* Меню по умолчанию (для десктопа) */
.menu-items {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 2rem;
}

.menu-items li {
    margin: 0;
}

.menu-items a {
    display: block;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
    border-radius: 4px;
}

.menu-items a:hover {
    background: #555;
}

/* Бургер-кнопка скрыта на десктопе */
.checkbox {
    display: none;
}

.hamburger-lines {
    display: none;
    height: 26px;
    width: 32px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    z-index: 2;
    cursor: pointer;
}

.line {
    display: block;
    height: 4px;
    width: 100%;
    border-radius: 2px;
    background: white;
    margin-bottom: 5px;
    transition: transform 0.3s, opacity 0.3s;
}

.line:last-child {
    margin-bottom: 0;
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    /* Показываем бургер-кнопку */
    .hamburger-lines {
        display: block;
    }
    
    /* Скрываем меню по умолчанию */
    .menu-items {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #333;
        padding: 1rem 0;
        gap: 0;
    }
    
    .menu-items li {
        width: 100%;
    }
    
    .menu-items a {
        padding: 0.75rem 1.5rem;
        border-radius: 0;
    }
    
    /* Показываем меню когда чекбокс активен */
    .checkbox:checked ~ .menu-items {
        display: flex;
    }
    
    /* Анимация бургер-кнопки */
    .checkbox:checked ~ .hamburger-lines .line1 {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .checkbox:checked ~ .hamburger-lines .line2 {
        opacity: 0;
    }
    
    .checkbox:checked ~ .hamburger-lines .line3 {
        transform: rotate(-45deg) translate(8px, -8px);
    }
}

/* Основной контент */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1 {
    color: #333;
    margin-bottom: 1rem;
}

p {
    color: #666;
    line-height: 1.8;
}