diff --git a/frontend/src/components/layout/header/Header.astro b/frontend/src/components/layout/header/Header.astro
index 20578a4..867df70 100644
--- a/frontend/src/components/layout/header/Header.astro
+++ b/frontend/src/components/layout/header/Header.astro
@@ -63,6 +63,13 @@ import { COMPANY } from "@constants";
+
+
+
`;
+
+ // Обновляем мобильный блок авторизации
+ const mobileAuthBlock = document.getElementById('mobile-auth-block');
+ if (mobileAuthBlock) {
+ mobileAuthBlock.innerHTML = `
+
+ `;
+
+ document.getElementById('mobile-logout-btn')?.addEventListener('click', async () => {
+ try {
+ await fetch('/api/auth/logout', { method: 'POST' });
+ } catch (e) {}
+ localStorage.removeItem('auth_token');
+ localStorage.removeItem('user');
+ localStorage.removeItem('pocketbase_auth');
+ document.querySelector('.header-right')?.classList.remove('auth-active');
+ window.location.reload();
+ });
+ }
// Обработчик выхода
document.getElementById('logout-btn')?.addEventListener('click', async () => {