.link-effect-menu[data-elem-type="text"] a {
    border: 0 !important;
    display: inline-block !important;
    width: auto !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    size: 22px;
    /* цвет ссылки до наведения */
    color: #ffffff !important;
}

.link-effect-menu[data-elem-type="text"] a:hover {
    /* цвет ссылки после наведения */
    color: #5199ff !important;
}

.link-effect-menu[data-elem-type="text"] a::after {
    content: '';
    position: absolute;
    transition: all 0.3s ease;
    margin: auto;
    /* отступ между ссылкой и подчеркиванием; 
    если нужно сделать расстояние больше, то используй отрицательное значение */
    margin-bottom: 1px;
    /* толщина подчеркивания */
    height: 3px;  
    /* цвет подчеркивания до наведения */
    background: #5199ff; 
     
    opacity: 0;
    top: auto;
    bottom: 20%;
    left: 0;
    right: 0;
    width: 100%;
     
}

.link-effect-menu[data-elem-type="text"] a:hover::after {
    /* цвет подчеркивания после наведения */
    background: #5199ff;
     
    opacity: 1;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
     
}




.link-effect-document[data-elem-type="text"] a {
    border: 0 !important;
    display: inline-block !important;
    width: auto !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    /* цвет ссылки до наведения */
}

.link-effect-document[data-elem-type="text"] a:hover {
    /* цвет ссылки после наведения */
    color: #5199ff !important;
}

.link-effect-document[data-elem-type="text"] a::after {
    content: '';
    position: absolute;
    transition: all 0.3s ease;
    margin: auto;
    /* отступ между ссылкой и подчеркиванием; 
    если нужно сделать расстояние больше, то используй отрицательное значение */
    margin-bottom: 1px;
    /* толщина подчеркивания */
    height: 3px;  
    /* цвет подчеркивания до наведения */
    background: #5199ff; 
     
    opacity: 0;
    top: auto;
    bottom: 20%;
    left: 0;
    right: 0;
    width: 100%;
     
}

.link-effect-document[data-elem-type="text"] a:hover::after {
    /* цвет подчеркивания после наведения */
    background: #5199ff;
     
    opacity: 1;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
     
}
