[data-theme="dark"] {
    --footer-bg: #1e293b;
}

:root {
    --footer-bg: #000000;
}

.site-footer {
    background-color: var(--footer-bg);
    color: #fff;
    padding: 30px 0 30px;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .site-footer {
    background-color: #1e293b;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-left-columns {
    text-align: left;
    display: flex;
    gap: 100px;
    /* відстань між трьома колонками */
}

.footer-column {
    min-width: 220px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-right-column {
    text-align: left;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.social-icon {
    color: #aaa;
    transition: color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* Нижня частина
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
} */

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    height: 40px;
}

.footer-legal {
    font-size: 13px;
    color: #777;
}

.footer-legal a {
    color: #777;
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 8px;
    color: #555;
}

.footer-payment {
    display: flex;
    gap: 16px;
}

/* Адаптивність */
@media (max-width: 1024px) {
    .site-footer {
        padding: 50px 0 25px;
    }

    .footer-left-columns {
        gap: 50px;
    }

    .footer-column {
        min-width: 180px;
    }

    .footer-main-grid {
        margin-bottom: 50px;
    }
}

@media (max-width: 868px) {
    .site-footer {
        padding: 40px 0 20px;
    }

    .footer-main-grid {
        flex-direction: column;
        gap: 32px;
        margin-bottom: 40px;
    }

    .footer-left-columns {
        flex-direction: column;
        gap: 32px;
    }

    /* Join first two columns into one list */
    .footer-left-columns .footer-column:nth-child(1) {
        margin-bottom: 0;
    }

    .footer-left-columns .footer-column:nth-child(2) {
        margin-top: -32px;
    }

    .footer-left-columns .footer-column:nth-child(2) .invisible {
        display: none;
        margin: 0;
    }

    .footer-right-column {
        text-align: left;
    }

    .footer-bottom-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-logo-wrapper {
        order: 1;
    }

    .footer-legal {
        order: 2;
        font-size: 12px;
    }

    .footer-payment {
        order: 3;
        align-self: flex-start;
    }

    .separator {
        display: block;
        margin: 4px 0;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 32px 0 16px;
    }

    .footer-column {
        min-width: 100%;
    }

    .footer-heading {
        font-size: 15px;
        margin-bottom: 16px;
    }

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

    .footer-links a {
        font-size: 13px;
    }

    .footer-logo {
        height: 32px;
    }

    .footer-legal {
        font-size: 11px;
    }

    .footer-payment svg {
        width: 40px;
        height: 25px;
    }

    .separator {
        display: none;
    }

    .footer-legal a {
        display: block;
        margin-bottom: 8px;
    }
}

.invisible {
    opacity: 0;
    pointer-events: none;
    /* щоб не реагував на hover */
    margin-bottom: 24px;
    /* точно така ж відступ, як у видимих заголовків */
}