.site-footer {
    background: #f0f1f1;
    color: #666;
}

.site-footer__nav {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #d8d9d9;
}

.site-footer__group {
    flex: 1 1 0;
    min-width: 0;
}

.site-footer__group--social {
    flex-grow: 2.1;
}

.site-footer__title {
    color: #111;
    line-height: 1.4;
}

.site-footer__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #111;
    cursor: default;
}

.site-footer__toggle-icon {
    display: none;
}

.site-footer__links li + li {
    margin-top: 12px;
}

.site-footer__links a,
.site-footer__legal a {
    color: #666;
    transition: color .35s;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible,
.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
    color: var(--Primary-color);
}

.site-footer__socials {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-footer__social {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    line-height: 1;
    transition: transform .35s;
}

.site-footer__social-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    opacity: .72;
    transition: opacity .35s;
}

.site-footer__social-qr {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    left: 50%;
    bottom: calc(100% + 14px);
    width: max-content;
    padding: 8px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity .3s, visibility .3s, transform .3s;
}

.site-footer__social-qr-title {
    color: #333;
    line-height: 1.4;
    white-space: nowrap;
}

.site-footer__social-qr::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    border: 7px solid transparent;
    border-top-color: #fff;
    transform: translateX(-50%);
}

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

.site-footer__social:hover,
.site-footer__social:focus-visible {
    transform: translateY(-3px);
}

.site-footer__social:hover .site-footer__social-icon,
.site-footer__social:focus .site-footer__social-icon {
    opacity: 1;
}

.site-footer__social:hover .site-footer__social-qr,
.site-footer__social:focus .site-footer__social-qr {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: #666;
}

.site-footer__copyright {
    line-height: 1.8;
}
.site-footer__copyright a{
    transition: all 0.5s;
    color: #666;
}
.site-footer__copyright a:hover{
    color: var(--Primary-color);
}
.site-footer__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0 3px;
    border-radius: 50%;
    background: #d83b29;
    color: #f5c342;
    line-height: 1;
    vertical-align: -2px;
}

.site-footer__legal {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-footer__legal li + li::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 14px;
    margin: 0 12px;
    background: #aaa;
    vertical-align: -2px;
}

@media (max-width: 1200px) {
    .site-footer__nav {
        flex-wrap: wrap;
        row-gap: 50px;
        justify-content: space-between;
    }

    .site-footer__group {
        flex: 0 0 auto;
    }

    .site-footer__group--social {
        flex-basis: 100%;
        text-align: center;
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
    .site-footer__socials{
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .site-footer__nav {
        row-gap: 0;
        border-bottom: 0;
        padding-bottom: 0;
    }

    .site-footer__group,
    .site-footer__group--social {
        width: 100%;
        flex-basis: 100%;
        border-bottom: 1px solid #d8d9d9;
        padding: 20px 0;
    }

    .site-footer__toggle {
        cursor: pointer;
    }

    .site-footer__toggle-icon {
        position: relative;
        display: block;
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .site-footer__toggle-icon::before,
    .site-footer__toggle-icon::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 14px;
        height: 2px;
        background: #666;
        transform: translate(-50%, -50%);
        transition: transform .3s;
    }

    .site-footer__toggle-icon::after {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .site-footer__group.is-open .site-footer__toggle-icon::after {
        transform: translate(-50%, -50%) rotate(0);
    }

    .site-footer__links {
        display: none;
    }

    .site-footer__group--social {
        flex-basis: 100%;
        border-bottom: none;
        margin-top: 30px;
    }

    .site-footer__links li + li {
        margin-top: 3vw;
    }

    .site-footer__socials {
        gap: 4vw;
    }

    .site-footer__bottom {
        align-items: center;
        text-align: center;
    }

    .site-footer__legal {
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer__toggle-icon::before,
    .site-footer__toggle-icon::after {
        transition: none;
    }
}

@media (max-width: 480px) {
    .site-footer__group,
    .site-footer__group--social {
        flex-basis: 100%;
    }

    .site-footer__socials {
        justify-content: space-between;
    }

    .site-footer__legal li + li::before {
        margin: 0 8px;
    }
}
