/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    width: 100%;
    height: 230px;
    background: #f4f4f4;
}

.site-footer__inner {
    position: relative;
    height: 230px;
}

.site-footer__main {
    display: grid;
    height: 100%;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
    padding-bottom: 20px;
}


/* =========================================================
   FOOTER LOGO
========================================================= */

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

.site-footer__logo-image {
    display: block;
    width: auto;
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
}

.site-footer__logo-text {
    color: var(--color-primary);
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
}


/* =========================================================
   FOOTER MENU
========================================================= */

.site-footer__navigation {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu li {
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: var(--color-dark);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.footer-menu a:hover,
.footer-menu .current-menu-item > a {
    color: var(--color-primary);
}


/* =========================================================
   FOOTER BUTTONS
========================================================= */

.site-footer__actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

button.site-footer__button {
    margin: 0;
    border: 0;
    font: inherit;
    cursor: pointer;
    appearance: none;
}

.site-footer__button {
    display: inline-flex;
    min-width: 142px;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 999px;
    color: var(--color-white);
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.site-footer__button:hover {
    color: var(--color-white);
    transform: translateY(-2px);
}

.site-footer__button--contact {
    background: var(--color-secondary);
}

.site-footer__button--contact:hover {
    background: var(--color-primary);
}

.site-footer__button--dealer {
    background: var(--color-primary);
}

.site-footer__button--dealer:hover {
    background: var(--color-secondary);
}


/* =========================================================
   COPYRIGHT
========================================================= */

.site-footer__copyright {
    position: absolute;
    right: 0;
    bottom: 37px;
    margin: 0;
    color: #a0a0a0;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {
    .site-footer {
        height: auto;
        min-height: 230px;
    }

    .site-footer__inner {
        height: auto;
        min-height: 230px;
        padding-top: 45px;
        padding-bottom: 35px;
    }

    .site-footer__main {
        height: auto;
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 32px;
        padding-bottom: 45px;
    }

    .site-footer__logo {
        width: 170px;
    }

    .site-footer__logo-image {
        max-width: 170px;
        max-height: 85px;
    }

    .site-footer__navigation {
        justify-content: flex-end;
    }

    .site-footer__actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

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

@media (max-width: 767px) {
    .site-footer {
        height: auto;
        min-height: 0;
    }

    .site-footer__inner {
        height: auto;
        min-height: 0;
        padding-top: 45px;
        padding-bottom: 28px;
    }

    .site-footer__main {
        display: flex;
        height: auto;
        flex-direction: column;
        align-items: center;
        gap: 34px;
        padding-bottom: 0;
    }


    /* Logo */

    .site-footer__logo {
        display: flex;
        width: 170px;
        justify-content: center;
    }

    .site-footer__logo-image {
        width: auto;
        max-width: 170px;
        max-height: 85px;
    }


/* Navigation */

.site-footer__navigation {
    display: flex;
    width: 100%;
    justify-content: center;
}

.footer-menu {
    display: grid;
    width: 100%;
    max-width: 310px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 22px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.footer-menu > li {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: left;
}

.footer-menu > li > a {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.3;
    text-align: left;
    white-space: nowrap;
}

.footer-menu > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: auto;
    justify-self: center;
    text-align: center;
}

.footer-menu > li:last-child:nth-child(odd) > a {
    width: auto;
    text-align: center;
    white-space: nowrap;
}

    /* Buttons */

    .site-footer__actions {
        display: grid;
        width: 100%;
        max-width: 390px;
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 0 auto;
    }

    .site-footer__button {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        padding: 12px 22px;
    }


    /* Copyright */

    .site-footer__copyright {
        position: static;
        width: 100%;
        margin: 38px 0 0;
        text-align: center;
    }
}