/* ===== Главный сайт: footer в стиле форума, навигация сайта сохранена ===== */
.lp-footer-forum {
    margin-top: 54px;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,.065);
    background: #070a0f;
}

.lp-footer-forum-shell {
    padding: 30px 0 20px;
}

.lp-footer-forum-primary,
.lp-footer-forum-secondary,
.lp-footer-forum-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.lp-footer-forum-secondary {
    justify-content: flex-end;
}

.lp-footer-forum-brand {
    min-width: 330px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: #fff;
}

.lp-footer-forum-logo {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 56px;
}

.lp-footer-forum-logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,.22));
}

.lp-footer-forum-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lp-footer-forum-brand-copy strong {
    color: #f2f5f9;
    font-size: 16px;
    font-weight: 760;
    letter-spacing: -.015em;
}

.lp-footer-forum-brand-copy small {
    max-width: 300px;
    color: rgba(201,209,222,.58);
    font-size: 12px;
    line-height: 1.45;
}

.lp-footer-nav-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, auto));
    gap: clamp(30px, 4vw, 70px);
    align-items: start;
    justify-content: end;
}

.lp-footer-nav-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.lp-footer-nav-group > span {
    margin-bottom: 3px;
    color: rgba(190,199,212,.46);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .18em;
}

.lp-footer-nav-group a {
    position: relative;
    color: rgba(224,231,241,.72);
    font-size: 12px;
    line-height: 1.2;
    transition: color .32s ease;
}

.lp-footer-nav-group a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 100%;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(255,194,75,0) 0%,
        rgba(255,194,75,.86) 18%,
        rgba(255,225,168,1) 50%,
        rgba(255,194,75,.86) 82%,
        rgba(255,194,75,0) 100%
    );
    box-shadow: 0 0 10px rgba(255,176,61,.48);
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition:
        transform .42s cubic-bezier(.22,1,.36,1),
        opacity .28s ease;
}

.lp-footer-nav-group a:hover,
.lp-footer-nav-group a:focus-visible {
    color: #fff;
}

.lp-footer-nav-group a:hover::after,
.lp-footer-nav-group a:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
}

.lp-footer-forum-divider {
    height: 1px;
    margin: 24px 0 20px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.075), transparent);
}


.lp-footer-forum-socials {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.lp-footer-social {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 50%;
    background: rgba(255,255,255,.03);
    color: rgba(235,240,247,.88);
    transform: scale(1);
    transform-origin: center;
    transition:
        transform .38s cubic-bezier(.22,1,.36,1),
        background .32s ease,
        border-color .32s ease,
        box-shadow .32s ease,
        color .32s ease;
}

.lp-footer-social svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.lp-footer-social.social-vk {
    color: #2a8cff;
    background: rgba(42,140,255,.10);
    border-color: rgba(42,140,255,.22);
}

.lp-footer-social.social-vk svg {
    width: 31px;
    height: 31px;
}

.lp-footer-social.social-telegram {
    color: #27a7e7;
    background: rgba(39,167,231,.10);
    border-color: rgba(39,167,231,.22);
}

.lp-footer-social.social-youtube {
    color: #ff3b30;
    background: rgba(255,59,48,.10);
    border-color: rgba(255,59,48,.22);
}

.lp-footer-social.social-tiktok {
    color: rgba(235,240,247,.88);
}

.lp-footer-social:not(.is-disabled):hover,
.lp-footer-social:not(.is-disabled):focus-visible {
    transform: scale(1.07);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.24);
}

.lp-footer-social.social-vk:not(.is-disabled):hover {
    background: #2a8cff;
    border-color: #2a8cff;
}

.lp-footer-social.social-telegram:not(.is-disabled):hover {
    background: #27a7e7;
    border-color: #27a7e7;
}

.lp-footer-social.is-disabled {
    cursor: default;
    opacity: .72;
}

.lp-footer-forum-bottom {
    margin-top: 19px;
    padding-top: 17px;
    border-top: 1px solid rgba(255,255,255,.045);
    color: rgba(190,199,212,.48);
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .lp-footer-forum-primary {
        align-items: flex-start;
    }

    .lp-footer-nav-groups {
        grid-template-columns: repeat(3, minmax(110px, 1fr));
        gap: 24px;
    }

    .lp-footer-forum-brand {
        min-width: 260px;
    }
}

@media (max-width: 820px) {
    .lp-footer-forum-primary,
    .lp-footer-forum-secondary,
    .lp-footer-forum-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .lp-footer-nav-groups {
        width: 100%;
        justify-content: stretch;
    }

    .lp-footer-forum-socials {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .lp-footer-forum {
        margin-top: 36px;
    }

    .lp-footer-forum-shell {
        padding-top: 24px;
    }

    .lp-footer-forum-brand {
        min-width: 0;
    }

    .lp-footer-forum-logo {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .lp-footer-forum-logo img {
        width: 46px;
        height: 46px;
    }

    .lp-footer-nav-groups {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }

    .lp-footer-nav-group:last-child {
        grid-column: span 2;
    }

    .lp-footer-forum-socials {
        width: 100%;
    }
}


/* Сохраняем мягкие hover-анимации футера даже при системном reduced-motion. */
@media (prefers-reduced-motion: reduce) {
    .lp-footer-nav-group a,
    .lp-footer-nav-group a::after,
    .lp-footer-social {
        transition-duration: .32s !important;
    }
    .lp-footer-nav-group a::after {
        transition-duration: .42s, .28s !important;
    }
    .lp-footer-social {
        transition-duration: .38s, .32s, .32s, .32s, .32s !important;
    }
}

/* Public mode: first hero screen remains exactly one viewport; footer starts immediately after it. */
.lp-first-slide-only .lp-footer-forum { margin-top: 0; }
.lp-first-slide-only main { margin-bottom: 0; }

/* Legal links are longer than the original forum navigation, so allow clean wrapping. */
.lp-footer-nav-group a { max-width: 245px; line-height: 1.35; }
.lp-footer-bottom-links { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lp-footer-bottom-links i { opacity: .45; font-style: normal; }
.lp-footer-bottom-links a { color: inherit; transition: color .25s ease; }
.lp-footer-bottom-links a:hover, .lp-footer-bottom-links a:focus-visible { color: #fff; }

@media (max-width: 820px) {
    .lp-footer-bottom-links { justify-content: flex-start; }
}
