.site-footer {
    flex: 0 0 auto;
    margin-top: 0;
    background: var(--brand-2);
    color: var(--bg);
}

[data-theme="dark"] .site-footer {
    background: #050505;
    color: var(--text);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1.1fr;
    gap: 32px;
    padding: 48px 0;
}

.brand--footer {
    align-items: center;
    background: #ffffff;
}

.footer-brand p,
.footer-newsletter p {
    color: rgba(255, 255, 255, 0.72);
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 15px;
    text-transform: uppercase;
}

.site-footer ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.74);
}

.footer-socials,
.donate-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-socials a {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    color: #ffffff;
}

.footer-socials svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.footer-newsletter form {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.footer-newsletter input {
    min-width: 0;
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 0 12px;
}

.footer-newsletter button {
    border: 0;
    border-radius: var(--radius);
    background: var(--brand);
    color: #111111;
    padding: 0 14px;
    font-weight: 900;
}

.footer-bottom {
    display: grid;
    min-height: 54px;
    align-items: center;
    justify-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    text-align: center;
}

.app-download {
    flex: 0 0 auto;
    overflow: hidden;
    background: #f7f7f7;
    color: #111111;
}

[data-theme="dark"] .app-download {
    background: #e7e3dc;
    color: #111111;
}

.app-download__inner {
    display: grid;
    min-height: 250px;
    grid-template-columns: minmax(160px, 0.8fr) minmax(260px, 1fr) minmax(220px, 0.9fr);
    gap: 28px;
    align-items: center;
}

.app-download__qr,
.app-download__phone {
    display: flex;
    justify-content: center;
}

.app-download__qr img {
    width: 150px;
    height: 150px;
}

.app-download__content span,
.support-modal__kicker {
    color: var(--brand);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.app-download h2 {
    max-width: 420px;
    margin: 6px 0 20px;
    font-size: 28px;
    line-height: 1.18;
}

.app-download__stores {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.app-download__stores img {
    height: 50px;
}

.app-download__phone img {
    height: 300px;
    max-width: 100%;
    object-fit: contain;
    transform: translateY(-18px);
}

.partners-strip {
    flex: 0 0 auto;
    background: #ffffff;
    color: #111111;
    padding: 58px 0 66px;
}

[data-theme="dark"] .partners-strip {
    background: #ddd9d1;
    color: #111111;
}

.partners-strip__inner {
    display: grid;
    justify-items: center;
    gap: 18px;
}

.partners-strip h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.partners-strip__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.partners-strip__logo {
    display: inline-flex;
    min-height: 72px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    padding: 10px 14px;
    transition: transform 180ms var(--ease), background-color 180ms var(--ease);
}

.partners-strip__logo--placeholder {
    cursor: default;
}

a.partners-strip__logo:hover {
    background: #f1eee6;
    transform: translateY(-2px);
}

.partners-strip__logos img {
    max-height: 58px;
}

.support-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.support-modal[hidden] {
    display: none;
}

.support-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(8px);
}

.support-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 26px;
}

.support-modal__dialog h2 {
    margin: 6px 0 8px;
    font-size: 28px;
}

.support-modal__dialog p {
    margin: 0 0 18px;
    color: var(--muted);
}

.support-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.support-modal__close span {
    position: absolute;
    top: 18px;
    left: 10px;
    width: 16px;
    height: 2px;
    background: currentColor;
}

.support-modal__close span:first-child {
    transform: rotate(45deg);
}

.support-modal__close span:last-child {
    transform: rotate(-45deg);
}

.support-modal__options {
    display: grid;
    gap: 10px;
}

.support-modal__options a,
.support-modal__options button {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
    color: var(--text);
    padding: 12px 14px;
    text-align: left;
}

.support-modal__options a:hover,
.support-modal__options button:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--text);
}

.support-modal__options span {
    font-weight: 850;
}

.support-modal__options small {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.support-modal__status {
    min-height: 20px;
    margin: 12px 0 0;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
}

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

    .app-download__inner {
        grid-template-columns: 0.7fr 1fr;
        padding: 26px 0;
    }

    .app-download__phone {
        grid-column: 1 / -1;
    }

    .app-download__phone img {
        height: 240px;
        transform: none;
    }
}

@media (max-width: 620px) {
    .footer-grid {
        grid-template-columns: 1fr;
        padding: 36px 0;
    }

    .footer-newsletter form {
        align-items: stretch;
        flex-direction: column;
    }

    .footer-newsletter input,
    .footer-newsletter button {
        min-height: 42px;
    }

    .app-download__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .app-download h2 {
        font-size: 24px;
    }

    .app-download__stores {
        justify-content: center;
    }

    .partners-strip {
        padding: 42px 0 50px;
    }

    .support-modal__dialog {
        padding: 22px;
    }
}
