/* =========================================================
   YAMA FOOTER v8 FINAL — PREMIUM FOOTER ONLY
   Strictly scoped to .ya-footer and .ya-back-top.
   No page-content selectors.
========================================================= */

.ya-footer {
    --ya-f-accent:#2f80ed;
    --ya-f-accent-soft:#8fc7ff;
    --ya-f-deep:#03101f;
    --ya-f-navy:#071b34;
    --ya-f-line:rgba(143,199,255,.15);
    --ya-f-radius:20px;
    position:relative;
    isolation:isolate;
    overflow:hidden;
    background:
        radial-gradient(circle at 12% 4%,rgba(47,128,237,.14),transparent 34%),
        radial-gradient(circle at 88% 86%,rgba(88,183,255,.10),transparent 30%),
        linear-gradient(180deg,#06172c 0%,#03101f 100%) !important;
    border-top:1px solid rgba(143,199,255,.13);
}

.ya-footer::before,
.ya-footer::after {
    content:"";
    position:absolute;
    pointer-events:none;
    z-index:-1;
    border-radius:999px;
    filter:blur(2px);
    opacity:.5;
}

.ya-footer::before {
    width:380px;
    height:380px;
    top:-250px;
    left:-160px;
    background:radial-gradient(circle,rgba(47,128,237,.18),transparent 68%);
}

.ya-footer::after {
    width:320px;
    height:320px;
    right:-170px;
    bottom:-210px;
    background:radial-gradient(circle,rgba(88,183,255,.13),transparent 70%);
}

.ya-footer .ya-footer-shell {
    position:relative;
    z-index:1;
}

.ya-footer .ya-footer-grid {
    gap:clamp(28px,4vw,64px) !important;
}

.ya-footer .ya-footer-brand,
.ya-footer .ya-footer-column,
.ya-footer .ya-store-section,
.ya-footer .ya-footer-bottom {
    opacity:1;
    transform:none;
}

.ya-footer.ya-footer-motion-ready .ya-footer-brand,
.ya-footer.ya-footer-motion-ready .ya-footer-column,
.ya-footer.ya-footer-motion-ready .ya-store-section,
.ya-footer.ya-footer-motion-ready .ya-footer-bottom {
    opacity:0;
    transform:translateY(18px);
    transition:opacity .6s ease,transform .6s cubic-bezier(.2,.7,.2,1);
}

.ya-footer.ya-footer-motion-ready.ya-footer-visible .ya-footer-brand,
.ya-footer.ya-footer-motion-ready.ya-footer-visible .ya-footer-column,
.ya-footer.ya-footer-motion-ready.ya-footer-visible .ya-store-section,
.ya-footer.ya-footer-motion-ready.ya-footer-visible .ya-footer-bottom {
    opacity:1;
    transform:translateY(0);
}

.ya-footer.ya-footer-motion-ready.ya-footer-visible .ya-footer-column:nth-of-type(2) { transition-delay:.06s; }
.ya-footer.ya-footer-motion-ready.ya-footer-visible .ya-footer-column:nth-of-type(3) { transition-delay:.12s; }
.ya-footer.ya-footer-motion-ready.ya-footer-visible .ya-footer-column:nth-of-type(4) { transition-delay:.18s; }
.ya-footer.ya-footer-motion-ready.ya-footer-visible .ya-store-section { transition-delay:.10s; }
.ya-footer.ya-footer-motion-ready.ya-footer-visible .ya-footer-bottom { transition-delay:.16s; }

.ya-footer .ya-footer-site-icon {
    border-radius:18px !important;
    box-shadow:0 14px 34px rgba(0,0,0,.20),0 0 0 1px rgba(255,255,255,.08) inset !important;
    transition:transform .28s cubic-bezier(.2,.7,.2,1),box-shadow .28s ease,filter .28s ease !important;
}

.ya-footer .ya-footer-site-icon:hover {
    transform:translateY(-3px) scale(1.025) !important;
    box-shadow:0 20px 42px rgba(0,0,0,.28),0 0 24px rgba(47,128,237,.12) !important;
    filter:saturate(1.05);
}

.ya-footer .ya-footer-badges span {
    border-color:rgba(143,199,255,.17) !important;
    background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.025)) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035) !important;
    transition:transform .22s ease,border-color .22s ease,background .22s ease !important;
}

.ya-footer .ya-footer-badges span:hover {
    transform:translateY(-2px);
    border-color:rgba(143,199,255,.35) !important;
    background:rgba(47,128,237,.08) !important;
}

.ya-footer .ya-footer-column h3 {
    position:relative;
    padding-bottom:12px;
}

