/* Modern Dark Theme - Reset and Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Light Theme */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #8b5cf6;
    --secondary-hover: #7c3aed;
    --dark-bg: #f8fafc;
    --card-bg: #ffffff;
    --card-hover: #fefefe;
    --text-light: #0f172a;
    --text-muted: #64748b;
    --accent: #10b981;
    --border-glow: rgba(99, 102, 241, 0.3);
    
    /* Spacing */
    --border-radius: 15px;
    --border-radius-sm: 10px;
    
    /* Shadows */
    --shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
    --shadow-hover: 0 15px 40px rgba(255, 0, 0, 0.4);
    --glow: 0 0 20px rgba(255, 0, 0, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    letter-spacing: -2px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 600;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: #ffffff;
    opacity: 0.9;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta {
    display: inline-block;
    padding: 1.25rem 3.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hero-cta:hover::before {
    width: 300px;
    height: 300px;
}

.hero-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-hover), var(--glow);
}

/* Programs Section */
.programs-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-light);
    letter-spacing: -1.5px;
}

/* Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.game-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-card-compact {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-card-compact:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.game-image-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.game-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card-compact:hover .game-image-container img {
    transform: scale(1.1);
}

.game-year-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none; /* СКРЫТ по запросу */
}

.game-info-compact {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-info-compact h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-light);
    letter-spacing: -0.5px;
}

.game-info-compact p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.view-details-button {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.game-card-compact:hover .view-details-button {
    color: var(--accent);
    transform: translateX(5px);
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: #ffffff;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 2rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 4rem 0 2rem;
    border-top: 1px solid #e2e8f0;
}

.footer-content {
    text-align: center;
}

.footer-disclaimer {
    font-size: 0.9375rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    color: #cbd5e1;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.footer-disclaimer strong {
    color: #ffffff;
    font-weight: 700;
}

.footer-copy {
    font-size: 0.9375rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Sticky Mini Header (for program pages) */
.mini-header {
    position: sticky;
    top: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mini-header-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.back-button:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    transform: translateX(-5px);
}

.mini-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(99, 102, 241, 0.3));
}

/* Game Detail Page */
.game-detail-section {
    padding: 4rem 0;
    min-height: calc(100vh - 70px);
    background: #f8fafc;
}

.game-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.game-detail-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Gallery */
.game-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 90px;
}

.game-screenshot {
    width: 100%;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.game-screenshot:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

/* Game Info */
.game-main-info h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-light);
    letter-spacing: -1.5px;
}

.game-version-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.info-section {
    margin-bottom: 3rem;
}

.info-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-section p {
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.info-section ul,
.info-section ol {
    margin-left: 1.5rem;
    color: var(--text-muted);
}

.info-section li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    padding-left: 0.5rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.feature-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

/* Pros and Cons */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.pros-box,
.cons-box {
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 2px solid;
}

.pros-box {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
}

.pros-box h3 {
    color: #10b981;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pros-box h3::before {
    content: "✓";
    font-size: 2rem;
}

.cons-box {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.3);
}

.cons-box h3 {
    color: #ef4444;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cons-box h3::before {
    content: "✗";
    font-size: 2rem;
}

.pros-box ul,
.cons-box ul {
    list-style: none;
    margin-left: 0;
}

.pros-box li,
.cons-box li {
    padding-left: 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pros-box li::before {
    content: "✓";
    color: #10b981;
    font-weight: 900;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.cons-box li::before {
    content: "✗";
    color: #ef4444;
    font-weight: 900;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Download Button */
.download-button {
    display: inline-block;
    padding: 1.5rem 4rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.download-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.download-button:hover::before {
    width: 400px;
    height: 400px;
}

.download-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-hover), var(--glow);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--text-light);
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 0, 0.2);
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
    background: rgba(255, 0, 0, 0.4);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 1rem 2rem;
    user-select: none;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.modal-nav:hover {
    color: var(--primary);
    background: rgba(255, 0, 0, 0.2);
}

.modal-prev {
    left: 2rem;
}

.modal-next {
    right: 2rem;
}

#modalImage {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--border-radius);
    box-shadow: var(--glow);
}

/* Responsive */
@media (max-width: 1200px) {
    .game-detail-content {
        grid-template-columns: 350px 1fr;
        gap: 3rem;
    }
}

@media (max-width: 1024px) {
    .game-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .game-gallery {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .programs-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
    
    .mini-header-content {
        padding: 0 1rem;
    }
    
    .game-gallery {
        grid-template-columns: 1fr;
    }
    
    .modal-nav {
        font-size: 2.5rem;
        padding: 0.5rem 1rem;
    }
    
    .modal-prev {
        left: 1rem;
    }
    
    .modal-next {
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-logo {
        width: 100px;
        height: 100px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-cta {
        padding: 1rem 2.5rem;
        font-size: 1.125rem;
    }
    
    .game-main-info h1 {
        font-size: 2.5rem;
    }
}

/* Selection */
::selection {
    background: var(--primary);
    color: #ffffff;
}

::-moz-selection {
    background: var(--primary);
    color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 10px;
    border: 2px solid #f8fafc;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-hover), var(--secondary-hover));
}