<style>
.menu * {
width: max-content !important;
display: block !important;
transition: all 0.3s ease-in-out;
}
/* 1 — подчеркивание активного пункта */
.menu:hover .tn-atom, .menu.active .tn-atom {
border-bottom: solid 2px #1d4fff !important
}
/* 2 — цвет и прозрачность для активного пункта*/
.menu:hover .tn-atom a, .menu.active .tn-atom a {
color: #1d4fff !important;
opacity: 0.3;
}
/* 3 — прозрачность неактивных пунктов меню */
.menu .tn-atom a {
opacity: 0.3
}
.menu:hover .tn-atom a, .menu.active .tn-atom a {
color: #1d4fff !important;
opacity: 1;
}
</style>
<script>
var url = document.location.pathname
$('[href="'+url+'"]').parents('.t396__elem').addClass('active')
</script>