/* ===== Site footer (mrj3y2026 style) ===== */
.site-footer {
    --footer-accent: var(--color-primary, #0ea5e9);
    --footer-navy: #0c4a6e;
    --footer-card-bg: rgba(255, 255, 255, 0.03);
    --footer-border: rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0c4a6e 100%);
    color: #e2e8f0;
    padding: 36px 0 20px;
    margin-top: 20px;
    margin-bottom: 0;
    flex-shrink: 0;
    border-top: 3px solid var(--footer-navy);
}

.footer-main-layout {
    margin-bottom: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    align-items: stretch;
}

.footer-col {
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    background: var(--footer-card-bg);
    border: 1px solid var(--footer-border);
    position: relative;
}

.footer-col::before,
.footer-col::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    pointer-events: none;
}

.footer-col::before {
    top: -1px;
    right: -1px;
    border-top: 3px solid var(--footer-accent);
    border-right: 3px solid var(--footer-accent);
    border-top-right-radius: 10px;
}

.footer-col::after {
    bottom: -1px;
    left: -1px;
    border-bottom: 3px solid var(--footer-accent);
    border-left: 3px solid var(--footer-accent);
    border-bottom-left-radius: 10px;
}

.footer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    color: #fff;
}

.footer-title-icon {
    color: var(--footer-accent);
    flex-shrink: 0;
}

.footer-about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    height: 100%;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-logo {
    max-width: 140px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.footer-logo-text {
    font-size: 26px;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(45deg, var(--footer-accent), #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.85;
    text-align: justify;
    text-align-last: center;
}

.footer-desc p {
    margin: 0;
}

.footer-about-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    width: 100%;
}

.footer-social-title {
    font-size: 13px;
    font-weight: 700;
    opacity: 0.8;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-s-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    transition: transform 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-s-btn svg {
    width: 16px;
    height: 16px;
}

.footer-s-btn:hover {
    transform: translateY(-4px);
    color: #fff;
    border-color: transparent;
}

.footer-s-btn--facebook:hover { background: #1877F2; box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4); }
.footer-s-btn--twitter:hover { background: #000; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4); }
.footer-s-btn--telegram:hover { background: #26A5E4; box-shadow: 0 5px 15px rgba(38, 165, 228, 0.4); }
.footer-s-btn--instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); box-shadow: 0 5px 15px rgba(220, 39, 67, 0.4); }
.footer-s-btn--youtube:hover { background: #FF0000; box-shadow: 0 5px 15px rgba(255, 0, 0, 0.35); }

.footer-news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.footer-news-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #e2e8f0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 3px solid transparent;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease;
}

.footer-news-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.14) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.footer-news-item:hover,
.footer-news-item:focus-visible {
    color: #fff;
    background: rgba(14, 165, 233, 0.16);
    border-color: rgba(14, 165, 233, 0.35);
    border-right-color: var(--footer-accent);
    transform: translateX(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    outline: none;
}

.footer-news-item:hover::before,
.footer-news-item:focus-visible::before {
    opacity: 1;
}

.footer-news-thumb {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.22s ease;
    position: relative;
    z-index: 1;
}

.footer-news-item:hover .footer-news-thumb,
.footer-news-item:focus-visible .footer-news-thumb {
    transform: scale(1.05);
    border-color: rgba(125, 211, 252, 0.65);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.25), 0 6px 16px rgba(0, 0, 0, 0.3);
}

.footer-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.footer-news-thumb img.js-smart-lazy:not(.is-smart-lazy-ready) {
    background: linear-gradient(135deg, rgba(12, 74, 110, 0.55), rgba(14, 165, 233, 0.28));
}

.footer-news-item:hover .footer-news-thumb img,
.footer-news-item:focus-visible .footer-news-thumb img {
    transform: scale(1.08);
}

.footer-news-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 74, 110, 0.85), rgba(14, 165, 233, 0.45));
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-news-fallback svg {
    width: 20px;
    height: 20px;
    opacity: 0.75;
    color: #e0f2fe;
}

