/* МОБИЛЬНАЯ АДАПТАЦИЯ - безопасные стили */
@media (max-width: 767px) {
    /* Мобильное меню */
    #mobile-menu-toggle {
        display: block !important;
        background: #333;
        color: white;
        padding: 15px;
        text-align: center;
        cursor: pointer;
        font-weight: bold;
        border-radius: 5px;
        margin: 10px 0;
        border: none;
        width: 100%;
        font-size: 16px;
        transition: all 0.3s ease;
    }
    
    #mobile-menu-toggle:hover {
        background: #444;
    }
    
    #menu {
        display: none;
    }
    
    #menu .menu li {
        float: none !important;
        margin: 5px 0 !important;
        width: 100% !important;
    }
    
    #menu .menu a {
        display: block !important;
        padding: 12px 15px !important;
        text-align: center;
        background: #444 !important;
        border-radius: 5px;
        margin: 2px 0 !important;
        border: 1px solid #555 !important;
        transition: all 0.3s ease;
    }
    
    #menu .menu a:hover {
        background: #555 !important;
        transform: translateX(5px);
    }
    
    /* Скрываем выпадающие меню на мобильных */
    #menu .menu ul {
        display: none !important;
    }
    
    /* Адаптивные блоки */
    .user33 .one, 
    .user33 .two, 
    .user33 .three {
        width: 100% !important;
        float: none !important;
        margin: 15px 0 !important;
    }
    
    /* Адаптивный футер */
    .footer.one, 
    .footer.two, 
    .footer.three, 
    .footer.four, 
    .footer.five {
        width: 100% !important;
        float: none !important;
        margin: 15px 0 !important;
    }
    
    /* Улучшаем читаемость */
    body {
        font-size: 16px !important;
        line-height: 1.5;
    }
    
    h1 { font-size: 24px !important; }
    h2 { font-size: 20px !important; }
    h3 { font-size: 18px !important; }
    
    /* Увеличиваем элементы для сенсорных экранов */
    input, select, button, textarea {
        font-size: 16px !important;
        min-height: 44px;
    }
    
    /* Адаптивные изображения */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Улучшаем контейнер */
    #container {
        padding: 0 10px !important;
    }
    
    /* Улучшаем навигацию */
    #head {
        float: none !important;
        text-align: center;
        margin: 10px 0 !important;
        height: auto !important;
    }
    
    /* Улучшаем поиск */
    #search {
        float: none !important;
        text-align: center;
    }
    
    /* Социальные иконки в футере */
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* На десктопе скрываем кнопку меню */
@media (min-width: 768px) {
    #mobile-menu-toggle {
        display: none !important;
    }
    
    #menu {
        display: block !important;
    }
}

/* Общие улучшения для всех устройств */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Улучшенная доступность */
.keyboard-navigation a:focus,
.keyboard-navigation button:focus,
.keyboard-navigation input:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

/* Анимации для плавности */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Улучшенные кнопки для мобильных */
@media (max-width: 767px) {
    .btn-modern {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
    
    /* Улучшаем формы для мобильных */
    input, select, textarea {
        width: 100% !important;
        box-sizing: border-box;
    }
}