/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a14;
    --bg-secondary: #000000;
    --neon-blue: #00eeff;
    --neon-pink: #ff00ff;
    --neon-green: #39ff14;
    --neon-purple: #9d00ff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --glass-bg: rgba(20, 20, 40, 0.7);
    --glass-border: rgba(0, 238, 255, 0.2);
    --shadow-glow-blue: 0 0 15px var(--neon-blue), 0 0 30px var(--neon-blue);
    --shadow-glow-pink: 0 0 15px var(--neon-pink), 0 0 30px var(--neon-pink);
    --shadow-glow-green: 0 0 15px var(--neon-green), 0 0 30px var(--neon-green);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', 'Courier New', monospace;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Кибепранк сетка на фоне */
.cyber-grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 238, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 238, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Data stream анимация */
.data-stream {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    animation: streamFlow 3s linear infinite;
}

@keyframes streamFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Неоновые текстовые эффекты */
.neon-text {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
    animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
    from { text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue); }
    to { text-shadow: 0 0 15px var(--neon-blue), 0 0 30px var(--neon-blue), 0 0 40px var(--neon-blue); }
}

/* Стеклянный морфизм */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Защитный экран */
.checkpoint-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkpoint-overlay.active {
    display: flex;
}

.checkpoint-container {
    text-align: center;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

.terminal {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--neon-green);
    border-radius: 5px;
    padding: 20px;
    margin: 30px 0;
    text-align: left;
    position: relative;
    box-shadow: var(--shadow-glow-pink);
}

.terminal-text {
    color: var(--neon-green);
    font-family: 'Courier New', monospace;
    margin-bottom: 15px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

#captchaInput {
    flex: 1;
    background: transparent;
    border: 1px solid var(--neon-blue);
    padding: 12px 15px;
    color: var(--neon-blue);
    font-size: 18px;
    font-family: 'Courier New', monospace;
    outline: none;
}

#captchaInput:focus {
    box-shadow: 0 0 10px var(--neon-blue);
}

.cyber-button {
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 12px 25px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cyber-button:hover {
    background: var(--neon-blue);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow-blue);
}

.scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
    animation: scan 3s infinite linear;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.hint {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 20px;
}

/* Шапка */
.cyber-header {
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--neon-blue);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.neon-logo {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
}

.logo-x {
    color: var(--neon-pink);
    text-shadow: 0 0 15px var(--neon-pink);
    animation: xPulse 1.5s infinite alternate;
}

@keyframes xPulse {
    from { text-shadow: 0 0 10px var(--neon-pink); }
    to { text-shadow: 0 0 20px var(--neon-pink), 0 0 30px var(--neon-pink); }
}

.logo-text {
    color: var(--neon-blue);
}

.logo-subtitle {
    font-size: 12px;
    color: var(--neon-green);
    letter-spacing: 2px;
    margin-top: -5px;
}

.cyber-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.cyber-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.cyber-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-blue);
    transition: width 0.3s;
}

.cyber-nav a:hover:after {
    width: 100%;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.online-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 238, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
}

.online-counter i {
    color: var(--neon-green);
}

.counter {
    color: var(--neon-green);
    font-weight: bold;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.lang-btn:hover {
    background: rgba(0, 238, 255, 0.2);
}

/* Главный экран */
.hero-section {
    padding: 100px 0;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.typewriter {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    border-right: 3px solid var(--neon-blue);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--neon-blue) }
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
    color: var(--bg-primary);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    margin: 20px 0;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.cyber-button-lg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink));
    color: var(--bg-primary);
    padding: 18px 35px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    text-transform: uppercase;
    transition: var(--transition);
}

.cyber-button-lg:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 238, 255, 0.5);
}

.pulse {
    animation: pulseEffect 2s infinite;
}

@keyframes pulseEffect {
    0% { box-shadow: 0 0 0 0 rgba(0, 238, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 238, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 238, 255, 0); }
}

.hack-terminal {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--neon-green);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-glow-pink);
}

.terminal-header {
    background: rgba(0, 20, 0, 0.8);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--neon-green);
}

.terminal-dots {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca3f; }

.terminal-title {
    color: var(--neon-green);
    font-family: 'Courier New', monospace;
}

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: var(--neon-green);
    min-height: 200px;
}

.success-text {
    color: var(--neon-green);
    font-weight: bold;
}

.free-text {
    color: var(--neon-pink);
    font-weight: bold;
    animation: freeBlink 1s infinite;
}

@keyframes freeBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Секция игр */
.games-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--neon-blue);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active {
    background: var(--neon-blue);
    color: var(--bg-primary);
    font-weight: bold;
}

