Showing source for: https://xn----ftbeonjgpifvc9b5c.xn--p1ai/city/belgorod/
Duration: 2.515939s
Server: nginx

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru-ru" lang="ru-ru" dir="ltr">
<head>
<meta name="nr-index-build" content="NR-INDEX-20260906-TOUCH-MULTISELECT-V4">
<script>
window.yaContextCb = window.yaContextCb || [];
console.info("NR-INDEX-20260906-TOUCH-MULTISELECT-V4");
</script>
<link rel="icon" href="https://xn----ftbeonjgpifvc9b5c.xn--p1ai/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="https://xn----ftbeonjgpifvc9b5c.xn--p1ai/favicon.ico" />
<link rel=icon href=favicon.ico sizes="32x32 48x48" type="image/vnd.microsoft.icon">
<meta property="og:image" content="https://xn----ftbeonjgpifvc9b5c.xn--p1ai/images/logo.jpg" />
<meta property="og:title" content="Рейтинг специалистов - Белгород" />
<meta property="og:description" content="Все специалисты сайта СРОЧНЫЕ УСЛУГИ на этой странице, смотрите рейтинг сортируйте по алфавиту или рейтингу и многое другое... Добро пожаловать" />
<meta property="og:url" content="/city/belgorod" />
<meta property="og:site_name" content="СРОЧНЫЕ УСЛУГИ" />
<link rel="image_src" href="https://xn----ftbeonjgpifvc9b5c.xn--p1ai/images/logo.jpg" /> 
<link rel="icon" href="https://xn----ftbeonjgpifvc9b5c.xn--p1ai/images/logo.png" type="image/png" />
<link rel="apple-touch-icon" href="https://xn----ftbeonjgpifvc9b5c.xn--p1ai/images/logo.png" type="image/png" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	
<!-- Yandex.Metrika counter -->
<script type="text/javascript">
    (function(m,e,t,r,i,k,a){
        m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
        m[i].l=1*new Date();
        for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
        k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)
    })(window, document,'script','https://mc.yandex.ru/metrika/tag.js?id=104314739', 'ym');

    ym(104314739, 'init', {ssr:true, webvisor:true, clickmap:true, ecommerce:"dataLayer", accurateTrackBounce:true, trackLinks:true});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/104314739" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->



  <base href="https://xn----ftbeonjgpifvc9b5c.xn--p1ai/city/belgorod/" />
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta name="keywords" content="Белгород, Специалисты, рейтинг, услуги, срочные, Срочные услуги, мастера, список, топ, поднять, посмотреть, все, услуги, калькулятор, вид, список, сайт, по алфавиту, виды срочных услуг, разовые срочные услуги, срочная оплата услуги, срочно деньги платные услуги, срочно нужна услуга, срочно услуга числа, срочные соц услуги, срочные услуги, услуга срок срочно, формы срочных социальных услуг, формы срочных услуг" />
  <meta name="rights" content="Copyright © Цены на услуги и работы Калькулятор 2013 Все права защищены" />
  <meta name="description" content="Белгород Все специалисты сайта СРОЧНЫЕ УСЛУГИ на этой странице, смотрите рейтинг сортируйте по алфавиту или рейтингу и многое другое... Добро пожаловать" />
  <meta name="generator" content="Joomla! - Open Source Content Management" />
  <title>Рейтинг специалистов - Белгород</title>
  <link href="https://xn----ftbeonjgpifvc9b5c.xn--p1ai/city/belgorod/" rel="canonical" />
  <link href="/city/belgorod/templates/protostar/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
  <link rel="stylesheet" href="/city/belgorod/components/com_rsform/assets/css/front.css" type="text/css" />
  <link rel="stylesheet" href="/city/belgorod/components/com_rsform/assets/calendar/calendar.css" type="text/css" />
  <link rel="stylesheet" href="https://xn----ftbeonjgpifvc9b5c.xn--p1ai/templates/protostar/css/template.css" type="text/css" />
  <script src="/city/belgorod/media/jui/js/jquery.js" type="text/javascript"></script>
  <script src="/city/belgorod/media/jui/js/jquery-migrate.js" type="text/javascript"></script>
  <script src="/city/belgorod/media/system/js/mootools-core-uncompressed.js" type="text/javascript"></script>
  <script src="/city/belgorod/media/system/js/core-uncompressed.js" type="text/javascript"></script>
  <script src="/city/belgorod/components/com_rsform/assets/js/script.js?v=48" type="text/javascript"></script>
  <script src="/city/belgorod/media/system/js/caption-uncompressed.js" type="text/javascript"></script>
  <script src="/city/belgorod/media/jui/js/bootstrap.js" type="text/javascript"></script>
  <script type="text/javascript">
jQuery(window).on('load',  function() {
				new JCaption('img.caption');
			});
jQuery(document).ready(function()
				{
					jQuery('.hasTooltip').tooltip({"html": true,"container": "body"});
				});
  </script>
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script>/* SMSC phone verification TEMPORARILY OFF. Delete this whole line to re-enable. */ window.__smscVerify = true;</script>
<script type="text/javascript">
jQuery(document).ready(function(){
    var santeh = function() {
	var listElem2 = ['proj_c0', 'cran0', 'batarei0', 'plomby0', 'zapcfg0', 'ysf0', 'ysrd0', 'ysfg0','mgr0'];
	jQuery.each(listElem2, function(i, id) {
	    jQuery('#'+id).parent().parent().parent().next().hide();
	    jQuery('#'+id).next().click(function(){
		if (jQuery('#'+id).is(':checked')) {jQuery('#'+id).parent().parent().parent().next().hide();}
		else {jQuery('#'+id).parent().parent().parent().next().show();}
	    });
	});
    }
    santeh();
    jQuery('.rsform-block-tdiam').addClass('trubi');
    jQuery('.rsform-block-tdiam').next().addClass('trubi');
    
    jQuery('.rsform-block-slivtitl-copy').addClass('trubi2');
    jQuery('.rsform-block-slivtitl-copy').next().addClass('trubi2');
    jQuery('.rsform-block-slivtitl-copy').next().next().addClass('trubi2');
    jQuery('.rsform-block-slivtitl-copy').next().next().next().addClass('trubi2');
    jQuery('.rsform-block-slivtitl-copy').next().next().next().next().addClass('trubi2');
    jQuery('.rsform-block-slivtitl-copy').next().next().next().next().next().addClass('trubi2');
    
	jQuery("#tconf option:selected").each(function () {
		if (jQuery(this).text() == jQuery('#tconf option:eq(0)').text()) {jQuery('.trubi, .trubi2').hide();}
	});
	jQuery("#tconf").change(function () {
		jQuery("#tconf option:selected").each(function () {
			if (jQuery(this).text() == jQuery('#tconf option:eq(0)').text()) {jQuery('.trubi, .trubi2').hide();}
			else {
			if (jQuery(this).text() == jQuery('#tconf option:eq(1)').text()) {jQuery('.trubi').show();jQuery('.trubi2').hide();}
			    else {jQuery('.trubi').show();jQuery('.trubi2').show();}
			}
		});
	});
});
</script>

<script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <style>
/* Mobile multiselect fix (RSForm + jQuery Form Styler).
   Shows the option list on phones, full-width, scrollable, 16px (no iOS zoom).
   body-prefix overrides the global rule that hid the list. ASCII-only. */
