        </div> <!-- закрываем container -->

        <!-- Модальные окна -->
        <div class="modal-overlay" id="indicatorModal">
            <div class="modal-content">
                <button class="modal-close">&times;</button>
                <h2 class="modal-title" id="modal-indicator-title">Индикатор</h2>
                <div class="modal-chart">
                    <canvas id="indicatorChart"></canvas>
                </div>
                <div id="modal-sources"></div>
                <button class="enhanced-factors-toggle" style="margin-top: 1rem;" onclick="openKnowledgeCard(document.getElementById('modal-indicator-id').value)">
                    📚 Читать подробнее: Карточка знаний
                </button>
                <input type="hidden" id="modal-indicator-id">
            </div>
        </div>

        <div class="modal-overlay" id="knowledgeModal">
            <div class="modal-content">
                <button class="modal-close">&times;</button>
                <h2 class="modal-title" id="knowledge-title">Карточка знаний</h2>
                <div class="knowledge-content" id="knowledge-content">
                    <!-- Заполняется JS -->
                </div>
            </div>
        </div>

        <script src="<?php echo asset('js/main.js'); ?>"></script>
        
        <!-- 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', 'ym');

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