/* ========================================
   УЛУЧШЕННЫЙ МОБИЛЬНЫЙ ФУТЕР
   ======================================== */

@media (max-width: 768px) {
    /* Основной футер */
    .footer {
        background: #000 !important;
        padding: 40px 0 80px !important;
        margin-top: 40px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        position: relative !important;
    }
    
    .footer .container {
        padding: 0 20px !important;
        max-width: 100% !important;
    }
    
    .footer__main {
        flex-direction: column !important;
        gap: 35px !important;
        margin-bottom: 35px !important;
    }
    
    /* Навигационные ссылки */
    .footer__links {
        width: 100% !important;
        order: 1 !important;
    }
    
    .footer__nav_wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        margin-bottom: 25px !important;
    }
    
    .footer__nav {
        width: 100% !important;
    }
    
    .footer__nav_title {
        font-size: 11px !important;
        font-weight: 600 !important;
        letter-spacing: 2px !important;
        color: rgba(255, 255, 255, 0.5) !important;
        margin-bottom: 12px !important;
        text-transform: uppercase !important;
    }
    
    .footer__nav_link {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .footer__nav_link a {
        color: rgba(255, 255, 255, 0.75) !important;
        font-size: 14px !important;
        font-weight: 300 !important;
        line-height: 1.8 !important;
        text-decoration: none !important;
        transition: color 0.2s ease !important;
        padding: 4px 0 !important;
    }
    
    .footer__nav_link a:active {
        color: white !important;
    }
    
    /* Copyright */
    .copy {
        font-size: 11px !important;
        color: rgba(255, 255, 255, 0.4) !important;
        text-align: left !important;
        margin: 20px 0 !important;
        font-weight: 300 !important;
        line-height: 1.6 !important;
    }
    
    /* Социальные иконки под copyright */
    .footer__social {
        margin-top: 15px !important;
        display: flex !important;
        gap: 10px !important;
        align-items: center !important;
        flex-wrap: wrap !important;
    }
    
    .footer__social a {
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #000 !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
        flex-shrink: 0 !important;
    }
    
    .footer__social a:active {
        background: #fff !important;
        border-color: #fff !important;
    }
    
    .footer__social a:active svg {
        fill: #000 !important;
    }
    
    .footer__social a svg {
        width: 18px !important;
        height: 18px !important;
        fill: #fff !important;
        transition: fill 0.3s ease !important;
    }
    
    /* Newsletter форма */
    .footer__newsletter {
        width: 100% !important;
        order: 2 !important;
        padding: 0 !important;
        background: transparent !important;
    }
    
    .footer__newsletter_title {
        font-size: 14px !important;
        font-weight: 400 !important;
        color: rgba(255, 255, 255, 0.7) !important;
        margin-bottom: 12px !important;
    }
    
    .footer__newsletter_form {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .footer__newsletter_form input {
        flex: 1 !important;
        padding: 12px 4px !important;
        background: transparent !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 0 !important;
        font-size: 14px !important;
        min-height: 42px !important;
        color: white !important;
        outline: none !important;
    }
    
    .footer__newsletter_form input::placeholder {
        color: rgba(255, 255, 255, 0.5) !important;
        font-size: 13px !important;
    }
    
    .footer__newsletter_form input:focus {
        border-bottom-color: rgba(255, 255, 255, 0.6) !important;
    }
    
    .footer__newsletter_form button {
        padding: 12px 16px !important;
        background: transparent !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 0 !important;
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 13px !important;
        min-height: 42px !important;
        font-weight: 400 !important;
        white-space: nowrap !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
    }
    
    .footer__newsletter_form button span {
        display: inline !important;
    }
    
    .footer__newsletter_form button img {
        display: none !important;
    }
    
    .footer__newsletter_form button:active {
        color: white !important;
        border-bottom-color: rgba(255, 255, 255, 0.6) !important;
    }
    
    /* Нижняя часть футера */
    .footer__bottom {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 20px !important;
        padding-top: 30px !important;
        margin-top: 30px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    
    /* App Store / Google Play секция */
    .footer__bottom_left {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 14px !important;
        width: 100% !important;
    }
    
    .footer__bottom_left span {
        font-size: 12px !important;
        color: rgba(255, 255, 255, 0.6) !important;
        font-weight: 500 !important;
        text-align: center !important;
        margin-bottom: 2px !important;
    }
    
    .footer__bottom_left a {
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #000 !important;
        border: 2px solid #fff !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
        flex-shrink: 0 !important;
    }
    
    .footer__bottom_left a:active {
        background: #fff !important;
    }
    
    .footer__bottom_left a:active svg {
        fill: #000 !important;
    }
    
    .footer__bottom_left a svg {
        width: 20px !important;
        height: 20px !important;
        fill: #fff !important;
        transition: fill 0.3s ease !important;
    }
    
    /* Кнопка "Наверх" */
    .footer__bottom_right {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }
    
    .toTop {
        width: 44px !important;
        height: 44px !important;
        background: transparent !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
    }
    
    .toTop:active {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
    }
    
    .toTop img {
        width: 18px !important;
        height: 18px !important;
        filter: brightness(0) invert(1) !important;
        opacity: 0.6 !important;
    }
}

@media (max-width: 480px) {
    /* Еще более компактный футер для маленьких экранов */
    .footer {
        padding: 35px 0 75px !important;
        margin-top: 30px !important;
    }
    
    .footer .container {
        padding: 0 16px !important;
    }
    
    .footer__main {
        gap: 30px !important;
        margin-bottom: 30px !important;
    }
    
    .footer__nav_wrapper {
        gap: 25px !important;
    }
    
    .footer__nav_title {
        font-size: 10px !important;
        margin-bottom: 10px !important;
    }
    
    .footer__nav_link a {
        font-size: 13px !important;
        padding: 3px 0 !important;
    }
    
    .copy {
        font-size: 10px !important;
        margin: 18px 0 !important;
    }
    
    .footer__social {
        margin-top: 12px !important;
        gap: 8px !important;
    }
    
    .footer__social a {
        width: 38px !important;
        height: 38px !important;
    }
    
    .footer__social a svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .footer__newsletter_title {
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }
    
    .footer__newsletter_form {
        gap: 8px !important;
    }
    
    .footer__newsletter_form input {
        padding: 10px 4px !important;
        font-size: 13px !important;
        min-height: 38px !important;
    }
    
    .footer__newsletter_form input::placeholder {
        font-size: 12px !important;
    }
    
    .footer__newsletter_form button {
        padding: 10px 14px !important;
        font-size: 12px !important;
        min-height: 38px !important;
    }
    
    .footer__bottom {
        padding-top: 25px !important;
        margin-top: 25px !important;
        gap: 16px !important;
    }
    
    .footer__bottom_left {
        gap: 12px !important;
    }
    
    .footer__bottom_left span {
        font-size: 11px !important;
    }
    
    .footer__bottom_left a {
        width: 40px !important;
        height: 40px !important;
    }
    
    .footer__bottom_left a svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .toTop {
        width: 40px !important;
        height: 40px !important;
    }
    
    .toTop img {
        width: 16px !important;
        height: 16px !important;
    }
}

/* Дополнительная защита от конфликтов с чатботом */
@media (max-width: 768px) {
    .footer {
        z-index: 1 !important;
        position: relative !important;
    }
    
    /* Убираем любые отступы снизу, которые могут мешать */
    body {
        padding-bottom: 0 !important;
    }
}

