﻿.footer {
    position: relative;
    overflow: hidden;
    padding: 2.5rem 0 1.5rem;
    background: #070b12;
    color: #f5f7fb;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 18%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 35%);
    pointer-events: none;
}

.footer-container {
    position: relative;
    z-index: 1;
    width: min(1250px, calc(100% - 2rem));
    margin: 0 auto;
}

.footer-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0 0 1.8rem;
    margin-bottom: 2.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-top-bar-title {
    margin: 0 0 0.55rem;
    color: #ffffff;
    font-family: 'Noto Sans', sans-serif;
    font-size: clamp(1.35rem, 2vw, 1.95rem);
    font-weight: 700;
    line-height: 1.3;
}

.footer-top-bar-text {
    margin: 0;
    max-width: 760px;
    color: rgba(245, 247, 251, 0.76);
    line-height: 1.7;
}

.footer-pill-button,
.footer-mini-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.22s ease, opacity 0.22s ease, box-shadow 0.22s ease;
}

.footer-pill-button {
    background: #eb2f2f;
    color: #ffffff;
    white-space: nowrap;
}

.footer-mini-button {
    margin-top: 0.8rem;
    min-height: 40px;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.footer-pill-button:hover,
.footer-mini-button:hover,
.footer-link-list a:hover,
.footer-hotline-number:hover,
.footer-legal-text a:hover {
    opacity: 0.9;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 0.95fr;
    gap: 2.8rem;
}

.footer-column {
    min-width: 0;
}

.footer-heading {
    margin: 0 0 1rem;
    color: #ffffff;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
}

.footer-subheading {
    margin: 0 0 0.75rem;
    color: #ffffff;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.footer-app-block {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 1rem;
    margin-bottom: 1.8rem;
    align-items: start;
}

.footer-qr-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    border-radius: 0.6rem;
    background: #ffffff;
}

.footer-qr-image {
    display: block;
    width: 84px;
    height: 84px;
    object-fit: cover;
}

.footer-brand-summary strong,
.footer-hotline-number,
.footer-brand-strip-item strong {
    display: block;
    color: #ffffff;
    font-weight: 700;
}

.footer-brand-summary span,
.footer-hotline-line,
.footer-hotline-note,
.footer-support-text,
.footer-brand-strip-item span,
.footer-legal-text {
    color: rgba(245, 247, 251, 0.76);
    line-height: 1.7;
}

.footer-social-group {
    margin-bottom: 1.8rem;
}

.footer-social-icons {
    display: flex;
    gap: 0.7rem;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 999px;
    background: #1a4ed8;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
}

.footer-social-icon:nth-child(2) {
    background: #2d7fff;
}

.footer-social-icon:nth-child(3) {
    background: #0f0f10;
}

.footer-hotline-group {
    display: grid;
    gap: 0.35rem;
}

.footer-hotline-line,
.footer-hotline-note,
.footer-support-text,
.footer-legal-text,
.footer-brand-summary span,
.footer-brand-strip-item span {
    margin: 0;
}

.footer-hotline-number,
.footer-link-list a,
.footer-legal-text a {
    color: #ffffff;
    text-decoration: none;
}

.footer-hotline-number {
    margin-bottom: 0.7rem;
    font-size: 1.45rem;
    line-height: 1.3;
}

.footer-link-list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-link-list a {
    color: rgba(245, 247, 251, 0.9);
    line-height: 1.6;
}

.footer-info-stack {
    display: grid;
    gap: 1rem;
}

.footer-info-panel {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
}

.footer-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.footer-tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.88rem;
}

.footer-brand-strip {
    display: grid;
    gap: 1rem;
    padding: 1.6rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand-strip-label {
    color: #ffffff;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.footer-brand-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: center;
}

.footer-brand-strip-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    min-height: 72px;
    padding: 0.8rem 1rem;
    text-align: left;
}

.footer-brand-strip-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand-strip-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-legal {
    padding-top: 1.25rem;
    text-align: center;
}

.footer-legal-text strong {
    color: #ffffff;
}

@media (max-width: 1100px) {
    .footer-main-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 820px) {
    .footer-top-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-brand-strip-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand-strip-item {
        justify-content: flex-start;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-left: 0;
        padding-right: 0;
    }

    .footer-brand-strip-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 640px) {
    .footer {
        padding-top: 2rem;
    }

    .footer-container {
        width: min(1250px, calc(100% - 1.25rem));
    }

    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .footer-app-block {
        grid-template-columns: 1fr;
    }

    .footer-qr-card {
        width: fit-content;
    }

    .footer-hotline-number {
        font-size: 1.2rem;
    }
}
