@font-face {
    font-family: "Urbanist";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/urbanist-latin.woff2') format('woff2');
}

body {
    margin: 0;
}

.site-footer {
    --footer-ink: #071735;
    --footer-orange: #fd8d32;
    color: var(--footer-ink);
    border-top: 1px solid rgba(7, 23, 53, 0.15);
    background: #ffffff;
    font-family: "Urbanist", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
    box-sizing: border-box;
}

.site-footer a {
    color: inherit;
    touch-action: manipulation;
}

.site-footer__main {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 2160px);
    min-height: clamp(500px, 33vw, 570px);
    margin: 0 auto;
    border-bottom: 1px solid rgba(7, 23, 53, 0.15);
}

.site-footer__panel {
    min-width: 0;
}

.site-footer__panel + .site-footer__panel {
    border-left: 1px solid rgba(7, 23, 53, 0.15);
}

.site-footer__contact,
.site-footer__brand,
.site-footer__navigation {
    display: grid;
    align-items: center;
}

.site-footer__contact,
.site-footer__navigation {
    padding: clamp(38px, 3.3vw, 60px) clamp(30px, 3vw, 62px);
}

.site-footer__contact-inner {
    display: grid;
    justify-items: start;
    width: 100%;
}

.site-footer__contact-links {
    display: grid;
    justify-items: start;
}

.site-footer__contact-link {
    position: relative;
    display: inline-block;
    padding-bottom: 7px;
    font-size: clamp(12px, 0.72vw, 14px);
    font-weight: 580;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-footer__contact-link + .site-footer__contact-link {
    margin-top: clamp(22px, 1.8vw, 32px);
}

.site-footer__contact-link::after,
.site-footer__policies a::after,
.site-footer__menu a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    content: "";
    background: currentColor;
    transform: scaleX(1);
    transform-origin: left center;
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease;
}

.site-footer__contact-link:focus-visible,
.site-footer__policies a:focus-visible,
.site-footer__menu a:focus-visible {
    color: var(--footer-orange);
}

.site-footer__contact-link:focus-visible::after,
.site-footer__policies a:focus-visible::after,
.site-footer__menu a:focus-visible::after {
    animation: dyer-footer-underline 520ms cubic-bezier(0.35, 0, 0.2, 1) both;
}

@media (hover: hover) and (pointer: fine) {
    .site-footer__contact-link:hover,
    .site-footer__policies a:hover,
    .site-footer__menu a:hover {
        color: var(--footer-orange);
    }

    .site-footer__contact-link:hover::after,
    .site-footer__policies a:hover::after,
    .site-footer__menu a:hover::after {
        animation: dyer-footer-underline 520ms cubic-bezier(0.35, 0, 0.2, 1) both;
    }
}

.site-footer__offices {
    display: grid;
    gap: clamp(22px, 1.8vw, 32px);
    width: 100%;
    margin-top: clamp(30px, 2.6vw, 46px);
}

.site-footer__office {
    display: grid;
    gap: 11px;
}

