/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .header-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .org-page h1 {
        font-size: 2rem;
    }
    
    .profile-name {
        display: none;
    }
    
    .profile-trigger {
        padding: 4px;
    }
    
    .profile-avatar {
        width: 40px;
        height: 40px;
    }
    
    .profile-menu-login {
        gap: 5px;
    }
    
    .profile-login-btn,
    .profile-register-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .wp-block-navigation .wp-block-navigation-item.has-child:before {
        display: none;
    }
    
    .wp-block-navigation .wp-block-navigation-item.has-child .wp-block-navigation__submenu-container {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px !important;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0;
        top: auto;
    }
    
    .wp-block-navigation .wp-block-navigation-item.has-child > a:after {
        display: none;
    }
    
    /* На мобильных подменю остаются светлыми */
    .wp-block-navigation .wp-block-navigation-item.has-child .wp-block-navigation__submenu-container {
        background: transparent;
        border-left: 2px solid #C6A15B;
        margin-left: 20px;
    }
    
    .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:hover {
        color: #C6A15B !important;
        background: rgba(198, 161, 91, 0.15) !important;
    }
    
    /* Профиль на мобильных */
    .profile-dropdown {
        background: #132B44;
        border-color: #C6A15B;
    }
    
    .profile-dropdown a {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .profile-dropdown a:hover {
        color: #C6A15B !important;
        background: rgba(198, 161, 91, 0.15) !important;
    }
}

@media (max-width: 480px) {
    .header-actions {
        margin-left: auto;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .directions-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}