.site-footer {
    margin-top: 32px;
    padding: 30px 0 14px;
    background: var(--footer-background, #0f172a);
    color: var(--footer-text, #cbd5e1);
    font-family: var(--footer-font, var(--font-body));
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(230px, 1.8fr) repeat(3, minmax(120px, 1fr));
    gap: 24px;
    padding-bottom: 22px;
}

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

.footer-brand {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin-bottom: 10px;
    color: var(--footer-text, #fff);
    font-size: 1.25rem;
    font-weight: 750;
    letter-spacing: -0.025em;
}

.footer-brand:hover,
.footer-column a:hover,
.footer-contact a:hover {
    color: var(--footer-hover, #fff);
    text-decoration: none;
}

.footer-brand img {
    display: block;
    max-width: 175px;
    max-height: 42px;
    object-fit: contain;
    object-position: left center;
}

.footer-description {
    max-width: 340px;
    margin: 0 0 12px;
    color: var(--footer-text, #aab6c8);
    font-size: 0.93rem;
}

.footer-company {
    display: grid;
    gap: 3px;
    margin-bottom: 9px;
    color: var(--footer-text, #e2e8f0);
    font-size: 0.88rem;
}

.footer-company small {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 0.75rem;
}

.footer-contact {
    display: grid;
    gap: 7px;
    margin: 0;
    font-size: 0.86rem;
    font-style: normal;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--footer-text, #cbd5e1);
    overflow-wrap: anywhere;
}

.footer-contact-item svg {
    width: 17px;
    height: 17px;
    flex: none;
    margin-top: 2px;
    color: #93c5fd;
}

.footer-socials {
    margin-top: 14px;
}

.footer-socials h2 {
    margin: 0 0 8px;
    color: var(--footer-text, #fff);
    font-size: .9rem;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-social-links a {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: color .18s ease, transform .18s ease;
}

.footer-social-icon {
    display: block;
    width: 18px;
    height: 18px;
}

.footer-social-links a:hover {
    color: var(--footer-hover, #93c5fd);
    transform: translateY(-2px);
}

.footer-assurance {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding: 14px 0;
    border-top: 1px solid rgba(203, 213, 225, .16);
}

.footer-assurance > p {
    margin: 0;
    color: var(--footer-text, #cbd5e1);
    font-size: .86rem;
}

.footer-payment-methods {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px 13px;
    color: #cbd5e1;
    font-size: .8rem;
}

.footer-payment-methods > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.footer-payment-methods img {
    width: auto;
    max-width: 58px;
    height: 32px;
    padding: 3px 5px;
    border-radius: 4px;
    background: #fff;
    object-fit: contain;
}

.footer-column h2 {
    margin: 2px 0 10px;
    color: var(--footer-text, #fff);
    font-size: 0.95rem;
    font-weight: 700;
}

.footer-column a {
    display: block;
    width: fit-content;
    margin: 0 0 7px;
    color: var(--footer-link, #b8c4d6);
    font-size: 0.88rem;
    line-height: 1.5;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 12px;
    border-top: 1px solid rgba(203, 213, 225, 0.16);
    color: var(--footer-text, #94a3b8);
    font-size: 0.8rem;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--primary, #2563eb);
    color: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .24);
    font: inherit;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.back-to-top[hidden] {
    display: none;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 28px rgba(15, 23, 42, .3);
}

.back-to-top:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.back-to-top svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 1050px) {
    .footer-main {
        grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(140px, 1fr));
    }

    .footer-about {
        grid-row: span 2;
    }
}

@media (max-width: 640px) {
    .site-footer {
        margin-top: 26px;
        padding-top: 24px;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 16px;
        padding-bottom: 18px;
    }

    .footer-about {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        right: 14px;
        bottom: 14px;
    }

    body:has(.support-chat-widget) .back-to-top {
        bottom: 70px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}
