        /* Минималистичный футер: знак без рамки и градиентных букв. */
        .footer { padding: 34px 20px 24px; margin-top: 32px; }
        .footer-inner {
            display: grid;
            grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr));
            gap: 30px;
            align-items: start;
        }
        .footer-col { min-width: 0; }
        .footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
            color: var(--text-muted); margin-bottom: 12px; }
        .footer-col a { font-size: 13px; margin-bottom: 7px; }
        .footer-brand { display: inline-flex; align-items: center; margin-bottom: 16px; }
        .footer-brand img { width: 48px; height: 48px; object-fit: contain; }
        .footer-socials { align-items: flex-start; }
        .footer-socials h4 { text-align: left; }
        .footer-socials .socials { gap: 8px; justify-content: flex-start; }
        .footer-socials .social-link { width: 36px; height: 36px; font-size: 16px;
            background: var(--bg-hover); color: var(--text-secondary); }
        .footer-socials .social-link:hover { background: var(--bg-active, var(--bg-hover));
            color: var(--text-primary); transform: none; box-shadow: none; }
        .footer-copyright { margin-top: 12px; text-align: left; }
        @media (max-width: 760px) {
            .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
            .footer-brand img { width: 42px; height: 42px; }
        }
        @media (max-width: 460px) {
            .footer-inner { grid-template-columns: 1fr; }
        }

        /* Стили для модального окна */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            animation: fadeIn 0.2s ease;
        }
        .modal.open {
            display: flex;
        }
        .modal-content {
            background: var(--bg-card);
            border-radius: 20px;
            padding: 30px;
            max-width: 500px;
            width: 90%;
            box-shadow: var(--shadow-heavy);
            animation: slideUp 0.3s ease;
        }
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        .modal-header h3 {
            font-size: 22px;
            color: var(--text-primary);
            margin: 0;
        }
        .modal-header h3 i {
            color: var(--color-primary-text);
            margin-right: 10px;
        }
        .modal-close {
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: var(--text-muted);
            transition: color 0.2s;
            line-height: 1;
        }
        .modal-close:hover {
            color: var(--text-primary);
        }
        .modal-body .form-group {
            margin-bottom: 16px;
        }
        .modal-body .form-group label {
            display: block;
            font-weight: 600;
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 4px;
        }
        .modal-body .form-group select,
        .modal-body .form-group textarea {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            background: var(--bg-input);
            color: var(--text-primary);
            font-size: 15px;
            font-family: inherit;
            transition: border-color 0.2s;
        }
        .modal-body .form-group select:focus,
        .modal-body .form-group textarea:focus {
            outline: none;
            border-color: var(--color-secondary);
            box-shadow: 0 0 0 3px rgba(194,65,12,0.15);
        }
        .modal-body .form-group textarea {
            resize: vertical;
            min-height: 80px;
        }
        .modal-body .form-actions {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }
        .modal-body .form-actions .btn-primary,
        .modal-body .form-actions .btn-secondary {
            padding: 10px 24px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            border: none;
        }
        .modal-body .form-actions .btn-primary {
            background: var(--gradient-main);
            color: white;
        }
        .modal-body .form-actions .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(234,88,12,0.3);
        }
        .modal-body .form-actions .btn-secondary {
            background: var(--bg-hover);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
        }
        .modal-body .form-actions .btn-secondary:hover {
            background: var(--border-color);
            transform: translateY(-2px);
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        @keyframes slideUp {
            from { transform: translateY(20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        @media (max-width: 480px) {
            .modal-content { padding: 20px; }
            .modal-body .form-actions { flex-direction: column; }
            .modal-body .form-actions .btn-primary,
            .modal-body .form-actions .btn-secondary { width: 100%; justify-content: center; }
            .modal-header h3 { font-size: 18px; }
        }

        /* Стили для кнопок-флажков (универсальные) */
        .report-btn,
        .report-btn-small {
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            font-size: 16px;
            padding: 4px 8px;
            border-radius: 30px;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .report-btn:hover,
        .report-btn-small:hover {
            color: var(--toast-error);
            background: rgba(239, 68, 68, 0.1);
            transform: scale(1.1);
        }
        .report-btn-small {
            font-size: 14px;
            padding: 2px 6px;
        }

        .notification-link {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            font-size: 20px;
            transition: color 0.2s;
        }
        .notification-link:hover {
            color: var(--color-primary-text);
        }
        .notification-counter {
            position: absolute;
            top: -6px;
            right: -8px;
            background: var(--toast-error);
            color: white;
            font-size: 10px;
            font-weight: 700;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s;
            border: 2px solid var(--bg-card);
        }
    
        .notification-link {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            font-size: 20px;
            transition: color 0.2s;
        }
        .notification-link:hover {
            color: var(--color-primary-text);
        }
        .notification-counter {
            position: absolute;
            top: -6px;
            right: -8px;
            background: var(--toast-error);
            color: white;
            font-size: 10px;
            font-weight: 700;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s;
            border: 2px solid var(--bg-card);
        }
        .notif-menu {
            position: relative;
            display: inline-flex;
        }
        .notif-dropdown {
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            width: 320px;
            max-width: calc(100vw - 24px);
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            box-shadow: var(--shadow-hover);
            padding: 8px;
            display: none;
            z-index: 1000;
        }
        .notif-menu.open .notif-dropdown {
            display: block;
        }
        .notif-dropdown-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary);
            padding: 8px 10px;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 6px;
        }
        .notif-dropdown-unread {
            /* Тёмный оранжевый: белый текст даёт 5.19:1 (светлый #f97316 - 2.80:1) */
            background: #c2410c;
            color: #fff;
            font-size: 11px;
            padding: 1px 9px;
            border-radius: 10px;
        }
        .notif-dropdown-item {
            display: flex;
            flex-direction: column;
            gap: 2px;
            padding: 9px 10px;
            border-radius: 12px;
            text-decoration: none;
            border-left: 3px solid transparent;
        }
        .notif-dropdown-item:hover {
            background: var(--bg-hover);
        }
        .notif-dropdown-item.unread {
            border-left-color: var(--color-primary);
            background: var(--bg-hover);
        }
        .notif-dropdown-title {
            font-size: 13px;
            color: var(--text-primary);
            line-height: 1.35;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .notif-dropdown-date {
            font-size: 11px;
            color: var(--text-muted);
        }
        .notif-dropdown-all {
            display: block;
            text-align: center;
            margin-top: 6px;
            padding: 9px 0;
            font-size: 13px;
            color: var(--color-primary-text);
            text-decoration: none;
            border-top: 1px solid var(--border-color);
            font-weight: 600;
        }
        .notif-dropdown-all:hover {
            background: var(--bg-hover);
        }
        .notif-dropdown-empty {
            padding: 14px 10px;
            text-align: center;
            font-size: 13px;
            color: var(--text-muted);
        }
    
