/* ===== СТИЛИ ДЛЯ ШАПКИ (header.css) ===== */

/* Основные стили для навигации на ПК */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    font-size: 1rem;
    padding: 0.5rem 0;
}

.nav-menu-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFE5E5, #FFE5F0);
    transition: width 0.3s;
}

.nav-menu-links a:hover:after,
.nav-menu-links a.active:after {
    width: 100%;
}

.nav-menu-links a:hover {
    color: #FFE5E5;
}

/* Скрываем мобильные элементы на ПК */
.nav-menu-header,
.nav-menu-close,
.nav-menu-logo,
.nav-menu-contacts,
.nav-menu-divider,
.mobile-only,
.mobile-menu-btn {
    display: none;
}

/* Контакты в шапке */
.contact-info {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.contact-info a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
}

.contact-info a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFE5E5;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.logo-img {
    width: 60px;
    height: 60px;
    background: url('/images/logo.png') no-repeat center;
    background-size: contain;
}

.logo-text {
    font-family: var(--font-title);
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.logo-text span {
    color: #FFE5E5;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
@media (max-width: 1024px) {
    /* Показываем кнопку бургер */
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1100;
    }
    
    .mobile-menu-btn span {
        width: 100%;
        height: 2px;
        background: white;
        transition: all 0.3s;
        border-radius: 2px;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Скрываем десктопное меню и показываем мобильное выезжающее */
    .nav-menu {
        position: fixed !important;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, #E5C5C5 0%, #C5E5E5 100%);
        padding: 0;
        transition: left 0.3s ease;
        z-index: 2000;
        box-shadow: 5px 0 30px rgba(0,0,0,0.1);
        display: flex !important;
        flex-direction: column;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* Показываем мобильные элементы */
    .nav-menu-header,
    .nav-menu-close,
    .nav-menu-logo,
    .nav-menu-contacts,
    .nav-menu-divider,
    .mobile-only {
        display: block !important;
    }
    
    /* Шапка меню */
    .nav-menu-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    
    .nav-menu-logo {
        font-family: var(--font-title);
        font-size: 1.5rem;
        color: white;
        letter-spacing: 2px;
    }
    
    .nav-menu-close {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.3s;
    }
    
    .nav-menu-close:hover {
        background: rgba(255, 255, 255, 0.3);
    }
    
    /* Ссылки в мобильном меню */
    .nav-menu-links {
        flex: 1;
        padding: 1.5rem;
        display: flex !important;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-menu-links a {
        color: white;
        text-decoration: none;
        padding: 1rem;
        border-radius: 15px;
        transition: all 0.3s;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu-links a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(5px);
    }
    
    .nav-menu-links a::before {
        content: '🌸';
        font-size: 1.2rem;
        opacity: 0.9;
    }
    
    .nav-menu-divider {
        height: 1px;
        background: rgba(255,255,255,0.2);
        margin: 1rem 0;
        display: block !important;
    }
    
    /* Контакты в мобильном меню */
    .nav-menu-contacts {
        padding: 1.5rem;
        border-top: 1px solid rgba(255,255,255,0.2);
        background: rgba(255, 255, 255, 0.05);
        display: block !important;
    }
    
    .nav-menu-contact {
        display: flex;
        align-items: center;
        gap: 10px;
        color: white;
        text-decoration: none;
        padding: 0.8rem;
        border-radius: 15px;
        transition: background 0.3s;
        background: rgba(255, 255, 255, 0.1);
        margin-bottom: 0.5rem;
    }
    
    .nav-menu-contact:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .nav-menu-social {
        display: flex;
        gap: 1rem;
        justify-content: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
    
    .nav-menu-social a {
        color: white;
        text-decoration: none;
        font-size: 1.5rem;
        opacity: 0.8;
        transition: opacity 0.3s;
        background: rgba(255, 255, 255, 0.1);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
    
    .nav-menu-social a:hover {
        opacity: 1;
        background: rgba(255, 255, 255, 0.2);
    }
    
    /* Оверлей */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 225, 225, 0.5);
        z-index: 1999;
        backdrop-filter: blur(5px);
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    /* Скрываем десктопные контакты */
    .contact-info {
        display: none !important;
    }
    
    /* Анимация для ссылок */
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .nav-menu.active .nav-menu-links a {
        animation: slideIn 0.3s ease forwards;
        opacity: 0;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .logo-text {
        font-size: 1.4rem;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
}