.portal-footer__info .textM{
    display: flex;
}

.wrapper.portal-footer__inner{
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--columnGap);
}

footer .footer-accordion-container .textS.tight{
    display: flex;
}

.social-links{
    grid-column: span 12;
    display: flex;
    justify-content: space-between;
}

.wrapper.vc_row:has(.social-links){
    padding-top: unset;
}

@media (max-width: 990px) {
    .footer-accordion-title {
        position: relative;
        padding-right: 32px;
        cursor: pointer;
    }

    .footer-accordion-title::after {
        content: '\e136';
        position: absolute;
        top: 50%;
        right: 0;
        font-size: 24px;
        line-height: 1;
        transform: translateY(-50%);
        font-family: 'Phosphor';
    }

    .footer-accordion-content {
        display: none !important;
    }

    .footer-accordion-container.is-open .footer-accordion-content {
        display: block !important;
    }

    .footer-accordion-container.is-open .footer-accordion-title::after {
        content: "−";
    }

    .footer-accordion-container{
        width: 100%;
        padding: var(--gapX4) 0;
        border-top: 1px solid var(--dividerDefault);
    }

    .vc_row.vc_inner:has(.footer-accordion-container){
        row-gap: unset !important;
    }

    .portal-footer .social-links{
        width: 100%;
        max-width: 100%;
        grid-column: span 12;
        display: unset;
    }

    .wrapper.portal-footer__inner > .vc_column_container:has(.footer-accordion-container){
        border-bottom: 1px solid var(--dividerDefault);
    }
}

/*
 * Социальные иконки footer-proektirovschikam
 *
 * Telegram, VK, VK Видео, MAX, Rutube, Дзен.
 */

footer.portal-footer .portal-footer__socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--gapX3, 12px);
}

/* Обычное и посещённое состояние */

footer.portal-footer .portal-footer__socials > a,
footer.portal-footer .portal-footer__socials > a:visited {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    color: var(--contentColor, #000);
    line-height: 1;
    text-decoration: none;
    border: 0;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;

    transition:
        color 0.2s ease,
        opacity 0.15s ease,
        transform 0.15s ease;
}

footer.portal-footer .portal-footer__socials > a > svg {
    display: block;
    width: 28px;
    height: 28px;
    color: inherit;
    fill: currentColor;
}

/*
 * Перебиваем fill="black" внутри SVG.
 * Для всех иконок, кроме MAX.
 */

footer.portal-footer
.portal-footer__socials
> a:not(.max)
svg path {
    fill: currentColor !important;
    transition: fill 0.2s ease;
}

/*
 * MAX нарисован через stroke, а не через fill.
 */

footer.portal-footer
.portal-footer__socials
> a.max
svg {
    fill: none;
}

footer.portal-footer
.portal-footer__socials
> a.max
svg path {
    fill: none !important;
    stroke: currentColor !important;
    transition: stroke 0.2s ease;
}

/* Telegram */

footer.portal-footer
.portal-footer__socials
> a.telegram:is(:hover, :focus-visible) {
    color: #24a1de;
}

/* VK */

footer.portal-footer
.portal-footer__socials
> a.vk:is(:hover, :focus-visible) {
    color: #0077ff;
}

/* VK Видео */

footer.portal-footer
.portal-footer__socials
> a.vk-video:is(:hover, :focus-visible) {
    color: #ff0000;
}

/* MAX */

footer.portal-footer
.portal-footer__socials
> a.max:is(:hover, :focus-visible) {
    color: #526eff;
}

/* Rutube */

footer.portal-footer
.portal-footer__socials
> a.rutube:is(:hover, :focus-visible) {
    color: #ed143b;
}

/* Дзен */

footer.portal-footer
.portal-footer__socials
> a.dzen:is(:hover, :focus-visible) {
    color: #7b7b7b;
}

/* Клавиатурный фокус */

footer.portal-footer
.portal-footer__socials
> a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* Состояние нажатия */

footer.portal-footer
.portal-footer__socials
> a:active {
    opacity: 0.7;
    transform: scale(0.9);
}

/* Убираем движение, если оно отключено в системе */

@media (prefers-reduced-motion: reduce) {
    footer.portal-footer .portal-footer__socials > a,
    footer.portal-footer .portal-footer__socials svg path {
        transition: none;
    }
}