footer {
    /* Pushes the footer to the viewport bottom on short pages (body is a
       min-height:100vh flex column — see global.css). */
    margin-top: auto;
    padding: 50px 0 30px 0;
    background: var(--color-bg-fifth);
    overflow-x: hidden;
}
footer a {
    text-decoration: unset;
}
footer .row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}
footer .row .menu {
    display: flex;
    align-items: start;
}
footer .row .menu .col {
    display: flex;
    flex-direction: column;
    padding: 0 50px;
}
footer .row .menu .col-locale {
    display: none;
}
footer .row .menu .col .label {
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}
footer .row .menu .col .item-menu {
    color: var(--color-text-link);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    margin-top: 16px;
}
footer .row .panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
}
footer .row .panel .auth {
    display: flex;
    justify-content: center;
    align-items: center;
}
footer .row .panel .auth .reg {
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    display: flex;
    padding: 8px 15px;
    margin-right: 5px;
}
footer .row .panel .auth .login {
    display: flex;
    padding: 10px 20px;
    border-radius: 8px;
    background-color: var(--color-bg-alt);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}
footer .row .locale {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
footer .row .locale .lang {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    color: var(--color-text-secondary);
}
footer .row .locale .lang.active {
    color: var(--color-text-link);
}
footer .row .locale .lang::after {
    content: "/";
    display: block;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    padding: 0 2px;
}
footer .row .locale .lang:last-child::after {
    display: none;
}
footer .line-box {
    padding: 30px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
footer .line-box .point {
    display: flex;
    align-items: center;
    justify-content: space-between;
    content: "";
    width: 4px;
    height: 4px;
    background-color: var(--color-bg-sixth);
}
footer .line-box .line {
    content: "";
    display: block;
    background-color: var(--color-bg-sixth);
    height: 1px;
    flex-basis: calc(50% - 67px - 2px);
}
footer .copyright {
    color: var(--color-text-link);
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

@media (max-width: calc(1140px + 30px)) {

    footer .row .menu .col {
        padding: 0 25px;
    }
    footer .row .panel .auth .login,
    footer .row .panel .auth .reg {
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {

    footer .row {
        flex-wrap: wrap;
    }
    footer .logo {
        order: 1;
        flex-basis: 35%;
    }
    footer .row .menu {
        order: 3;
        flex-basis: calc(100% + 50px);
        margin: 0 -25px;
        flex-wrap: wrap;
        padding-top: 30px;
    }
    footer .row .menu .col {
        flex-basis: 33.3333%;
    }
    footer .row .menu .col-locale .locale {
        justify-content: flex-start;
        margin-top: 16px;
    }
    footer .row .panel {
        order: 2;
        flex-basis: 65%;
        flex-direction: row;
        justify-content: flex-end;
    }
    footer .row .panel .locale {
        margin-left: 25px;
    }
}

@media (max-width: 567px) {

    footer .row .menu .col {
        flex-basis: 50%;
        margin-bottom: 25px;
    }
    footer .row .menu .col-locale {
        display: flex;
    }
    footer .row .menu .col-locale .locale,
    footer .row .menu .col .item-menu {
        margin-top: 10px;
    }
    footer .row .panel .locale {
        display: none;
    }
    footer .line-box {
        padding-top: calc(5px + 8px);
    }
}