@media (max-width: 999px) {
  body select[multiple] ~ [id$="-styler"] ul,
  body .jqselect ul,
  body .jq-select-multiple ul {
    display: block !important;
    width: 100% !important;
    max-height: 260px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box !important;
  }
  body .jqselect ul li,
  body .jq-select-multiple ul li {
    font-size: 16px !important;
    padding: 10px 12px !important;
    line-height: 1.3 !important;
  }
  body [id$="-styler"].jqselect,
  body .jq-select-multiple,
  body .jqselect.rsform-select-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  body select[multiple] { max-width: 100% !important; }
  body .select2-container { width: 100% !important; max-width: 100% !important; }
  body .select2-container .select2-search__field { font-size: 16px !important; }
  body .rsform-block input,
  body .rsform-block select,
  body .rsform-block textarea {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}
</style>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <style>
.rsform-select-box
{
width:300px;
}
.rsform-input-box
{
width:286px;
}
</style>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
function displayField()
{
  if(document.getElementsByName('form[Radio]')[0].checked)
  document.getElementById('next1Next').style.display="none";
 
  if(document.getElementsByName('form[Radio]')[1].checked)
  document.getElementById('next1Next').style.display="";
}
function rsfp_conditionalPage(formId, page, totalPages, validate){
	
	if(page == 1 && document.getElementById('skips0').checked && typeof validate != 'undefined'){
		rsfp_changePage(formId, page+1, totalPages, validate);
		return '';
	}

	if(page == 1 && document.getElementById('skips0').checked && typeof validate == 'undefined'){
		rsfp_changePage(formId, page-1, totalPages, validate);
		return '';
	}
	rsfp_changePage(formId, page, totalPages, validate);
}

jQuery(document).ready(function(){
    var listElem1 = ['kond0', 'klapan0', 'pritoch0', 'montajkanal0', 'cryshmontaj0', 'radmontaj0', 'automontaj0', 'montajteplo0', 'multisplit0', 'ustshum0', 'ystfiltra0', 'electronagrev0', 'montajvozduhovodov0', 'okleikavozduhovodov0', 'montajreshotka0', 'montajklapona0', 'vozdzaslon0', 'regul0', 'potolok0'];
	var listElem2 = ['steny_pol0', 'steny_one0', 'steny_dva0', 'steny_tri0', 'steny_chet0'];
    jQuery.each(listElem1, function(i, id) {
		if (!jQuery('#'+id).attr("checked")) {
			jQuery('#'+id).parent().parent().parent().next().hide();
		}
		jQuery('#'+id).next().click(function(){
			jQuery('#'+id).parent().parent().parent().next().toggle();
		});
    });
	
	 jQuery.each(listElem2, function(i, id) {
		if (!jQuery('#'+id).attr("checked")) {
			jQuery('#'+id).parent().parent().parent().next().hide();
			jQuery('#'+id).parent().parent().parent().next().next().hide();
		}
		jQuery('#'+id).next().click(function(){
			jQuery('#'+id).parent().parent().parent().next().toggle();
			jQuery('#'+id).parent().parent().parent().next().next().toggle();
		});
		jQuery('#'+id).parent().parent().parent().addClass('vent');
		jQuery('#'+id).parent().parent().parent().next().addClass('vent');
		jQuery('#'+id).parent().parent().parent().next().next().addClass('vent');
    });
	
	jQuery(".rsform-block-tupesteny").after('<div id="tupest"></div>');
	var p1 =  jQuery('.vent').detach();
	jQuery("#tupest").html(p1); 

	jQuery("#tupesteny option:selected").each(function () {
		if (jQuery(this).text() == jQuery('#tupesteny option:eq(0)').text()) {
			jQuery('#tupest').hide();
		}
	});
	jQuery("#tupesteny").change(function () {
		jQuery("#tupesteny option:selected").each(function () {
			if (jQuery(this).text() == jQuery('#tupesteny option:eq(0)').text()) {
				jQuery('#tupest').hide();
			}
			else {jQuery('#tupest').show();}
		});
	});
});

jQuery(document).ready(function(){
	if (!jQuery('#proj_c0').attr("checked")) {jQuery(".rsform-block-upload-pr").hide();}
	jQuery('#proj_c0').next().click(function(){jQuery(".rsform-block-upload-pr").toggle();});
});
</script>

<script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
jQuery(document).ready(function(){
    var listElemId = ['gorod_y0', 'ris0', 'cvet0', 'vodoem0', 'alpin0', 'projectauthor0', 'formy0'];
    jQuery.each(listElemId, function(i, id) {
		if (!jQuery('#'+id).attr("checked")) {
			jQuery('#'+id).parent().parent().parent().next().hide();
		}
		jQuery('#'+id).next().click(function(){
			jQuery('#'+id).parent().parent().parent().next().toggle();
		});
    });
});

jQuery(document).ready(function(){
	if (!jQuery('#proj_c0').attr("checked")) {jQuery(".rsform-block-upload-pr").hide();}
	jQuery('#proj_c0').next().click(function(){jQuery(".rsform-block-upload-pr").toggle();});
});
</script>

<script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
function displayField()
{
  if(document.getElementsByName('form[Radio]')[0].checked)
  document.getElementById('next1Next').style.display="none";
 
  if(document.getElementsByName('form[Radio]')[1].checked)
  document.getElementById('next1Next').style.display="";
}
function rsfp_conditionalPage(formId, page, totalPages, validate){
	
	if(page == 1 && document.getElementById('skip0').checked && typeof validate != 'undefined'){
		rsfp_changePage(formId, page+1, totalPages, validate);
		return '';
	}

	if(page == 1 && document.getElementById('skip0').checked && typeof validate == 'undefined'){
		rsfp_changePage(formId, page-1, totalPages, validate);
		return '';
	}
	rsfp_changePage(formId, page, totalPages, validate);
}

jQuery(document).ready(function(){
    var listElem1 = ['balki0', 'strop0', 'kontr0', 'shag0', 'doska_fonera0', 'torec0', 'carnizpodshiv0', 'conek0', 'endova0', 'vetr0', 'prem0', 'stok0', 'snegzaderj0', 'lestnic0', 'most0', 'pokr0', 'aerator0', 'aerator_pri0', 'okna0', 'vrez0', 'kolpak0', 'flug0', 'korn0', 'aero0'];
    jQuery.each(listElem1, function(i, id) {
		if (!jQuery('#'+id).attr("checked")) {
			jQuery('#'+id).parent().parent().parent().next().hide();
		}
		jQuery('#'+id).next().click(function(){
			jQuery('#'+id).parent().parent().parent().next().toggle();
		});
    });
    var listElem2 = ['teplo0', 'kontyrteplo0'];
    jQuery.each(listElem2, function(i, id) {
		if (!jQuery('#'+id).attr("checked")) {
			jQuery('#'+id).parent().parent().parent().next().hide();
			jQuery('#'+id).parent().parent().parent().next().next().hide();
		}
		jQuery('#'+id).next().click(function(){
			jQuery('#'+id).parent().parent().parent().next().toggle();
			jQuery('#'+id).parent().parent().parent().next().next().toggle();
		});
    });
});
jQuery(document).ready(function(){
	if (!jQuery('#proj_c0').attr("checked")) {jQuery(".rsform-block-upload-pr").hide();}
	jQuery('#proj_c0').next().click(function(){jQuery(".rsform-block-upload-pr").toggle();});
});

jQuery(document).ready(function(){
    var sendvich = function() {
	jQuery("#s_tupe option:selected").each(function () {
		if (jQuery(this).text() == jQuery('#s_tupe option:eq(0)').text()) {
			jQuery('.rsform-block-s-to').hide();
			jQuery('.rsform-block-s-st').hide();
			jQuery('.rsform-block-s-p').hide();
		}
		if (jQuery(this).text() == jQuery('#s_tupe option:eq(1)').text()) {
			jQuery('.rsform-block-s-to').show();
			jQuery('.rsform-block-s-st').hide();
			jQuery('.rsform-block-s-p').show();
		}
		if (jQuery(this).text() == jQuery('#s_tupe option:eq(2)').text()) {
			jQuery('.rsform-block-s-to').hide();
			jQuery('.rsform-block-s-st').show();
			jQuery('.rsform-block-s-p').show();
		}
	});
	}
	sendvich();
	jQuery("#s_tupe").change(function () {
		sendvich();
	});
});
</script>
<script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
jQuery(document).ready(function(){
    var listrem = ['stajka0', 'dveri0', 'batarei0', 'plitka_k0', 'plitka0', 'dekor_mazaika0', 'doboi0', 'svetnasteny0', 'lustra0', 'tochsvet0', 'amstrong0', 'rozetkinaruj0', 'rozetkavnutr0'];
    jQuery.each(listrem, function(i, id) {
	if (!jQuery('#'+id).attr("checked")) {jQuery('#'+id).parent().parent().parent().next().hide();}
		jQuery('#'+id).next().click(function(){
			if (jQuery('#'+id).attr("checked")) {jQuery('#'+id).parent().parent().parent().next().hide();}
			else {jQuery('#'+id).parent().parent().parent().next().show();}
		});
    });
    
    if (!jQuery('#mpod0').attr("checked")) {jQuery('#mpod0').parent().parent().parent().next().hide();jQuery('#mpod0').parent().parent().parent().next().next().hide();}
    jQuery('#mpod0').next().click(function(){
	if (jQuery('#mpod0').attr("checked")) {
	    jQuery('#mpod0').parent().parent().parent().next().hide();
	    jQuery('#mpod0').parent().parent().parent().next().next().hide();
	}
	else {jQuery('#mpod0').parent().parent().parent().next().show();jQuery('#mpod0').parent().parent().parent().next().next().show();}
    });
		
    var listremsel = ['oboi', 'korobka', 'liftm'];

	jQuery.each(listremsel, function(i, id) {
		var hid_sp = function(id) {
			jQuery("#"+id+" option:selected").each(function () {
				if (jQuery(this).text() == jQuery('#'+id+' option:eq(0)').text()) {jQuery('.rsform-block-'+id).next().hide();}
				else {jQuery('.rsform-block-'+id).next().show();}
			});
		}
		hid_sp(id);
		jQuery("#"+id).change(function () { hid_sp(id);	});
	});
    
    
    
    jQuery.each(listremsel, function(i, id) {
	jQuery('#'+id+' option:selected').each(function () {
		if (jQuery(this).text() == jQuery('#'+id+' option:eq(0)').text()) {jQuery('#'+id).parent().parent().parent().next().hide();}
		else {jQuery('#'+id).parent().parent().parent().next().show();}
	});
	jQuery('#'+id).change(function () {
		jQuery('#'+id+' option:selected').each(function () {
			if (jQuery(this).text() == jQuery('#'+id+' option:eq(0)').text()) {jQuery('#'+id).parent().parent().parent().next().hide();}
			else {jQuery('#'+id).parent().parent().parent().next().show();}
		});
	});
    });
    
    if (!jQuery('#pol_demontaj0').attr("checked")) {jQuery('.rsform-block-pol-demontaj').next().hide();}
    jQuery('#pol_demontaj0').next().click(function(){
		if (jQuery('#pol_demontaj0').attr("checked")) {jQuery('.rsform-block-pol-demontaj').next().hide();}
		else {jQuery('.rsform-block-pol-demontaj').next().show();}
    });

	
	
	var listtypcl = ['tupe-col', 'kol-vid'],
	typen = ['tupe', 'kvid'];
	
	jQuery.each(listtypcl, function(i, id) {
		jQuery('.rsform-block-'+id).next().addClass(typen[i]);
		jQuery('.rsform-block-'+id).next().next().addClass(typen[i]);
		jQuery('.rsform-block-'+id).next().next().next().addClass(typen[i]);
		jQuery('.rsform-block-'+id).next().next().next().next().addClass(typen[i]);
		jQuery('.rsform-block-'+id).next().next().next().next().next().addClass(typen[i]);
		jQuery('.rsform-block-'+id).next().next().next().next().next().next().addClass(typen[i]);
	});	
	
	var pokritie = function() {
		jQuery("#tupe_col option:selected").each(function () {
			if (jQuery(this).text() == jQuery('#tupe_col option:eq(0)').text()) {jQuery('.tupe').hide();}
			if (jQuery(this).text() == jQuery('#tupe_col option:eq(1)').text()) {
				jQuery('.tupe').hide();
				jQuery('.rsform-block-tupe-col').next().show();;
				jQuery('.rsform-block-tupe-col').next().next().show();
			}
			if (jQuery(this).text() == jQuery('#tupe_col option:eq(2)').text()) {
				jQuery('.tupe').show();
				jQuery('.rsform-block-tupe-col').next().next().next().next().next().hide();;
				jQuery('.rsform-block-tupe-col').next().next().next().next().next().next().hide();
			}
			if (jQuery(this).text() == jQuery('#tupe_col option:eq(3)').text()) {jQuery('.tupe').show();}
		});
	}
	var vid_potolok = function() {
		jQuery("#kol_vid option:selected").each(function () {
			if (jQuery(this).text() == jQuery('#kol_vid option:eq(0)').text()) {jQuery('.kvid').hide();}
			if (jQuery(this).text() == jQuery('#kol_vid option:eq(1)').text()) {
				jQuery('.kvid').hide();
				jQuery('.rsform-block-kol-vid').next().show();;
				jQuery('.rsform-block-kol-vid').next().next().show();
			}
			if (jQuery(this).text() == jQuery('#kol_vid option:eq(2)').text()) {
				jQuery('.kvid').show();
				jQuery('.rsform-block-kol-vid').next().next().next().next().next().hide();;
				jQuery('.rsform-block-kol-vid').next().next().next().next().next().next().hide();
			}
			if (jQuery(this).text() == jQuery('#kol_vid option:eq(3)').text()) {jQuery('.kvid').show();}
		});
	}
	var vid_okna = function() {
		jQuery("#okna_tupe option:selected").each(function () {
			if (jQuery(this).text() == jQuery('#okna_tupe option:eq(0)').text()) {
				jQuery('.rsform-block-kol-okna').hide();
				jQuery('.rsform-block-kol-okna-blok').hide();
			}
			if (jQuery(this).text() == jQuery('#okna_tupe option:eq(1)').text()) {
				jQuery('.rsform-block-kol-okna').show();
				jQuery('.rsform-block-kol-okna-blok').hide();
			}
			if (jQuery(this).text() == jQuery('#okna_tupe option:eq(2)').text()) {
				jQuery('.rsform-block-kol-okna').show();
				jQuery('.rsform-block-kol-okna-blok').show();
			}
		});
	}
	
	pokritie(); vid_potolok(); vid_okna();
	jQuery("#tupe_col").change(function () {pokritie();});
	jQuery("#kol_vid").change(function () {vid_potolok();});
	jQuery("#okna_tupe").change(function () {vid_okna();});
	
	if (!jQuery('#napol0').attr("checked")) {jQuery('.rsform-block-napol').next().hide();jQuery('.tupe').hide();}
    jQuery('#napol0').next().click(function(){
		if (jQuery('#napol0').attr("checked")) {jQuery('.rsform-block-napol').next().hide();jQuery('.tupe').hide();}
		else {jQuery('.rsform-block-napol').next().show();pokritie();}
    });
	if (!jQuery('#kol_potolok0').attr("checked")) {jQuery('.rsform-block-kol-potolok').next().hide();jQuery('.kvid').hide();}
    jQuery('#kol_potolok0').next().click(function(){
		if (jQuery('#kol_potolok0').attr("checked")) {jQuery('.rsform-block-kol-potolok').next().hide();jQuery('.kvid').hide();}
		else {jQuery('.rsform-block-kol-potolok').next().show();vid_potolok();}
    });
	if (!jQuery('#okna0').attr("checked")) {
		jQuery('.rsform-block-okna').next().hide();
		jQuery('.rsform-block-kol-okna').hide();
		jQuery('.rsform-block-kol-okna-blok').hide();
	}
    jQuery('#okna0').next().click(function(){
		if (jQuery('#okna0').attr("checked")) {
			jQuery('.rsform-block-okna').next().hide();
			jQuery('.rsform-block-kol-okna').hide();
			jQuery('.rsform-block-kol-okna-blok').hide();
		}
		else {jQuery('.rsform-block-okna').next().show();vid_okna();}
    });
});
</script>

<script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
jQuery(document).ready(function(){
	var listbeton = ['nasechka0', 'zaglaj0', 'temp0', 'zadelka0', 'proj_c0', 'zcfg0', 'pcfg0'];
	jQuery.each(listbeton, function(i, id) {
		if (!jQuery('#'+id).attr("checked")) {jQuery('#'+id).parent().parent().parent().next().hide();}
		jQuery('#'+id).next().click(function(){
			if (jQuery('#'+id).attr("checked")) {jQuery('#'+id).parent().parent().parent().next().hide();}
			else {jQuery('#'+id).parent().parent().parent().next().show();}
		});
    });
    
    var listbetongroup1 = ['sp0', 'sop0', 'ppz0', 'fun0', 'lm0', 'pp0', 'pok0', 'pdk0'];
    var listbetongroup2 = ['beton', 'beton-title-copy', 'beton3', 'beton4', 'beton5', 'beton6', 'beton7', 'beton8'];
    jQuery.each(listbetongroup1, function(i, id) {
	jQuery(".rsform-block-betonpod-title").before('<div id="beton_'+id+'"></div>');
	jQuery('.rsform-block-'+listbetongroup2[i]).addClass('block_'+id);
	jQuery('.rsform-block-'+listbetongroup2[i]).next().addClass('block_'+id);
	jQuery('.rsform-block-'+listbetongroup2[i]).next().next().addClass('block_'+id);
	jQuery('.rsform-block-'+listbetongroup2[i]).next().next().next().addClass('block_'+id);
	jQuery('.rsform-block-'+listbetongroup2[i]).next().next().next().next().addClass('block_'+id);
	var betons = '';
	betons = jQuery('.block_'+id).detach(); jQuery('#beton_'+id).html(betons);
	
	if (!jQuery('#'+id).attr("checked")) {jQuery('.block_'+id).hide();}
	jQuery('#'+id).next().click(function(){
		if (jQuery('#'+id).attr("checked")) {jQuery('.block_'+id).hide();}
		else {jQuery('.block_'+id).show();}
	});
    });
    
	if (!jQuery('#razlomka0').attr("checked")) {jQuery(".rsform-block-shtrabtype-dom").hide(); jQuery(".rsform-block-razlommetrov").hide();}
	jQuery('.rsform-block-razlomka label').click(function(){jQuery(".rsform-block-shtrabtype-dom").toggle(); jQuery(".rsform-block-razlommetrov").toggle();});
	jQuery("#betonizgot option:selected").each(function () {
		if (jQuery(this).text() == jQuery('#betonizgot option:eq(0)').text()) {jQuery('.rsform-block-izgotcub').hide();}
	});
	jQuery("#betonizgot").change(function () {
		jQuery("#betonizgot option:selected").each(function () {
			if (jQuery(this).text() == jQuery('#betonizgot option:eq(0)').text()) {jQuery('.rsform-block-izgotcub').hide();}
			else {jQuery('.rsform-block-izgotcub').show();}
		});
	});
});
</script>

<script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <style>
.jq-selectbox {width: 400px !important;}
</style>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
function rsfp_conditionalPage(formId, page, totalPages, validate){
	
	if(page == 1 && document.getElementById('skip0').checked && typeof validate != 'undefined'){
		rsfp_changePage(formId, page+1, totalPages, validate);
		return '';
	}

	if(page == 1 && document.getElementById('skip0').checked && typeof validate == 'undefined'){
		rsfp_changePage(formId, page-1, totalPages, validate);
		return '';
	}
	rsfp_changePage(formId, page, totalPages, validate);
}

jQuery(document).ready(function(){
	if (!jQuery('#divann0').attr("checked")) {
		jQuery(".rsform-block-divan-t").hide();
		jQuery(".rsform-block-divan-r").hide();
	}
	jQuery('.rsform-block-divann label').click(function(){
		jQuery(".rsform-block-divan-t").toggle();
		jQuery(".rsform-block-divan-r").toggle();
	});
	
	if (!jQuery('#stolnado0').attr("checked")) {
		jQuery(".rsform-block-stol-t").hide();
		jQuery(".rsform-block-kol-s").hide();
	}
	jQuery('.rsform-block-stolnado label').click(function(){
		jQuery(".rsform-block-stol-t").toggle();
		jQuery(".rsform-block-kol-s").toggle();
	});
	
	if (!jQuery('#kreslo_s0').attr("checked")) {
		jQuery(".rsform-block-kreslo-k").hide();
	}
	jQuery('.rsform-block-kreslo-s label').click(function(){
		jQuery(".rsform-block-kreslo-k").toggle();
	});
	
	if (!jQuery('#tumba0').attr("checked")) {
		jQuery(".rsform-block-tumba-p").hide();
		jQuery(".rsform-block-tumb-k").hide();
	}
	jQuery('.rsform-block-tumba label').click(function(){
		jQuery(".rsform-block-tumba-p").toggle();
		jQuery(".rsform-block-tumb-k").toggle();
	});
	
	if (!jQuery('#styul0').attr("checked")) {
		jQuery(".rsform-block-styul-kol").hide();
	}
	jQuery('.rsform-block-styul label').click(function(){
		jQuery(".rsform-block-styul-kol").toggle();
	});
	
	if (!jQuery('#shkaf_s0').attr("checked")) {
		jQuery(".rsform-block-shkaf-d").hide();
		jQuery(".rsform-block-shkaf-dv").hide();
	}
	jQuery('.rsform-block-shkaf-s label').click(function(){
		jQuery(".rsform-block-shkaf-d").toggle();
		jQuery(".rsform-block-shkaf-dv").toggle();
	});
	
	if (!jQuery('#garn0').attr("checked")) {
		jQuery(".rsform-block-garn-d").hide();
		jQuery(".rsform-block-garn-s").hide();
		jQuery(".rsform-block-garn-v").hide();
		jQuery(".rsform-block-ganr-razm").hide();
	}
	jQuery('.rsform-block-garn label').click(function(){
		jQuery(".rsform-block-garn-d").toggle();
		jQuery(".rsform-block-garn-s").toggle();
		jQuery(".rsform-block-garn-v").toggle();
		jQuery(".rsform-block-ganr-razm").toggle();
	});
	
	if (!jQuery('#elit0').attr("checked")) {
		jQuery(".rsform-block-elit-s").hide();
	}
	jQuery('.rsform-block-elit label').click(function(){
		jQuery(".rsform-block-elit-s").toggle();
	});
});
</script>

<script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <style>
.rsform-block-divann label, .rsform-block-stolnado label, .rsform-block-kreslo-s label, .rsform-block-tumba label, .rsform-block-styul label, .rsform-block-shkaf-s label, .rsform-block-garn label, .rsform-block-elit label {
    margin-left: -19px !important;
    padding-left: 19px !important;
}
</style>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
jQuery(document).ready(function(){
    var listEl2 = ['chel_s0', 'pomech0', 'vid0'];
    jQuery.each(listEl2, function(i, id) {
	if (!jQuery('#'+id).attr("checked")) {jQuery('#'+id).parent().parent().parent().next().hide();}
	jQuery('#'+id).next().click(function(){
	    if (jQuery('#'+id).attr("checked")) {jQuery('#'+id).parent().parent().parent().next().hide();}
	    else {jQuery('#'+id).parent().parent().parent().next().show();}
	});
    });
jQuery("select#techno option:selected").each(function () {
	if ((jQuery(this).text() == jQuery('#techno option:eq(0)').text()) || (jQuery(this).text() == jQuery('#techno option:eq(1)').text())) {
		jQuery('.rsform-block-ploshad').hide();
	}
});
	jQuery("#techno").change(function () {
		var str = "";
		jQuery("select#techno option:selected").each(function () {
			if ((jQuery(this).text() == jQuery('#techno option:eq(0)').text()) || (jQuery(this).text() == jQuery('#techno option:eq(1)').text())) {
				jQuery('.rsform-block-ploshad').hide();
			} else {
				jQuery('.rsform-block-ploshad').show();
			}
		});
	});
	
	jQuery("#type_rezj option:selected").each(function () {
		if (jQuery(this).text() == jQuery('#type_rezj option:eq(0)').text()) {
			jQuery('.rsform-block-chas-raz').hide();
			jQuery('.rsform-block-rejum').hide();
			jQuery('.rsform-block-chasov').hide();
		}
		if (jQuery(this).text() == jQuery('#type_rezj option:eq(1)').text()) {
			jQuery('.rsform-block-chas-raz').show();
			jQuery('.rsform-block-rejum').hide();
			jQuery('.rsform-block-chasov').hide();
		}
		if (jQuery(this).text() == jQuery('#type_rezj option:eq(2)').text()) {
			jQuery('.rsform-block-chas-raz').hide();
			jQuery('.rsform-block-rejum').show();
			jQuery('.rsform-block-chasov').show();
		}
	});
	jQuery("#type_rezj").change(function () {
		jQuery("#type_rezj option:selected").each(function () {
			if (jQuery(this).text() == jQuery('#type_rezj option:eq(0)').text()) {
				jQuery('.rsform-block-chas-raz').hide();
				jQuery('.rsform-block-rejum').hide();
				jQuery('.rsform-block-chasov').hide();
			}
			if (jQuery(this).text() == jQuery('#type_rezj option:eq(1)').text()) {
				jQuery('.rsform-block-chas-raz').show();
				jQuery('.rsform-block-rejum').hide();
				jQuery('.rsform-block-chasov').hide();
			}
			if (jQuery(this).text() == jQuery('#type_rezj option:eq(2)').text()) {
				jQuery('.rsform-block-chas-raz').hide();
				jQuery('.rsform-block-rejum').show();
				jQuery('.rsform-block-chasov').show();
			}
		});
	});
});
</script>


<script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <style>
.rsform-block-chel-s label, .rsform-block-pomech label, .rsform-block-vid label {
margin-left: -19px !Important;
padding-left: 19px !Important;
}
</style>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript"> 
  function s(v) { document.getElementById('res').value = v } 
  function a(v) { document.getElementById('res').value += v } 
  function e() { try { s(eval(document.getElementById('res').value)) } catch(e) { s('Error') } } 
</script>
<script type="text/javascript">
<script type="text/javascript">
jQuery(document).ready(function(){
    jQuery('#lustra_add0').next().click(function(){jQuery(".rsform-block-lustrapot").toggle();jQuery(".rsform-block-lustra").toggle();});
    jQuery('#proj_c0').next().click(function(){jQuery(".rsform-block-upload-pr").toggle();});
    if (!jQuery('#lustra_add20').attr("checked")) {jQuery(".rsform-block-lustrapot2").hide();jQuery(".rsform-block-lustra2").hide();}
    jQuery('#lustra_add20').next().click(function(){jQuery(".rsform-block-lustrapot2").toggle();jQuery(".rsform-block-lustra2").toggle();});
	
    
    jQuery('.rsform-block-yslugicalk').removeClass('arm');
    jQuery('.rsform-block-vid').removeClass('arm');
    jQuery('.rsform-block-ygol').removeClass('arm');
    jQuery('.rsform-block-troby').removeClass('arm');
    jQuery('.rsform-block-ploshad2').removeClass('arm');
    jQuery("#vid option:selected").each(function () {
		if (jQuery(this).text() == jQuery('#vid option:eq(3)').text()) {jQuery('.arm').hide();}
		else {
			jQuery('.arm').show();
			if (!jQuery('#lustra_add0').attr("checked")) {jQuery(".rsform-block-lustrapot").hide();jQuery(".rsform-block-lustra").hide();}
			if (!jQuery('#proj_c0').attr("checked")) {jQuery(".rsform-block-upload-pr").hide();}
		}
    });
    jQuery("#vid").change(function () {
		jQuery("#vid option:selected").each(function () {
			if (jQuery(this).text() == jQuery('#vid option:eq(3)').text()) {jQuery('.arm').hide();}
			else {
				jQuery('.arm').show();
				if (!jQuery('#lustra_add0').attr("checked")) {jQuery(".rsform-block-lustrapot").hide();jQuery(".rsform-block-lustra").hide();}
				if (!jQuery('#proj_c0').attr("checked")) {jQuery(".rsform-block-upload-pr").hide();}
			}
		});
    });
    
});
</script>
<script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <style>
.calc { 
  margin: 50px auto; 
  padding: 15px; 
  width: 177px; 
  border: 1px solid #222; 
  border-radius: 4px; 
  background-color: #3d4543; 
} 

.calc-display { 
  margin: 0 0 0px; 
  padding: 3px; 
  background: #FFF;
  border-radius: 3px; 
} 

.calc-display-input { 
  display: block; 
  width: 155px !IMPORTANT; 
  padding: 0 8px; 
  font: 26px/35px UbuntuMono, monospace !IMPORTANT; 
  color: #000; 
  height: 35px; 
  text-align: right; 
  background-clip: padding-box; 
  /* Don't let the background bleed outside the border */ 
  border: 1px solid #222; 
  border-radius: 2px; 
} 

.calc-row { 
  margin-top: 7px; 
  zoom: 1; 
} 
.calc-row:before, .calc-row:after { 
  content: ""; 
  display: table; 
} 
.calc-row:after { 
  clear: both; 
} 

.calc-button { 
  float: left; 
  padding: 0; 
  margin: 2px 2px 2px 3px; 
  width: 39px; 
  font: 14px/23px UbuntuMono, monospace; 
  color: white; 
  text-align: center; 
  text-shadow: 0 1px rgba(0, 0, 0, 0.4); 
  text-decoration: none; 
  background-clip: padding-box !important; 
  /* !important because FF overrides the value on :active */ 
  border: 0; 
  /* IE 8 fix */ 
  border: 1px solid rgba(0, 0, 0, 0.8); 
  border-radius: 3px; 
  cursor: pointer; 
  background-color: #313131; 
} 
.calc-button:first-child { 
  margin-left: 0; 
} 
.calc-button:active { 
  background: #282828; 
} 

.calc-button-gray { 
  background-color: #6f6f6f; 
} 
.calc-button-gray:active { 
  background: #555; 
} 

.calc-button-red { 
  background-color: #B3B3B3; 
} 
.calc-button-red:active { 
  background: #B3B3B3; 
} 

.calc-button-yellow { 
  background-color: #1b3e59; 
} 
.calc-button-yellow:active { 
  background: #1b3e59; 
} 

.calc-button-big { 
  font-size: 16px; 
}
</style>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
function displayField()
{
  if(document.getElementsByName('form[Radio]')[0].checked)
  document.getElementById('next1Next').style.display="none";
 
  if(document.getElementsByName('form[Radio]')[1].checked)
  document.getElementById('next1Next').style.display="";
}
function rsfp_conditionalPage(formId, page, totalPages, validate){
	
	if(page == 1 && document.getElementById('skip0').checked && typeof validate != 'undefined'){
		rsfp_changePage(formId, page+1, totalPages, validate);
		return '';
	}

	if(page == 1 && document.getElementById('skip0').checked && typeof validate == 'undefined'){
		rsfp_changePage(formId, page-1, totalPages, validate);
		return '';
	}
	rsfp_changePage(formId, page, totalPages, validate);
}

jQuery(document).ready(function(){
    var listElem1 = ['material', 'materialsteny'];
    var listElem2 = ['izolsten0', 'kabel0', 'dekorsteny0', 'vent_m0', 'vent_s0', 'vent_f0'];
    jQuery.each(listElem1, function(i, id) {
	jQuery("#"+id+" option:selected").each(function () {
		if (jQuery(this).text() == jQuery('#'+id+' option:eq(0)').text()) {
			jQuery('.rsform-block-'+id).next().hide();
		}
	});
	jQuery("#"+id).change(function () {
		jQuery("#"+id+" option:selected").each(function () {
			if (jQuery(this).text() == jQuery('#'+id+' option:eq(0)').text()) {
				jQuery('.rsform-block-'+id).next().hide();
			}
			else {jQuery('.rsform-block-'+id).next().show();}
		});
	});
    });
	
    jQuery.each(listElem2, function(i, id) {
		if (!jQuery('#'+id).attr("checked")) {
			jQuery('#'+id).parent().parent().parent().next().hide();
		}
		jQuery('#'+id).next().click(function(){
			jQuery('#'+id).parent().parent().parent().next().toggle();
		});
    });
	
	jQuery("#polkisteny").change(function () {
		jQuery("#polkisteny option:selected").each(function () {
			if (jQuery(this).text() == jQuery('#polkisteny option:eq(0)').text()) {
				jQuery('.rsform-block-polkisteny').next().hide();jQuery('.rsform-block-polkisteny').next().next().hide();
			}
			else {jQuery('.rsform-block-polkisteny').next().show();jQuery('.rsform-block-polkisteny').next().next().show();}
		});
	});
	jQuery("#polkisteny option:selected").each(function () {
		if (jQuery(this).text() == jQuery('#polkisteny option:eq(0)').text()) {
			jQuery('.rsform-block-polkisteny').next().hide();jQuery('.rsform-block-polkisteny').next().next().hide();
		} 
	});
});

jQuery(document).ready(function(){
	if (!jQuery('#proj_c0').attr("checked")) {jQuery(".rsform-block-upload-pr").hide();}
	jQuery('#proj_c0').next().click(function(){jQuery(".rsform-block-upload-pr").toggle();});
});
</script>
<script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
jQuery(document).ready(function(){

    var oboi = function() {
	var listoboi = ['ssp0', 'sso0', 'ssk0', 'skp0', 'sspa0', 'sst0', 'svt0', 'nst0','ndek0','shpak0','vcc0','vvv0','alms0','perfs0','ojo0','ofoo0'];
	jQuery.each(listoboi, function(i, id) {
	    jQuery('#'+id).parent().parent().parent().next().hide();
	    jQuery('#'+id).next().click(function(){
		if (jQuery('#'+id).is(':checked')) {jQuery('#'+id).parent().parent().parent().next().hide();}
		else {jQuery('#'+id).parent().parent().parent().next().show();}
	    });
	});
    }
    oboi();
        var oboi2 = function() {
	var listoboi2 = ['pokr0', 'obo0', 'ovio0', 'ofo0', 'oto0'];
	jQuery.each(listoboi2, function(i, id) {
	    jQuery('#'+id).parent().parent().parent().next().hide();
	    jQuery('#'+id).parent().parent().parent().next().next().hide();
	    jQuery('#'+id).parent().parent().parent().next().next().next().hide();
	    jQuery('#'+id).parent().parent().parent().next().next().next().next().hide();
	    
	    jQuery('#'+id).next().click(function(){
		if (jQuery('#'+id).is(':checked')) {
		    jQuery('#'+id).parent().parent().parent().next().hide();
		    jQuery('#'+id).parent().parent().parent().next().next().hide();
		    jQuery('#'+id).parent().parent().parent().next().next().next().hide();
		    jQuery('#'+id).parent().parent().parent().next().next().next().next().hide();
		}
		else {
		    jQuery('#'+id).parent().parent().parent().next().show();
		    jQuery('#'+id).parent().parent().parent().next().next().show();
		    jQuery('#'+id).parent().parent().parent().next().next().next().show();
		    jQuery('#'+id).parent().parent().parent().next().next().next().next().show();
		}
	    });
	});
    }
    oboi2();

	    jQuery('#ovo0').parent().parent().parent().next().hide();
	    jQuery('#ovo0').parent().parent().parent().next().next().hide();
	    jQuery('#ovo0').parent().parent().parent().next().next().next().hide();
	    
	    jQuery('#ovo0').next().click(function(){
		if (jQuery('#ovo0').is(':checked')) {
		    jQuery('#ovo0').parent().parent().parent().next().hide();
		    jQuery('#ovo0').parent().parent().parent().next().next().hide();
		    jQuery('#ovo0').parent().parent().parent().next().next().next().hide();
		}
		else {
		    jQuery('#ovo0').parent().parent().parent().next().show();
		    jQuery('#ovo0').parent().parent().parent().next().next().show();
		    jQuery('#ovo0').parent().parent().parent().next().next().next().show();
		}
	    });


	var number = jQuery('fieldset.formContainer').attr('id').replace('rsform_','');
    number = number.replace('_page_0','');
	var sum = parseInt(jQuery('#sum').val().replace(',',''));
	var flaa = false;
    jQuery('#rsform_'+number+'_page_0').children().each(function() {
		var t = jQuery(this);
		if (t.attr('class') == 'rsform-block rsform-block-osnova-title') { flaa = true;}
		if (flaa) {t.addClass('blip');}
    });
    jQuery(".rsform-block-soglasenform").after('<div id="blip"></div>');
    var blip = jQuery('.blip').detach(); jQuery("#blip").html(blip);

    if (!jQuery('#soglasenform0').attr("checked")) {jQuery("#blip").hide();}
    else {jQuery(".rsform-block-vozvr").hide();}
    jQuery('#soglasenform0').next().click(function(){
		jQuery("#blip").toggle();jQuery(".rsform-block-vozvr").toggle();
    });
	var fiz_ur = function(tot) {
		if (tot < 6000) {
			jQuery('.rsform-block-skip').hide();jQuery('#fiz').hide();jQuery('#urlic').hide();jQuery('.rsform-block-name-easy').show();
		} else {
		    jQuery('.rsform-block-skip').show();
		    jQuery('#fiz').show();jQuery('#urlic').show();
		    jQuery('.rsform-block-name-easy').hide();
		    jQuery("#skip option:selected").each(function () {
				if (jQuery(this).text() == jQuery('#skip option:eq(0)').text()) {jQuery('#urlic').hide();}
		    });
		}
	}
	fiz_ur(sum);
	jQuery("#userForm").change(function () {
		var tot = parseInt(jQuery('#sum').val().replace(',',''));fiz_ur(tot);
	});

	jQuery(".rsform-block-dogovorzakl").after('<div id="fiz"></div><div id="urlic"></div>');

	var listfiz = ['osnova-title-copy', 'name', 'reg', 'pass', 'passvidocha', 'organ', 'kod'];
	jQuery.each(listfiz, function(i, id) {	jQuery('.rsform-block-'+id).addClass('fiz');});
	var fiz =  jQuery('.fiz').detach();	jQuery("#fiz").html(fiz);jQuery('.fiz').removeClass('blip');
	
	var listurlic = ['osnova-title-copy-copy3', 'osnovanie', 'uradres', 'dolj', 'svid-n','osnova-title-copy-copy3-copy', 'name-org', 'rshet', 'korshet', 'bik', 'kpp', 'ogrn', 'inn'];
	jQuery.each(listurlic, function(i, id) {jQuery('.rsform-block-'+id).addClass('urlic');});
	var urlic =  jQuery('.urlic').detach();	jQuery("#urlic").html(urlic);jQuery('.urlic').removeClass('blip');
	
	jQuery("#skip option:selected").each(function () {
		if (jQuery(this).text() == jQuery('#skip option:eq(0)').text()) {jQuery('#urlic').hide();}
	});
	jQuery("#skip").change(function () {
		jQuery("#skip option:selected").each(function () {
			if (jQuery(this).text() == jQuery('#skip option:eq(0)').text()) {jQuery('#urlic').hide();}
			else {jQuery('#urlic').show();}
		});
	});
	
	jQuery("#osnovanie option:selected").each(function () {
		if (jQuery(this).text() == jQuery('#osnovanie option:eq(0)').text()) {
			jQuery('.rsform-block-uradres').hide();
			jQuery('.rsform-block-dolj').hide();
			jQuery('.rsform-block-svid-n').hide();
		} else {
		if (jQuery(this).text() == jQuery('#osnovanie option:eq(1)').text()) {
			jQuery('.rsform-block-uradres').hide();
			jQuery('.rsform-block-dolj').hide();
		}
		else {jQuery('.rsform-block-svid-n').hide();}
		}
	});
	jQuery("#osnovanie").change(function () {
		jQuery("#osnovanie option:selected").each(function () {
			if (jQuery(this).text() == jQuery('#osnovanie option:eq(1)').text()) {
				jQuery('.rsform-block-uradres').hide();
				jQuery('.rsform-block-dolj').hide();
				jQuery('.rsform-block-svid-n').show();
			}
			else {jQuery('.rsform-block-svid-n').hide();jQuery('.rsform-block-dolj').show();jQuery('.rsform-block-uradres').show();}
		});
	});
	
	var fla = false;
	jQuery('#blip').children().each(function() {
		var t = jQuery(this);
		if (t.attr('class') == 'rsform-block rsform-block-time blip') { fla = true;}
		if (fla) {t.addClass('hidd'); t.removeClass('blip');}
	});
	jQuery(".rsform-block-zakaz").after('<div id="hidd"></div>');
	var hidd =  jQuery('.hidd').detach();jQuery("#hidd").html(hidd);
	jQuery("#hidd").hide();	jQuery(".hidd").removeClass('hidd');

	jQuery("#userForm").after('<div class="pop_inps"></div>');
    function isValidAdr(NameAdr) {
        var pattern3 = new RegExp(/^[-0-9а-яА-Я., ]+$/i);
        return pattern3.test(NameAdr);
    }
	var listElemrus1 = ['ulic', 'organ', 'reg'];
	var listElemtxt1 = ['Место оказания услуг', 'Орган выдавший пасспорт', 'Адрес регистрации ( прописки )'];
	jQuery.each(listElemrus1, function(i, id) {
		jQuery("#"+id).change(function () {
			if(!isValidAdr(jQuery("#"+id).val())){
				jQuery(".pop_inps").empty().html(listElemtxt1[i]+' содержит только русские буквы цифры или знаки препинания').show();
				setTimeout(function(){ jQuery(".pop_inps").hide('slow') }, 7500);
			}
		});
    });

    function isValidNameFIO(NameFIO) {
        var pattern2 = new RegExp(/^[а-яА-Я ]+$/i);
        return pattern2.test(NameFIO);
    }
	var listElemrus2 = ['name', 'name_easy', 'dolj'];
	var listElemtxt2 = ['Имя Фамилия Отчество', 'Имя Фамилия Отчество', 'Должность'];
	jQuery.each(listElemrus2, function(i, id) {
		jQuery("#"+id).change(function () {
			if(!isValidNameFIO(jQuery("#"+id).val())){
				jQuery(".pop_inps").empty().html(listElemtxt2[i]+' содержит только русские буквы').show();
				setTimeout(function(){ jQuery(".pop_inps").hide('slow') }, 7500);
			}
		});
    });

	jQuery("#userForm").after('<div class="pop_inp"></div>');
	var listElemlen = ['email', 'tel', 'name_easy', 'ulic', 'name', 'reg', 'pass', 'kod', 'organ', 'uradres', 'rshet', 'svid_n', 'korshet', 'bik', 'kpp', 'ogrn', 'inn'];
	var listtx = ['E-mail', 'Телефон', '<b>ФИО должно быть полным</b>, а сейчас', 'Место оказания услуги', 'Имя Фамилия Отчество', 'Прописка', 'Серия и номер паспорта', 'Код подразделения', 'Орган выдавший паспорт', 'Юридический адрес', 'Расчетный счет', 'Номер свидетельства', 'Короткий счет', 'БИК', 'КПП', 'ОГРН', 'ИНН'];
	var listElemdl = [5, 6, 12, 6, 12, 12, 10, 6, 16, 8, 24, 12, 19, 9, 9, 13, 12];
	jQuery.each(listElemlen, function(i, id) {
		jQuery("#"+id).change(function () {
			if(jQuery("#"+id).val().length < listElemdl[i]){
				jQuery(".pop_inp").empty().html(listtx[i]+' содержит слишком мало символов').show();
				setTimeout(function(){ jQuery(".pop_inp").hide('slow') }, 4500);
			}
		});
    });

	var zapyatie = function(sim){
		var text = sim.toFixed(2);
		var sim_len = text.length-3;
		var sim_last = text.substr(sim_len,3);
		var sim_sec = '';
		var sim_tri = '';
		if (sim > 999) { //Если больше 1000, добавляем запятую
			sim = sim/1000;
			sim_len = sim_len-3;
			sim_sec = ','+text.substr(sim_len,3);
		}
		if (sim > 999) { //Поделили на 1000 и опять больше 1000, добавляем запятую
			sim = sim/1000;
			sim_len = sim_len-3;
			sim_tri = ','+text.substr(sim_len,3);
		}

		var stroka = Math.floor(sim)+sim_tri+sim_sec+sim_last;
		return stroka;
	}

	var proc_mang = function(tot) {
		var m_disc = parseInt(jQuery('#m_diskount').val().replace(',',''));
		var itog = m_disc;
		if ((tot >= 5000) && (tot < 15000)) {itog = m_disc*1;}
		if ((tot >= 15000) && (tot < 20000)) {itog = m_disc*0.98;}
		if ((tot >= 20000) && (tot < 40000)) {itog = m_disc*0.96;}
		if ((tot >= 40000) && (tot < 60000)) {itog = m_disc*0.94;}
		if ((tot >= 60000) && (tot < 80000)) {itog = m_disc*0.92;}
		if ((tot >= 80000) && (tot < 120000)) {itog = m_disc*0.90;}
		if ((tot >= 120000) && (tot < 140000)) {itog = m_disc*0.88;}
		if ((tot >= 140000) && (tot < 160000)) {itog = m_disc*0.86;}
		if ((tot >= 160000) && (tot < 180000)) {itog = m_disc*0.84;}
		if ((tot >= 180000) && (tot < 200000)) {itog = m_disc*0.82;}
		if ((tot >= 200000) && (tot < 220000)) {itog = m_disc*0.80;}
		if ((tot >= 220000) && (tot < 240000)) {itog = m_disc*0.78;}
		if ((tot >= 240000) && (tot < 260000)) {itog = m_disc*0.76;}
		if ((tot >= 280000) && (tot < 300000)) {itog = m_disc*0.74;}
		if ((tot >= 300000) && (tot < 320000)) {itog = m_disc*0.72;}
		if ((tot >= 320000) && (tot < 340000)) {itog = m_disc*0.71;}
		if ((tot >= 340000) && (tot < 100000000)) {itog = m_disc*0.70;}
		m_disc = zapyatie(itog);
		jQuery('#d_manager').val(m_disc+' руб.');
		jQuery('#d_manager_easy').val(m_disc+' Руб.');
		var conv = parseInt(jQuery('#d_manager').val().replace(',','')).toFixed(2);
		jQuery('#convertceny').val(conv);
	}
	var proc_uslug = function(tot) {
		var r_disc = parseInt(jQuery('#r_diskount').val().replace(',',''));
		var itog = r_disc;
		if ((tot >= 1000) && (tot < 2009)) {itog = r_disc*1.3;}
		if ((tot >= 2009) && (tot < 15000)) {itog = r_disc*1.0;}
		if ((tot >= 30000) && (tot < 60000)) {itog = r_disc*0.96;}
		if ((tot >= 60000) && (tot < 80000)) {itog = r_disc*0.94;}
		if ((tot >= 80000) && (tot < 100000)) {itog = r_disc*0.92;}
		if ((tot >= 100000) && (tot < 120000)) {itog = r_disc*0.90;}
		if ((tot >= 120000) && (tot < 140000)) {itog = r_disc*0.88;}
		if ((tot >= 140000) && (tot < 160000)) {itog = r_disc*0.86;}
		if ((tot >= 160000) && (tot < 180000)) {itog = r_disc*0.84;}
		if ((tot >= 180000) && (tot < 200000)) {itog = r_disc*0.82;}
		if ((tot >= 200000) && (tot < 220000)) {itog = r_disc*0.80;}
		if ((tot >= 220000) && (tot < 240000)) {itog = r_disc*0.78;}
		if ((tot >= 240000) && (tot < 260000)) {itog = r_disc*0.76;}
		if ((tot >= 280000) && (tot < 300000)) {itog = r_disc*0.74;}
		if ((tot >= 300000) && (tot < 320000)) {itog = r_disc*0.72;}
		if ((tot >= 320000) && (tot < 340000)) {itog = r_disc*0.71;}
		if ((tot >= 340000) && (tot < 100000000)) {itog = r_disc*0.70;}
		r_disc = zapyatie(itog);
		jQuery('#r_uslugi').val(r_disc);
	}
	
	
	
	
	var func = window["rsfp_Calculations" + number];
	proc_mang(sum); proc_uslug(sum);func();
	var s_tot = jQuery('#total').val();jQuery('#total').val(s_tot+' руб.');
	var d_tot = jQuery('#diskount').val();jQuery('#diskount').val(d_tot+' руб.');
	var m_tot = jQuery('#d_manager_easy').val();jQuery('#d_manager_easy').val(m_tot+' Руб.');
	jQuery("#userForm").change(function () {
		var tot = parseInt(jQuery('#sum').val().replace(',',''));
		proc_mang(tot); proc_uslug(tot); func();
		var s_tot = jQuery('#total').val();jQuery('#total').val(s_tot+' руб.');
		var d_tot = jQuery('#diskount').val();jQuery('#diskount').val(d_tot+' руб.');
		var m_tot = jQuery('#d_manager_easy').val();jQuery('#d_manager_easy').val(m_tot+' Руб.');
	});

	var hid_dis = function(tot) {
		if (tot < 6000) {
			jQuery('.rsform-block-d-manager-easy').show();
			jQuery('.rsform-block-d-manager').hide();
			jQuery('.rsform-block-yslut').hide();
			jQuery('.rsform-block-diskount').hide();
		}
		else {
			jQuery('.rsform-block-d-manager-easy').hide();
			jQuery('.rsform-block-ystt').show();
			jQuery('.rsform-block-d-manager').show();
			jQuery('.rsform-block-yslut').show();
			jQuery('.rsform-block-diskount').show();
		}
	}
	hid_dis(sum);
	jQuery("#userForm").change(function () {var tot = parseInt(jQuery('#total').val().replace(',',''));hid_dis(tot);});

    jQuery("span.lg-hover").after('<div id="tot_t"></div>');
    var tot_t =  jQuery('.rsform-block-total-top').detach();
    jQuery("#tot_t").html(tot_t); jQuery("#tot_t").hide();

    if (sum > 5000) {
		var tot_t = jQuery("#total").val();
		jQuery("#total_top").val(tot_t);jQuery("#tot_t").show();
    }
    
	var sroch = function () {
		var tot = parseInt(jQuery('#total').val().replace(',','')),
		tot_ish = jQuery('#total').val();
		pos_top = 0,
		itog_tot = 0;
		if (tot < 1500) {pos_top = 0;itog_tot = tot+150;}
		if ((tot > 1500) && (tot < 3000)) {pos_top = 1;itog_tot = tot+300;}
		if ((tot > 3000) && (tot < 10000)) {pos_top = 2;itog_tot = tot*1.1;}
		if (tot > 10000) {pos_top = 3;itog_tot = tot*1.05;}

		if (!jQuery('#srochno0').attr("checked")) {
			jQuery('.rsform-block-srochno .formDescription img').css({'top':pos_top*(-200)+'%'});
			jQuery("#total").val(tot_ish);
		} 
		else {
			jQuery('.rsform-block-srochno .formDescription img').css({'top':(pos_top*(-200))-100+'%'});
			jQuery("#total").val(zapyatie(itog_tot)+' руб.');
		}
	}
	sroch();
    jQuery("#userForm").change(function () {
		var sum = parseInt(jQuery('#sum').val().replace(',',''));
		sroch();
		var tot_t = jQuery("#total").val();
		jQuery("#total_top").val(tot_t);
		if (sum > 10) {jQuery("#tot_t").show();}
		else {jQuery("#tot_t").hide();}
    });
	
	
    
    /****************************validation fiz ur**********************************/
    
    jQuery("#add").before('<div id="valid"></div>');
	jQuery("#userForm").change(function () {
		var tot = parseInt(jQuery('#sum').val().replace(',','')),
		listfiz = ['name', 'reg', 'pass', 'kod', 'organ'];
		valid_fiz = false,
		valid_ur = false;
		valid_pasport=false;
		if (tot > 600001) {
			jQuery("#skip option:selected").each(function () {
				jQuery.each(listfiz, function(i, id) {
				    if(jQuery("#"+id).val().length < 1){
					jQuery("#"+id).addClass('rsform-error');valid_pasport = true;
				    } else {
					jQuery("#"+id).next().children().addClass('formNoError').removeClass('formError');
					jQuery("#"+id).removeClass('rsform-error');}
				});
				
				if(jQuery(".rsform-block-passvidocha input.rsform-calendar-box").val().length < 1){
					jQuery(".rsform-block-passvidocha input.rsform-calendar-box").addClass('rsform-error');valid_pasport = true;
				} else {
					jQuery(".rsform-block-passvidocha input.rsform-calendar-box").next().children().addClass('formNoError').removeClass('formError');
					jQuery(".rsform-block-passvidocha input.rsform-calendar-box").removeClass('rsform-error');
				}
				
				if (jQuery(this).text() == jQuery('#skip option:eq(0)').text()) {
				    if (valid_pasport) {valid_fiz = true;}
				} else {
					if (valid_pasport) {valid_ur = true;}
					jQuery("#osnovanie option:selected").each(function () {
						if (jQuery(this).text() == jQuery('#osnovanie option:eq(0)').text()) {valid_ur = true;} 
						else {
							if (jQuery(this).text() == jQuery('#osnovanie option:eq(1)').text()) {
								if(jQuery("#svid_n").val().length < 1){
									jQuery("#svid_n").addClass('rsform-error');valid_ur = true;
								} else {
								jQuery("#svid_n").next().children().addClass('formNoError').removeClass('formError');
								jQuery("#svid_n").removeClass('rsform-error');}
							}
							else {
								if(jQuery("#uradres").val().length < 1){
									jQuery("#uradres").addClass('rsform-error');valid_ur = true;
								} else {
								jQuery("#uradres").next().children().addClass('formNoError').removeClass('formError');
								jQuery("#uradres").removeClass('rsform-error');}
								if(jQuery("#dolj").val().length < 1){
									jQuery("#dolj").addClass('rsform-error');valid_ur = true;
								} else {
								jQuery("#dolj").next().children().addClass('formNoError').removeClass('formError');
								jQuery("#dolj").removeClass('rsform-error');}
							}
						}
					});
				}
			});
		if ((valid_fiz) || (valid_ur)) {jQuery("#valid").css({'height':'37px'});}
			else {jQuery("#valid").css({'height':'0px'});}
		} else {jQuery("#valid").css({'height':'0px'});}
		jQuery("#valid").click(function(){
			jQuery("#skip option:selected").each(function () {
				if (jQuery(this).text() == jQuery('#skip option:eq(0)').text()) {
					jQuery("#fiz .rsform-error").next().children().addClass('formError').removeClass('formNoError');
					jQuery(".pop_inp").empty().html('Не полностью заполнены Паспортные данные (Не обязательно)').show();
					setTimeout(function(){ jQuery(".pop_inp").hide('slow') }, 7500);
				} else {
					jQuery(".rsform-error").next().children().addClass('formError').removeClass('formNoError');
					jQuery(".pop_inp").empty().html('Не полностью заполнена Информация для юридических лиц').show();
					setTimeout(function(){ jQuery(".pop_inp").hide('slow') }, 7500);
				}
			});
		});
		var listkont = ['email', 'tel', 'ulic', 'name_easy'];
		jQuery.each(listkont, function(i, id) {
			if(jQuery("#"+id).val().length < 1){
				jQuery("#"+id).addClass('rsform-error');
				jQuery("#"+id).next().children().addClass('formError').removeClass('formNoError')
			} else {
				jQuery("#"+id).next().children().addClass('formNoError').removeClass('formError');
				jQuery("#"+id).removeClass('rsform-error');
			}
		});
		if(jQuery(".rsform-block-dogovorzakl input.rsform-calendar-box").val().length < 1){
			jQuery(".rsform-block-dogovorzakl input.rsform-calendar-box").addClass('rsform-error');
			jQuery(".rsform-block-dogovorzakl input.rsform-calendar-box").next().children().addClass('formError').removeClass('formNoError')
		} else {
			jQuery(".rsform-block-dogovorzakl input.rsform-calendar-box").next().children().addClass('formNoError').removeClass('formError');
			jQuery(".rsform-block-dogovorzakl input.rsform-calendar-box").removeClass('rsform-error');
		}
	});
});
</script>
<script type="text/javascript">
jQuery(document).ready(function(){
    var listElem1 = ['time','zakaz'];
    jQuery.each(listElem1, function(i, id) {
		jQuery('.rsform-block-'+id).hide();
    });
});
</script>
  <style>
.rsform-select-box
{
width:300px;
}
.rsform-input-box
{
width:286px;
}
</style>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
jQuery(document).ready(function(){

var listElemId2 = ['steny_pol0', 'steny_one0', 'steny_dva0', 'steny_tri0', 'steny_chet0', 'steny_pol20', 'steny_one20', 'steny_dva20', 'steny_tri20', 'steny_chet20'];
    jQuery.each(listElemId2, function(i, id) {
	if (!jQuery('#'+id).attr("checked")) {
		jQuery('#'+id).parent().parent().parent().next().hide();
		jQuery('#'+id).parent().parent().parent().next().next().hide();
	}
	jQuery('#'+id).next().click(function(){
		jQuery('#'+id).parent().parent().parent().next().toggle();
		jQuery('#'+id).parent().parent().parent().next().next().toggle();
	});
    });

var persten = jQuery('.rsform-block-ventsystemrab-title-copy');
persten.addClass('persten');
for (mm = 0; mm < 16; mm++) {
  persten = persten.next();
  persten.addClass('persten');
}
var vtorsten = jQuery('.rsform-block-ventsystemrab-title-copy-copy');
vtorsten.addClass('vtorsten');
for (mm = 0; mm < 16; mm++) {
  vtorsten = vtorsten.next();
  vtorsten.addClass('vtorsten');
}
    jQuery(".rsform-block-mcfg").after('<div id="sten1"></div><div id="sten2"></div>');
    var sten1 = jQuery('.persten').detach(); jQuery("#sten1").html(sten1).hide();
    var sten2 = jQuery('.vtorsten').detach(); jQuery("#sten2").html(sten2).hide(); 
    
    
jQuery('#mcfg option:selected').each(function () {
	if (jQuery(this).text() == jQuery('#mcfg option:eq(0)').text()) {jQuery('#sten1').hide();jQuery('#sten2').hide();}
});
jQuery('#mcfg').change(function () {
	jQuery('#mcfg option:selected').each(function () {
		if (jQuery(this).text() == jQuery('#mcfg option:eq(0)').text()) {jQuery('#sten1').hide();jQuery('#sten2').hide();}
	    else if (jQuery(this).text() == jQuery('#mcfg option:eq(1)').text()) {
		jQuery('#sten1').show();jQuery('#sten2').hide();
	    } else {
		jQuery('#sten1').show();jQuery('#sten2').show();
	    }
	});
});
    
	var number = jQuery('fieldset.formContainer').attr('id').replace('rsform_','');
    number = number.replace('_page_0','');
	var sum = parseInt(jQuery('#sum').val().replace(',',''));
	var flaa = false;
    jQuery('#rsform_'+number+'_page_0').children().each(function() {
		var t = jQuery(this);
		if (t.attr('class') == 'rsform-block rsform-block-osnova-title') { flaa = true;}
		if (flaa) {t.addClass('blip');}
    });
    jQuery(".rsform-block-soglasenform").after('<div id="blip"></div>');
    var blip = jQuery('.blip').detach(); jQuery("#blip").html(blip);

    if (!jQuery('#soglasenform0').attr("checked")) {jQuery("#blip").hide();}
    else {jQuery(".rsform-block-vozvr").hide();}
    jQuery('#soglasenform0').next().click(function(){
		jQuery("#blip").toggle();jQuery(".rsform-block-vozvr").toggle();
    });
	var fiz_ur = function(tot) {
		if (tot < 6000) {
			jQuery('.rsform-block-skip').hide();jQuery('#fiz').hide();jQuery('#urlic').hide();jQuery('.rsform-block-name-easy').show();
		} else {
		    jQuery('.rsform-block-skip').show();
		    jQuery('#fiz').show();jQuery('#urlic').show();
		    jQuery('.rsform-block-name-easy').hide();
		    jQuery("#skip option:selected").each(function () {
				if (jQuery(this).text() == jQuery('#skip option:eq(0)').text()) {jQuery('#urlic').hide();}
		    });
		}
	}
	fiz_ur(sum);
	jQuery("#userForm").change(function () {
		var tot = parseInt(jQuery('#sum').val().replace(',',''));fiz_ur(tot);
	});

	jQuery(".rsform-block-dogovorzakl").after('<div id="fiz"></div><div id="urlic"></div>');

	var listfiz = ['osnova-title-copy', 'name', 'reg', 'pass', 'passvidocha', 'organ', 'kod'];
	jQuery.each(listfiz, function(i, id) {	jQuery('.rsform-block-'+id).addClass('fiz');});
	var fiz =  jQuery('.fiz').detach();	jQuery("#fiz").html(fiz);jQuery('.fiz').removeClass('blip');
	
	var listurlic = ['osnova-title-copy-copy3', 'osnovanie', 'uradres', 'dolj', 'svid-n','osnova-title-copy-copy3-copy', 'name-org', 'rshet', 'korshet', 'bik', 'kpp', 'ogrn', 'inn'];
	jQuery.each(listurlic, function(i, id) {jQuery('.rsform-block-'+id).addClass('urlic');});
	var urlic =  jQuery('.urlic').detach();	jQuery("#urlic").html(urlic);jQuery('.urlic').removeClass('blip');
	
	jQuery("#skip option:selected").each(function () {
		if (jQuery(this).text() == jQuery('#skip option:eq(0)').text()) {jQuery('#urlic').hide();}
	});
	jQuery("#skip").change(function () {
		jQuery("#skip option:selected").each(function () {
			if (jQuery(this).text() == jQuery('#skip option:eq(0)').text()) {jQuery('#urlic').hide();}
			else {jQuery('#urlic').show();}
		});
	});
	
	jQuery("#osnovanie option:selected").each(function () {
		if (jQuery(this).text() == jQuery('#osnovanie option:eq(0)').text()) {
			jQuery('.rsform-block-uradres').hide();
			jQuery('.rsform-block-dolj').hide();
			jQuery('.rsform-block-svid-n').hide();
		} else {
		if (jQuery(this).text() == jQuery('#osnovanie option:eq(1)').text()) {
			jQuery('.rsform-block-uradres').hide();
			jQuery('.rsform-block-dolj').hide();
		}
		else {jQuery('.rsform-block-svid-n').hide();}
		}
	});
	jQuery("#osnovanie").change(function () {
		jQuery("#osnovanie option:selected").each(function () {
			if (jQuery(this).text() == jQuery('#osnovanie option:eq(1)').text()) {
				jQuery('.rsform-block-uradres').hide();
				jQuery('.rsform-block-dolj').hide();
				jQuery('.rsform-block-svid-n').show();
			}
			else {jQuery('.rsform-block-svid-n').hide();jQuery('.rsform-block-dolj').show();jQuery('.rsform-block-uradres').show();}
		});
	});
	
	var fla = false;
	jQuery('#blip').children().each(function() {
		var t = jQuery(this);
		if (t.attr('class') == 'rsform-block rsform-block-time blip') { fla = true;}
		if (fla) {t.addClass('hidd'); t.removeClass('blip');}
	});
	jQuery(".rsform-block-zakaz").after('<div id="hidd"></div>');
	var hidd =  jQuery('.hidd').detach();jQuery("#hidd").html(hidd);
	jQuery("#hidd").hide();	jQuery(".hidd").removeClass('hidd');

	jQuery("#userForm").after('<div class="pop_inps"></div>');
    function isValidAdr(NameAdr) {
        var pattern3 = new RegExp(/^[-0-9а-яА-Я., ]+$/i);
        return pattern3.test(NameAdr);
    }
	var listElemrus1 = ['ulic', 'organ', 'reg'];
	var listElemtxt1 = ['Место оказания услуг', 'Орган выдавший пасспорт', 'Адрес регистрации ( прописки )'];
	jQuery.each(listElemrus1, function(i, id) {
		jQuery("#"+id).change(function () {
			if(!isValidAdr(jQuery("#"+id).val())){
				jQuery(".pop_inps").empty().html(listElemtxt1[i]+' содержит только русские буквы цифры или знаки препинания').show();
				setTimeout(function(){ jQuery(".pop_inps").hide('slow') }, 7500);
			}
		});
    });

    function isValidNameFIO(NameFIO) {
        var pattern2 = new RegExp(/^[а-яА-Я ]+$/i);
        return pattern2.test(NameFIO);
    }
	var listElemrus2 = ['name', 'name_easy', 'dolj'];
	var listElemtxt2 = ['Имя Фамилия Отчество', 'Имя Фамилия Отчество', 'Должность'];
	jQuery.each(listElemrus2, function(i, id) {
		jQuery("#"+id).change(function () {
			if(!isValidNameFIO(jQuery("#"+id).val())){
				jQuery(".pop_inps").empty().html(listElemtxt2[i]+' содержит только русские буквы').show();
				setTimeout(function(){ jQuery(".pop_inps").hide('slow') }, 7500);
			}
		});
    });

	jQuery("#userForm").after('<div class="pop_inp"></div>');
	var listElemlen = ['email', 'tel', 'name_easy', 'ulic', 'name', 'reg', 'pass', 'kod', 'organ', 'uradres', 'rshet', 'svid_n', 'korshet', 'bik', 'kpp', 'ogrn', 'inn'];
	var listtx = ['E-mail', 'Телефон', '<b>ФИО должно быть полным</b>, а сейчас', 'Место оказания услуги', 'Имя Фамилия Отчество', 'Прописка', 'Серия и номер паспорта', 'Код подразделения', 'Орган выдавший паспорт', 'Юридический адрес', 'Расчетный счет', 'Номер свидетельства', 'Короткий счет', 'БИК', 'КПП', 'ОГРН', 'ИНН'];
	var listElemdl = [5, 6, 12, 6, 12, 12, 10, 6, 16, 8, 24, 12, 19, 9, 9, 13, 12];
	jQuery.each(listElemlen, function(i, id) {
		jQuery("#"+id).change(function () {
			if(jQuery("#"+id).val().length < listElemdl[i]){
				jQuery(".pop_inp").empty().html(listtx[i]+' содержит слишком мало символов').show();
				setTimeout(function(){ jQuery(".pop_inp").hide('slow') }, 4500);
			}
		});
    });

	var zapyatie = function(sim){
		var text = sim.toFixed(2);
		var sim_len = text.length-3;
		var sim_last = text.substr(sim_len,3);
		var sim_sec = '';
		var sim_tri = '';
		if (sim > 999) { //Если больше 1000, добавляем запятую
			sim = sim/1000;
			sim_len = sim_len-3;
			sim_sec = ','+text.substr(sim_len,3);
		}
		if (sim > 999) { //Поделили на 1000 и опять больше 1000, добавляем запятую
			sim = sim/1000;
			sim_len = sim_len-3;
			sim_tri = ','+text.substr(sim_len,3);
		}

		var stroka = Math.floor(sim)+sim_tri+sim_sec+sim_last;
		return stroka;
	}
	
		var proc_mang = function(tot) {
		var m_disc = parseInt(jQuery('#m_diskount').val().replace(',',''));
		var itog = m_disc;
		if ((tot >= 5000) && (tot < 15000)) {itog = m_disc*1;}
		if ((tot >= 15000) && (tot < 20000)) {itog = m_disc*0.98;}
		if ((tot >= 20000) && (tot < 40000)) {itog = m_disc*0.96;}
		if ((tot >= 40000) && (tot < 60000)) {itog = m_disc*0.94;}
		if ((tot >= 60000) && (tot < 80000)) {itog = m_disc*0.92;}
		if ((tot >= 80000) && (tot < 120000)) {itog = m_disc*0.90;}
		if ((tot >= 120000) && (tot < 140000)) {itog = m_disc*0.88;}
		if ((tot >= 140000) && (tot < 160000)) {itog = m_disc*0.86;}
		if ((tot >= 160000) && (tot < 180000)) {itog = m_disc*0.84;}
		if ((tot >= 180000) && (tot < 200000)) {itog = m_disc*0.82;}
		if ((tot >= 200000) && (tot < 220000)) {itog = m_disc*0.80;}
		if ((tot >= 220000) && (tot < 240000)) {itog = m_disc*0.78;}
		if ((tot >= 240000) && (tot < 260000)) {itog = m_disc*0.76;}
		if ((tot >= 280000) && (tot < 300000)) {itog = m_disc*0.74;}
		if ((tot >= 300000) && (tot < 320000)) {itog = m_disc*0.72;}
		if ((tot >= 320000) && (tot < 340000)) {itog = m_disc*0.71;}
		if ((tot >= 340000) && (tot < 100000000)) {itog = m_disc*0.70;}
		m_disc = zapyatie(itog);
		jQuery('#d_manager').val(m_disc+' руб.');
		jQuery('#d_manager_easy').val(m_disc+' Мин');
		var conv = parseInt(jQuery('#d_manager').val().replace(',','')).toFixed(2);
		jQuery('#convertceny').val(conv);
	}
	var proc_uslug = function(tot) {
		var r_disc = parseInt(jQuery('#r_diskount').val().replace(',',''));
		var itog = r_disc;
		if ((tot >= 1000) && (tot < 2009)) {itog = r_disc*1.3;}
		if ((tot >= 2009) && (tot < 15000)) {itog = r_disc*1.0;}
		if ((tot >= 30000) && (tot < 60000)) {itog = r_disc*0.96;}
		if ((tot >= 60000) && (tot < 80000)) {itog = r_disc*0.94;}
		if ((tot >= 80000) && (tot < 100000)) {itog = r_disc*0.92;}
		if ((tot >= 100000) && (tot < 120000)) {itog = r_disc*0.90;}
		if ((tot >= 120000) && (tot < 140000)) {itog = r_disc*0.88;}
		if ((tot >= 140000) && (tot < 160000)) {itog = r_disc*0.86;}
		if ((tot >= 160000) && (tot < 180000)) {itog = r_disc*0.84;}
		if ((tot >= 180000) && (tot < 200000)) {itog = r_disc*0.82;}
		if ((tot >= 200000) && (tot < 220000)) {itog = r_disc*0.80;}
		if ((tot >= 220000) && (tot < 240000)) {itog = r_disc*0.78;}
		if ((tot >= 240000) && (tot < 260000)) {itog = r_disc*0.76;}
		if ((tot >= 280000) && (tot < 300000)) {itog = r_disc*0.74;}
		if ((tot >= 300000) && (tot < 320000)) {itog = r_disc*0.72;}
		if ((tot >= 320000) && (tot < 340000)) {itog = r_disc*0.71;}
		if ((tot >= 340000) && (tot < 100000000)) {itog = r_disc*0.70;}
		r_disc = zapyatie(itog);
		jQuery('#r_uslugi').val(r_disc);
	}
	
	
	
	
	var func = window["rsfp_Calculations" + number];
	proc_mang(sum); proc_uslug(sum);func();
	var s_tot = jQuery('#total').val();jQuery('#total').val(s_tot+' руб.');
	var d_tot = jQuery('#diskount').val();jQuery('#diskount').val(d_tot+' руб.');
	var m_tot = jQuery('#d_manager_easy').val();jQuery('#d_manager_easy').val(m_tot+' Руб.');
	jQuery("#userForm").change(function () {
		var tot = parseInt(jQuery('#sum').val().replace(',',''));
		proc_mang(tot); proc_uslug(tot); func();
		var s_tot = jQuery('#total').val();jQuery('#total').val(s_tot+' руб.');
		var d_tot = jQuery('#diskount').val();jQuery('#diskount').val(d_tot+' руб.');
		var m_tot = jQuery('#d_manager_easy').val();jQuery('#d_manager_easy').val(m_tot+' Руб.');
	});

	var hid_dis = function(tot) {
		if (tot < 6000) {
			jQuery('.rsform-block-d-manager-easy').show();
			jQuery('.rsform-block-d-manager').hide();
			jQuery('.rsform-block-yslut').hide();
			jQuery('.rsform-block-diskount').hide();
		}
		else {
			jQuery('.rsform-block-d-manager-easy').hide();
			jQuery('.rsform-block-ystt').show();
			jQuery('.rsform-block-d-manager').show();
			jQuery('.rsform-block-yslut').show();
			jQuery('.rsform-block-diskount').show();
		}
	}
	hid_dis(sum);
	jQuery("#userForm").change(function () {var tot = parseInt(jQuery('#total').val().replace(',',''));hid_dis(tot);});

    jQuery("span.lg-hover").after('<div id="tot_t"></div>');
    var tot_t =  jQuery('.rsform-block-total-top').detach();
    jQuery("#tot_t").html(tot_t); jQuery("#tot_t").hide();

    if (sum > 5000) {
		var tot_t = jQuery("#total").val();
		jQuery("#total_top").val(tot_t);jQuery("#tot_t").show();
    }
    
	var sroch = function () {
		var tot = parseInt(jQuery('#total').val().replace(',','')),
		tot_ish = jQuery('#total').val();
		pos_top = 0,
		itog_tot = 0;
		if (tot < 1500) {pos_top = 0;itog_tot = tot+150;}
		if ((tot > 1500) && (tot < 3000)) {pos_top = 1;itog_tot = tot+300;}
		if ((tot > 3000) && (tot < 10000)) {pos_top = 2;itog_tot = tot*1.1;}
		if (tot > 10000) {pos_top = 3;itog_tot = tot*1.05;}

		if (!jQuery('#srochno0').attr("checked")) {
			jQuery('.rsform-block-srochno .formDescription img').css({'top':pos_top*(-200)+'%'});
			jQuery("#total").val(tot_ish);
		} 
		else {
			jQuery('.rsform-block-srochno .formDescription img').css({'top':(pos_top*(-200))-100+'%'});
			jQuery("#total").val(zapyatie(itog_tot)+' руб.');
		}
	}
	sroch();
    jQuery("#userForm").change(function () {
		var sum = parseInt(jQuery('#sum').val().replace(',',''));
		sroch();
		var tot_t = jQuery("#total").val();
		jQuery("#total_top").val(tot_t);
		if (sum > 10) {jQuery("#tot_t").show();}
		else {jQuery("#tot_t").hide();}
    });
	
	
    
    /****************************validation fiz ur**********************************/
    
    jQuery("#add").before('<div id="valid"></div>');
	jQuery("#userForm").change(function () {
		var tot = parseInt(jQuery('#sum').val().replace(',','')),
		listfiz = ['name', 'reg', 'pass', 'kod', 'organ'];
		valid_fiz = false,
		valid_ur = false;
		valid_pasport=false;
		if (tot > 600001) {
			jQuery("#skip option:selected").each(function () {
				jQuery.each(listfiz, function(i, id) {
				    if(jQuery("#"+id).val().length < 1){
					jQuery("#"+id).addClass('rsform-error');valid_pasport = true;
				    } else {
					jQuery("#"+id).next().children().addClass('formNoError').removeClass('formError');
					jQuery("#"+id).removeClass('rsform-error');}
				});
				
				if(jQuery(".rsform-block-passvidocha input.rsform-calendar-box").val().length < 1){
					jQuery(".rsform-block-passvidocha input.rsform-calendar-box").addClass('rsform-error');valid_pasport = true;
				} else {
					jQuery(".rsform-block-passvidocha input.rsform-calendar-box").next().children().addClass('formNoError').removeClass('formError');
					jQuery(".rsform-block-passvidocha input.rsform-calendar-box").removeClass('rsform-error');
				}
				
				if (jQuery(this).text() == jQuery('#skip option:eq(0)').text()) {
				    if (valid_pasport) {valid_fiz = true;}
				} else {
					if (valid_pasport) {valid_ur = true;}
					jQuery("#osnovanie option:selected").each(function () {
						if (jQuery(this).text() == jQuery('#osnovanie option:eq(0)').text()) {valid_ur = true;} 
						else {
							if (jQuery(this).text() == jQuery('#osnovanie option:eq(1)').text()) {
								if(jQuery("#svid_n").val().length < 1){
									jQuery("#svid_n").addClass('rsform-error');valid_ur = true;
								} else {
								jQuery("#svid_n").next().children().addClass('formNoError').removeClass('formError');
								jQuery("#svid_n").removeClass('rsform-error');}
							}
							else {
								if(jQuery("#uradres").val().length < 1){
									jQuery("#uradres").addClass('rsform-error');valid_ur = true;
								} else {
								jQuery("#uradres").next().children().addClass('formNoError').removeClass('formError');
								jQuery("#uradres").removeClass('rsform-error');}
								if(jQuery("#dolj").val().length < 1){
									jQuery("#dolj").addClass('rsform-error');valid_ur = true;
								} else {
								jQuery("#dolj").next().children().addClass('formNoError').removeClass('formError');
								jQuery("#dolj").removeClass('rsform-error');}
							}
						}
					});
				}
			});
		if ((valid_fiz) || (valid_ur)) {jQuery("#valid").css({'height':'37px'});}
			else {jQuery("#valid").css({'height':'0px'});}
		} else {jQuery("#valid").css({'height':'0px'});}
		jQuery("#valid").click(function(){
			jQuery("#skip option:selected").each(function () {
				if (jQuery(this).text() == jQuery('#skip option:eq(0)').text()) {
					jQuery("#fiz .rsform-error").next().children().addClass('formError').removeClass('formNoError');
					jQuery(".pop_inp").empty().html('Не полностью заполнены Паспортные данные (Не обязательно)').show();
					setTimeout(function(){ jQuery(".pop_inp").hide('slow') }, 7500);
				} else {
					jQuery(".rsform-error").next().children().addClass('formError').removeClass('formNoError');
					jQuery(".pop_inp").empty().html('Не полностью заполнена Информация для юридических лиц').show();
					setTimeout(function(){ jQuery(".pop_inp").hide('slow') }, 7500);
				}
			});
		});
		var listkont = ['email', 'tel', 'ulic', 'name_easy'];
		jQuery.each(listkont, function(i, id) {
			if(jQuery("#"+id).val().length < 1){
				jQuery("#"+id).addClass('rsform-error');
				jQuery("#"+id).next().children().addClass('formError').removeClass('formNoError')
			} else {
				jQuery("#"+id).next().children().addClass('formNoError').removeClass('formError');
				jQuery("#"+id).removeClass('rsform-error');
			}
		});
		if(jQuery(".rsform-block-dogovorzakl input.rsform-calendar-box").val().length < 1){
			jQuery(".rsform-block-dogovorzakl input.rsform-calendar-box").addClass('rsform-error');
			jQuery(".rsform-block-dogovorzakl input.rsform-calendar-box").next().children().addClass('formError').removeClass('formNoError')
		} else {
			jQuery(".rsform-block-dogovorzakl input.rsform-calendar-box").next().children().addClass('formNoError').removeClass('formError');
			jQuery(".rsform-block-dogovorzakl input.rsform-calendar-box").removeClass('rsform-error');
		}
	});
});
</script>
<script type="text/javascript">
jQuery(document).ready(function(){
    var listElem1 = ['time','zakaz'];
    jQuery.each(listElem1, function(i, id) {
		jQuery('.rsform-block-'+id).hide();
    });
});
</script>
  <style>
.rsform-select-box
{
width:300px;
}
.rsform-input-box
{
width:286px;
}
</style>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
function displayField()
{
  if(document.getElementsByName('form[Radio]')[0].checked)
  document.getElementById('next1Next').style.display="none";
 
  if(document.getElementsByName('form[Radio]')[1].checked)
  document.getElementById('next1Next').style.display="";
}
function rsfp_conditionalPage(formId, page, totalPages, validate){
	
	if(page == 1 && document.getElementById('skip0').checked && typeof validate != 'undefined'){
		rsfp_changePage(formId, page+1, totalPages, validate);
		return '';
	}

	if(page == 1 && document.getElementById('skip0').checked && typeof validate == 'undefined'){
		rsfp_changePage(formId, page-1, totalPages, validate);
		return '';
	}
	rsfp_changePage(formId, page, totalPages, validate);
}

jQuery(document).ready(function(){
    var listElem1 = ['material', 'materialsteny'];
    var listElem2 = ['izolsten0', 'kabel0', 'dekorsteny0', 'vent_m0', 'vent_s0', 'vent_f0'];
    jQuery.each(listElem1, function(i, id) {
	jQuery("#"+id+" option:selected").each(function () {
		if (jQuery(this).text() == jQuery('#'+id+' option:eq(0)').text()) {
			jQuery('.rsform-block-'+id).next().hide();
		}
	});
	jQuery("#"+id).change(function () {
		jQuery("#"+id+" option:selected").each(function () {
			if (jQuery(this).text() == jQuery('#'+id+' option:eq(0)').text()) {
				jQuery('.rsform-block-'+id).next().hide();
			}
			else {jQuery('.rsform-block-'+id).next().show();}
		});
	});
    });
	
    jQuery.each(listElem2, function(i, id) {
		if (!jQuery('#'+id).attr("checked")) {
			jQuery('#'+id).parent().parent().parent().next().hide();
		}
		jQuery('#'+id).next().click(function(){
			jQuery('#'+id).parent().parent().parent().next().toggle();
		});
    });
	
	jQuery("#polkisteny").change(function () {
		jQuery("#polkisteny option:selected").each(function () {
			if (jQuery(this).text() == jQuery('#polkisteny option:eq(0)').text()) {
				jQuery('.rsform-block-polkisteny').next().hide();jQuery('.rsform-block-polkisteny').next().next().hide();
			}
			else {jQuery('.rsform-block-polkisteny').next().show();jQuery('.rsform-block-polkisteny').next().next().show();}
		});
	});
	jQuery("#polkisteny option:selected").each(function () {
		if (jQuery(this).text() == jQuery('#polkisteny option:eq(0)').text()) {
			jQuery('.rsform-block-polkisteny').next().hide();jQuery('.rsform-block-polkisteny').next().next().hide();
		} 
	});
});

jQuery(document).ready(function(){
	if (!jQuery('#proj_c0').attr("checked")) {jQuery(".rsform-block-upload-pr").hide();}
	jQuery('#proj_c0').next().click(function(){jQuery(".rsform-block-upload-pr").toggle();});
});
</script>
<script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script>/* SMSC phone verification TEMPORARILY OFF. Delete this whole line to re-enable. */ window.__smscVerify = true;</script>
<script type="text/javascript">
jQuery(document).ready(function(){
    var santeh = function() {
	var listElem2 = ['proj_c0', 'cran0', 'batarei0', 'plomby0', 'zapcfg0', 'ysf0', 'ysrd0', 'ysfg0','mgr0'];
	jQuery.each(listElem2, function(i, id) {
	    jQuery('#'+id).parent().parent().parent().next().hide();
	    jQuery('#'+id).next().click(function(){
		if (jQuery('#'+id).is(':checked')) {jQuery('#'+id).parent().parent().parent().next().hide();}
		else {jQuery('#'+id).parent().parent().parent().next().show();}
	    });
	});
    }
    santeh();
    jQuery('.rsform-block-tdiam').addClass('trubi');
    jQuery('.rsform-block-tdiam').next().addClass('trubi');
    
    jQuery('.rsform-block-slivtitl-copy').addClass('trubi2');
    jQuery('.rsform-block-slivtitl-copy').next().addClass('trubi2');
    jQuery('.rsform-block-slivtitl-copy').next().next().addClass('trubi2');
    jQuery('.rsform-block-slivtitl-copy').next().next().next().addClass('trubi2');
    jQuery('.rsform-block-slivtitl-copy').next().next().next().next().addClass('trubi2');
    jQuery('.rsform-block-slivtitl-copy').next().next().next().next().next().addClass('trubi2');
    
	jQuery("#tconf option:selected").each(function () {
		if (jQuery(this).text() == jQuery('#tconf option:eq(0)').text()) {jQuery('.trubi, .trubi2').hide();}
	});
	jQuery("#tconf").change(function () {
		jQuery("#tconf option:selected").each(function () {
			if (jQuery(this).text() == jQuery('#tconf option:eq(0)').text()) {jQuery('.trubi, .trubi2').hide();}
			else {
			if (jQuery(this).text() == jQuery('#tconf option:eq(1)').text()) {jQuery('.trubi').show();jQuery('.trubi2').hide();}
			    else {jQuery('.trubi').show();jQuery('.trubi2').show();}
			}
		});
	});
});
</script>

<script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <style>
/* Mobile multiselect fix (RSForm + jQuery Form Styler).
   Shows the option list on phones, full-width, scrollable, 16px (no iOS zoom).
   body-prefix overrides the global rule that hid the list. ASCII-only. */
@media (max-width: 999px) {
  body select[multiple] ~ [id$="-styler"] ul,
  body .jqselect ul,
  body .jq-select-multiple ul {
    display: block !important;
    width: 100% !important;
    max-height: 260px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box !important;
  }
  body .jqselect ul li,
  body .jq-select-multiple ul li {
    font-size: 16px !important;
    padding: 10px 12px !important;
    line-height: 1.3 !important;
  }
  body [id$="-styler"].jqselect,
  body .jq-select-multiple,
  body .jqselect.rsform-select-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  body select[multiple] { max-width: 100% !important; }
  body .select2-container { width: 100% !important; max-width: 100% !important; }
  body .select2-container .select2-search__field { font-size: 16px !important; }
  body .rsform-block input,
  body .rsform-block select,
  body .rsform-block textarea {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}
</style>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <style>
.rsform-select-box
{
width:300px;
}
.rsform-input-box
{
width:286px;
}
</style>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript">
window.NR_RSFORM_CLEAN_FORM = true;
window.NR_RSFORM_CLEAN_VERSION = 'NR-RSFORM-CLEAN-20260806-2305-PATCH-V2';
console.info(window.NR_RSFORM_CLEAN_VERSION);

jQuery(function ($) {
    'use strict';

    var $form = $('#userForm');
    if (!$form.length) return;

    var $fieldset = $('fieldset.formContainer').first();
    var number = ($fieldset.attr('id') || '')
        .replace('rsform_', '')
        .replace('_page_0', '');

    var calculate = window['rsfp_Calculations' + number];
    var recalcTimer = null;

    function parseAmount(value) {
        var normalized = String(value == null ? '' : value)
            .replace(/\u00a0/g, ' ')
            .replace(/\s+/g, '')
            .replace(/[^0-9,.\-]/g, '');

        if (!normalized) return 0;

        var lastComma = normalized.lastIndexOf(',');
        var lastDot = normalized.lastIndexOf('.');

        if (lastComma > -1 && lastDot > -1) {
            normalized = lastComma > lastDot
                ? normalized.replace(/\./g, '').replace(',', '.')
                : normalized.replace(/,/g, '');
        } else if (lastComma > -1) {
            var commaParts = normalized.split(',');
            normalized = (commaParts.length === 2 && commaParts[1].length <= 2)
                ? commaParts[0].replace(/,/g, '') + '.' + commaParts[1]
                : normalized.replace(/,/g, '');
        }

        var parsed = parseFloat(normalized);
        return isNaN(parsed) ? 0 : parsed;
    }

    function formatAmount(value) {
        return Number(value || 0).toLocaleString('en-US', {
            minimumFractionDigits: 2,
            maximumFractionDigits: 2
        });
    }

    function formatRub(value) {
        return formatAmount(value) + ' руб.';
    }

    function setValue(selector, value) {
        var $field = $(selector);
        if ($field.length) $field.val(value);
    }

    function runRsCalculation() {
        if (typeof calculate === 'function') calculate();
    }

    function initConsentFields() {
        var $page = $('#rsform_' + number + '_page_0');
        var $consentBlock = $('.rsform-block-soglasenform').first();
        var $consent = $('#soglasenform0');

        if (!$page.length || !$consentBlock.length || !$consent.length) return;

        if (!$('#blip').length) {
            var collect = false;
            var $blocks = $();

            $page.children().each(function () {
                var $block = $(this);
                if ($block.hasClass('rsform-block-osnova-title')) collect = true;
                if (collect) $blocks = $blocks.add($block);
            });

            $consentBlock.after('<div id="blip"></div>');
            $('#blip').append($blocks.detach());
        }

        function syncConsentFields() {
            var accepted = $consent.prop('checked');
            $('#blip').toggle(accepted);
            $('.rsform-block-vozvr').toggle(!accepted);
        }

        $consent.off('change.nrCleanup').on('change.nrCleanup', syncConsentFields);
        syncConsentFields();
    }

    function initContactValidation() {
        if (!$form.nextAll('.pop_inps').length) {
            $form.after('<div class="pop_inps"></div><div class="pop_inp"></div>');
        }

        function showMessage(selector, message, timeout) {
            $(selector).stop(true, true).html(message).show();
            window.setTimeout(function () { $(selector).hide('slow'); }, timeout);
        }

        function isValidAddress(value) {
            return /^[-0-9а-яА-ЯёЁ.,\s]+$/i.test(value);
        }

        $('#ulic').off('change.nrCleanup').on('change.nrCleanup', function () {
            var value = $(this).val() || '';
            if (value && !isValidAddress(value)) {
                showMessage(
                    '.pop_inps',
                    'Место оказания услуги содержит только русские буквы, цифры и знаки препинания',
                    7500
                );
            }
        });

        [
            {id: 'email', min: 5, label: 'E-mail'},
            {id: 'tel', min: 6, label: 'Телефон'},
            {id: 'ulic', min: 6, label: 'Место оказания услуги'}
        ].forEach(function (field) {
            var $field = $('#' + field.id);
            if (!$field.length) return;

            $field.off('change.nrCleanupLength').on('change.nrCleanupLength', function () {
                var value = $(this).val() || '';
                if (value.length < field.min) {
                    showMessage('.pop_inp', field.label + ' содержит слишком мало символов', 4500);
                }
            });
        });
    }

    function managerAmount(totalSum) {
        var base = parseAmount($('#m_diskount').val());
        var result = base;

        if (totalSum >= 5000 && totalSum < 15000) result = base * 1;
        if (totalSum >= 15000 && totalSum < 20000) result = base * 0.98;
        if (totalSum >= 20000 && totalSum < 40000) result = base * 0.96;
        if (totalSum >= 40000 && totalSum < 60000) result = base * 0.94;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.92;
        if (totalSum >= 80000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function serviceAmount(totalSum) {
        var base = parseAmount($('#r_diskount').val());
        var result = base;

        if (totalSum >= 1000 && totalSum < 2009) result = base * 1.3;
        if (totalSum >= 2009 && totalSum < 15000) result = base * 1.0;
        if (totalSum >= 30000 && totalSum < 60000) result = base * 0.96;
        if (totalSum >= 60000 && totalSum < 80000) result = base * 0.94;
        if (totalSum >= 80000 && totalSum < 100000) result = base * 0.92;
        if (totalSum >= 100000 && totalSum < 120000) result = base * 0.90;
        if (totalSum >= 120000 && totalSum < 140000) result = base * 0.88;
        if (totalSum >= 140000 && totalSum < 160000) result = base * 0.86;
        if (totalSum >= 160000 && totalSum < 180000) result = base * 0.84;
        if (totalSum >= 180000 && totalSum < 200000) result = base * 0.82;
        if (totalSum >= 200000 && totalSum < 220000) result = base * 0.80;
        if (totalSum >= 220000 && totalSum < 240000) result = base * 0.78;
        if (totalSum >= 240000 && totalSum < 260000) result = base * 0.76;
        if (totalSum >= 280000 && totalSum < 300000) result = base * 0.74;
        if (totalSum >= 300000 && totalSum < 320000) result = base * 0.72;
        if (totalSum >= 320000 && totalSum < 340000) result = base * 0.71;
        if (totalSum >= 340000 && totalSum < 100000000) result = base * 0.70;

        return result;
    }

    function updateDerivedFields(totalSum) {
        var manager = managerAmount(totalSum);
        var service = serviceAmount(totalSum);

        setValue('#d_manager', formatRub(manager));
        setValue('#d_manager_easy', formatAmount(manager) + ' Руб.');
        setValue('#convertceny', manager.toFixed(2));
        setValue('#r_uslugi', formatAmount(service));
    }

    function normalizeCalculatedFields(totalSum) {
        var baseTotal = parseAmount($('#total').val());
        var discount = Math.max(0, totalSum - baseTotal);

        setValue('#total', formatRub(baseTotal));
        setValue('#diskount', formatRub(discount));

        var managerValue = parseAmount($('#d_manager_easy').val());
        if ($('#d_manager_easy').length) {
            setValue('#d_manager_easy', formatAmount(managerValue) + ' Руб.');
        }

        return baseTotal;
    }

    function urgencyTotal(baseTotal) {
        if (!$('#srochno0').prop('checked')) return baseTotal;
        if (baseTotal < 1500) return baseTotal + 150;
        if (baseTotal > 1500 && baseTotal < 3000) return baseTotal + 300;
        if (baseTotal > 3000 && baseTotal < 10000) return baseTotal * 1.10;
        if (baseTotal > 10000) return baseTotal * 1.05;
        return baseTotal;
    }

    function syncUrgency(baseTotal) {
        var position = 0;
        if (baseTotal > 1500 && baseTotal < 3000) position = 1;
        if (baseTotal > 3000 && baseTotal < 10000) position = 2;
        if (baseTotal > 10000) position = 3;

        var urgent = $('#srochno0').prop('checked');

        $('.rsform-block-srochno .formDescription img').css({
            top: (position * -200 - (urgent ? 100 : 0)) + '%'
        });

        setValue('#total', formatRub(urgencyTotal(baseTotal)));
    }

    function syncDiscountVisibility(total) {
        if (total < 6000) {
            $('.rsform-block-d-manager-easy').show();
            $('.rsform-block-d-manager').hide();
            $('.rsform-block-yslut').hide();
            $('.rsform-block-diskount').hide();
        } else {
            $('.rsform-block-d-manager-easy').hide();
            $('.rsform-block-ystt').show();
            $('.rsform-block-d-manager').show();
            $('.rsform-block-yslut').show();
            $('.rsform-block-diskount').show();
        }
    }

    function initTopTotal() {
        if (!$('#tot_t').length) $('span.lg-hover').after('<div id="tot_t"></div>');

        var $topTotalBlock = $('.rsform-block-total-top');
        if ($topTotalBlock.length && !$topTotalBlock.closest('#tot_t').length) {
            $('#tot_t').append($topTotalBlock.detach());
        }
    }

    function syncTopTotal(totalSum) {
        setValue('#total_top', $('#total').val());
        $('#tot_t').toggle(totalSum > 10);
    }

    function syncRequiredFields() {
        ['email', 'tel', 'ulic'].forEach(function (id) {
            var $field = $('#' + id);
            if (!$field.length) return;

            var empty = String($field.val() || '').length < 1;
            $field.toggleClass('rsform-error', empty);
            $field.next().children()
                .toggleClass('formError', empty)
                .toggleClass('formNoError', !empty);
        });

        var $date = $('.rsform-block-dogovorzakl input.rsform-calendar-box');
        if ($date.length) {
            var emptyDate = String($date.val() || '').length < 1;
            $date.toggleClass('rsform-error', emptyDate);
            $date.next().children()
                .toggleClass('formError', emptyDate)
                .toggleClass('formNoError', !emptyDate);
        }
    }

    function recalculate() {
        runRsCalculation();

        var currentSum = parseAmount($('#sum').val());
        updateDerivedFields(currentSum);

        runRsCalculation();

        var baseTotal = normalizeCalculatedFields(currentSum);
        syncDiscountVisibility(baseTotal);
        syncUrgency(baseTotal);
        syncTopTotal(currentSum);
    }

    function scheduleRecalculation() {
        window.clearTimeout(recalcTimer);
        recalcTimer = window.setTimeout(recalculate, 0);
    }

    initConsentFields();
    initContactValidation();
    initTopTotal();

    /* Поле zakaz удалено из кода. */
    $('.rsform-block-time, .rsform-block-city').hide();

    $form.off('change.nrCleanup').on('change.nrCleanup', 'select, input', function () {
        scheduleRecalculation();
        syncRequiredFields();
    });

    syncRequiredFields();
    scheduleRecalculation();

    // Текущая версия выведена в консоль в начале файла.
});
</script>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">



<script src="https://xn----ftbeonjgpifvc9b5c.xn--p1ai/media/jui/js/formstyler.min.js"></script>

<style>
.nr-touch-multi { display: none; }
@media (max-width: 999px), (pointer: coarse) {
  .company { margin-top: 32px; display: flex; gap: 0; align-items: center; justify-content: center; }
  #userForm .nr-multi-native-host { display: none !important; }
  #userForm .nr-touch-multi { display: block; width: 400px; max-width: 100%; box-sizing: border-box; border: 2px solid #164e70; border-radius: 5px; background: #fff; color: #222; text-align: left; }
  #userForm .nr-touch-multi-hint { padding: 8px 10px; font: 13px/1.4 Arial, sans-serif; color: #1b3e59; background: #edf3f6; border-bottom: 1px solid #cedae1; }
  #userForm .nr-touch-multi-list { max-height: 320px; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: auto; }
  #userForm .nr-touch-multi-group { padding: 9px 10px; font: bold 15px/1.35 Arial, sans-serif; background: #f1f1f1; color: #333; }
  #userForm button.nr-touch-multi-option { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; height: auto; padding: 10px; margin: 0; border: 0; border-bottom: 1px solid #e4e9ec; border-radius: 0; background: #fff; box-shadow: none; color: #222; font: 16px/1.35 Arial, sans-serif; text-align: left; text-shadow: none; white-space: normal; overflow-wrap: anywhere; cursor: pointer; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
  #userForm button.nr-touch-multi-option::before { content: ''; flex: 0 0 20px; width: 20px; height: 20px; border: 2px solid #8299a7; border-radius: 3px; box-sizing: border-box; }
  #userForm button.nr-touch-multi-option[aria-checked="true"] { background: #e3f2fa; color: #153e58; }
  #userForm button.nr-touch-multi-option[aria-checked="true"]::before { content: '✓'; background: #164e70; border-color: #164e70; color: #fff; text-align: center; font: bold 16px/16px Arial, sans-serif; }
  #userForm button.nr-touch-multi-option:focus-visible { outline: 3px solid #e0a000; outline-offset: -3px; }
  #userForm button.nr-touch-multi-option:disabled { opacity: .5; cursor: default; }
  #userForm button.nr-touch-multi-option[hidden] { display: none; }
}
</style>
<script>
/* NR mobile multiselect 20260906: keep the RSForm select as the source of truth. */
(function ($) {
  'use strict';
  if (!$) return;
  var serial = 0;
  function init(select) {
    if (select.nrTouchList) return;
    var $select = $(select);
    var host = $select.closest('.jq-selectbox-wrapper')[0] || select;
    host.classList.add('nr-multi-native-host');
    var panel = document.createElement('div');
    panel.className = 'nr-touch-multi';
    var hint = document.createElement('div');
    hint.className = 'nr-touch-multi-hint';
    hint.id = 'nr-multi-hint-' + (++serial);
    hint.textContent = 'Можно выбрать несколько вариантов';
    var list = document.createElement('div');
    list.className = 'nr-touch-multi-list';
    list.setAttribute('role', 'group');
    var block = $select.closest('[class*="rsform-block"]');
    var title = block.find('.formControlLabel, .formCaption, label').first().text().trim();
    list.setAttribute('aria-label', title || 'Выбор услуг');
    list.setAttribute('aria-describedby', hint.id);
    panel.appendChild(hint);
    panel.appendChild(list);
    host.parentNode.insertBefore(panel, host.nextSibling);
    select.nrTouchList = panel;
    var rows = [];
    function emptyOption(option) {
      return option.value === '' || /^(не нужно|ничего не выбрано|.*\(не выбрано\))$/i.test(option.text.trim());
    }
    function disabled(option) {
      return select.disabled || option.disabled || (option.parentNode.tagName === 'OPTGROUP' && option.parentNode.disabled);
    }
    function sync() {
      rows.forEach(function (row) {
        row.button.setAttribute('aria-checked', row.option.selected ? 'true' : 'false');
        row.button.disabled = disabled(row.option);
        row.button.hidden = row.option.hidden;
      });
    }
    function build() {
      var scroll = list.scrollTop;
      list.textContent = '';
      rows = [];
      var group = null;
      Array.prototype.forEach.call(select.options, function (option) {
        var parent = option.parentNode;
        if (parent.tagName === 'OPTGROUP' && parent !== group) {
          var heading = document.createElement('div');
          heading.className = 'nr-touch-multi-group';
          heading.textContent = parent.label;
          list.appendChild(heading);
        }
        group = parent;
        var button = document.createElement('button');
        button.type = 'button';
        button.className = 'nr-touch-multi-option';
        button.setAttribute('role', 'checkbox');
        button.setAttribute('aria-label', option.text);
        button.textContent = option.text;
        button.addEventListener('click', function () {
          if (disabled(option)) return;
          var next = !option.selected;
          if (emptyOption(option)) {
            Array.prototype.forEach.call(select.options, function (o) { o.selected = false; });
            option.selected = true;
          } else {
            option.selected = next;
            Array.prototype.forEach.call(select.options, function (o) { if (emptyOption(o)) o.selected = false; });
            if (!select.selectedOptions.length) {
              var placeholder = Array.prototype.find.call(select.options, emptyOption);
              if (placeholder) placeholder.selected = true;
            }
          }
          // Native bubbling events reach both inline RSForm and jQuery handlers.
          select.dispatchEvent(new Event('input', { bubbles: true }));
          select.dispatchEvent(new Event('change', { bubbles: true }));
          sync();
        });
        list.appendChild(button);
        rows.push({ option: option, button: button });
      });
      sync();
      list.scrollTop = scroll;
    }
    build();
    $select.on('change.nrTouchMulti', sync);
    if (select.form) select.form.addEventListener('reset', function () { setTimeout(sync, 0); });
    new MutationObserver(build).observe(select, {
      subtree: true, childList: true, characterData: true, attributes: true,
      attributeFilter: ['disabled', 'selected', 'label', 'hidden', 'value']
    });
  }
  function scan() { $('#userForm select[multiple]').each(function () { init(this); }); }
  $(scan);
  $(window).on('load.nrTouchMulti', scan);
})(window.jQuery);
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SP59Q2HSQJ"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-SP59Q2HSQJ');
</script>



<script type="text/javascript">
jQuery(document).ready(function(){
 if(jQuery("#userForm").length) {
  var number = jQuery('fieldset.formContainer').attr('id').replace('rsform_','');
  number = number.replace('_page_0','');
  if ((number != 136) && (number != 142)) {
	  var winh = jQuery(window).height();
        pip = jQuery('.footer').offset().top,
		pip2 = jQuery('.rsform-block-srochno').offset().top,
		pip3 = jQuery('.formContainer').offset().top,
        height = jQuery('.floating').outerHeight();
	jQuery(window).scroll(function() {
		var top = jQuery(document).scrollTop();
	
		//jQuery('#maaster0').next().next().css({'margin-bottom':top});
	});
	jQuery('#maaster0').next().click(function(){
		if (!jQuery('#maaster0').attr("checked")) {jQuery('#maaster0').next().removeClass('noche').addClass('che');}
	    else {jQuery('#maaster0').next().removeClass('che').addClass('noche');}
	});
 } }	
});
</script>


<script>
window.sho = window.sho || function() {
  if (window.jQuery) {
    jQuery('#loader').hide();
  }
};
</script>
</head>


<body  id="ratyng" onload="sho();">
	<!-- Body -->
	

<!--<div id="loader" style="
	position: fixed;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	background: url('https://xn----ftbeonjgpifvc9b5c.xn--p1ai/templates/protostar/images/ajax-loader.gif') no-repeat center center rgba(27,62,89,0.5);
	z-index: 500;"></div> -->
<div class="wrap" style="padding-top: 30px;">

        <div class="head">
            <noindex>
		<div class="idea"> 
	<!--	 -->
		
		</div>
        <div class="logo-search">
        	<span class="lg-hover">
			</noindex>
            	<img src="https://xn----ftbeonjgpifvc9b5c.xn--p1ai/images/icon-calc.png"/ class="logoimg"><DIV CLASS="LOGOCALC"><a CLASS="AL" href="/city/belgorod"><span class="cj">
			Срочные услуги - Белгород	<noindex></span></a></div><span class="rezult">Начни с цены, закончи результатом.</span></div></noindex>
            </span>
           
            <div class="header-search pull-right">
                 
                <ul class="nav menu_contact">
<li class="item-341"><a class="contact" href="/city/belgorod/predlozhit-uslugi.html" >Регистрация срочные-услуги</a></li><li class="item-762"><a class="contact" href="/city/belgorod/arenda-instrumenta-vsem.html" >Инструменты - сдача аренда</a></li></ul>

</div></div></div>
        </div>
        </div>
        
	<div class="body clearfix">
		<div class="container">
          
            
			
			<div class="row-fluid">
			  
			   
			     
			     
								<main id="content" role="main" class="span9">
				    
				    <a href="tel:+79536342263"> <img class="rabota" src="https://xn----ftbeonjgpifvc9b5c.xn--p1ai/images/rabota.jpg" alt="Режим работы срочные услуги.рф"></a>
				     
							<div class="moduletable">
					<ul class="breadcrumb" itemscope itemtype="https://schema.org/BreadcrumbList"><li class="active"><span class="divider icon-location hasTooltip" title="Вы здесь: "></span></li><li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"><a href="https://xn----ftbeonjgpifvc9b5c.xn--p1ai/" class="pathway" itemprop="item"><span itemprop="name">Главная</span></a><meta itemprop="position" content="1" /></li><span class="divider"> - </span><li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="active"><span itemprop="name">Белгород</span><meta itemprop="position" content="2" /></li></ul>		</div>
			<div class="moduletable">
					<div class="mod-sitesearch" id="ssc493ae">

    <form class="mod-sitesearch__form" action="/search.php" method="get"
          style="display:flex;gap:8px;margin-bottom:12px">
        <input type="search" name="q" class="mod-sitesearch__input"
               placeholder="Поиск по сайту"
               style="flex:1;padding:8px 10px;font-size:16px">
                    <input type="hidden" name="city" value="belgorod">
                <button type="submit" class="mod-sitesearch__btn btn btn-primary" style="padding:8px 16px">
            Найти        </button>
    </form>

    <div class="mod-sitesearch__status" style="font-size:14px;opacity:.7;margin-bottom:8px"></div>
    <div class="mod-sitesearch__results"></div>
</div>

<script>
(function () {
    var root = document.getElementById("ssc493ae");
    if (!root) { return; }

    var CFG = {
        endpoint: "\/search.php",
        city:     "belgorod",
        live:     true,
        snippet:  true    };

    var form    = root.querySelector('.mod-sitesearch__form');
    var input   = root.querySelector('.mod-sitesearch__input');
    var status  = root.querySelector('.mod-sitesearch__status');
    var results = root.querySelector('.mod-sitesearch__results');
    var timer   = null;
    var seq     = 0;

    function esc(s) {
        return String(s === null || s === undefined ? '' : s)
            .replace(/&/g, '&amp;').replace(/</g, '&lt;')
            .replace(/>/g, '&gt;').replace(/"/g, '&quot;');
    }

    function render(data) {
        if (data.error) {
            status.textContent = data.error;
            results.innerHTML = '';
            return;
        }
        if (!data.results || !data.results.length) {
            status.textContent = 'Ничего не нашлось. Попробуйте другие слова.';
            results.innerHTML = '';
            return;
        }

        status.textContent = 'Найдено: ' + data.count;

        var html = '';
        for (var i = 0; i < data.results.length; i++) {
            var r = data.results[i];
            html += '<div class="mod-sitesearch__item" style="padding:12px 0;border-bottom:1px solid rgba(0,0,0,.08)">'
                  +   '<a href="' + esc(r.url) + '">' + esc(r.title) + '</a>';
            if (CFG.snippet && r.description) {
                html += '<div class="mod-sitesearch__snippet" style="font-size:14px;opacity:.75;margin-top:4px">'
                      + esc(r.description).slice(0, 180) + '</div>';
            }
            html += '</div>';
        }
        results.innerHTML = html;
    }

    function run() {
        var text = input.value.replace(/^\s+|\s+$/g, '');
        if (text.length < 3) {
            status.textContent = '';
            results.innerHTML = '';
            return;
        }

        status.textContent = 'Ищем…';

        var url = CFG.endpoint + '?format=json&q=' + encodeURIComponent(text)
                + (CFG.city ? '&city=' + encodeURIComponent(CFG.city) : '');

        // Ответы могут прийти не в том порядке, в каком ушли запросы.
        // Показываем только самый свежий.
        var mine = ++seq;

        var xhr = new XMLHttpRequest();
        xhr.open('GET', url, true);
        xhr.onreadystatechange = function () {
            if (xhr.readyState !== 4 || mine !== seq) { return; }
            if (xhr.status !== 200) {
                status.textContent = 'Поиск временно недоступен';
                return;
            }
            try {
                render(JSON.parse(xhr.responseText));
            } catch (e) {
                status.textContent = 'Поиск временно недоступен';
            }
        };
        xhr.send();
    }

    // Без live-режима форма работает как обычная: уходит на страницу search.php
    if (CFG.live) {
        form.onsubmit = function (e) {
            if (e && e.preventDefault) { e.preventDefault(); }
            run();
            return false;
        };
        input.oninput = function () {
            if (timer) { clearTimeout(timer); }
            timer = setTimeout(run, 350);
        };
    }
})();
</script>
		</div>
	
					
<div id="system-message-container">
<div id="system-message">
</div>
</div>
					<div class="category-list">

<div>
	<div class="content-category">
																<div class="category-desc">
												<div class="clr"></div>
			</div>
				

<form action="https://xn----ftbeonjgpifvc9b5c.xn--p1ai/city/belgorod/" method="post" name="adminForm" id="adminForm" class="form-inline">
		<fieldset class="filters btn-toolbar clearfix">
				
		<input type="hidden" name="filter_order" value="" />
		<input type="hidden" name="filter_order_Dir" value="" />
		<input type="hidden" name="limitstart" value="" />
		<input type="hidden" name="task" value="" />
	</fieldset>
	
	<table class="category table table-striped table-bordered table-hover">
				<thead>
			<tr>
				<th id="categorylist_header_title">
					<a href="#" onclick="Joomla.tableOrdering('a.title','asc','');return false;" class="hasTooltip" title="<strong>Заголовок</strong><br />Нажмите для сортировки по этому столбцу">Заголовок</a>				</th>
																	<th id="categorylist_header_hits">
						<a href="#" onclick="Joomla.tableOrdering('a.hits','asc','');return false;" class="hasTooltip" title="<strong>Хиты</strong><br />Нажмите для сортировки по этому столбцу">Хиты</a>					</th>
											</tr>
		</thead>
				<tbody>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/povsdnevnue-uslugi-s-licensiey/752-religioznye.html">
								Услуги повара Халяль							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 586							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-uborshchitsy.html">
								Услуги уборщицы, клининг							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 143							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-plitochnika.html">
								Услуги плиточника							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 55							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/spectehnica.html">
								Услуги спецтехники							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 45							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-dizajnera-intererov.html">
								Дизайн интерьера							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 41							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-santekhnika.html">
								Услуги сантехника							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 40							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/obrazovatelnye-uslugi.html">
								Образовательные услуги и наставники							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 40							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/bankir.html">
								Банковские услуги и кредитование финансовые							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 40							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/razvlecatelnye.html">
								Развлекательные услуги и вожатые							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 35							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/sidelka-socialnye-rabotniky.html">
								Услуги сиделки и соцработников							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 34							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/alpinist.html">
								Услуги альпиниста							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 33							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-svarshchika.html">
								Услуги сварщика							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 32							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/tech.html">
								Техническая поддержка							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 31							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/foto-video.html">
								Фото и видео услуги							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 30							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/massaje.html">
								Услуги массажа							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 28							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/sotovaya-svyaz.html">
								Услуги сотовой связи настройка и ремонт							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 28							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/montazh-ventilyatsionnykh-sistem.html">
								Монтаж вентиляционных систем и кондиционеров							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 27							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-shtukaturov-malyarov.html">
								Услуги штукатуров маляров							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 27							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/tipograf.html">
								Услуги типографии							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 27							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-avtomechanika.html">
								Услуги автосервиса(Автомеханик)							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 26							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/remon-obyvi.html">
								Ремонт обуви							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 26							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/ustanovka-balkonnykh-ram.html">
								Установка балконных рам							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 25							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-landshaftnogo-dizajnera.html">
								Ландшафтный дизайнер							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 25							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-kompyuternoj-pomoshchi.html">
								Услуги компьютерной помощи							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 25							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/sengvich-panel.html">
								Монтаж сэндвич панелей							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 25							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/nyanya.html">
								Услуги няни - соцработника							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 25							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/povar-dostavka.html">
								Услуги повара и доставка еды							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 25							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/utilizaciya-productov-pitaniya-fructy.html">
								Утилизация продуктов питания - фрукты							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 25							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-gidroizolyacii.html">
								Услуги гидроизоляции и кровля							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 24							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/otdelka.html">
								Услуги отделочников разнорабочих							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 24							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-mebelshchika.html">
								Услуги мебельщика							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 23							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/yuridicheskie-uslugi.html">
								Юридические услуги							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 23							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/parichmaher.html">
								Услуги парикмахера							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 23							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/zemlecop.html">
								Земельные работы и землекопы							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 23							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/betonnye-raboty.html">
								Бетонные работы фундамент стяжка							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 22							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/ukladchik-napolnykh-pokrytij.html">
								Укладчик напольных покрытий							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 22							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-trubochista.html">
								Услуги трубочиста							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 22							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-pechnika.html">
								Услуги печника							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 22							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/peretyajka-mebeli.html">
								Перетяжка мебели							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 22							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/ohrana.html">
								Охранные услуги							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 22							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/sadovnik.html">
								Услуги садовника							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 22							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/montazh-natyazhnykh-armstrong-potolkov.html">
								Монтаж потолков							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 21							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/utilizacya-mebeli.html">
								Услуги утилизации мебели							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 21							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/montazh-gvl-gkl-konstruktsij.html">
								Монтаж профильных ГВЛ ГКЛ конструкций и фасадов							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 20							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-gruzchika.html">
								Услуги грузчика переезд							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 20							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-kamenshchika.html">
								Услуги каменщика							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 20							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/promouter.html">
								Услуги промоутеров							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 20							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/hochu-stat-cosmonavtom.html">
								Я хочу стать космонавтом							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 20							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/dojd-zemlya.html">
								Услуги дождливого землекопа							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 20							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/pokleyka-oboev-okleyka.html">
								Поклейка и оклейка обоев							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 19							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/dorojnye-raboty-dorojniki.html">
								Услуги дорожников и дорожные работы							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 19							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/gamers-price.html">
								Услуги геймеров							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 19							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/oryentiry-astronoma-58.html">
								Услуги ориентиров астронома							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 19							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-kanalizacii.html">
								Канализация все работы							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 19							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-elektrika.html">
								Услуги электрика							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 18							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-mojshchik-okon.html">
								Услуги мойщик окон							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 18							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/almaznoe-burenie.html">
								Алмазное бурение двери и ворота							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 18							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-otkryvania-dverei-zamkov.html">
								Услуги вскрытия замков							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 18							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/tyristicheskie-uslugi.html">
								Туристические услуги							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 18							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/utilizacia-avto-othodov.html">
								Утилизация автомобильных отходов							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 18							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/utilizacia-productov-pitanya-ovoschy.html">
								Утилизация продуктов питания - овощи							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 18							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-ustanovshchika-dverej.html">
								Услуги установщика дверей							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 17							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/ustanovshchik-okon.html">
								Установка и ремонт окон							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 17							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/util-techniki.html">
								Услуги утилизации техники							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 17							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/dostavka-drov.html">
								Обработка и доставка древесины							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 17							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/studia-zvukozapisi.html">
								Студия звукозаписи							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 17							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/passajirskie-perevozki.html">
								Пассажирские перевозки							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 17							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/buhgalter.html">
								Услуги бухгалтера и аудита							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 17							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-trenera.html">
								Услуги тренера секций и кружков							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 17							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-kurera.html">
								Услуги курьера							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 17							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/utilizacia-dva-v-odnom.html">
								Утилизация 2 в 1							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 17							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/pryaja-i-vyazanie.html">
								Услуги пряжки и вязания							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 17							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-krovelshchika.html">
								Услуги кровельщика							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 16							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/ventiliruemye-fasady.html">
								Монтажник профильных конструкций							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 16							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/sborka-remont-mebeli.html">
								Сборка и ремонт мебели							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 16							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uteplytel.html">
								Услуги утеплителя							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 16							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/uslugi-reclamshikov.html">
								Услуги рекламщиков							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 16							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/utilizacia-produktov-pitania.html">
								Утилизация продуктов питания							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 16							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/biznes-angel.html">
								Услуги бизнес Ангелов							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 16							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/betonschik.html">
								Услуги бетонщика							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 15							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/pochtalion.html">
								Услуги почтальона							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 15							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/trebovania-komunalnye.html">
								Коммунальные услуги соответствие требованиям							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 15							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/lodki-pantony-remont-pokraska.html">
								Ремонт и покраска лодок и понтонов							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 15							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/tokar.html">
								Услуги токаря							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 14							</span>
						</td>
														</tr>
											<tr class="cat-list-row0" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/cerkof-tainstva.html">
								Церковные услуги и таинства							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 11							</span>
						</td>
														</tr>
											<tr class="cat-list-row1" >
									<td headers="categorylist_header_title" class="list-title">
													<a href="/city/belgorod/domrabotnucy.html">
								Услуги домработницы							</a>
																	</td>
																					<td headers="categorylist_header_hits" class="list-hits">
							<span class="badge badge-info">
								Хиты: 9							</span>
						</td>
														</tr>
					</tbody>
	</table>


	</form>

			</div>
</div>


</div>

					
					<!-- End Content -->
				</main>
			 <noindex>
			 			      				<div id="aside" class="span3" style="width: 282px!Important;">	 
					<!-- Begin Right Sidebar -->
					<div  class="floating"> 
					<div class="well "><h3 class="page-header">Повседневные и разовые</h3><ul class="nav menu">
<li class="item-830"><a href="/city/belgorod/povsdnevnue-uslugi-s-licensiey.html" >Повседневные услуги с лицензией</a></li><li class="item-748"><a href="/city/belgorod/povar-dostavka.html" >Услуги повара и доставка еды</a></li><li class="item-217"><a href="/city/belgorod/uslugi-kompyuternoj-pomoshchi.html" >Услуги компьютерной помощи</a></li><li class="item-766"><a href="/city/belgorod/uslugi-otkryvania-dverei-zamkov.html" >Услуги вскрытия замков</a></li><li class="item-214"><a href="/city/belgorod/uslugi-avtomechanika.html" >Услуги автомеханика и слесаря</a></li><li class="item-218"><a href="/city/belgorod/uslugi-mebelshchika.html" >Услуги мебельщика и столяра</a></li><li class="item-737"><a href="/city/belgorod/foto-video.html" >Фото и видео услуги</a></li><li class="item-841"><a href="/city/belgorod/bankir.html" >Услуги банкира и финансовые</a></li><li class="item-637"><a href="/city/belgorod/uslugi-klininga.html" >Услуги клининга и химчистка</a></li><li class="item-768"><a href="/city/belgorod/tipograf.html" >Услуги типографии и печати</a></li><li class="item-747"><a href="/city/belgorod/razvlecatelnye.html" >Развлекательные услуги</a></li><li class="item-317"><a href="/city/belgorod/otdelka.html" >Услуги отделочников разнорабочих</a></li><li class="item-222"><a href="/city/belgorod/uslugi-uborshchitsy.html" >Услуги уборщицы, клининг</a></li><li class="item-708"><a href="/city/belgorod/tech.html" >Техническая поддержка</a></li><li class="item-727"><a href="/city/belgorod/remon-obyvi.html" >Услуги ремонта обуви</a></li><li class="item-729"><a href="/city/belgorod/parichmaher.html" >Услуги парикмахера</a></li><li class="item-731"><a href="/city/belgorod/promouter.html" >Услуги промоутеров</a></li><li class="item-751"><a href="/city/belgorod/utilizacya-mebeli.html" >Услуги утилизации мебели</a></li><li class="item-756"><a href="/city/belgorod/sborka-remont-mebeli.html" >Сборка и ремонт мебели</a></li><li class="item-826"><a href="/city/belgorod/zemlecop.html" >Землекоп и земельные работы</a></li><li class="item-827"><a href="/city/belgorod/oryentiry-astronoma-58.html" >Услуги ориентиров астронома</a></li><li class="item-828"><a href="/city/belgorod/tyristicheskie-uslugi.html" >Туристические услуги</a></li><li class="item-843"><a href="/city/belgorod/dostavka-drov.html" >Доставка древесины и дров</a></li><li class="item-868"><a href="/city/belgorod/hochu-stat-cosmonavtom.html" >Хочу стать космонавтом</a></li><li class="item-870"><a href="/city/belgorod/biznes-angel.html" >Услуги бизнес Ангелов</a></li><li class="item-872"><a href="/city/belgorod/pryaja-i-vyazanie.html" >Услуги пряжки и вязания</a></li><li class="item-876"><a href="/city/belgorod/sadovnik.html" >Услуги садовника</a></li></ul>
</div><div class="well "><h3 class="page-header">Строительные и ремонтные</h3><ul class="nav menu">
<li class="item-829"><a href="/city/belgorod/raboty-s-dopuskom.html" >Строительные рабооты с допуском</a></li><li class="item-149"><a class="meny_red" href="/city/belgorod/uslugi-santekhnika.html" >Услуги сантехника</a></li><li class="item-150"><a href="/city/belgorod/ukladchik-napolnykh-pokrytij.html" >Укладчик напольных покрытий</a></li><li class="item-172"><a href="/city/belgorod/montazh-natyazhnykh-armstrong-potolkov.html" >Услуги монтажа потолков</a></li><li class="item-721"><a href="/city/belgorod/spectehnica.html" >Услуги спецтехники</a></li><li class="item-221"><a href="/city/belgorod/uslugi-trubochista.html" >Услуги трубочиста</a></li><li class="item-158"><a href="/city/belgorod/uslugi-shtukaturov-malyarov.html" >Услуги штукатуров и маляров</a></li><li class="item-495"><a href="/city/belgorod/pokleyka-oboev-okleyka.html" >Поклейка и оклейка обоев</a></li><li class="item-153"><a href="/city/belgorod/uslugi-gruzchika.html" >Услуги грузчика и переезд</a></li><li class="item-162"><a href="/city/belgorod/uslugi-plitochnika.html" >Услуги плиточника</a></li><li class="item-166"><a href="/city/belgorod/uslugi-ustanovshchika-dverej.html" >Услуги установщика дверей</a></li><li class="item-154"><a href="/city/belgorod/uslugi-dizajnera-intererov.html" >Дизайн интерьеров</a></li><li class="item-169"><a href="/city/belgorod/ustanovshchik-okon.html" >Услуги установщика окон</a></li><li class="item-152"><a href="/city/belgorod/uslugi-gidroizolyacii.html" >Услуги гидроизоляции</a></li><li class="item-168"><a href="/city/belgorod/ustanovka-balkonnykh-ram.html" >Услуги установки балконных рам</a></li><li class="item-499"><a href="/city/belgorod/almaznoe-burenie.html" >Алмазное бурение двери и ворота</a></li><li class="item-157"><a href="/city/belgorod/uslugi-landshaftnogo-dizajnera.html" >Ландшафтный дизайнер</a></li><li class="item-170"><a href="/city/belgorod/montazh-ventilyatsionnykh-sistem.html" >Монтаж вент. систем, кондиционеров</a></li><li class="item-842"><a href="/city/belgorod/uslugi-kanalizacii.html" >Услуги канализации</a></li></ul>
</div>
						
						</noindex>
					</div>
					<!-- End Right Sidebar -->
				</div>
						</div>
	</div>
	
</div>	
	<!-- Footer -->
	<footer class="footer" role="contentinfo">
    <noindex>
<div class="innerfooter">


<p class="pull-right"><a href="#top" id="back-top">Наверх</a></p>
	
	<div class="fot" style="margin-bottom: 40px;">
    <div>
<div class="company">
					<a href="https://www.reg.ru/?rlink=reflink-6842723"><img src="https://срочные-услуги.рф/images/reg.jpg" alt=""></a> 
                    <a href="https://www.tinkoff.ru/business"><img src="https://срочные-услуги.рф/images/tincoff.jpg" alt=""></a>
                    <a href="https://www.gks.ru/"><img src="https://срочные-услуги.рф/images/rosstat.jpg" alt=""></a>
					<a href="https://www.rustore.ru/catalog/app/com.uslugirossii.app"><img src="https://срочные-услуги.рф/images/ru.png" alt=""></a>
			
                </div>
</div>
			<div class="menu_container">
					<div class="moduletable">
					<ul class="nav menu_manager">
<li class="item-719 deeper parent"><span class="nav-header">Партнеры</span><ul class="nav-child unstyled small"><li class="item-861"><a href="https://www.gks.ru/" >Росстат</a></li><li class="item-863"><a href="https://www.reg.ru/?rlink=reflink-6842723" >Хостинг reg.ru</a></li><li class="item-862"><a href="https://tbank.ru/baf/4Q5NrHwt3h8" >Тинькофф</a></li></ul></li><li class="item-835 deeper parent"><span class="nav-header">Документы</span><ul class="nav-child unstyled small"><li class="item-834"><a href="https://срочные-услуги.рф/soglasie-ispolnytely.html" >Информация о заказе</a></li><li class="item-833"><a href="https://срочные-услуги.рф/registration.html" >Регистрационный договор</a></li><li class="item-832"><a href="https://срочные-услуги.рф/152fz.html" >Закон - 152 ФЗ</a></li><li class="item-325"><a href="https://срочные-услуги.рф/garant.html" target="_blank" >Гарантия на работы</a></li><li class="item-821"><a href="https://срочные-услуги.рф/polzovatelskoe-soglashenie.html" >Пользовательское соглашение</a></li><li class="item-840"><a href="https://срочные-услуги.рф/uslovia-sotrudnichestva.html" >Условия сотрудничества</a></li><li class="item-845"><a href="https://xn----ftbeonjgpifvc9b5c.xn--p1ai/zakaz.html" target="_blank" >Договор оказания услуг</a></li><li class="item-869"><a href="https://xn----ftbeonjgpifvc9b5c.xn--p1ai/file/obraz-dogovor.docx" >договор образовательные услуги (для печати)</a></li></ul></li><li class="item-836 deeper parent"><span class="nav-header">Социальные сети</span><ul class="nav-child unstyled small"><li class="item-831"><a href="https://max.ru/u/f9LHodD0cOL4lhBavx3XlznGUXqs7EWs9dW0LKZ6ph67HGMZXSj4VgwhiXI" onclick="window.open(this.href,'targetWindow','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,');return false;" >Мы в Max</a></li><li class="item-823"><a href="https://vk.ru/srochnye_uslugi" target="_blank" >Мы в контакте</a></li><li class="item-725"><a href="https://dzen.ru/id/69496a5e2b72d27cf51fe24d" target="_blank" >Новости сайта</a></li><li class="item-857"><a href="https://g.page/r/CaJ_WBpcMz5uEAE/review" target="_blank" >Мы в Google</a></li><li class="item-858"><a href="https://vkvideo.ru/@srochnye_uslugi" >ВК - Видео</a></li><li class="item-859"><a href="https://yandex.ru/maps/org/srochnyye_uslugi_v_rossii/142691873421/reviews/" >Яндекс бизнес</a></li></ul></li><li class="item-837 deeper parent"><span class="nav-header">Быстрые ссылки</span><ul class="nav-child unstyled small"><li class="item-757"><a href="https://срочные-услуги.рф/" target="_blank" >Главная страница</a></li><li class="item-763"><a href="/city/belgorod/bystro/spisok-sdachi-arendy-instrumenta.html" >Прокат инструмента</a></li><li class="item-822"><a href="https://срочные-услуги.рф/contact.html" >Наши контакты</a></li><li class="item-820"><a href="/city/belgorod/bystro/help-menu.html" >Обратная связь</a></li><li class="item-838"><a href="/city/belgorod/bystro/us-lic.html" >Услуги с лицензией</a></li><li class="item-839"><a href="/city/belgorod/bystro/us-dop.html" >Услуги с допуском</a></li><li class="item-856"><a href="/city/belgorod/bystro/rabota-14-let.html" >Работа от 14 лет</a></li><li class="item-865"><a href="/city/belgorod/bystro/uslugi-strouka.html" >Строительные услуги</a></li><li class="item-877"><a href="/city/belgorod/bystro/blago-sad.html" >Благоустройство и сад</a></li></ul></li></ul>
		</div>
	
			
			<div>
		</div>
  
	</footer>
	 






    </noindex>

<!-- Cookie banner START -->
<noindex>
<div id="cookieBanner" class="cookie-banner cookie-pos-br" role="dialog" aria-live="polite"> <div class="cookie-banner__text">Пользуясь сайтом, вы соглашаетесь с использованием cookies и <b><a href="https://срочные-услуги.рф/polotic.html" target="_blank" rel="noopener">политикой конфиденциальности</a></b>.</div> <div class="cookie-actions"><button id="cookieAccept" class="cookie-btn">Хорошо</button></div>
</div>
<script>(function(){
  var KEY='cookie_consent_accepted';
  var root=document.getElementById('cookieBanner');
  if(root && root.parentNode!==document.body){ try{ document.body.appendChild(root); }catch(e){} }
  function open(){ if(root && !localStorage.getItem(KEY)) root.setAttribute('data-open','1'); }
  function close(){ if(root) root.removeAttribute('data-open'); }
  function accept(){
    localStorage.setItem(KEY,'1'); close();
    try{}catch(e){}
  }
  var acceptBtn=document.getElementById('cookieAccept');
  if(acceptBtn){ acceptBtn.addEventListener('click', accept); }
  setTimeout(open, 400);
})();</script></noindex>
<!-- Cookie banner END -->
</body>
</html>

Latest requests

# Url Url Source Date
1 https://xn----ftbeonjgpifvc9b5c.xn… 2026-10-17 12:24:10
2 https://www.texarkanatwins.com/%25… 2026-10-17 12:24:10
3 https://www.texarkanatwins.com/%25… 2026-10-17 12:24:09
4 https://www.texarkanatwins.com/%25… 2026-10-17 12:24:09
5 https://www.thebolditalic.com/?gi=… 2026-10-17 12:24:08
6 https://www.texarkanatwins.com/%25… 2026-10-17 12:24:07
7 https://www.texarkanatwins.com/%25… 2026-10-17 12:24:06
8 https://www.texarkanatwins.com/%25… 2026-10-17 12:24:06
9 https://www.texarkanatwins.com/%25… 2026-10-17 12:24:05
10 https://consent.youtube.com/m?cont… 2026-10-17 12:24:05
11 https://play.google.com/store/games 2026-10-17 12:24:05
12 https://www.texarkanatwins.com/%25… 2026-10-17 12:24:04
13 https://www.texarkanatwins.com/%25… 2026-10-17 12:24:03
14 https://www.texarkanatwins.com/%25… 2026-10-17 12:24:03
15 https://www.texarkanatwins.com/%25… 2026-10-17 12:24:02
16 https://www.texarkanatwins.com/%25… 2026-10-17 12:24:01
17 https://www.texarkanatwins.com/%25… 2026-10-17 12:24:00
18 https://www.texarkanatwins.com/%25… 2026-10-17 12:24:00
19 https://www.texarkanatwins.com/%25… 2026-10-17 12:24:00
20 https://www.texarkanatwins.com/%25… 2026-10-17 12:24:00