/* Техно-шапка с акцентными подчеркиваниями */
.header {
    position                   : fixed;
    top                        : 0;
    left                       : 0;
    right                      : 0;
    
    /* Новый градиентный фон */
    background                 : -webkit-linear-gradient(90deg, #004d65, #016e8f, #008d89);
    background                 : linear-gradient(90deg, #004d65, #016e8f, #008d89);
    
    /* Если нужны звёзды, можно добавить поверх отдельным блоком или через псевдоэлемент */
    
    padding                    : 20px 0;
    border-bottom              : 1px solid rgba(0, 255, 255, 0.1);
    box-shadow                 : 0 2px 20px rgba(0, 255, 255, 0.05);
    transition                 : transform 0.3s ease;
    z-index                    : 1000;
    
    /* Закругление нижних краёв */
    border-bottom-left-radius  : 24px;
    border-bottom-right-radius : 24px;
}

/* Скрытие шапки при скролле вниз */
.header.hide {
    transform : translateY(-100%);
}

.header__inner {
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    position       : relative;
    z-index        : 2;
}

/* Меню с подчеркиваниями */
.nav__list {
    display    : flex;
    gap        : 25px;
    list-style : none;
    margin     : 0;
    padding    : 0;
    align-items: center; /* Вертикальное выравнивание */
}

.nav__link {
    color          : #e0e0e0;
    font-weight    : 500;
    font-size      : 2rem;
    text-decoration: none;
    padding        : 8px 0;
    position       : relative;
    transition     : all 0.3s ease;
    display        : flex;
    align-items    : center;
    justify-content: center;
    text-align     : center;
    line-height    : 1.2;
    letter-spacing : 0.02em;
}

.nav__link::after {
    content    : '';
    position   : absolute;
    bottom     : 0;
    left       : 0;
    width      : 0;
    height     : 2px;
    background : linear-gradient(90deg, #00fffc, #00ff9d);
    transition : width 0.3s ease, opacity 0.3s ease;
    opacity    : 0;
    box-shadow : 0 0 10px rgba(0, 255, 252, 0.5);
}

.nav__link:hover {
    color: #ffffff;
}

.nav__link:hover::after {
    width  : 100%;
    opacity: 1;
}

/* Активное состояние */
.nav__link.active {
    color: #ffffff;
}

.nav__link.active::after {
    width     : 100%;
    opacity   : 1;
    background: linear-gradient(90deg, #00ff9d, #00fffc);
}

/* Логотип с подчеркиванием */
.logo {
    display        : flex;
    align-items    : center;
    gap            : 10px;
    text-decoration: none;
}

.logo__text {
    color          : white;
    font-size      : 1.4rem;
    font-weight    : 600;
    position       : relative;
    padding-bottom : 5px;
}

.logo__text::after {
    content    : '';
    position   : absolute;
    bottom     : 0;
    left       : 0;
    width      : 0;
    height     : 2px;
    background : linear-gradient(90deg, #00fffc, #00ff9d);
    transition : width 0.3s ease;
    box-shadow : 0 0 8px rgba(0, 255, 252, 0.5);
}

.logo:hover .logo__text::after {
    width: 100%;
}

/* Минимальные частицы для акцента */
.header .particle {
    position       : absolute;
    width          : 2px;
    height         : 2px;
    background     : rgba(0, 255, 252, 0.4);
    border-radius  : 50%;
    pointer-events : none;
    animation      : float 8s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0);
        opacity  : 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-200px);
        opacity  : 0;
    }
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .header {
        padding                    : 15px 0;
        border-bottom-left-radius  : 16px;
        border-bottom-right-radius : 16px;
    }
    
    .nav__list {
        gap: 15px;
    }
    
    .nav__link {
        font-size: 1.5rem;
    }
    
    .logo__text {
        font-size: 1.2rem;
    }
}
