/* Mobile First (до 480px) - базовые стили */
.header {
    padding-top: 20px;
    position: relative;
    z-index: 100;
} 

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    height: 60px;
    border-radius: 10px;
    border: 0.5px solid #206CB5;
    background: rgba(32, 108, 181, 0.1);
    padding: 0 15px;
    position: relative;
    z-index: 102;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 0;
    z-index: 103;
    position: relative;
}

.logo img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* Десктопное меню - скрыто на мобильных */
.desktop-nav {
    display: none;
}

/* Мобильное меню на всю ширину */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #022350BF;
    z-index: 101;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Мобильная навигация внутри overlay */
.mobile-nav {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 30px;
    width: 100%;
    max-width: 300px;
}

.mobile-nav-item {
    width: 100%;
    text-align: center;
}

.mobile-nav-link {
    color: var(--text-white);
    font-weight: 500;
    text-transform: uppercase;
    display: block;
    font-family: "Raleway", sans-serif;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 6%;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 15px;
    width: 100%;
}

.mobile-nav-link:hover {
    color: #00C3FF;
    transform: translateY(-2px);
}

.mobile-nav-button {
    padding: 18px 25px;
    color: var(--text-white);
    border: 2px solid var(--text-white);
    border-radius: 10px;
    font-weight: 500;
    display: block;
    font-family: "Raleway", sans-serif;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 6%;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.mobile-nav-button:hover {
    background: #00C3FF;
    border-color: #00C3FF;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 195, 255, 0.3);
}

/* Бургер-меню для мобильных */
.burger-menu {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 103;
    cursor: pointer;
}

.burger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-white);
    margin-bottom: 6px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 2. Mobile landscape / Large mobile (480px-767px) */
@media (min-width: 480px) {
    .header {
        padding-top: 25px;
    }
    
    .header-nav {
        margin-bottom: 50px;
        height: 60px;
        border-radius: 12px;
        padding: 0 20px;
    }
    
    .logo img {
        width: 40px;
        height: 40px;
    }
    
    .mobile-nav-link {
        font-size: 22px;
    }
    
    .mobile-nav-list {
        max-width: 350px;
    }
}

/* 3. Tablets и выше (768px+) - показываем десктопное меню */
@media (min-width: 768px) {
    .header {
        padding-top: 30px;
    }
    
    .header-nav {
        margin-bottom: 60px;
        height: 80px;
        border: none;
        background: transparent;
        border-radius: 0;
        padding: 0;
    }
    
    .logo {
        margin-left: var(--spacing-55);
    }
    
    .logo img {
        width: 80px;
        height: 80px;
    }
    
    /* Скрываем бургер и мобильное меню на десктопе */
    .burger-menu {
        display: none;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
    
    /* Показываем десктопное меню */
    .desktop-nav {
        display: block;
        margin-left: auto;
    }
    
    .desktop-nav-list {
        display: flex;
        align-items: center;
        column-gap: 30px;
        row-gap: 0;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .desktop-nav-item {
        display: flex;
        align-items: center;
        height: 100%;
    }
    
    .desktop-nav-link {
        color: var(--text-white);
        font-family: "Raleway", sans-serif;
        font-size: 14px;
        font-weight: 500;
        line-height: 100%;
        letter-spacing: 6%;
        text-transform: uppercase;
        text-decoration: none;
        transition: opacity 0.3s ease;
    }
    
    .desktop-nav-link:hover {
        opacity: 0.7;
    }
    
    .desktop-nav-button {
        padding: 12px 15px;
        color: var(--text-white);
        border: 1px solid var(--text-white);
        border-radius: 10px;
        font-family: "Raleway", sans-serif;
        font-size: 14px;
        font-weight: 500;
        line-height: 100%;
        letter-spacing: 6%;
        text-transform: uppercase;
        text-decoration: none;
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .desktop-nav-button:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }
}

/* 4. Small desktops / Large tablets */
@media (min-width: 1024px) {
    .desktop-nav-list {
        column-gap: 50px;
    }
    
    .desktop-nav-link {
        font-size: 16px;
    }
    
    .desktop-nav-button {
        font-size: 16px;
        padding: 15px 20px;
    }
}