/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #ff0000;
    --primary-blue: #0066ff;
    --dark-bg: #000000;
    --card-bg: #1a0000;
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --accent-gold: #ffdd00;
    --web-pattern: rgba(255, 0, 0, 0.15);
    --neon-red: #ff0044;
    --neon-blue: #00ddff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000000;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a0000 0%, #0a0000 50%, #000000 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 0, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(200, 0, 0, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.web-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(200, 0, 0, 0.08) 80px, rgba(200, 0, 0, 0.08) 81px),
        repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(200, 0, 0, 0.08) 80px, rgba(200, 0, 0, 0.08) 81px);
    opacity: 0.4;
    will-change: transform;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
}

.logo {
    width: 180px;
    height: auto;
    margin-bottom: 30px;
    filter: 
        drop-shadow(0 0 20px #ff0000) 
        drop-shadow(0 0 40px #ff0000) 
        drop-shadow(0 0 60px rgba(255, 0, 0, 0.6))
        brightness(1.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 30px #ff0000,
        0 0 40px #ff0000,
        0 0 50px #ff0000,
        2px 2px 5px rgba(0, 0, 0, 1);
    letter-spacing: 1px;
    -webkit-text-stroke: 0.5px rgba(255, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        2px 2px 8px rgba(0, 0, 0, 1);
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: 0.3px;
}

.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 3px solid #ffdd00;
    will-change: transform;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 
        0 0 30px rgba(255, 0, 0, 0.8),
        0 15px 40px rgba(0, 0, 0, 0.6);
    background: linear-gradient(135deg, #ff3333 0%, #ff0000 100%);
    border-color: #fff;
}

/* Games Section */
.games-section {
    padding: 100px 0;
    background: #000000;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    margin-bottom: 60px;
    color: #ffffff;
    text-shadow: 
        0 0 15px #ff0000,
        0 0 30px #ff0000,
        0 0 45px #ff0000,
        0 0 60px #ff0000,
        3px 3px 8px rgba(0, 0, 0, 1);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    -webkit-text-stroke: 0.5px rgba(255, 0, 0, 0.4);
}

.games-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Game Card */
.game-card {
    background: linear-gradient(135deg, #1a0000 0%, #000000 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.8),
        0 0 0 2px #ff0000;
    border: 3px solid #ff0000;
    will-change: transform;
    display: flex;
    flex-direction: row;
}

.game-card:hover {
    transform: translateX(5px);
    border-color: #ffdd00;
    box-shadow: 
        0 15px 40px rgba(255, 0, 0, 0.4),
        0 0 0 3px #ffdd00;
}

.game-gallery {
    width: 500px;
    min-width: 500px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-right: 3px solid #ff0000;
}

.game-screenshot {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #ff0000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-screenshot:hover {
    transform: scale(1.02);
    border-color: #ffdd00;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
}

.game-screenshot:first-child {
    height: 280px;
}

.game-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #ffdd00;
    text-shadow: 
        0 0 10px #ffdd00,
        2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 900;
    line-height: 1.3;
}

.game-year {
    display: inline-block;
    padding: 6px 18px;
    background: linear-gradient(135deg, #0066ff 0%, #0044cc 100%);
    border-radius: 25px;
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
    border: 2px solid #00ddff;
    box-shadow: 
        0 0 10px rgba(0, 102, 255, 0.6),
        0 4px 10px rgba(0, 0, 0, 0.5);
}

.game-description {
    margin-bottom: 20px;
    color: #e0e0e0;
    line-height: 1.7;
    font-size: 1.02rem;
}

.game-section {
    margin-bottom: 20px;
}

.system-requirements {
    background: rgba(0, 50, 100, 0.2);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #0066ff;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
}

.system-requirements h4 {
    color: #00ddff;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    text-shadow: 0 0 5px rgba(0, 221, 255, 0.5);
}

.system-requirements ul {
    list-style: none;
    padding: 0;
}

.system-requirements li {
    padding: 5px 0;
    padding-left: 25px;
    position: relative;
    color: #d0d0d0;
    font-size: 0.95rem;
}

.system-requirements li::before {
    content: "💻";
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

.game-section h3 {
    color: #ff3333;
    margin-bottom: 10px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    font-weight: 800;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.game-section h3::before {
    content: "🕷️";
    margin-right: 10px;
    font-size: 1.2rem;
}

.game-section ul {
    list-style: none;
    padding-left: 0;
}

.game-section li {
    padding: 6px 0;
    padding-left: 30px;
    position: relative;
    color: #d0d0d0;
    font-size: 0.98rem;
}

.game-section li::before {
    content: "🕷️";
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

.game-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.pros, .cons {
    padding: 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.pros {
    border: 2px solid #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.pros:hover {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

.cons {
    border: 2px solid #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.cons:hover {
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

.pros h4 {
    color: #00ff00;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 800;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.cons h4 {
    color: #ff3333;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 800;
    text-shadow: 0 0 5px rgba(255, 51, 51, 0.5);
}

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
}

.pros li::before {
    content: "✓";
    color: #4ade80;
    font-weight: bold;
    margin-right: 8px;
}

.cons li::before {
    content: "✗";
    color: #f87171;
    font-weight: bold;
    margin-right: 8px;
}

.download-button {
    display: block;
    width: 100%;
    padding: 18px;
    margin-top: auto;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.3rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.6),
        0 8px 25px rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 3px solid #ffdd00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    will-change: transform;
}

.download-button:hover {
    transform: scale(1.03);
    box-shadow: 
        0 0 30px rgba(255, 0, 0, 0.8),
        0 12px 35px rgba(0, 0, 0, 0.7);
    background: linear-gradient(135deg, #ff3333 0%, #ff0000 100%);
    border-color: #fff;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: #000000;
    position: relative;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: linear-gradient(135deg, rgba(26, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    border-left: 6px solid #ff0000;
    border-right: 2px solid #0066ff;
    transition: all 0.3s ease;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 0, 0, 0.1);
}

.faq-item:hover {
    transform: translateX(15px);
    box-shadow: 
        0 10px 30px rgba(255, 0, 0, 0.4),
        0 0 40px rgba(255, 0, 0, 0.3);
    border-left-color: #ffdd00;
}

.faq-question {
    color: #ffdd00;
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 800;
    text-shadow: 0 0 5px rgba(255, 221, 0, 0.3);
}

.faq-answer {
    color: #e0e0e0;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #000000 0%, #0a0000 100%);
    padding: 60px 0 30px;
    border-top: 5px solid #ff0000;
    box-shadow: 0 -5px 30px rgba(255, 0, 0, 0.3);
}

.footer-content {
    text-align: center;
}

.disclaimer {
    background: rgba(255, 0, 0, 0.15);
    border-left: 5px solid #ff0000;
    border-right: 2px solid #ffdd00;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 10px;
    text-align: left;
    line-height: 1.8;
    color: #e0e0e0;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.disclaimer strong {
    color: #ffdd00;
    display: block;
    margin-bottom: 10px;
    font-size: 1.2rem;
    text-shadow: 0 0 5px rgba(255, 221, 0, 0.3);
}

.copyright {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Modal для просмотра скриншотов */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 3px solid #ff0000;
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.8);
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: rgba(255, 0, 0, 0.8);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid #ffdd00;
    text-shadow: 0 0 20px #000;
    box-shadow: 
        0 0 30px rgba(255, 0, 0, 1),
        0 0 60px rgba(255, 0, 0, 0.8);
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 1);
    color: #ff0000;
    transform: scale(1.15) rotate(90deg);
    box-shadow: 
        0 0 40px rgba(255, 255, 255, 1),
        0 0 80px rgba(255, 221, 0, 0.8);
    border-color: #ff0000;
}

.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 0, 0, 0.7);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid #ffdd00;
    user-select: none;
    text-shadow: 0 0 10px #000;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.8);
    transition: all 0.3s ease;
    z-index: 10000;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 1);
    color: #ff0000;
    transform: translateY(-50%) scale(1.2);
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 1);
    border-color: #ff0000;
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .game-card {
        flex-direction: column;
    }

    .game-gallery {
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 3px solid #ff0000;
        padding: 20px;
    }

    .game-screenshot {
        height: 200px;
    }

    .game-screenshot:first-child {
        height: 240px;
    }

    .game-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .games-grid {
        gap: 25px;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 80vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 15px 35px;
        font-size: 1rem;
    }

    .game-content {
        padding: 20px;
    }

    .game-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .games-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .logo {
        width: 100px;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 100px 20px;
}

.loading::after {
    content: "🕷️ Загрузка игр Spider-Man...";
    font-size: 2rem;
    color: #ff0000;
    font-weight: 900;
    text-shadow: 
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 30px #ff0000;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
