.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.footer .container {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo img {
    height: 40px;
    width: auto;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 340px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact li .icon {
    color: var(--secondary);
    min-width: 20px;
    margin-top: 2px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact a:hover {
    color: var(--white);
}

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

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-social a:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-social a:nth-child(2),
.footer-social a:nth-child(3) {
    display: none;
}

.footer-qr {
    text-align: center;
}

.footer-qr img {
    width: 110px;
    height: 110px;
    border-radius: 4px;
    background: var(--white);
    padding: 6px;
    margin: 0 auto 8px;
}

.footer-qr p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
    padding: 18px 0;
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.footer-bottom-links a {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

.footer-bottom .sep {
    color: rgba(255, 255, 255, 0.06);
}

.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    z-index: 999;
}

.back-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-top:hover {
    transform: translateY(-4px) scale(1.05);
    background: var(--gradient-accent);
}

.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    padding: 6px 0 10px;
    z-index: 998;
    border-top: 1px solid var(--gray-200);
}

.mobile-nav .items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--gray-500);
    font-size: 0.6rem;
    padding: 4px 12px;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    text-align: center;
}

.mobile-nav .item .icon {
    font-size: 1.2rem;
}

.mobile-nav .item.active {
    color: var(--secondary);
}

.mobile-nav .item .top {
    display: none !important;
}

.mobile-nav .items .item:nth-child(3) {
    display: none !important;
}

@media (max-width: 992px) {
    .footer .container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 0;
    }
    .footer .container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 24px;
    }
    .footer-brand p {
        max-width: 100%;
    }
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom-links {
        justify-content: center;
    }
    .mobile-nav {
        display: block;
    }
    .mobile-nav .item .top {
        display: none !important;
    }
    .mobile-nav .items .item:nth-child(3) {
        display: none !important;
    }
    .back-top {
        bottom: 76px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}