:root {
    --footer-bg: #080808;
    --footer-bg-secondary: #050505;
    --footer-text: rgba(255, 255, 255, 0.62);
    --footer-text-bright: #ffffff;
    --footer-accent: #d2a737;
    --footer-border: rgba(255, 255, 255, 0.13);
}


/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    margin-top: 0;
    color: var(--footer-text);
    background: var(--footer-bg);
    font-family: var(--font-family-base);
}


/* =========================================================
   Main layout
   ========================================================= */

.footer-main {
    padding: clamp(64px, 7vw, 96px) 0;
}

.footer-inner {
    display: grid;
    grid-template-columns:
        minmax(280px, 1.35fr)
        minmax(150px, 0.75fr)
        minmax(150px, 0.75fr)
        minmax(250px, 1fr);
    gap: clamp(42px, 5vw, 82px);

    width: min(calc(100% - 80px), 1320px);
    margin: 0 auto;
}


/* =========================================================
   Brand
   ========================================================= */

.footer-brand-block {
    max-width: 390px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 26px;
    text-decoration: none;
}

.footer-logo {
    display: block;
    width: auto;
    height: 30px;
}

.footer-description {
    max-width: 380px;
    margin: 0;

    color: var(--footer-text);

    font-size: 0.92rem;
    line-height: 1.72;
    letter-spacing: -0.01em;
}

.footer-contact-short {
    display: flex;
    flex-direction: column;
    gap: 12px;

    margin-top: 28px;
}

.footer-contact-short a {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    width: fit-content;

    color: rgba(255, 255, 255, 0.84);

    font-size: 0.88rem;
    line-height: 1.4;
    font-weight: 600;
    text-decoration: none;

    transition: color 0.2s ease;
}

.footer-contact-short a:hover {
    color: #ffffff;
}

.footer-contact-short i {
    color: var(--footer-accent);
    font-size: 0.9rem;
}


/* =========================================================
   Navigation blocks
   ========================================================= */

.footer-heading {
    margin: 2px 0 24px;

    color: var(--footer-text-bright);

    font-size: 0.72rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li + li {
    margin-top: 13px;
}

.footer-links a {
    color: var(--footer-text);

    font-size: 0.9rem;
    line-height: 1.45;
    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}


/* =========================================================
   Address and contact
   ========================================================= */

.footer-address {
    display: flex;
    flex-direction: column;
    gap: 22px;

    margin: 0;

    color: var(--footer-text);

    font-size: 0.9rem;
    line-height: 1.65;
    font-style: normal;
}

.footer-address-row {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.footer-address-row i {
    flex: 0 0 auto;
    margin-top: 4px;

    color: var(--footer-accent);
    font-size: 0.95rem;
}

.footer-contact-actions {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;

    margin-top: 27px;
}

.footer-directions-link,
.footer-quote-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #ffffff;

    font-size: 0.84rem;
    line-height: 1.4;
    font-weight: 650;
    text-decoration: none;

    transition:
        color 0.2s ease,
        gap 0.2s ease;
}

.footer-directions-link:hover,
.footer-quote-link:hover {
    gap: 12px;
    color: var(--footer-accent);
}


/* =========================================================
   Footer bottom
   ========================================================= */

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    background: var(--footer-bg-secondary);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    width: min(calc(100% - 80px), 1320px);
    min-height: 72px;
    margin: 0 auto;
    padding: 17px 0;
}

.footer-copyright {
    margin: 0;

    color: rgba(255, 255, 255, 0.43);

    font-size: 0.76rem;
    line-height: 1.5;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.43);

    font-size: 0.76rem;
    line-height: 1.4;
    text-decoration: none;

    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 991.98px) {
    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 54px 70px;

        width: calc(100% - 88px);
    }

    .footer-brand-block {
        max-width: 520px;
    }

    .footer-bottom-inner {
        width: calc(100% - 88px);
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767.98px) {
    .footer-main {
        padding: 62px 0 52px;
    }

    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 46px 28px;

        width: calc(100% - 30px);
    }

    .footer-brand-block,
    .footer-contact-block {
        grid-column: 1 / -1;
    }

    .footer-logo {
        height: 27px;
    }

    .footer-bottom-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;

        width: calc(100% - 30px);
        min-height: auto;
        padding: 22px 0;
    }

    .footer-bottom-links {
        gap: 17px;
    }
}


/* =========================================================
   Small mobile
   ========================================================= */

@media (max-width: 479.98px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-brand-block,
    .footer-contact-block {
        grid-column: auto;
    }
}


/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .footer-contact-short a,
    .footer-links a,
    .footer-directions-link,
    .footer-quote-link,
    .footer-bottom-links a {
        transition: none;
    }
}