body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.container {
    flex: 1;
}

.footer {
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

body.dark .footer {
    background: #0b0b0f;
    border-top: 1px solid #222;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 10px;
}

.footer-desc {
    font-size: 13px;
    color: #6b7280;
}

body.dark .footer-desc {
    color: #aaa;
}

.footer-links,
.footer-payments,
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: #111827;
}

body.dark .footer h4 {
    color: #ffffff;
}

.footer a {
    text-decoration: none;
    font-size: 13px;
    color: #6b7280;
    transition: 0.2s;
}

body.dark .footer a {
    color: #aaa;
}

.footer a:hover {
    color: #111827;
}

body.dark .footer a:hover {
    color: #ffffff;
}

.payment-icons {
    display: flex;
    gap: 10px;
    font-size: 20px;
    color: #111827;
}

body.dark .payment-icons {
    color: #ffffff;
}

.footer-social a {
    font-size: 20px;
    color: #111827;
}

body.dark .footer-social a {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    font-size: 12px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
}

body.dark .footer-bottom {
    border-top: 1px solid #222;
    color: #aaa;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-links,
    .footer-payments,
    .footer-social {
        border-bottom: 1px solid #e5e7eb;
        padding: 10px 0;
    }

    body.dark .footer-links,
    body.dark .footer-payments,
    body.dark .footer-social {
        border-bottom: 1px solid #222;
    }

    .footer h4 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        margin-bottom: 0;
    }

    .footer h4::after {
        content: "▼";
        font-size: 12px;
        transition: 0.3s;
    }

    .footer-links.active h4::after,
    .footer-payments.active h4::after,
    .footer-social.active h4::after {
        transform: rotate(180deg);
    }

    .footer-links a,
    .footer-payments .payment-icons,
    .footer-social a {
        max-height: 0;
        overflow: hidden;
        transition: 0.3s ease;
    }

    .footer-links.active a,
    .footer-payments.active .payment-icons,
    .footer-social.active a {
        max-height: 200px;
        margin-top: 10px;
    }
}