.site-footer__office-label,
.site-footer__nav-heading {
    margin: 0;
    font-size: clamp(10px, 0.65vw, 13px);
    font-weight: 680;
    line-height: 1.3;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.site-footer__office-label {
    color: var(--footer-orange);
}

.site-footer__nav-heading {
    color: var(--footer-orange);
    font-size: clamp(11px, 0.76vw, 15px);
}

.site-footer__address {
    max-width: 500px;
    margin: 0;
    font-size: clamp(10px, 0.63vw, 13px);
    font-style: normal;
    font-weight: 560;
    line-height: 1.72;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-footer__brand {
    justify-items: center;
    padding: 40px;
}

.site-footer__logo {
    display: block;
    width: min(58%, 330px);
}

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

.site-footer__navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
    align-items: start;
    gap: clamp(36px, 4vw, 76px);
}

.site-footer__nav-group {
    min-width: 0;
}

.site-footer__nav-heading {
    margin-bottom: clamp(30px, 2.5vw, 44px);
}

.site-footer__menu {
    display: grid;
    gap: clamp(22px, 2vw, 34px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__menu li {
    min-width: 0;
}

.site-footer__menu a {
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
    font-size: clamp(10px, 0.65vw, 13px);
    font-weight: 620;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.site-footer__menu a::after {
    background: var(--footer-orange);
    transform: scaleX(0);
}

.site-footer__menu .is-current > a {
    color: var(--footer-orange);
}

.site-footer__bottom {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    width: min(100%, 2160px);
    min-height: clamp(76px, 6vw, 94px);
    margin: 0 auto;
    padding: 18px clamp(24px, 3.15vw, 68px);
}

.site-footer__policies,
.site-footer__copyright {
    font-size: clamp(10px, 0.65vw, 13px);
    font-weight: 560;
    line-height: 1.4;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.site-footer__policies {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px clamp(18px, 1.6vw, 30px);
    justify-self: start;
}

.site-footer__policies a {
    position: relative;
    padding-bottom: 5px;
    text-decoration: none;
}

.site-footer__policies a::after {
    transform: scaleX(0);
}

.site-footer__policies span {
    opacity: 0.78;
}

.site-footer__copyright {
    justify-self: center;
    text-align: center;
}

.site-footer__back-top {
    display: grid;
    place-items: center;
    justify-self: end;
    width: 44px;
    height: 44px;
    color: var(--footer-ink);
    text-decoration: none;
    transition: color 180ms ease, transform 220ms ease;
}

.site-footer__back-top span {
    position: relative;
    display: block;
    width: 1px;
    height: 24px;
    background: currentColor;
}

.site-footer__back-top span::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 9px;
    height: 9px;
    border-top: 1px solid currentColor;
    border-left: 1px solid currentColor;
    content: "";
    transform: translate(-50%, 1px) rotate(45deg);
}

.site-footer__back-top:focus-visible {
    color: var(--footer-orange);
    transform: translateY(-4px);
}

@media (hover: hover) and (pointer: fine) {
    .site-footer__back-top:hover {
        color: var(--footer-orange);
        transform: translateY(-4px);
    }
}

.site-footer a:focus-visible {
    outline: 2px solid var(--footer-orange);
    outline-offset: 5px;
}

@media (max-width: 1100px) {
    .site-footer__contact,
    .site-footer__navigation {
        padding-right: 30px;
        padding-left: 30px;
    }

    .site-footer__navigation {
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .site-footer__main {
        grid-template-columns: 1fr;
    }

    .site-footer__panel + .site-footer__panel {
        border-left: 0;
        border-top: 1px solid rgba(7, 23, 53, 0.15);
    }

    .site-footer__contact,
    .site-footer__navigation {
        padding: 50px clamp(24px, 7vw, 64px);
    }

    .site-footer__offices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(28px, 7vw, 70px);
    }

    .site-footer__brand {
        min-height: 190px;
        padding: 36px 24px;
    }

    .site-footer__logo {
        width: min(48%, 270px);
    }

    .site-footer__navigation {
        min-height: 320px;
    }

    .site-footer__bottom {
        grid-template-columns: 1fr auto;
        gap: 24px;
    }

    .site-footer__copyright {
        grid-row: 2;
        grid-column: 1;
        justify-self: start;
        text-align: left;
    }

    .site-footer__back-top {
        grid-row: 1 / span 2;
        grid-column: 2;
    }
}

@media (max-width: 520px) {
    .site-footer__contact,
    .site-footer__navigation {
        padding: 44px 24px;
    }

    .site-footer__offices {
        grid-template-columns: 1fr;
    }

    .site-footer__address {
        line-height: 1.7;
    }

    .site-footer__brand {
        min-height: 150px;
        padding: 32px 24px;
    }

    .site-footer__logo {
        width: min(56%, 220px);
    }

    .site-footer__navigation {
        min-height: 320px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        gap: 22px;
    }

    .site-footer__nav-heading {
        margin-bottom: 24px;
    }

    .site-footer__menu {
        gap: 20px;
    }

    .site-footer__menu a {
        font-size: 9px;
        letter-spacing: 0.12em;
    }

    .site-footer__bottom {
        min-height: 112px;
        padding-right: 76px;
    }

    .site-footer__policies,
    .site-footer__copyright {
        font-size: 9px;
        letter-spacing: 0.1em;
    }

    .site-footer__back-top {
        margin-right: -56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer *,
    .site-footer *::before,
    .site-footer *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@keyframes dyer-footer-underline {
    0% {
        transform: scaleX(0.15) translateX(0);
        transform-origin: left center;
    }
    55% {
        transform: scaleX(0.38) translateX(145%);
        transform-origin: left center;
    }
    100% {
        transform: scaleX(1) translateX(0);
        transform-origin: left center;
    }
}
