.site-footer {
    padding-top: 68px;
    border-top: 1px solid #e1e9e8;
    background: #fff;
    color: #111;
}

.footer-grid {
    display: grid;
    grid-template-columns:
        minmax(280px, 1.55fr)
        repeat(3, minmax(150px, 0.7fr));
    gap: 46px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 210px;
    max-height: 66px;
    object-fit: contain;
}

.footer-brand p {
    max-width: 440px;
    color: #596160;
    font-size: 0.9rem;
}

.site-footer h2 {
    margin-bottom: 17px;
    color: #2b565e;
    font-family: "Outfit", sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.site-footer ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a {
    color: #5b6362;
    font-size: 0.88rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #2b565e;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e4e2;
    border-radius: 50%;
    color: #2b565e;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
    border-color: #2b565e;
    background: #eef5f4;
    transform: translateY(-2px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-social a:first-child svg {
    fill: currentColor;
    stroke: none;
}

.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 90;
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1e7e6;
    border-radius: 50%;
    background: #fff;
    color: #2b565e;
    box-shadow: 0 12px 28px rgba(31, 69, 76, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition:
        opacity 180ms ease,
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
    border-color: #2b565e;
    background: #eef5f4;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-contact li {
    display: grid;
    gap: 2px;
}

.footer-contact span {
    color: #7a8281;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.footer-bottom {
    margin-top: 55px;
    padding: 22px 0;
    border-top: 1px solid #e5eceb;
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.footer-bottom p {
    margin: 0;
    color: #777f7e;
    font-size: 0.8rem;
}

.footer-bottom__inner > div {
    display: flex;
    gap: 20px;
}

.footer-bottom a {
    font-size: 0.78rem;
}

@media (max-width: 950px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .back-to-top {
        right: 16px;
        bottom: 18px;
        width: 44px;
        height: 44px;
    }
}