.footer-news-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.footer-news-heading {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.55;
    margin: 0;
    color: #f8fafc;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.footer-news-date {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

.footer-news-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #64748b;
    transition: transform 0.22s ease;
    position: relative;
    z-index: 1;
}

.footer-news-item:hover .footer-news-heading,
.footer-news-item:focus-visible .footer-news-heading {
    color: #fff;
}

.footer-news-item:hover .footer-news-date,
.footer-news-item:focus-visible .footer-news-date {
    color: #7dd3fc;
}

.footer-news-item:hover .footer-news-arrow,
.footer-news-item:focus-visible .footer-news-arrow {
    color: #fff;
    background: var(--footer-accent);
    transform: translateX(-3px);
}

.site-footer a.footer-news-item:hover,
.site-footer a.footer-news-item:focus-visible {
    color: #fff;
}

.footer-vertical-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.footer-vertical-menu li {
    margin: 0;
}

.footer-category-link {
    display: block;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 2px solid transparent;
    transition: transform 0.22s ease;
}

.footer-category-link:hover,
.footer-category-link:focus-visible {
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(14, 165, 233, 0.35);
    border-bottom-color: var(--footer-accent);
    color: #fff;
    transform: translateY(-1px);
    outline: none;
}

.site-footer a.footer-category-link:hover,
.site-footer a.footer-category-link:focus-visible {
    color: #fff;
}

.footer-empty {
    font-size: 13px;
    opacity: 0.7;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-legal-nav {
    width: 100%;
}

.footer-legal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footer-legal-list li {
    margin: 0;
}

.footer-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    color: #f1f5f9;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.22s ease;
}

.footer-page-link:hover,
.footer-page-link:focus-visible {
    color: #fff;
    background: rgba(14, 165, 233, 0.22);
    border-color: rgba(125, 211, 252, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    outline: none;
}

.footer-page-link.is-active {
    color: #fff;
    font-weight: 800;
    background: var(--footer-accent);
    border-color: var(--footer-accent);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.site-footer a.footer-page-link:hover,
.site-footer a.footer-page-link:focus-visible,
.site-footer a.footer-page-link.is-active {
    color: #fff;
}

.site-footer a.footer-copyright-link {
    color: #e2e8f0;
}

.site-footer a.footer-copyright-link:hover,
.site-footer a.footer-copyright-link:focus-visible {
    color: #7dd3fc;
}

.footer-bottom-row {
    width: 100%;
    text-align: center;
}

.footer-copyright {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.footer-copyright-link {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 700;
}

.footer-copyright-link:hover,
.footer-copyright-link:focus-visible {
    color: #7dd3fc;
}

[hidden] {
    display: none !important;
}

/* Scroll to top */
.scroll-to-top {
    position: fixed;
    margin: 0;
    padding: 0;
    border: 0;
    bottom: 30px;
    left: 30px;
    width: 52px;
    height: 52px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    background: #f1f5f9;
}

.scroll-to-top-icon {
    color: var(--footer-navy);
}

html.site-dark .scroll-to-top {
    background: #334155;
}

html.site-dark .scroll-to-top-icon {
    color: #e2e8f0;
}

html.site-dark .site-footer {
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #0c4a6e 100%);
}

html.site-dark .footer-col {
    background: rgba(255, 255, 255, 0.02);
}

html.site-dark .footer-news-item,
html.site-dark .footer-category-link {
    background: rgba(255, 255, 255, 0.04);
}

html.site-dark .footer-news-item:hover,
html.site-dark .footer-news-item:focus-visible {
    background: rgba(14, 165, 233, 0.2);
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-col--about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-legal-list {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .footer-page-link {
        width: 100%;
    }
    .scroll-to-top {
        width: 46px;
        height: 46px;
        bottom: 20px;
        left: 20px;
    }
}
