/* Основные стили для шапки */
.header {
    background: #ffffff;
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 40px;
    height: auto;
}

/* Навигация */
.nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav a {
    text-decoration: none;
    color: #333333;
    font-size: 16px;
    transition: color 0.3s;
}

.nav a:hover {
    color: #8000FF;
}

/* Кнопка */
.btn-order {
    background: #8000FF;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-order:hover {
    background: white;
    color: #8000FF;
    border: 2px solid #8000FF;
}

/* Гамбургер-меню */
.menu-toggle {
    background: none;
    border: none;
    color: #333333;
    font-size: 24px;
    cursor: pointer;
    display: none;
}

.nav a.active {
    color: #D500F9; /* Выделение текущего пункта */
    font-weight: bold;
    border-bottom: 2px solid #D500F9; /* Подчёркивание активного пункта */
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

/* --- Адаптивные стили для мобильных устройств --- */

/* Маленькие устройства: ширина до 768px */
@media (max-width: 768px) {
    .btn-order {
        display: none; /* Скрываем кнопку на мобильных устройствах */
    }

    .menu-toggle {
        display: block; /* Отображаем гамбургер-меню */
    }

    .nav ul {
        display: none;
        flex-direction: column;
        gap: 15px;
        background: rgba(255, 255, 255, 0.95);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 15px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav.open ul {
        display: flex;
    }
}
