body
{
   background-color: #FFFFFF;
   color: #000000;
   font-family: Arial;
   font-weight: normal;
   font-size: 13px;
   line-height: 1.1875;
   margin: 0;
   padding: 0;
}
a
{
   color: #0000FF;
   text-decoration: underline;
}
a:visited
{
   color: #800080;
}
a:active
{
   color: #FF0000;
}
a:hover
{
   color: #0000FF;
   text-decoration: underline;
}
input:focus, textarea:focus, select:focus
{
   outline: none;
}
        :root {
            /* Цветовая палитра в стиле комикс-растр */
            --color-cosmic: #0A0A2A;
            --color-paper: #FFFBF0;
            --color-boom: #FF00D0;
            --color-cyan: #00F0FF;
            --color-gold: #FFCC00;
            --color-dark: #0A0A2A;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Comic Neue', cursive;
            background-color: var(--color-cosmic);
            color: var(--color-paper);
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            position: relative;
        }

        /* УСИЛЕННЫЙ ДВУХСЛОЙНЫЙ ФОН - ЯВНО ВИДНА РАЗНИЦА */
        /* Слой 1: КРУПНЫЕ РАСТРОВЫЕ ТОЧКИ (пиксельный эффект) */
        .halftone-bg::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            /* ЯРКИЕ КРУПНЫЕ ТОЧКИ - верхний слой */
            background-image: 
                radial-gradient(circle at 10% 20%, var(--color-boom) 3px, transparent 4px),
                radial-gradient(circle at 90% 80%, var(--color-cyan) 2.5px, transparent 3.5px),
                radial-gradient(circle at 50% 50%, rgba(255, 204, 0, 0.3) 2px, transparent 3px);
            background-size: 50px 50px, 35px 35px, 45px 45px;
            opacity: 0.5; /* Увеличенная прозрачность */
            pointer-events: none;
            z-index: -180; /* Верхний фоновый слой */
            mix-blend-mode: overlay; /* Эффект наложения */
        }

        /* Слой 2: ПЛАВНЫЕ ГРАДИЕНТНЫЕ КРУГИ (глубина) */
        .halftone-bg::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            /* БОЛЕЕ ЯРКИЕ ГРАДИЕНТЫ - нижний слой */
            background-image: 
                radial-gradient(circle at 20% 30%, 
                    rgba(255, 0, 208, 0.25) 0%, 
                    rgba(255, 0, 208, 0.1) 20%, 
                    transparent 50%),
                radial-gradient(circle at 80% 70%, 
                    rgba(0, 240, 255, 0.2) 0%, 
                    rgba(0, 240, 255, 0.08) 20%, 
                    transparent 50%),
                radial-gradient(circle at 40% 80%, 
                    rgba(255, 255, 255, 0.1) 0%, 
                    transparent 30%);
            background-attachment: fixed;
            pointer-events: none;
            z-index: -200; /* Нижний фоновый слой */
        }

        /* Декоративные фоновые изображения для десктопа - СРЕДНИЙ ПЛАН */
        .desktop-background-image {
            display: none; /* По умолчанию скрыто */
            position: fixed; /* fixed чтобы оставалось на месте */
            z-index: -150; /* Между точками и контентом */
            pointer-events: none; /* Не мешает кликам */
            opacity: 0.7; /* Полупрозрачное */
            max-width: 600px; /* Максимальная ширина */
            width: 40%; /* Адаптивная ширина */
            height: auto;
            transition: opacity 1s ease-in-out;
        }

        /* Правое изображение */
        .bg-image-right {
            top: 0;
            right: 0;
        }

        /* Левое изображение */
        .bg-image-left {
            top: 0;
            left: 0;
        }

        /* Показываем только на больших экранах */
        @media screen and (min-width: 993px) {
            .desktop-background-image {
                display: block;
            }
        }

        /* Для очень больших экранов можно увеличить прозрачность */
        @media screen and (min-width: 1600px) {
            .desktop-background-image {
                opacity: 0.8;
                max-width: 800px;
            }
            
            .halftone-bg::before {
                background-size: 60px 60px, 45px 45px, 55px 55px;
            }
        }

        /* ОСНОВНОЙ КОНТЕЙНЕР ДЛЯ ЦЕНТРИРОВАНИЯ */
        .main-container {
            width: 100%;
            max-width: 1400px;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 0 20px;
            position: relative;
            z-index: 1; /* Чтобы контент был над фоновым изображением */
        }

        .comic-border {
            border: 4px solid var(--color-paper);
            position: relative;
            box-shadow: 
                8px 8px 0 var(--color-boom),
                0 0 0 4px var(--color-paper);
        }

        .comic-border-gold {
            border: 4px solid var(--color-gold);
            box-shadow: 
                6px 6px 0 var(--color-boom),
                0 0 0 3px var(--color-gold);
        }

        /* Шапка */
        header {
            padding: 20px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            position: relative;
            width: 100%;
            max-width: 1400px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo-img {
            width: 60px;
            height: 60px;
            object-fit: contain;
            filter: drop-shadow(3px 3px 0 var(--color-boom));
        }

        .logo-text {
            font-family: 'Bangers', cursive;
            font-size: 42px;
            letter-spacing: 2px;
            color: var(--color-paper);
            text-shadow: 
                3px 3px 0 var(--color-boom),
                6px 6px 0 rgba(0, 0, 0, 0.5);
        }

        .logo-subtitle {
            font-family: 'Orbitron', sans-serif;
            font-size: 12px;
            color: var(--color-cyan);
            letter-spacing: 3px;
            margin-top: -5px;
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 30px;
            flex-wrap: wrap;
        }

        /* Навигационные ссылки */
        nav a {
            color: var(--color-paper);
            text-decoration: none;
            font-family: 'Bangers', cursive;
            font-size: 20px;
            letter-spacing: 1px;
            padding: 5px 15px;
            position: relative;
            transition: all 0.3s;
        }

        /* Посещенные ссылки - такой же цвет как обычные */
        nav a:link,
        nav a:visited {
            color: var(--color-paper);
        }

        /* Ховер-эффект для ВСЕХ состояний */
        nav a:link:hover,
        nav a:visited:hover {
            color: var(--color-boom);
            transform: translateY(-3px);
        }

        /* Восклицательный знак при наведении */
        nav a:link:hover::after,
        nav a:visited:hover::after {
            content: '!';
            position: absolute;
            right: -5px;
            top: -10px;
            color: var(--color-cyan);
            font-size: 24px;
        }

        .auth-buttons {
            display: flex;
            gap: 15px;
        }

        /* Кнопки в стиле комикса */
        .btn {
            padding: 12px 30px;
            font-family: 'Bangers', cursive;
            font-size: 18px;
            letter-spacing: 1px;
            border: none;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
            text-transform: uppercase;
            text-decoration: none !important;
            display: inline-block;
            color: white !important;
        }

        .btn-primary {
            background-color: var(--color-boom);
            color: white;
            box-shadow: 4px 4px 0 var(--color-dark);
        }

        .btn-primary:hover {
            transform: translate(-2px, -2px);
            box-shadow: 6px 6px 0 var(--color-dark);
            color: white !important;
        }

        .btn-secondary {
            background-color: transparent;
            color: var(--color-cyan);
            border: 3px solid var(--color-cyan);
            box-shadow: 4px 4px 0 var(--color-dark);
        }

        .btn-secondary:hover {
            background-color: var(--color-cyan);
            color: var(--color-dark);
        }

        /* Убираем стандартные стили ссылок для кнопок */
        .catalog-card a.btn {
            text-decoration: none !important;
            color: white !important;
            display: inline-block;
        }

        /* Убираем стили для посещенных ссылок */
        .catalog-card a.btn:link,
        .catalog-card a.btn:visited,
        .catalog-card a.btn:hover,
        .catalog-card a.btn:active {
            color: white !important;
            text-decoration: none !important;
        }

        /* Главный баннер */
        .hero {
            padding: 60px 40px;
            text-align: center;
            position: relative;
            margin: 30px 0;
            background-color: rgba(10, 10, 42, 0.8);
            border-radius: 20px;
            width: 100%;
            max-width: 1400px;
        }

        .hero h1 {
            font-family: 'Bangers', cursive;
            font-size: 64px;
            color: var(--color-paper);
            margin-bottom: 20px;
            line-height: 1;
            text-shadow: 
                4px 4px 0 var(--color-boom),
                8px 8px 0 rgba(0, 0, 0, 0.7);
        }

        .hero p {
            font-size: 22px;
            max-width: 800px;
            margin: 0 auto 40px;
            color: var(--color-cyan);
            font-weight: 700;
        }

        .cta-buttons {
            display: flex;
            justify-content: center;
            gap: 30px;
            flex-wrap: wrap;
        }

        /* Галерея героев */
        .heroes-gallery {
            padding: 60px 40px;
            background-color: var(--color-paper);
            color: var(--color-dark);
            margin: 40px 0;
            border-radius: 20px;
            width: 100%;
            max-width: 1400px;
        }

        .section-title {
            font-family: 'Bangers', cursive;
            font-size: 48px;
            text-align: center;
            margin-bottom: 40px;
            color: var(--color-dark);
            position: relative;
            display: inline-block;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 10%;
            width: 80%;
            height: 4px;
            background: linear-gradient(90deg, transparent, var(--color-boom), transparent);
        }

        /* ИСПРАВЛЕННАЯ СЕТКА ГЕРОЕВ */
        .heroes-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr); /* 3 колонки на десктопе */
            gap: 30px;
            margin-top: 40px;
            width: 100%;
        }

        .hero-card {
            background: white;
            padding: 25px;
            border-radius: 15px;
            position: relative;
            transition: transform 0.3s;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .hero-card:hover {
            transform: translateY(-10px) rotate(1deg);
        }

        .hero-rank {
            position: absolute;
            top: -15px;
            right: -15px;
            background: var(--color-gold);
            color: var(--color-dark);
            font-family: 'Bangers', cursive;
            font-size: 20px;
            padding: 8px 15px;
            border-radius: 50%;
            transform: rotate(15deg);
        }

        .hero-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--color-boom), var(--color-cyan));
            margin: 0 auto 20px;
            overflow: hidden;
            position: relative;
        }

        .hero-avatar::before {
            content: '⚔️';
            font-size: 40px;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .hero-name {
            font-family: 'Bangers', cursive;
            font-size: 28px;
            color: var(--color-dark);
            text-align: center;
            margin-bottom: 10px;
        }

        .hero-title {
            color: var(--color-boom);
            font-weight: bold;
            text-align: center;
            margin-bottom: 15px;
            font-size: 16px;
        }

        .hero-content {
            font-size: 14px;
            color: #666;
            margin-bottom: 20px;
            text-align: center;
            flex-grow: 1;
        }

        /* ИЗМЕНЕНИЕ: Увеличен отступ над статистикой */
        .hero-stats {
            display: flex;
            justify-content: space-around;
            font-family: 'Orbitron', sans-serif;
            font-size: 12px;
            color: var(--color-dark);
            margin-top: 25px;
            padding-top: 8px;
            border-top: 1px dashed rgba(0, 0, 0, 0.1);
        }

        /* Каталоги */
        .catalogs {
            padding: 60px 0;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 40px;
            width: 100%;
            max-width: 1400px;
        }

        .catalog-card {
            background: rgba(255, 255, 255, 0.1);
            padding: 40px 30px;
            border-radius: 20px;
            text-align: center;
            backdrop-filter: blur(10px);
        }

        .catalog-icon {
            font-size: 60px;
            margin-bottom: 20px;
        }

        .catalog-card h3 {
            font-family: 'Bangers', cursive;
            font-size: 36px;
            margin-bottom: 20px;
        }

        .catalog-card p {
            margin-bottom: 30px;
            line-height: 1.6;
        }

        /* Футер */
        footer {
            padding: 40px 20px;
            margin-top: 60px;
            background-color: rgba(0, 0, 0, 0.5);
            text-align: center;
            border-top: 4px solid var(--color-boom);
            width: 100%;
            display: flex;
            justify-content: center;
        }

        .footer-content {
            max-width: 1400px;
            width: 100%;
        }

        .footer-logo {
            font-family: 'Bangers', cursive;
            font-size: 32px;
            color: var(--color-paper);
            margin-bottom: 20px;
        }

        .footer-tagline {
            color: var(--color-cyan);
            font-size: 18px;
            margin-bottom: 30px;
            font-family: 'Orbitron', sans-serif;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 30px;
        }

        .social-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--color-boom);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: white;
            text-decoration: none;
            transition: all 0.3s;
        }

        .social-icon:hover {
            transform: scale(1.2) rotate(15deg);
            background: var(--color-cyan);
        }

        .copyright {
            color: #888;
            font-size: 14px;
            margin-top: 30px;
        }

        /* =========================================== */
        /* ОСНОВНЫЕ МЕДИА-ЗАПРОСЫ ДЛЯ МОБИЛЬНЫХ */
        /* =========================================== */

        /* Планшеты и маленькие ноутбуки (992px и меньше) */
        @media screen and (max-width: 992px) {
            .heroes-grid {
                grid-template-columns: repeat(2, 1fr) !important;
            }
            
            /* Уменьшаем фон на планшетах */
            .halftone-bg::before {
                opacity: 0.3;
                background-size: 40px 40px, 30px 30px, 35px 35px;
            }
        }

        /* Мобильные телефоны (768px и меньше) - ГЛАВНЫЙ ЗАПРОС */
        @media screen and (max-width: 768px) {
            /* Форсируем одну колонку для героев */
            .heroes-grid {
                display: block !important;
                grid-template-columns: 1fr !important;
            }
            
            .hero-card {
                display: block !important;
                width: 100% !important;
                max-width: 100% !important;
                margin-bottom: 25px !important;
                float: none !important;
                clear: both !important;
            }
            
            header {
                flex-direction: column;
                gap: 20px;
                text-align: center;
            }
            
            nav ul {
                justify-content: center;
                gap: 15px;
            }
            
            .hero h1 {
                font-size: 42px;
                padding: 0 10px;
            }
            
            .hero p {
                font-size: 18px;
                padding: 0 10px;
            }
            
            .hero-avatar {
                width: 90px;
                height: 90px;
            }
            
            .hero-name {
                font-size: 26px;
            }
            
            .hero-title {
                font-size: 16px;
            }
            
            .hero-content {
                font-size: 15px;
            }
            
            .hero-stats {
                font-size: 14px;
            }
            
            .catalogs {
                display: block !important;
            }
            
            .catalog-card {
                width: 100% !important;
                margin-bottom: 25px !important;
                display: block !important;
            }
            
            .main-container {
                padding: 0 15px;
            }
            
            .hero {
                padding: 40px 20px;
                margin: 20px 0;
            }
            
            .heroes-gallery {
                padding: 40px 20px;
                margin: 20px 0;
            }
            
            .cta-buttons {
                flex-direction: column;
                align-items: center;
                gap: 15px;
            }
            
            .cta-buttons .btn {
                width: 100% !important;
                max-width: 100% !important;
                font-size: 20px;
                padding: 15px 25px;
            }
            
            .auth-buttons {
                flex-direction: column;
                width: 100%;
                max-width: 300px;
            }
            
            .auth-buttons .btn {
                width: 100%;
            }
            
            .logo-text {
                font-size: 36px;
            }
            
            /* Еще меньше фон на мобильных */
            .halftone-bg::before {
                opacity: 0.2;
                background-size: 30px 30px, 25px 25px, 28px 28px;
            }
            
            .halftone-bg::after {
                opacity: 0.8;
            }
        }

        /* Очень маленькие телефоны (480px и меньше) */
        @media screen and (max-width: 480px) {
            .hero h1 {
                font-size: 32px;
            }
            
            .hero p {
                font-size: 16px;
            }
            
            .section-title {
                font-size: 36px;
            }
            
            .hero-card {
                padding: 20px 15px !important;
            }
            
            .hero-avatar {
                width: 80px;
                height: 80px;
            }
            
            .hero-name {
                font-size: 24px;
            }
            
            .catalog-card h3 {
                font-size: 28px;
            }
            
            .logo-text {
                font-size: 32px;
            }
            
            nav a {
                font-size: 18px;
                padding: 5px 10px;
            }
        }

        /* Большие экраны */
        @media screen and (max-width: 1100px) {
            header {
                flex-direction: column;
                gap: 20px;
                text-align: center;
            }
            
            nav ul {
                justify-content: center;
            }
        }

        /* Анимации */
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        .floating {
            animation: float 3s ease-in-out infinite;
        }

        /* Эффект "КОМИКС" */
        .comic-effect {
            position: relative;
            padding: 5px 10px;
            background: var(--color-paper);
            color: var(--color-dark);
            font-family: 'Bangers', cursive;
            font-size: 14px;
            transform: rotate(-3deg);
            display: inline-block;
            margin: 0 5px;
        }

        /* Растровые кнопки */
        .btn-halftone {
            position: relative;
            overflow: hidden;
        }

        .btn-halftone::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: radial-gradient(circle at center, black 1px, transparent 1px);
            background-size: 4px 4px;
            opacity: 0.2;
            pointer-events: none;
        }

        /* =========================================== */
        /* СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ВХОДА */
        /* =========================================== */
        
        /* Анимация пульсации */
        @keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.2); opacity: 0.7; }
        }
        
        /* Анимация для Чеховского ружья */
        @keyframes pulse-gun {
            0%, 100% { 
                transform: scale(1); 
                box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
            }
            50% { 
                transform: scale(1.05); 
                box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
            }
        }
        
        /* Анимация появления модального окна */
        @keyframes modalAppear {
            from { 
                opacity: 0; 
                transform: translateY(-50px) rotate(-2deg); 
            }
            to { 
                opacity: 1; 
                transform: translateY(0) rotate(0); 
            }
        }
        
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }
        
        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        
        @keyframes slideOut {
            from { transform: translateX(0); opacity: 1; }
            to { transform: translateX(100%); opacity: 0; }
        }
        
        /* Модальное окно */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 10000;
        }
        
        .modal-content {
            background: var(--color-cosmic);
            max-width: 500px;
            margin: 100px auto;
            padding: 40px;
            position: relative;
            z-index: 10001;
            animation: modalAppear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 4px solid var(--color-paper);
            box-shadow: 
                8px 8px 0 var(--color-boom),
                0 0 0 4px var(--color-paper);
            border-radius: 15px;
        }
        
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(10, 10, 42, 0.95);
            z-index: 9999;
        }
        
        .close-modal {
            position: absolute;
            top: 20px;
            right: 25px;
            font-size: 30px;
            color: var(--color-cyan);
            cursor: pointer;
            font-family: 'Bangers', cursive;
            transition: all 0.3s;
        }
        
        .close-modal:hover {
            color: var(--color-boom);
            transform: scale(1.2) rotate(90deg);
        }
        
        .form-group {
            margin-bottom: 25px;
        }
        
        .form-group label {
            display: block;
            color: var(--color-cyan);
            font-family: 'Bangers', cursive;
            font-size: 20px;
            margin-bottom: 10px;
            letter-spacing: 1px;
        }
        
        .modal-input {
            width: 100%;
            padding: 15px;
            background: rgba(255, 255, 255, 0.1);
            border: 3px solid var(--color-cyan);
            border-radius: 10px;
            color: white;
            font-family: 'Comic Neue', cursive;
            font-size: 18px;
            outline: none;
            transition: all 0.3s;
        }
        
        .modal-input:focus {
            border-color: var(--color-boom);
            box-shadow: 0 0 15px rgba(255, 0, 208, 0.5);
            background: rgba(255, 255, 255, 0.15);
        }
        
        .input-hint {
            transform: rotate(-2deg);
            margin-top: 5px;
            padding: 3px 10px;
            background: var(--color-boom);
            color: white;
            display: inline-block;
            font-size: 12px;
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .modal-input:focus + .input-hint {
            opacity: 1;
        }
        
        .login-message {
            color: var(--color-boom);
            text-align: center;
            margin-bottom: 20px;
            min-height: 25px;
            font-family: 'Comic Neue', cursive;
            font-weight: bold;
            font-size: 16px;
            transition: all 0.3s;
        }
        
        /* =========================================== */
        /* СТИЛИ ДЛЯ AJAX И ИНДИКАТОРА ЗАГРУЗКИ */
        /* =========================================== */
        
        /* Индикатор загрузки */
        .loading-indicator {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(10, 10, 42, 0.95);
            z-index: 9998;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }
        
        .loading-spinner {
            font-size: 80px;
            margin-bottom: 20px;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .loading-text {
            color: var(--color-cyan);
            font-family: 'Orbitron', sans-serif;
            font-size: 20px;
            letter-spacing: 3px;
        }
        
        /* Бейдж режима предпросмотра */
        .preview-badge {
            display: none;
            position: fixed;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(45deg, #FF00D0, #FFCC00);
            color: var(--color-dark);
            padding: 8px 20px;
            border-radius: 20px;
            font-family: 'Bangers', cursive;
            font-size: 16px;
            z-index: 9999;
            box-shadow: 0 0 15px rgba(255, 0, 208, 0.7);
            animation: pulse 2s infinite;
        }
    