JSFiddle - React, Tailwind, and code Playground

HTML

<menu>
            <ul class="menu">
              <li><a href="#company">О нас</a></li>
              <li><a href="#production">Продукция</a></li>
              <li><a href="#services">Услуги</a></li>
              <li><a href="#question_answer">Вопрос-ответ</a></li>
              <li><a href="#contacts">Контакты</a></li>
              <li><a href="#ord-costing" class="popup-with-move-anim">Заказать расчет стоимости</a></li>
            </ul>
          </menu>
          
          <div id="company" style="background-color: red; height: 500px;"></div>
          <div id="production" style="background-color: blue; height: 500px;"></div>          
          <div id="services" style="background-color: red; height: 500px;"></div>
          <div id="question_answer" style="background-color: blue; height: 500px;"></div>          
          <div id="contacts" style="background-color: red; height: 500px;"></div>
          <div id="ord-costing" style="background-color: blue; height: 500px;"></div>

JavaScript

$('a[href*="#"]:not([href="#"])').not('.popup-with-move-anim').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
      var target = $(this.hash);
      target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
      if (target.length) {
        $('html, body').animate({
          scrollTop: target.offset().top
        }, 1000);
        return false;
      }
    }
  });
  $('a[href*="#ord-costing"]').click(function(e){
  	e.preventDefault();
  });