// Minimal client-side helpers
document.querySelectorAll('form').forEach((form) => {
    form.addEventListener('submit', (e) => {
        const btn = form.querySelector('button[type="submit"]');
        if (btn && !btn.disabled) {
            btn.disabled = true;
            btn.textContent = 'Загрузка…';
        }
    });
});