.filter-btn:hover:not(.active) {
    background: rgba(0, 238, 255, 0.2);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.game-card {
    background: rgba(20, 20, 40, 0.7);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-blue);
    box-shadow: var(--shadow-glow-blue);
}

.game-image {
    height: 180px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.game-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--neon-pink);
    color: var(--bg-primary);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.game-content {
    padding: 20px;
}

.game-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.game-cheats {
    margin: 15px 0;
}

.cheat-item {
    background: rgba(0, 238, 255, 0.1);
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cheat-item i {
    color: var(--neon-green);
}

.download-btn {
    width: 100%;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink));
    color: var(--bg-primary);
    border: none;
    padding: 12px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Секция обновлений */
.updates-section {
    padding: 80px 0;
    background: rgba(0, 10, 20, 0.5);
}

.updates-list {
    max-width: 800px;
    margin: 0 auto 30px;
}

.update-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    margin-bottom: 20px;
    background: rgba(20, 20, 40, 0.7);
    border-radius: 10px;
    border-left: 4px solid var(--neon-green);
    transition: var(--transition);
}

.update-card:hover {
    background: rgba(30, 30, 50, 0.8);
    transform: translateX(10px);
}

.update-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.date-day {
    font-size: 28px;
    font-weight: bold;
    color: var(--neon-blue);
}

.date-month {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.update-content h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 20px;
}

.update-content p {
    color: var(--text-secondary);
}

.update-note {
    text-align: center;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.update-note i {
    color: var(--neon-green);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* FAQ секция */
.faq-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.3);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(20, 20, 40, 0.8);
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 3px solid var(--neon-blue);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-left-color: var(--neon-pink);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(30, 30, 50, 0.5);
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(40, 40, 60, 0.5);
}

.faq-question i {
    color: var(--neon-blue);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--neon-pink);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    line-height: 1.7;
    margin: 0;
}

/* ==================== SEO СЕКЦИЯ ==================== */
.seo-section {
    background: rgba(5, 5, 15, 0.95);
    padding: 40px 0;
    border-top: 1px solid rgba(0, 238, 255, 0.1);
    border-bottom: 1px solid rgba(0, 238, 255, 0.1);
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.seo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 238, 255, 0.03), transparent);
    z-index: 0;
}

.seo-container {
    position: relative;
    z-index: 1;
}

.seo-title {
    color: var(--neon-blue);
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.seo-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(10, 10, 30, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(0, 238, 255, 0.2);
}

.keyword {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px 15px;
    background: rgba(20, 20, 40, 0.5);
    border-radius: 20px;
    transition: var(--transition);
    white-space: nowrap;
}

.keyword:hover {
    color: var(--neon-green);
    background: rgba(57, 255, 20, 0.1);
    transform: translateY(-2px);
}

.seo-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(10, 10, 30, 0.5);
    border-radius: 10px;
    border-left: 3px solid var(--neon-pink);
    border-right: 3px solid var(--neon-pink);
}

.seo-description p {
    margin-bottom: 20px;
}

.seo-description p:last-child {
    margin-bottom: 0;
}

/* Анимация для SEO блока */
@keyframes keywordGlow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(0, 238, 255, 0.1);
    }
    50% { 
        box-shadow: 0 0 10px rgba(0, 238, 255, 0.3);
    }
}

.seo-keywords {
    animation: keywordGlow 3s infinite;
}

/* Адаптивность для SEO */
@media (max-width: 768px) {
    .seo-keywords {
        gap: 10px;
        padding: 15px;
    }
    
    .keyword {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .seo-description {
        font-size: 14px;
        padding: 15px;
    }
    
    .seo-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .seo-keywords {
        flex-direction: column;
        align-items: center;
    }
    
    .keyword {
        width: 100%;
        text-align: center;
        white-space: normal;
    }
}

/* Футер */
.cyber-footer {
    background: var(--bg-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--neon-blue);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--neon-blue);
    margin-bottom: 15px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-section h4 {
    color: var(--neon-pink);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--neon-blue);
    padding-left: 5px;
}

.warning-text {
    color: #ff5555;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.copyright {
    color: var(--text-secondary);
    font-size: 12px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(90deg, #00eeff, #ff00ff);
    color: #000;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 10000;
    box-shadow: 0 0 20px #00eeff;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Адаптивность */
@media (max-width: 768px) {
    .typewriter {
        font-size: 32px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .cyber-nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .update-card {
        flex-direction: column;
        text-align: center;
    }
    
    .update-date {
        flex-direction: row;
        gap: 10px;
        justify-content: center;
    }
    
    .faq-question {
        padding: 15px;
        font-size: 14px;
    }
    
    .faq-answer {
        padding: 0 15px;
        font-size: 14px;
    }
    
    .faq-item.active .faq-answer {
        padding: 15px;
    }
}
