/* Стили футера: классы только из footer.php (вынесено из assets/css/style.css и assets/css/adaptive.css) */

.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111 !important;
    flex-wrap: wrap;
}

/* Внутри .wrapper.footer__top-wrapper: ширина как у таймлайна и текста, без второго max-width */
.footer__avg {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.footer__avg-nav {
    width: 100%;
}

.footer__avg-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 28px;
    width: 100%;
    align-items: stretch;
}

/* Перекрываем глобальное section { background: #F4F6FC } из style.css */
footer .footer__avg-col {
    margin: 0;
    min-width: 0;
    position: relative;
    padding: 22px 22px 14px;
    border-radius: 16px;
    border: 1px solid rgba(46, 120, 255, 0.35);
    background: linear-gradient(145deg, rgba(8, 10, 18, 0.96), rgba(16, 20, 34, 0.94));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 12px 40px rgba(0, 0, 0, 0.45),
        0 0 24px rgba(79, 123, 255, 0.12);
    overflow: hidden;
}

footer .footer__avg-col::before {
    content: "";
    position: absolute;
    inset: -35%;
    background:
        radial-gradient(circle at 15% 0%, rgba(88, 195, 255, 0.2), transparent 42%),
        radial-gradient(circle at 92% 10%, rgba(111, 230, 176, 0.12), transparent 48%),
        radial-gradient(circle at 50% 100%, rgba(120, 100, 255, 0.1), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

footer .footer__avg-col::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(124, 247, 224, 0.55), rgba(154, 212, 255, 0.65), transparent);
    box-shadow: 0 0 14px rgba(88, 195, 255, 0.45);
    pointer-events: none;
}

footer .footer__avg-col > * {
    position: relative;
    z-index: 1;
}

.footer__avg-heading {
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(88, 195, 255, 0.15);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    color: #9ad4ff;
    background: linear-gradient(90deg, #9ad4ff 0%, #7cf7e0 55%, #b8c4ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(88, 195, 255, 0.35));
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .footer__avg-heading {
        background: none;
        -webkit-text-fill-color: unset;
        filter: none;
    }
}

.footer__avg-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 15px;
    font-weight: 500;
}

.footer__avg-list li {
    border-bottom: 1px solid rgba(88, 195, 255, 0.08);
}

.footer__avg-list li:last-child {
    border-bottom: none;
}

.footer__avg-list li:last-child .footer__avg-link {
    padding-bottom: 6px;
}

.footer__avg-link {
    display: block;
    position: relative;
    padding: 11px 4px 11px 0;
    color: rgba(198, 218, 245, 0.88);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease, padding-left 0.2s ease;
}

.footer__avg-link::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 3px;
    height: calc(100% - 16px);
    min-height: 20px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: linear-gradient(180deg, rgba(154, 212, 255, 0.98), rgba(124, 247, 224, 0.95));
    box-shadow: 0 0 10px rgba(88, 195, 255, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.footer__avg-link:hover {
    padding-left: 24px;
    color: #f0f8ff;
    text-shadow: 0 0 14px rgba(88, 195, 255, 0.55);
}

.footer__avg-link:hover::before {
    opacity: 1;
}

.footer__avg-link:focus-visible {
    padding-left: 24px;
    outline: none;
    color: #fff;
    text-shadow: 0 0 12px rgba(88, 195, 255, 0.45);
    box-shadow: inset 0 0 0 1px rgba(88, 195, 255, 0.35);
    border-radius: 4px;
}

.footer__avg-link:focus-visible::before {
    opacity: 1;
    background: linear-gradient(180deg, rgba(174, 220, 255, 1), rgba(154, 212, 255, 0.95));
    box-shadow: 0 0 12px rgba(124, 247, 224, 0.55);
}

@media (prefers-reduced-motion: reduce) {
    .footer__avg-link,
    .footer__avg-link::before {
        transition: none;
    }
}

footer .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.footer__top {
    background: #21182f;
}

.footer-logo-container {
    height: 114px;
}

.footer__top-left {
    display: flex;
    width: 64%;
    color: rgba(121, 122, 128, 1);
    line-height: 23px;
    font-size: 16px;
    font-weight: 500;
}

.footer__top-right {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    row-gap: 20px;
    flex-wrap: wrap;
}

.footer__top-right li {
    display: flex;
    margin-right: 10px;
}

.footer__top-right li a {
    width: 47px;
    height: 47px;
    background: #11081F;
    border-radius: 9px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer__top-right li svg {
    width: 20px;
}

.footer__top-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding-top: 60px !important;
    padding-bottom: 0 !important;
    --footer-section-gap: 68px;
}

/* Убираем глобальное section { padding: 20px 0 }; нижний отступ — последний блок футера перед краем страницы */
footer .trust-timeline {
    padding-top: 0;
    padding-bottom: 80px;
    margin-top: var(--footer-section-gap, 68px);
}

.footer__top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--footer-section-gap);
}

@media (max-width: 768px) {
    .footer__top-wrapper {
        padding-top: 40px !important;
        --footer-section-gap: 64px;
    }

    .footer__top-content {
        flex-direction: column;
    }

    .footer__avg-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768.99px) {
    .footer__avg {
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 1140px) {
    footer .wrapper {
        padding: 60px 20px !important;
    }
}

@media (max-width: 992px) {
    .footer__top-left {
        margin-right: 40px;
    }
}
