/* ========================================
   FOOTER — CONFIGURATION
   ======================================== */

.site-footer {
    --footer-background: var(--white, #ffffff);
    --footer-blue: var(--primary-700, #006cff);
    --footer-blue-light: var(--primary-50, #edf5ff);
    --footer-text: var(--neutral-900, #0d1014);
    --footer-muted: var(--neutral-700, #424b57);
    --footer-secondary: var(--neutral-700, #424b57);
    --footer-border: var(--neutral-100, #dae5f2);
    position: relative;
    width: 100%;
    background: var(--footer-background);
    color: var(--footer-text);
}


/* ========================================
   FOOTER — CONTAINER
   ======================================== */

.site-footer__container {
    width: 100%;
    max-width: var(--container-width, 1440px);
    margin: 0 auto;
    padding:
        32px
        var(--container-padding, clamp(24px, 4vw, 56px))
        0;
}


/* ========================================
   FOOTER — MAIN GRID
   ======================================== */

.site-footer__grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(0, 0.8fr)
        minmax(0, 1fr)
        minmax(0, 1fr);
    align-items: start;
    gap: clamp(24px, 3vw, 48px);
    padding-bottom: 32px;
}


/* ========================================
   FOOTER — BRAND
   ======================================== */

.site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: 16px;
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
}

.site-footer__logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 40px;
}

.site-footer__description {
    max-width: 260px;
    margin: 0;
    color: var(--footer-muted);
    font-size: 14px;
    line-height: 1.65;
}


/* ========================================
   FOOTER — APP STORE / GOOGLE PLAY
   ======================================== */

.site-footer__stores {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.site-footer__store {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 120px;
    min-height: 42px;
    gap: 9px;
    padding: 6px 12px;
    border: 1px solid var(--neutral-800, #272e38);
    border-radius: 7px;
    background: var(--neutral-900, #0d1014);
    color: var(--white, #ffffff);
    text-decoration: none;
    transition:
        background 180ms ease,
        transform 180ms ease;
}

.site-footer__store:hover {
    background: var(--neutral-800, #272e38);
    transform: translateY(-2px);
}

.site-footer__store > svg {
    display: block;
    flex-shrink: 0;
    width: 23px;
    height: 23px;
}

.site-footer__store-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-family:
        var(--navbar-font, Roboto, sans-serif);
}

.site-footer__store-text small {
    color: var(--neutral-100, #dae5f2);
    font-size: 9px;
    line-height: 1.2;
}

.site-footer__store-text strong {
    color: var(--white, #ffffff);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}


/* ========================================
   FOOTER — COLUMNS
   ======================================== */

.site-footer__column {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 18px;
    padding-top: 5px;
}

.site-footer__column h2 {
    margin: 0;
    color: var(--footer-text);
    font-family:
        var(--font-heading, "Plus Jakarta Sans", sans-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}


/* ========================================
   FOOTER — MENU LINKS
   ======================================== */

.site-footer__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__links li {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.site-footer__links a {
    display: inline-block;
    overflow-wrap: anywhere;
    color: var(--footer-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    transition:
        color 180ms ease;
}

.site-footer__links a:hover {
    color: var(--footer-blue);
}


/* ========================================
   FOOTER — CONTACT
   ======================================== */

.site-footer__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.site-footer__contact {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    color: var(--footer-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    transition:
        color 180ms ease;
}

.site-footer__contact svg {
    display: block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--footer-blue);
}

.site-footer__contact span {
    overflow-wrap: anywhere;
}

.site-footer__contact:hover {
    color: var(--footer-blue);
}


/* ========================================
   FOOTER — SOCIAL NETWORKS
   ======================================== */

.site-footer__socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-footer__social {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--footer-blue-light);
    color: var(--footer-blue);
    transition:
        background 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.site-footer__social svg {
    display: block;
    width: 19px;
    height: 19px;
}

.site-footer__social:hover {
    background: var(--footer-blue);
    color: var(--white, #ffffff);
    transform: translateY(-2px);
}


/* ========================================
   FOOTER — PAYMENT METHODS
   ======================================== */

.site-footer__payments {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    min-height: 26px;
    margin-top: 2px;
}

.site-footer__payments a {
    display: inline-flex;
    align-items: center;
}

.site-footer__payments img {
    display: block;
    max-width: 100%;
    object-fit: contain;
}

.site-footer__payment--comgate {
    width: 88px;
    height: auto;
}

.site-footer__payment--visa {
    width: 42px;
    height: auto;
}

.site-footer__payment--mastercard {
    width: 38px;
    height: auto;
}


/* ========================================
   FOOTER — BOTTOM
   ======================================== */

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    min-height: 60px;
    padding: 18px 0;
    border-top: 1px solid var(--footer-border);
}

.site-footer__copyright,
.site-footer__author {
    margin: 0;
    color: var(--footer-secondary);
    font-size: 12px;
    line-height: 1.5;
}


/* Legal navigation */

.site-footer__legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.site-footer__legal a,
.site-footer__author a {
    color: var(--footer-muted);
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
    transition:
        color 180ms ease;
}

.site-footer__legal a:hover,
.site-footer__author a:hover {
    color: var(--footer-blue);
}


/* ========================================
   FOOTER — KEYBOARD ACCESSIBILITY
   ======================================== */

.site-footer a:focus-visible {
    outline: 2px solid var(--footer-blue);
    outline-offset: 4px;
    border-radius: 4px;
}


/* ========================================
   FOOTER — SMALL DESKTOP
   ======================================== */

@media (min-width: 1025px) and (max-width: 1200px) {

    .site-footer__grid {
        gap: 24px;
    }

    .site-footer__store {
        min-width: 110px;
        padding-inline: 8px;
    }

    .site-footer__store-text strong {
        font-size: 14px;
    }

    .site-footer__payments {
        gap: 10px;
    }

}


/* ========================================
   FOOTER — TABLET
   ======================================== */

@media (max-width: 1024px) {

    .site-footer__container {
        padding: 28px 24px 0;
    }

    .site-footer__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 32px 48px;
        padding-bottom: 28px;
    }

    .site-footer__column {
        padding-top: 0;
    }

    .site-footer__bottom {
        justify-content: flex-start;
        gap: 14px 28px;
    }

}


/* ========================================
   FOOTER — MOBILE
   ======================================== */

@media (max-width: 760px) {

    .site-footer__container {
        padding: 24px 20px 0;
    }

    .site-footer__grid {
        gap: 28px 20px;
        padding-bottom: 24px;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
        gap: 12px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--footer-border);
    }

    .site-footer__logo img {
        height: 36px;
    }

    .site-footer__description {
        max-width: 320px;
    }

    .site-footer__stores {
        gap: 10px;
    }

    .site-footer__column {
        gap: 14px;
    }

    .site-footer__column h2 {
        font-size: 16px;
    }

    .site-footer__links {
        gap: 10px;
    }

    .site-footer__links a {
        font-size: 13px;
    }

    .site-footer__column--contact {
        grid-column: 1 / -1;
        padding-top: 20px;
        border-top: 1px solid var(--footer-border);
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px 0 24px;
    }

    .site-footer__legal {
        gap: 10px 20px;
    }

}


/* ========================================
   FOOTER — REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    .site-footer *,
    .site-footer *::before,
    .site-footer *::after {
        animation: none !important;
        transition: none !important;
    }

    .site-footer__store:hover,
    .site-footer__social:hover {
        transform: none;
    }

}
