/* ===================================================
   FOOTER REDESIGN - Новая структура подвала
   =================================================== */

/* Основной контейнер footer */
.page-footer {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 0;
    margin-top: 60px;
}

.page-footer .footer-top {
    background-color: #2c3e50;
    padding: 50px 0 30px;
}

/* Колонки footer */
.footer-column {
    margin-bottom: 30px;
}

.footer-column h4 {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: none;
}

/* Списки ссылок */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* CTA Column (Start Trading Now) */
.footer-cta {
    text-align: center;
}

.footer-cta-btn {
    background-color: #00874e !important;
    border: none !important;
    color: #ffffff !important;
    padding: 15px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    border-radius: 4px !important;
    margin-bottom: 15px !important;
    transition: background-color 0.3s ease !important;
    white-space: normal !important;
    line-height: 1.4 !important;
}

.footer-cta-btn:hover {
    background-color: #006838 !important;
    text-decoration: none !important;
}

.footer-help-link {
    display: block;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px;
    text-decoration: none;
    margin-top: 15px;
}

.footer-help-link:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* Footer Bottom */
.page-footer .footer-bottom {
    background-color: #1a252f;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-footer-legal {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: center;
}

.nav-footer-legal li {
    display: inline-block;
    margin: 0 15px 10px;
}

.nav-footer-legal li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    text-decoration: none;
}

.nav-footer-legal li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Footer Legal Text */
.footer-legal {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.6;
}

.footer-legal p {
    margin-bottom: 10px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.footer-legal a:hover {
    color: #ffffff;
}

/* Footer Partners */
.footer-partners {
    text-align: center;
}

.footer-partners a {
    display: inline-block;
    margin: 10px 15px;
}

.footer-partners img {
    max-width: 100%;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-partners img:hover {
    opacity: 1;
}

/* ===================================================
   RESPONSIVE DESIGN
   =================================================== */

/* Desktop (6 колонок) */
@media (min-width: 992px) {
    .footer-column {
        flex: 0 0 16.666667%; /* 100% / 6 = ~16.67% */
        max-width: 16.666667%;
    }
    
    .footer-cta {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
}

/* Tablet (3 колонки в ряд) */
@media (min-width: 768px) and (max-width: 991px) {
    .footer-column {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .footer-cta {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 20px;
    }
}

/* Mobile (1 колонка) */
@media (max-width: 767px) {
    .footer-column {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }
    
    .footer-column h4 {
        border-bottom: none;
        padding-bottom: 5px;
    }
    
    .footer-cta {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 20px;
    }
    
    .footer-links {
        margin-bottom: 20px;
    }
}

/* Убираем конфликты с старым footer-fix.css */
.page-footer .footer-nav-main ul.col-sm-18,
.page-footer .footer-nav-main ul.col-sm-18 > li {
    display: block !important;
    flex: none !important;
    width: auto !important;
    max-width: none !important;
}
