.site-footer {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 3.5rem 1.5rem 1.25rem;
    color: #f8fafc;
    background:
        radial-gradient(ellipse at 12% 0, rgba(147, 51, 234, 0.13), transparent 34rem),
        linear-gradient(180deg, #101222, #090b15);
    border-top: 1px solid rgba(196, 181, 253, 0.12);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: max(1.5rem, calc((100% - 1120px) / 2));
    right: max(1.5rem, calc((100% - 1120px) / 2));
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.65), rgba(236, 72, 153, 0.4), transparent);
}

.site-footer__inner {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.site-footer__top {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 1.5fr);
    gap: clamp(2rem, 6vw, 5rem);
    padding-bottom: 2.5rem;
}

.site-footer__brand {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.9rem;
    color: inherit;
    text-decoration: none;
}

.site-footer__mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #9333ea;
    border-radius: 13px;
    background: rgba(196, 181, 253, 0.85);
    color: #9333ea;
    font-size: 1.2rem;
    box-shadow: 0 0 18px rgba(147, 51, 234, 0.3);
}

.site-footer__brand-copy {
    display: grid;
    gap: 0.35rem;
}

.site-footer__brand-copy strong {
    font-family: "Fredoka", sans-serif;
    font-size: 1.35rem;
    line-height: 1.2;
}

.site-footer__brand-copy small {
    max-width: 260px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    line-height: 1.6;
}

.site-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.site-footer__group h2 {
    margin: 0 0 0.9rem;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.site-footer__group ul {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__group a {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.9rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.18s ease;
}

.site-footer__group a:hover {
    color: #d8b4fe;
}

.site-footer__group a:focus-visible,
.site-footer__brand:focus-visible,
.site-footer__bottom a:focus-visible {
    outline: 2px solid #c4b5fd;
    outline-offset: 4px;
    border-radius: 3px;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.8rem;
    line-height: 1.5;
}

.site-footer__bottom a {
    color: #c4b5fd;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 720px) {
    .site-footer {
        padding: 2.75rem 1.25rem 1rem;
    }

    .site-footer__top {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }

    .site-footer__nav {
        gap: 1rem;
    }
}

@media (max-width: 420px) {
    .site-footer__nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1.5rem;
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer__group a {
        transition: none;
    }
}
