/* ═══════════════════════════════════════════════════════
   FOOTER — современный стиль
   Перебивает старые правила из site.css (2307–2485)
   ═══════════════════════════════════════════════════════ */

#footer {
    background: #101e2f !important;
    padding: 0 !important;
    color: #ffffff;
    font-size: 14px;
    border-top: 4px solid #7ed957;
    position: relative;
}

#footer .footer-top {
    background: transparent !important;
    background-image: none !important;
    padding: 56px 0 36px !important;
}

/* ─── Заголовки колонок ─── */
#footer .footer-top h4 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #7ed957 !important;
    margin: 0 0 20px !important;
    padding: 0 0 12px 0 !important;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#footer .footer-top h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: #7ed957;
    border-radius: 2px;
}

/* ─── Ссылки ─── */
#footer .footer-top .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer .footer-top .footer-links ul li {
    padding: 7px 0 !important;
    display: flex;
    align-items: center;
}

#footer .footer-top .footer-links ul li:first-child {
    padding-top: 0 !important;
}

#footer .footer-top .footer-links ul a {
    color: #c8d2dc !important;
    text-decoration: none !important;
    transition: color .2s, padding-left .2s !important;
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
    padding-left: 0;
    font-size: 13.5px;
}

#footer .footer-top .footer-links ul a:hover {
    color: #7ed957 !important;
    padding-left: 4px;
}

#footer .footer-top .footer-links ul i,
#footer .footer-top .footer-links ul a .bx,
#footer .footer-top .footer-links ul a .bi {
    color: #7ed957 !important;
    font-size: 16px !important;
    margin-right: 8px !important;
    line-height: 1 !important;
    flex-shrink: 0;
}

/* ─── Контакты ─── */
#footer .footer-top .footer-contact {
    margin-bottom: 24px;
}

#footer .footer-top .footer-contact p {
    line-height: 1.8 !important;
    margin: 0 0 8px !important;
    color: #c8d2dc !important;
    font-size: 13.5px;
}

#footer .footer-top .footer-contact a {
    color: #ffffff !important;
    transition: color .2s;
    text-decoration: none;
}

#footer .footer-top .footer-contact a:hover {
    color: #7ed957 !important;
}

#footer .footer-top .footer-contact strong {
    color: #7ed957 !important;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 4px;
}

/* ─── Информация ─── */
#footer .footer-top .footer-info p {
    color: #c8d2dc !important;
    line-height: 1.7;
    font-size: 13.5px;
}

#footer .footer-top .footer-info h3 {
    font-size: 16px;
    color: #ffffff;
    margin: 0 0 12px;
    font-weight: 700;
}

/* ─── Соцсети ─── */
#footer .footer-top .social-links {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#footer .footer-top .social-links a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    background: rgba(126, 217, 87, 0.12) !important;
    color: #7ed957 !important;
    border-radius: 8px !important;
    transition: background .2s, color .2s, transform .15s !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

#footer .footer-top .social-links a:hover {
    background: #7ed957 !important;
    color: #101e2f !important;
    transform: translateY(-2px);
}

#footer .footer-top .social-links a i,
#footer .footer-top .social-links a .bx {
    font-size: 18px !important;
    line-height: 1 !important;
    color: inherit !important;
}

/* ─── Копирайт ─── */
#footer .copyright {
    text-align: center;
    padding: 22px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #7a8a9e !important;
    font-size: 13px;
    background: #0d1826 !important;
}

#footer .copyright p {
    margin: 0;
    color: #7a8a9e !important;
    font-size: 13px;
}

#footer .credits {
    text-align: center;
    padding: 8px 0 16px;
    color: #5a6a80 !important;
    font-size: 12px;
    background: #0d1826;
}

#footer .credits a {
    color: #7ed957 !important;
    text-decoration: none;
}

/* ─── Back-to-top ─── */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 45px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #7ed957, #4a8f2b);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(126, 217, 87, 0.4);
    transition: transform .2s, box-shadow .2s;
    z-index: 9999;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(126, 217, 87, 0.6);
    color: #ffffff;
}

.back-to-top i {
    font-size: 22px;
}

/* ─── Адаптив ─── */
@media (max-width: 768px) {
    #footer .footer-top {
        padding: 36px 0 26px !important;
    }

    #footer .footer-top h4 {
        font-size: 14px !important;
        margin-bottom: 14px !important;
    }

    #footer .footer-top .footer-links,
    #footer .footer-top .footer-contact,
    #footer .footer-top .footer-info {
        margin-bottom: 26px;
    }

    #footer .copyright {
        padding: 18px 0 !important;
        font-size: 12px;
    }

    .back-to-top {
        right: 16px;
        bottom: 20px;
        width: 40px;
        height: 40px;
    }
}