/* Сброс стандартных отступов и margin */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    padding-top: 70px; /* Отступ для фиксированной шапки */
}

.header {
    background-color: #000000;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    height: 70px; /* Фиксированная высота шапки */
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%; /* Занимает всю высоту шапки */
    position: relative;
}


.menu {
    display: flex;
}

.list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.list-item {
    position: relative;
}

.list-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}


.list-link:hover {
    color: #1DB954;
    background-color: rgba(255, 255, 255, 0.1);
}

.list-link.current {
    color: #1DB954;
    background-color: rgba(29, 185, 84, 0.1);
}

.list-link.current::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 6px;
    height: 6px;
    background-color: #1DB954;
    border-radius: 50%;
}

/* Гамбургер-меню */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    align-self: center; /* Выравнивание по центру */
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .list-link {
        color: #131313;
    }

    .navbar {
        padding: 0 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    
    .menu-toggle {
        display: flex;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 24px;
        cursor: pointer;
        z-index: 1001;
        background: transparent;
        border: none;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #ffffff; /* Белый цвет */
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    /* Светлый цвет при наведении */
    .menu-toggle:hover span {
        background-color: #1DB954; /* Зелёный при наведении */
    }
    
    .logo {
        height: 10px; /* Фиксированная высота */
        width: 40px; /* Сохраняет пропорции */
        display: flex;
        align-items: center;
    }

    .menu {
        position: fixed;
        top: 70px; /* Начинается под шапкой */
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px); /* Высота минус шапка */
        background-color: #eeeeee;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 999; /* Под шапкой */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        padding: 2rem 0;
    }
    
    .menu.active {
        right: 0;
    }
    
    .list {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        padding: 0 2rem;
    }
    
    .list-link {
        font-size: 1.1rem;
        padding: 1rem;
        display: block;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Анимация гамбургера в крестик */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
        transform-origin: 0px 3px;
    }
    .menu-toggle.active span:nth-child(2) {
        display: none;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
        transform-origin: 0px 3px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .list-link {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .header {
        height: 60px;
    }
    
    body {
        padding-top: 60px;
    }
}