/* ==========================================================================
   Site footer
   Keeps the global footer useful on every route with real navigation, shared
   company details, and a compact responsive layout.
   ========================================================================== */

.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 100%, rgba(65, 197, 149, 0.22), transparent 34%),
        radial-gradient(circle at 92% 88%, rgba(116, 118, 255, 0.32), transparent 38%),
        #101116;
    color: #d9dddf;
}

.site-footer::before {
    position: absolute;
    z-index: -1;
    top: -220px;
    right: -180px;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.site-footer::after {
    position: absolute;
    z-index: -1;
    top: -135px;
    right: -95px;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    content: "";
}

.site-footer a {
    color: #eef2f3;
}

.site-footer a:focus-visible {
    outline: 2px solid #a9aaff;
    outline-offset: 5px;
}

.site-footer__inner {
    position: relative;
    z-index: 1;
}

.site-footer__main {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(500px, 1.7fr);
    gap: clamp(48px, 7vw, 120px);
    padding: 34px 0 28px;
}

.site-footer__logo {
    display: inline-block;
    margin-bottom: 18px;
}

.site-footer__logo img {
    display: block;
    width: auto;
    height: 30px;
}

.site-footer__summary {
    max-width: 430px;
    margin: 0;
    color: rgba(238, 242, 243, 0.7);
    font-size: 15px;
    line-height: 1.7;
}

.site-footer__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    max-width: 460px;
    margin-top: 16px;
    color: rgba(238, 242, 243, 0.58);
    font-size: 14px;
    font-style: normal;
    line-height: 1.7;
}

.site-footer__contact a {
    position: relative;
    color: #ffffff;
    font-weight: 500;
}

.site-footer__contact a::after,
.site-footer__nav-group a::after,
.site-footer__legal a::after {
    position: absolute;
    right: 0;
    bottom: -3px;
    left: 0;
    height: 1px;
    background: currentColor;
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.site-footer__contact a:hover::after,
.site-footer__nav-group a:hover::after,
.site-footer__legal a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.site-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    gap: 38px;
}

.site-footer__nav-group h3 {
    margin: 0 0 16px;
    color: rgba(238, 242, 243, 0.48);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-footer__nav-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__nav-group li + li {
    margin-top: 9px;
}

.site-footer__nav-group a {
    position: relative;
    display: inline-block;
    color: #eef2f3;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
}

.site-footer__nav-group a:hover,
.site-footer__contact a:hover,
.site-footer__legal a:hover {
    color: #ffffff;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px 28px;
    padding: 14px 0 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(238, 242, 243, 0.55);
    font-size: 13px;
}

.site-footer__bottom p {
    margin: 0;
    color: inherit;
    font-size: inherit;
}

.site-footer__social {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__social li {
    margin: 0;
}

.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: rgba(238, 242, 243, 0.72);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.site-footer__social a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.34);
    color: #ffffff;
}

.site-footer__social .social-icon {
    display: block;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.site-footer__legal a {
    position: relative;
    color: rgba(238, 242, 243, 0.72);
}

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

    .site-footer__brand {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 50px;
    }

    .site-footer__logo {
        grid-column: 1 / -1;
    }

    .site-footer__contact {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .site-footer__brand {
        display: block;
    }

    .site-footer__contact {
        margin-top: 24px;
    }

    .site-footer__nav {
        grid-template-columns: 1fr 1fr;
        row-gap: 40px;
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__social {
        order: -1;
    }

    .site-footer__legal {
        justify-content: flex-start;
        gap: 16px 22px;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .site-footer__contact a::after,
    .site-footer__nav-group a::after,
    .site-footer__legal a::after,
    .site-footer__social a {
        transition: none;
    }
}

.site-footer__tm {
    display: block;
    margin-top: 5px;
    color: rgba(238, 242, 243, 0.42);
    font-size: 12px;
    line-height: 1.55;
    max-width: 62ch;
}

.site-footer__tm sup {
    font-size: 0.72em;
    top: -0.5em;
    margin-left: 1px;
}

@media (max-width: 767px) {
    .site-footer__tm {
        margin-top: 8px;
    }
}
