/* Shared Navigation Styles */
:root {
    --nav-height: 60px;
    --nav-bg: #ffffff;
    --nav-border: #e5e5e5;
    --nav-text: #333;
    --nav-hover: #40bec1;
    --nav-active: #081820;
}

/* Navigation Container */
.demo-nav {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    /* Убираем max-width для full width! */
    /* max-width: 1400px; */
    margin: 0 auto;
    padding: 0 40px; /* Увеличиваем padding для красоты */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}

/* Logo */
.nav-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: var(--nav-text);
    letter-spacing: 0.5px;
}

.nav-logo:hover {
    color: var(--nav-hover);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.nav-item {
    margin: 0;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--nav-text);
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--nav-hover);
}

.nav-link.active {
    color: var(--nav-active);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--nav-hover);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--nav-text);
    transition: all 0.3s ease;
}

.nav-toggle:hover span {
    background: var(--nav-hover);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--nav-bg);
        border-bottom: 1px solid var(--nav-border);
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-menu.active {
        max-height: 400px;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .nav-item {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 15px 0;
        font-size: 15px;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .nav-link.active {
        color: var(--nav-hover);
        font-weight: 600;
    }
}

/* Spacing after nav */
main {
    min-height: calc(100vh - var(--nav-height));
}