.ya-footer .ya-footer-column h3::after {
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:34px;
    height:2px;
    border-radius:999px;
    background:linear-gradient(90deg,var(--ya-f-accent),var(--ya-f-accent-soft));
    box-shadow:0 0 14px rgba(47,128,237,.30);
}

.ya-footer .ya-footer-column a {
    position:relative;
    transition:transform .22s cubic-bezier(.2,.7,.2,1),color .22s ease,opacity .22s ease !important;
}

.ya-footer .ya-footer-column a::after {
    content:"";
    position:absolute;
    left:0;
    bottom:-3px;
    width:0;
    height:1px;
    border-radius:999px;
    background:linear-gradient(90deg,var(--ya-f-accent-soft),transparent);
    transition:width .24s ease;
}

.ya-footer .ya-footer-column a:hover,
.ya-footer .ya-footer-column a:focus-visible {
    transform:translateX(4px) !important;
}

.ya-footer .ya-footer-column a:hover::after,
.ya-footer .ya-footer-column a:focus-visible::after {
    width:54%;
}

.ya-footer .ya-store-section {
    position:relative;
    overflow:hidden;
    border:1px solid rgba(143,199,255,.14) !important;
    border-radius:var(--ya-f-radius) !important;
    background:
        linear-gradient(135deg,rgba(47,128,237,.11),rgba(255,255,255,.035) 42%,rgba(88,183,255,.06)) !important;
    box-shadow:0 18px 44px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.045) !important;
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
}

.ya-footer .ya-store-section::before {
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(112deg,transparent 0%,rgba(143,199,255,.08) 46%,transparent 68%);
    transform:translateX(-120%);
    transition:transform .8s ease;
}

.ya-footer .ya-store-section:hover::before {
    transform:translateX(120%);
}

.ya-footer .ya-store-badge {
    border-color:rgba(255,255,255,.12) !important;
    background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.035)) !important;
    box-shadow:0 10px 26px rgba(0,0,0,.14),inset 0 1px 0 rgba(255,255,255,.04) !important;
    transition:transform .24s cubic-bezier(.2,.7,.2,1),border-color .24s ease,background .24s ease,box-shadow .24s ease !important;
}

.ya-footer .ya-store-badge:hover,
.ya-footer .ya-store-badge:focus-visible {
    transform:translateY(-3px) !important;
    border-color:rgba(143,199,255,.42) !important;
    background:linear-gradient(145deg,rgba(47,128,237,.18),rgba(255,255,255,.055)) !important;
    box-shadow:0 16px 34px rgba(0,0,0,.22),0 0 20px rgba(47,128,237,.09) !important;
}

.ya-footer .ya-footer-bottom {
    border-top-color:rgba(143,199,255,.13) !important;
}

.ya-footer .ya-footer-bottom a {
    position:relative;
    transition:color .2s ease,opacity .2s ease !important;
}

.ya-footer .ya-footer-bottom a::after {
    content:"";
    position:absolute;
    left:0;
    right:100%;
    bottom:-3px;
    height:1px;
    background:var(--ya-f-accent-soft);
    transition:right .22s ease;
}

.ya-footer .ya-footer-bottom a:hover::after,
.ya-footer .ya-footer-bottom a:focus-visible::after {
    right:0;
}

.ya-back-top {
    transition:transform .22s cubic-bezier(.2,.7,.2,1),box-shadow .22s ease,background .22s ease !important;
}

.ya-back-top:hover,
.ya-back-top:focus-visible {
    transform:translateY(-3px) !important;
    box-shadow:0 16px 34px rgba(0,0,0,.22),0 0 18px rgba(47,128,237,.14) !important;
}

@media (max-width:782px) {
    .ya-footer .ya-footer-grid {
        gap:28px !important;
    }

    .ya-footer .ya-footer-column h3 {
        padding-bottom:10px;
    }

    .ya-footer .ya-store-section {
        border-radius:16px !important;
    }

    .ya-footer .ya-footer-bottom {
        gap:14px !important;
    }
}

@media (prefers-reduced-motion:reduce) {
    .ya-footer,
    .ya-footer *,
    .ya-footer *::before,
    .ya-footer *::after,
    .ya-back-top,
    .ya-back-top::before,
    .ya-back-top::after {
        transition-duration:.01ms !important;
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        scroll-behavior:auto !important;
    }

    .ya-footer.ya-footer-motion-ready .ya-footer-brand,
    .ya-footer.ya-footer-motion-ready .ya-footer-column,
    .ya-footer.ya-footer-motion-ready .ya-store-section,
    .ya-footer.ya-footer-motion-ready .ya-footer-bottom {
        opacity:1 !important;
        transform:none !important;
    }
}
