/* Меняем светлый фон футера (#f5f5f5) на тёмный под стиль сайта */
#footer {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px 20px 0 0 !important;
}

/* Скрываем футер везде — навигация есть в #nav и мобильной панели */
#footer {
    display: none !important;
}

/* Текст и заголовки в футере на тёмном фоне */
#footer h3,
#footer p,
#footer a:not(.footer-nav-link) {
    color: rgba(255, 255, 255, 0.5) !important;
    border-bottom-color: transparent !important;
}

#footer a:not(.footer-nav-link):hover {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Footer nav — icon left + text, единый стиль с #nav */

#footer .footer-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

#footer .footer-nav-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1.3rem;
    height: 3.5rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-bottom: none;
    font-family: 'Source Sans Pro', Helvetica, sans-serif;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: color 0.2s ease, background 0.2s ease;
}

#footer .footer-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: none;
    text-decoration: none;
}

#footer .footer-nav-link .icon {
    font-size: 0.9rem;
    color: inherit;
    opacity: 0.7;
    display: inline-block;
    line-height: 1;
    flex-shrink: 0;
}

#footer .footer-nav-link:hover .icon {
    opacity: 1;
}

#footer .footer-nav-link span {
    color: inherit;
}

/* Мобильные: скрываем footer nav — есть боковое меню */
@media (max-width: 736px) {
    #footer .footer-nav-links {
        display: none !important;
    }
}
