/* GHOST MODS - Optimized Styles */

/* Variables */
:root {
    --primary-color: #00bfae;
    --primary-color-dark: #008c7f;
    --primary-gradient: linear-gradient(45deg, #00bfae, #00708e);
    --secondary-color: #ff5e62;
    --secondary-gradient: linear-gradient(45deg, #ff5e62, #ff9966);
    --accent-color: #7c4dff;
    --bg-color: #0a0a0a;
    --bg-color-light: #121212;
    --bg-color-lighter: #1a1a1a;
    --text-color: #ffffff;
    --text-color-muted: rgba(255, 255, 255, 0.85);
    --card-bg-color: rgba(30, 30, 30, 0.7);
    --card-border-color: rgba(255, 255, 255, 0.1);
    --header-bg-color: rgba(15, 15, 15, 0.95);
    --footer-bg-color: #111;
    --text-secondary-color: #bbb;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition-speed: 0.3s;
    
    /* Мобільні оптимізації */
    --animation-duration: 0.3s;
    --mobile-padding: 1rem;
    --mobile-margin: 0.5rem;
    --mobile-font-size: 14px;
    --mobile-line-height: 1.5;
    --mobile-border-radius: 8px;
}

/* Light Theme */
.light-theme {
    --primary-color: #008c7f;
    --primary-color-dark: #00595a;
    --bg-color: #f8f9fa;
    --bg-color-light: #ffffff;
    --bg-color-lighter: #f1f3f4;
    --text-color: #2d3748;
    --text-color-muted: rgba(45, 55, 72, 0.85);
    --card-bg-color: rgba(255, 255, 255, 0.9);
    --card-border-color: rgba(0, 0, 0, 0.1);
    --header-bg-color: rgba(255, 255, 255, 0.95);
    --footer-bg-color: #f8f9fa;
    --text-secondary-color: #4a5568;
}

/* Light Theme Navigation Styles */
.light-theme .nav-link {
    color: var(--text-color) !important;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.light-theme .nav-link:hover {
    color: #fff !important;
}

/* Light Theme Button Styles */
.light-theme .btn-common {
    background: var(--primary-gradient) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 140, 127, 0.4) !important;
}

.light-theme .btn-outline {
    border-color: var(--primary-color) !important;
    color: var(--text-color) !important;
}

.light-theme .btn-outline:hover {
    background: var(--primary-gradient) !important;
    color: white !important;
}

/* Light Theme Redux Button Styles */
.light-theme .btn-video {
    background: var(--secondary-gradient) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 94, 98, 0.4) !important;
}

.light-theme .btn-download {
    background: var(--primary-gradient) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 140, 127, 0.4) !important;
}

.light-theme .btn-video:hover {
    box-shadow: 0 8px 25px rgba(255, 94, 98, 0.6) !important;
}

.light-theme .btn-download:hover {
    box-shadow: 0 8px 25px rgba(0, 140, 127, 0.6) !important;
}

/* Light Theme Mission CTA Styles */
.light-theme .mission-cta.primary {
    background: var(--primary-gradient) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 140, 127, 0.4) !important;
}

.light-theme .mission-cta.secondary {
    border-color: var(--primary-color) !important;
    color: var(--text-color) !important;
}

.light-theme .mission-cta.discord {
    background: linear-gradient(135deg, #5865F2, #3B49D9) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4) !important;
}

.light-theme .mission-cta.primary:hover {
    box-shadow: 0 8px 25px rgba(0, 140, 127, 0.6) !important;
}

.light-theme .mission-cta.secondary:hover {
    background: var(--primary-gradient) !important;
    color: white !important;
    box-shadow: 0 8px 25px rgba(0, 140, 127, 0.6) !important;
}

.light-theme .mission-cta.discord:hover {
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.6) !important;
}

/* Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    padding-top: 70px;
    overflow-x: hidden;
    min-height: 100vh;
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-color-muted);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color-dark);
}

.text-center {
    text-align: center;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Preloader - приховано по замовчуванню */
#preloader {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -9999 !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
}

#preloader.hidden,
#preloader.force-hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

/* Якщо потрібно показати preloader, використовуйте цей клас */
#preloader.show {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex !important;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
    animation: autoHidePreloader 3s ease-out forwards;
}

@keyframes autoHidePreloader {
    0% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        opacity: 0; 
        visibility: hidden; 
        display: none;
        pointer-events: none;
        z-index: -9999;
    }
}

.loader {
    text-align: center;
}

.loader svg {
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
}

.loader-text {
    margin-top: 1rem;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Particles Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Background Video */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.3;
    transition: opacity var(--transition-speed) ease;
}

.light-theme #bg-video {
    opacity: 0.1;
}

/* Header */
.animated-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border-color);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
    padding: 0.5rem 0;
}

/* Navigation visibility states */
.animated-header.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.animated-header.nav-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* Enhanced header animation - весь header приховується/показується */
.animated-header {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.3s ease;
}

/* Hidden utility class */
.hidden {
    opacity: 0 !important;
    transform: translateY(-100%) !important;
    pointer-events: none !important;
}

.animated-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Minimal Glitch Effect */
.glitch-text {
    position: relative;
    display: inline-block;
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Removing glitch effect to fix duplicate logo issue */
.glitch-text {
    position: relative;
}

@keyframes glitch-1 {
    0%, 90%, 100% { transform: translate(0); opacity: 0; }
    95% { transform: translate(-1px, 1px); opacity: 0.3; }
}

@keyframes glitch-2 {
    0%, 90%, 100% { transform: translate(0); opacity: 0; }
    97% { transform: translate(1px, -1px); opacity: 0.3; }
}

/* Navigation */
header nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

header nav ul li {
    margin: 0 0.5rem;
}

.nav-link {
    font-size: 1rem;
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    transition: 
        all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 140px;
    max-width: 180px;
    justify-content: center;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
    opacity: 0;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
    opacity: 1;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px rgba(0, 191, 174, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
    background: rgba(0, 191, 174, 0.1);
}

.nav-link:active {
    transform: translateY(0);
}

.nav-link i {
    font-size: 1.1rem;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    padding: 0;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    background: transparent;
    outline: none;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    border-radius: 2px;
    will-change: transform, opacity;
}

.mobile-menu-toggle:hover .bar {
    background-color: var(--primary-color);
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(-45deg);
    background-color: var(--primary-color);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(15px);
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(45deg);
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    position: relative;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== UNIVERSAL BUTTON SYSTEM ===== */
/* Повністю універсальна система кнопок для всіх сторінок */

/* Базовий reset для всіх кнопок */
button,
input[type="button"],
input[type="submit"],
a.btn-common,
a.btn-outline,
a.btn-discord,
a.btn-redux-action,
a.mission-cta,
.btn-common,
.btn-outline,
.btn-discord,
.btn-redux-action,
.mission-cta,
.btn-video,
.btn-download,
.btn-video-guide,
.btn-download-redux {
    /* Базові властивості */
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    
    /* Розміри */
    width: 250px !important;
    height: 50px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    
    /* Spacing */
    padding: 0 1.5rem !important;
    margin: 0 !important;
    
    /* Вигляд */
    border: none !important;
    border-radius: 50px !important;
    outline: none !important;
    
    /* Layout */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    
    /* Typography */
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    
    /* Behavior */
    cursor: pointer !important;
    user-select: none !important;
    box-sizing: border-box !important;
    
    /* Transitions */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    
    /* Default style - primary */
    background: var(--primary-gradient) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 191, 174, 0.4) !important;
}

/* Hover effects */
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
a.btn-common:hover,
a.btn-outline:hover,
a.btn-discord:hover,
a.btn-redux-action:hover,
a.mission-cta:hover,
.btn-common:hover,
.btn-outline:hover,
.btn-discord:hover,
.btn-redux-action:hover,
.mission-cta:hover,
.btn-video:hover,
.btn-download:hover,
.btn-video-guide:hover,
.btn-download-redux:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 191, 174, 0.6) !important;
    color: white !important;
    text-decoration: none !important;
}

/* Focus effects */
button:focus,
input[type="button"]:focus,
input[type="submit"]:focus,
a.btn-common:focus,
a.btn-outline:focus,
a.btn-discord:focus,
a.btn-redux-action:focus,
a.mission-cta:focus,
.btn-common:focus,
.btn-outline:focus,
.btn-discord:focus,
.btn-redux-action:focus,
.mission-cta:focus,
.btn-video:focus,
.btn-download:focus,
.btn-video-guide:focus,
.btn-download-redux:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 191, 174, 0.5), 0 8px 25px rgba(0, 191, 174, 0.6) !important;
}

/* Active effects */
button:active,
input[type="button"]:active,
input[type="submit"]:active,
a.btn-common:active,
a.btn-outline:active,
a.btn-discord:active,
a.btn-redux-action:active,
a.mission-cta:active,
.btn-common:active,
.btn-outline:active,
.btn-discord:active,
.btn-redux-action:active,
.mission-cta:active,
.btn-video:active,
.btn-download:active,
.btn-video-guide:active,
.btn-download-redux:active {
    transform: translateY(-1px) !important;
}

/* ===== SPECIFIC BUTTON VARIANTS ===== */

/* Кнопки з довгим текстом (Discord, тощо) */
.btn-common.btn-wide,
a.btn-common.btn-wide,
.btn-wide {
    width: auto !important;
    min-width: 280px !important;
    max-width: 350px !important;
    padding: 0 2rem !important;
}

/* Спеціально для Discord кнопок */
a[href*="discord"].btn-common,
.btn-common[href*="discord"] {
    width: auto !important;
    min-width: 280px !important;
    max-width: 350px !important;
    padding: 0 2rem !important;
}

/* Outline buttons */
.btn-outline,
a.btn-outline,
.mission-cta.secondary {
    background: transparent !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    box-shadow: none !important;
}

.btn-outline:hover,
a.btn-outline:hover,
.mission-cta.secondary:hover {
    background: var(--primary-gradient) !important;
    color: white !important;
    border-color: transparent !important;
}

/* Discord buttons */
.btn-discord,
a.btn-discord,
.mission-cta.discord {
    background: linear-gradient(135deg, #5865F2, #3B49D9) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4) !important;
}

.btn-discord:hover,
a.btn-discord:hover,
.mission-cta.discord:hover {
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.6) !important;
}

/* Video buttons */
.btn-video,
a.btn-video,
.btn-video-guide {
    background: var(--secondary-gradient) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 94, 98, 0.4) !important;
}

.btn-video:hover,
a.btn-video:hover,
.btn-video-guide:hover {
    box-shadow: 0 8px 25px rgba(255, 94, 98, 0.6) !important;
}

/* Download buttons */
.btn-download,
a.btn-download,
.btn-download-redux {
    background: var(--primary-gradient) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 191, 174, 0.4) !important;
}

.btn-download:hover,
a.btn-download:hover,
.btn-download-redux:hover {
    box-shadow: 0 8px 25px rgba(0, 191, 174, 0.6) !important;
}

/* Special search button */
#searchButton,
button#searchButton,
.search-container button,
.search-container #searchButton {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
}

/* ===== CONTAINER STYLES ===== */
.cta-buttons,
.video-buttons,
.redux-buttons,
.mission-links {
    display: flex !important;
    gap: 1rem !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin: 2rem 0 !important;
}



/* Theme Switcher */
.theme-switcher {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: block;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem; /* Змінюємо на right для розташування справа */
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    box-shadow: 0 4px 15px rgba(0, 191, 174, 0.4);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 191, 174, 0.6);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

/* Приховуємо кнопку "до верху" на мобільних пристроях */
@media (max-width: 768px) {
    .scroll-to-top {
        display: none !important;
    }
    
    /* Також приховуємо всі інші кнопки scrollToTop без класу */
    button[id="scrollToTop"] {
        display: none !important;
    }
}

.theme-switcher input[type="checkbox"] {
    display: none;
}

.theme-switcher label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 60px;
    height: 30px;
    background-color: var(--card-bg-color);
    border-radius: 50px;
    cursor: pointer;
    padding: 5px;
    position: relative;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--card-border-color);
}

.theme-switcher label i {
    font-size: 0.8rem;
    transition: all var(--transition-speed) ease;
}

.theme-switcher label i.fa-sun {
    color: #ffa500;
}

.theme-switcher label i.fa-moon {
    color: #b3b3b3;
}

.theme-switcher label::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
    left: 5px;
}

.theme-switcher input[type="checkbox"]:checked + label::after {
    transform: translateX(30px);
}

/* Statistics */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border-color);
    transition: all var(--transition-speed) ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-color-muted);
}

/* Redux Cards */
.redux-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.redux-card {
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border-color);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.redux-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.redux-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 191, 174, 0.2);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.redux-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.redux-card:hover .redux-preview {
    transform: scale(1.05);
}

.redux-content {
    padding: 1.5rem;
}

.redux-content h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.redux-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag-fps { background: rgba(76, 175, 80, 0.2); color: #4caf50; }
.tag-graphics { background: rgba(255, 152, 0, 0.2); color: #ff9800; }
.tag-stable { background: rgba(0, 191, 174, 0.2); color: var(--primary-color); }
.tag-effects { background: rgba(156, 39, 176, 0.2); color: #9c27b0; }
.tag-time { background: rgba(63, 81, 181, 0.2); color: #3f51b5; }
.tag-balanced { background: rgba(33, 150, 243, 0.2); color: #2196f3; }

.redux-features {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-color-muted);
    gap: 0.5rem;
}

.feature i {
    color: var(--primary-color);
}



/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg-color);
    margin: 10% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    position: relative;
    border: 1px solid var(--card-border-color);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color-muted);
    transition: color var(--transition-speed) ease;
}

.close-modal:hover {
    color: var(--text-color);
}

.search-container {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.search-container input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-color-light);
    color: var(--text-color);
}

.search-container #searchButton {
    width: 150px !important;
    height: 50px !important;
    min-width: 150px !important;
    padding: 0.75rem 1rem !important;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 1rem;
}

.search-result-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    background: var(--bg-color-light);
    transition: all var(--transition-speed) ease;
}

.search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.search-result-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.result-content {
    flex: 1;
}

.result-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.result-content p {
    margin: 0 0 1rem 0;
    color: var(--text-color-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.result-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.btn-small:hover {
    background: var(--primary-color-dark);
    transform: translateY(-1px);
}

/* Footer */
footer {
    background-color: var(--footer-bg-color);
    margin-top: 4rem;
    position: relative;
    flex-shrink: 0;
    width: 100%;
}

.footer-top {
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-col h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-color-muted);
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    transition: all var(--transition-speed) ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 191, 174, 0.3);
}

.footer-bottom {
    border-top: 1px solid var(--card-border-color);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-color-muted);
    width: 100%;
    position: relative;
    background-color: var(--bg-color);
    font-size: 0.9rem;
    line-height: 1.6;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

/* Scroll to Top */
#scrollToTop {
    position: fixed;
    bottom: 2rem;
    right: 6rem;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    z-index: 100;
}

#scrollToTop.show {
    opacity: 1;
    visibility: visible;
}

#scrollToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 191, 174, 0.4);
}

/* ===== PROFESSIONAL MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
    /* Mobile button sizing */
    button,
    input[type="button"],
    input[type="submit"],
    a.btn-common,
    a.btn-outline,
    a.btn-discord,
    a.btn-redux-action,
    a.mission-cta,
    .btn-common,
    .btn-outline,
    .btn-discord,
    .btn-redux-action,
    .mission-cta,
    .btn-video,
    .btn-download,
    .btn-video-guide,
    .btn-download-redux {
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
        height: 50px !important;
        font-size: 0.9rem !important;
        padding: 0 1rem !important;
    }
    
    /* Mobile search button */
    #searchButton,
    button#searchButton,
    .search-container button,
    .search-container #searchButton {
        width: 160px !important;
        min-width: 160px !important;
        max-width: 160px !important;
    }
    
    /* Mobile containers */
    .cta-buttons,
    .video-buttons,
    .redux-buttons,
    .mission-links {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    /* Mobile navigation buttons */
    .nav-link {
        width: 100% !important;
        min-width: auto !important;
        max-width: none !important;
        padding: 1rem 2rem !important;
        border-radius: 0 !important;
        border-bottom: 1px solid var(--card-border-color) !important;
        justify-content: flex-start !important;
    }
    
    /* Mobile header adjustments */
    header nav ul {
        flex-direction: column !important;
        padding: 2rem 0 !important;
        height: auto !important;
        margin-top: 10px !important;
    }
    
    header nav ul li {
        width: 100% !important;
        margin: 0 !important;
        opacity: 0 !important;
        transform: translateY(10px) !important;
        transition: all 0.4s ease !important;
    }
    
    header nav.active ul li {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    /* Анимация появления пунктов меню с задержкой */
    header nav.active ul li:nth-child(1) { transition-delay: 0.1s !important; }
    header nav.active ul li:nth-child(2) { transition-delay: 0.15s !important; }
    header nav.active ul li:nth-child(3) { transition-delay: 0.2s !important; }
    header nav.active ul li:nth-child(4) { transition-delay: 0.25s !important; }
    header nav.active ul li:nth-child(5) { transition-delay: 0.3s !important; }
    header nav.active ul li:nth-child(6) { transition-delay: 0.35s !important; }
    header nav.active ul li:nth-child(7) { transition-delay: 0.4s !important; }
    
    header nav ul li {
        margin: 0.5rem 0 !important;
        width: 100% !important;
    }
    
    /* Core mobile layout */
    body {
        padding-top: 60px !important;
        font-size: 14px !important;
    }
    
    .container {
        padding: 0 0.75rem !important;
    }
    
    /* Professional mobile header */
    .animated-header {
        padding: 0.5rem 0 !important;
        backdrop-filter: blur(20px) !important;
    }
    
    .logo h1 {
        font-size: 1.5rem !important;
    }
    
    /* Professional mobile menu */
    .mobile-menu-toggle {
        display: flex !important;
        padding: 12px !important;
        margin-left: 10px !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
        background: rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 4px 15px rgba(0, 191, 174, 0.3) !important;
        border-color: var(--primary-color) !important;
    }
    
    .mobile-menu-toggle:active {
        transform: scale(0.95) !important;
    }
    
    header nav {
        position: fixed !important;
        top: 60px !important;
        left: -100% !important;
        width: 100% !important;
        height: calc(100vh - 60px) !important;
        background: var(--header-bg-color) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        transition: all 0.3s ease-in-out !important;
        overflow-y: auto !important;
        z-index: 999 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
        transform: translateX(-10px) !important;
    }
    
    header nav.active {
        left: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(0) !important;
    }
    
    /* Professional mobile typography */
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.75rem !important; }
    h3 { font-size: 1.5rem !important; }
    h4 { font-size: 1.25rem !important; }
    
    .section-title {
        font-size: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .hero {
        padding: 2rem 0 !important;
    }
    
    .hero-text {
        font-size: 1.1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Professional mobile grids */
    .stats-container {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin: 2rem 0 !important;
    }
    
    .redux-list {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }
    
    /* Professional mobile cards */
    .stat-item {
        padding: 1.5rem 1rem !important;
    }
    
    .stat-number {
        font-size: 2.5rem !important;
    }
    
    .redux-card {
        margin: 0 0.5rem !important;
    }
    
    .team-member {
        padding: 2rem 1.5rem !important;
        margin: 0 !important;
    }
    
    /* Professional mobile modals */
    .modal-content {
        width: 95% !important;
        margin: 5% auto !important;
        padding: 1.5rem !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    /* Professional mobile search */
    .search-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }
    
    .search-container input {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    /* Professional mobile footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 2rem !important;
    }
    
    /* Professional mobile utilities */
    .theme-switcher {
        bottom: 1rem !important;
        right: 1rem !important;
        z-index: 100 !important;
    }
    
    #scrollToTop {
        right: 1rem !important;
        bottom: 5rem !important;
        width: 45px !important;
        height: 45px !important;
    }
    
    /* Professional mobile animations */
    .redux-card:hover,
    .team-member:hover,
    .stat-item:hover {
        transform: translateY(-3px) !important;
    }
    
    /* Professional mobile touch optimization */
    button,
    a,
    .clickable {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    /* Professional mobile text sizing */
    p {
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
    }
    
    /* Professional mobile spacing */
    section {
        margin: 2rem 0 !important;
    }
    
    .container {
        padding: 0 1rem !important;
    }
    
    /* Team Section Mobile Specific */
    .team-section {
        margin: 3rem 0 !important;
        padding: 0 0.5rem !important;
    }
    
    .team-section h3 {
        font-size: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .member-avatar {
        width: 120px !important;
        height: 120px !important;
        margin-bottom: 1rem !important;
    }
    
    .team-member h4 {
        font-size: 1.3rem !important;
    }
    
    .member-skills {
        gap: 0.5rem !important;
    }
    
    .skill-tag {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
}

/* Professional extra small devices optimization */
@media (max-width: 480px) {
    button,
    input[type="button"],
    input[type="submit"],
    a.btn-common,
    a.btn-outline,
    a.btn-discord,
    a.btn-redux-action,
    a.mission-cta,
    .btn-common,
    .btn-outline,
    .btn-discord,
    .btn-redux-action,
    .mission-cta,
    .btn-video,
    .btn-download,
    .btn-video-guide,
    .btn-download-redux {
        width: 260px !important;
        min-width: 260px !important;
        max-width: 260px !important;
        font-size: 0.85rem !important;
    }
    
    #searchButton,
    button#searchButton,
    .search-container button,
    .search-container #searchButton {
        width: 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;
        font-size: 0.8rem !important;
    }
    
    body {
        font-size: 13px !important;
    }
    
    .container {
        padding: 0 0.5rem !important;
    }
    
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .hero {
        padding: 1.5rem 0 !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .team-member {
        padding: 1.5rem 1rem !important;
    }
    
    .modal-content {
        width: 98% !important;
        margin: 1% auto !important;
        padding: 1rem !important;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .animated-header {
        padding: 0.75rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    header nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--header-bg-color);
        transition: left var(--transition-speed) ease;
        overflow-y: auto;
    }
    
    header nav.active {
        left: 0;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .redux-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .theme-switcher {
        bottom: 1rem;
        right: 1rem;
    }
    
    #scrollToTop {
        right: 1rem;
        bottom: 5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 1.5rem;
    }
    
    .search-container {
        flex-direction: column;
        align-items: center;
    }
    
    .search-container input {
        width: 100%;
        max-width: 300px;
        margin-bottom: 1rem;
    }
    
    /* Team Section Mobile */
    .team-section {
        margin: 3rem 0;
        padding: 0 0.5rem;
    }
    
    .team-section h3 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .team-member {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }
    
    .member-avatar {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }
    
    .team-member h4 {
        font-size: 1.3rem;
    }
    
    .member-skills {
        gap: 0.5rem;
    }
    
    .skill-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* ===== GLOBAL PROFESSIONAL ENHANCEMENTS ===== */

/* Button Glow Animation */
.btn-glow {
    animation: professionalGlow 2s ease-in-out infinite alternate !important;
}

@keyframes professionalGlow {
    0% {
        box-shadow: 0 4px 15px rgba(0, 191, 174, 0.4), 0 0 10px rgba(0, 191, 174, 0.2) !important;
    }
    100% {
        box-shadow: 0 8px 25px rgba(0, 191, 174, 0.8), 0 0 20px rgba(0, 191, 174, 0.4) !important;
    }
}

/* Professional Loading States */
.btn-loading {
    position: relative !important;
    color: transparent !important;
    pointer-events: none !important;
}

.btn-loading::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 16px !important;
    height: 16px !important;
    border: 2px solid transparent !important;
    border-top: 2px solid currentColor !important;
    border-radius: 50% !important;
    animation: spin 0.8s linear infinite !important;
    transform: translate(-50%, -50%) !important;
    color: white !important;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Professional Success States */
.btn-success {
    background: linear-gradient(135deg, #4caf50, #45a049) !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4) !important;
}

.btn-success:hover {
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.6) !important;
}

/* Professional Error States */
.btn-error {
    background: linear-gradient(135deg, #f44336, #d32f2f) !important;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4) !important;
}

.btn-error:hover {
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.6) !important;
}

/* Professional disabled state */
button:disabled,
a.disabled,
.btn-disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
}

/* Professional Focus Indicators */
*:focus-visible {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 2px !important;
}

/* Professional transitions for all interactive elements */
button,
a,
input,
select,
textarea {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Professional scroll behavior */
html {
    scroll-behavior: smooth !important;
}

/* Professional text selection */
::selection {
    background: rgba(0, 191, 174, 0.3) !important;
    color: var(--text-color) !important;
}

::-moz-selection {
    background: rgba(0, 191, 174, 0.3) !important;
    color: var(--text-color) !important;
}

/* Professional scrollbar */
::-webkit-scrollbar {
    width: 8px !important;
}

::-webkit-scrollbar-track {
    background: var(--bg-color-light) !important;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color) !important;
    border-radius: 4px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color-dark) !important;
}

/* Professional loading overlay */
.loading-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10000 !important;
    backdrop-filter: blur(5px) !important;
}

.loading-spinner {
    width: 50px !important;
    height: 50px !important;
    border: 4px solid rgba(0, 191, 174, 0.2) !important;
    border-top: 4px solid var(--primary-color) !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
}

/* Professional error handling */
.error-message {
    padding: 1rem !important;
    background: rgba(244, 67, 54, 0.1) !important;
    border: 1px solid rgba(244, 67, 54, 0.3) !important;
    border-radius: 8px !important;
    color: #f44336 !important;
    margin: 1rem 0 !important;
}

.success-message {
    padding: 1rem !important;
    background: rgba(76, 175, 80, 0.1) !important;
    border: 1px solid rgba(76, 175, 80, 0.3) !important;
    border-radius: 8px !important;
    color: #4caf50 !important;
    margin: 1rem 0 !important;
}

/* Professional form validation */
input:invalid {
    border-color: #f44336 !important;
    box-shadow: 0 0 5px rgba(244, 67, 54, 0.3) !important;
}

input:valid {
    border-color: #4caf50 !important;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3) !important;
}

/* Professional card hover effects */
.redux-card,
.team-member,
.feature-card,
.stat-item {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Professional image optimization */
img {
    transition: all 0.3s ease !important;
    will-change: transform !important;
}

img:hover {
    transform: scale(1.02) !important;
}

/* Professional link states */
a {
    transition: all 0.3s ease !important;
}

a:hover {
    text-decoration: none !important;
}

/* Professional shadows */
.shadow-sm { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important; }
.shadow-md { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important; }
.shadow-lg { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important; }
.shadow-xl { box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25) !important; }

/* ===== MICRO ANIMATIONS & EFFECTS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.02);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.slide-down {
    animation: slideDown 0.5s ease-out forwards;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.bounce {
    animation: bounce 2s infinite;
}

/* ===== ACCESSIBILITY & USABILITY ===== */
.skip-link {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    background: var(--primary-color) !important;
    color: white !important;
    padding: 8px !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    z-index: 10001 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link:focus {
    top: 6px !important;
    box-shadow: 0 4px 15px rgba(0, 191, 174, 0.6) !important;
}

/* Screen reader only content */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #00ffff;
        --text-color: #ffffff;
        --bg-color: #000000;
        --card-bg-color: #111111;
        --border-color: #ffffff;
    }
}

/* Dark mode preference */
@media (prefers-color-scheme: dark) {
    body {
        color-scheme: dark;
    }
}

/* Light mode preference */
@media (prefers-color-scheme: light) {
    body {
        color-scheme: light;
    }
}

/* Notification system */
.notification {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    padding: 1rem 1.5rem !important;
    border-radius: 8px !important;
    color: white !important;
    font-weight: 600 !important;
    z-index: 10000 !important;
    transform: translateX(400px) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    max-width: 400px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

.notification.show {
    transform: translateX(0) !important;
}

.notification.success {
    background: linear-gradient(135deg, #4caf50, #45a049) !important;
}

.notification.error {
    background: linear-gradient(135deg, #f44336, #d32f2f) !important;
}

.notification.warning {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
}

.notification.info {
    background: linear-gradient(135deg, #2196f3, #1976d2) !important;
}

/* Loading states */
.loading {
    position: relative !important;
    overflow: hidden !important;
}

.loading::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    animation: shimmer 1.5s infinite !important;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Tooltips */
.tooltip {
    position: relative !important;
    display: inline-block !important;
}

.tooltip .tooltip-text {
    visibility: hidden !important;
    width: 200px !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    color: white !important;
    text-align: center !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    position: absolute !important;
    z-index: 1000 !important;
    bottom: 125% !important;
    left: 50% !important;
    margin-left: -100px !important;
    opacity: 0 !important;
    transition: opacity 0.3s !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}

.tooltip .tooltip-text::after {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    margin-left: -5px !important;
    border-width: 5px !important;
    border-style: solid !important;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent !important;
}

.tooltip:hover .tooltip-text {
    visibility: visible !important;
    opacity: 1 !important;
}

/* ===== GTA-V-INFO PAGE ENHANCED STYLES ===== */

/* Hero Section Enhanced */
.hero {
    position: relative;
    padding: 6rem 0 4rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 191, 174, 0.1), rgba(124, 77, 255, 0.1));
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent; /* Прибираємо анімовані частки */
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 191, 174, 0.2);
    border: 1px solid rgba(0, 191, 174, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-color-muted);
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg-color);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    border: 1px solid var(--card-border-color);
    backdrop-filter: blur(10px);
}

.hero-stats .stat-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.hero-stats .stat-info {
    text-align: left;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-color-muted);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Redux Info Section */
.redux-info-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color-muted);
    max-width: 600px;
    margin: 0 auto;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: var(--card-bg-color);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--card-border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 191, 174, 0.2);
}

.info-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 191, 174, 0.1), rgba(30, 30, 30, 0.9));
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.card-content h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
}

.card-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-color-muted);
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-color);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color-muted);
}

.tech-list li:last-child {
    border-bottom: none;
}

.tech-list li i {
    color: var(--primary-color);
    width: 20px;
}

.quality-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 191, 174, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(0, 191, 174, 0.3);
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Enhanced Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: var(--card-bg-color);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--card-border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.benefit-card.premium {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(30, 30, 30, 0.9));
    border: 2px solid #FFD700;
}

.benefit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.benefit-badge {
    background: #FFD700;
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
}

.benefit-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.benefit-card p {
    margin-bottom: 1.5rem;
    color: var(--text-color-muted);
    line-height: 1.6;
}

.benefit-stats {
    background: rgba(0, 191, 174, 0.1);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.benefit-stats .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.benefit-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-color-muted);
}

.benefit-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: rgba(0, 191, 174, 0.2);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 191, 174, 0.3);
}

/* Installation Guide Enhanced */
.installation-guide {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.05), rgba(0, 191, 174, 0.05));
}

.installation-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.installation-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.progress-tracker {
    background: var(--card-bg-color);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--card-border-color);
    margin-bottom: 2rem;
}

.progress-tracker h4 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: rgba(0, 191, 174, 0.2);
    border: 1px solid rgba(0, 191, 174, 0.3);
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--card-border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.progress-step.active .step-circle {
    background: var(--primary-color);
    color: white;
}

.requirements-card {
    background: var(--card-bg-color);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--card-border-color);
}

.requirements-card h4 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    color: var(--text-color-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.requirements-list li:last-child {
    border-bottom: none;
}

.requirements-list li i {
    color: var(--primary-color);
    width: 20px;
}

.installation-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-card {
    background: var(--card-bg-color);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--card-border-color);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.step-card.active {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 191, 174, 0.2);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-number {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--primary-gradient);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    color: white;
    font-weight: 600;
}

.step-number i {
    font-size: 1.2rem;
}

.step-card h3 {
    margin: 0;
    color: var(--text-color);
}

.step-content p {
    margin-bottom: 2rem;
    color: var(--text-color-muted);
    line-height: 1.7;
}

.step-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.step-tips {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 191, 174, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 191, 174, 0.2);
}

.tip-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.code-block {
    display: flex;
    align-items: center;
    background: var(--bg-color-lighter);
    border: 1px solid var(--card-border-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

.code-block code {
    flex: 1;
    color: var(--primary-color);
}

.copy-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--primary-color-dark);
}

.step-warning {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 152, 0, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 152, 0, 0.3);
    color: #ff9800;
    margin: 1rem 0;
}

.step-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color-muted);
}

.checklist-item i {
    color: var(--primary-color);
}

.step-success {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(76, 175, 80, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
    margin-top: 1rem;
}

/* Video Guide Section Enhanced */
.video-guide-section {
    padding: 4rem 0;
    background: var(--bg-color-light);
}

.video-container {
    display: grid;
    grid-template-columns: 1fr; /* Змінюємо на одну колонку для кращого вигляду */
    gap: 3rem;
    align-items: start;
}

.video-content {
    background: var(--card-bg-color);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--card-border-color);
}

.video-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 94, 98, 0.2);
    border: 1px solid rgba(255, 94, 98, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    color: #ff5e62;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.video-header h2 {
    margin-bottom: 1rem;
}

.video-preview {
    margin: 2rem 0;
}

.video-thumbnail {
    cursor: pointer;
    display: block;
    text-decoration: none;
    position: relative;
    background: linear-gradient(135deg, #333, #555);
    border-radius: 15px;
    aspect-ratio: 16/9; /* Використовуємо співвідношення YouTube */
    width: 100%; /* Повна ширина */
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}

/* Fallback для браузерів без підтримки aspect-ratio */
@supports not (aspect-ratio: 16/9) {
    .video-thumbnail {
        height: 300px;
    }
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Повертаємо cover для повноекранного ефекту */
    border-radius: 15px;
    background: #000; /* Додаємо чорний фон для кращого вигляду */
}

.video-thumbnail:hover {
    transform: scale(1.02);
}

.video-duration {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

.video-quality {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.video-info h4 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.video-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-color-muted);
}

.video-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-features {
    background: var(--card-bg-color);
    border-radius: 15px;
    padding: 2.5rem;
    border: 1px solid var(--card-border-color);
    text-align: left;
    max-width: 600px; /* Обмежуємо ширину для кращої читабельності */
    margin: 0 auto; /* Центруємо блок */
}

.video-features h4 {
    margin-bottom: 2rem;
    color: var(--text-color);
    text-align: center; /* Заголовок по центру */
    font-size: 1.5rem;
    font-weight: 600;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 0;
    color: var(--text-color-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.05rem;
    line-height: 1.5;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0; /* Іконка не стискається */
}

/* Enhanced Support Section */
.support-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(0, 191, 174, 0.05), rgba(124, 77, 255, 0.05));
}

.support-container {
    max-width: 1200px;
    margin: 0 auto;
}

.support-header {
    text-align: center;
    margin-bottom: 3rem;
}

.support-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.support-card {
    background: var(--card-bg-color);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--card-border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: left; /* Змінюємо на лівостороннє вирівнювання */
}

.support-card.primary {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 191, 174, 0.1), rgba(30, 30, 30, 0.9));
}

.support-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.support-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 0 1.5rem 0; /* Змінюємо margin для лівого вирівнювання */
}

.support-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.support-card p {
    margin-bottom: 1.5rem;
    color: var(--text-color-muted);
    line-height: 1.6;
}

.support-stats {
    display: flex;
    justify-content: flex-start; /* Змінюємо на лівостороннє вирівнювання */
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.support-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color-muted);
    font-size: 0.9rem;
}

.support-stats .stat i {
    color: var(--primary-color);
}

.support-features {
    display: flex;
    justify-content: flex-start; /* Змінюємо на лівостороннє вирівнювання */
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Стилі для кнопок в support-картках */
.support-card .btn-common {
    width: 100%; /* Кнопка займає всю ширину картки */
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.8rem 1rem; /* Зменшуємо padding для кращого поміщення */
    font-size: 0.9rem; /* Трохи зменшуємо шрифт */
}

.faq-preview {
    margin-bottom: 2rem;
}

.faq-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(0, 191, 174, 0.1);
}

.faq-item span {
    color: var(--text-color-muted);
    font-size: 0.9rem;
}

.faq-item i {
    color: var(--primary-color);
}

/* Mobile Responsive for new elements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-stats .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Адаптивні стилі для відео */
    .video-thumbnail {
        height: 250px; /* Зменшуємо висоту на мобільних */
    }
    
    .video-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .installation-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .installation-sidebar {
        position: static;
        order: -1;
    }
    
    .progress-steps {
        flex-direction: row;
        justify-content: space-between;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .progress-step {
        min-width: 120px;
        flex-shrink: 0;
    }
    
    .video-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Мобільні стилі для support-секції */
    .support-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .support-card {
        padding: 2rem 1.5rem; /* Зменшуємо padding на мобільних */
    }
    
    .support-card .btn-common {
        padding: 0.7rem 0.8rem; /* Ще менший padding для мобільних */
        font-size: 0.85rem;
    }
}
    
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .support-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-card {
        padding: 2rem 1.5rem;
    }
    
    .code-block {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .copy-btn {
        width: 100%;
        justify-self: stretch;
    }
    
    /* Адаптивні розміри для довгих кнопок на мобільних */
    .btn-common.btn-wide,
    a.btn-common.btn-wide,
    .btn-wide {
        min-width: 260px !important;
        max-width: 100% !important;
        font-size: 0.9rem !important;
    }
    
    /* Покращення читабельності на мобільних */
    .step-content p,
    .card-content p,
    .benefit-card p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Оптимізація відступів на мобільних */
    .hero,
    .redux-info-section,
    .installation-guide,
    .video-guide-section,
    .support-section {
        padding: 3rem 0;
    }
    
    .info-card,
    .benefit-card,
    .support-card,
    .step-card {
        padding: 2rem 1.5rem;
    }


/* Performance Optimizations */
.redux-preview {
    will-change: transform;
}

/* Performance optimizations */
.btn-common {
    will-change: transform;
}

.stat-item {
    will-change: transform;
}

.redux-card {
    will-change: transform;
}

/* Додаткові стилі для завершення */
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive utilities */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }
    
    .info-card,
    .benefit-card,
    .support-card {
        padding: 1.5rem !important;
    }
    
    .installation-container {
        grid-template-columns: 1fr !important;
    }
    
    .video-container {
        grid-template-columns: 1fr !important;
    }
}

/* Відключаємо анімації для користувачів з порушеннями вестибулярного апарату */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    #preloader {
        display: none !important;
    }
}

/* About Page Styles */
.about-intro {
    margin: 3rem 0;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border-color);
}

.features-section {
    margin: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--card-bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border-color);
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.team-section {
    margin: 4rem 0;
    padding: 0 1rem;
}

.team-section h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-weight: 700;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.team-member {
    background: linear-gradient(145deg, var(--card-bg-color), rgba(30, 30, 30, 0.9));
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 191, 174, 0.2);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-member:hover::before {
    transform: scaleX(1);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 191, 174, 0.15);
    border-color: rgba(0, 191, 174, 0.4);
}

.member-avatar {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: visible;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 191, 174, 0.3);
    transition: all 0.3s ease;
}

.team-member:hover .member-avatar {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 191, 174, 0.4);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.team-member:hover .member-avatar img {
    transform: scale(1.05);
}

.avatar-fallback {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: var(--card-bg-color);
    color: var(--primary-color);
    font-size: 3.5rem;
}

.role-icon {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 191, 174, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    z-index: 999;
}

.team-member:hover .role-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 191, 174, 0.6);
}

.team-member h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', monospace;
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-nickname {
    color: var(--text-color-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.member-skills {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: rgba(0, 191, 174, 0.15);
    color: var(--primary-color);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(0, 191, 174, 0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(0, 191, 174, 0.25);
    transform: translateY(-1px);
}

.mission-section {
    background: var(--card-bg-color);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border-color);
    margin: 4rem 0;
}

.mission-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mission-divider {
    width: 100px;
    height: 3px;
    background: var(--primary-gradient);
    margin: 1rem auto 2rem;
    border-radius: 2px;
}

.mission-intro {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.mission-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.mission-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.mission-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.mission-feature i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.mission-guarantee {
    font-style: italic;
    color: var(--text-color-muted);
    margin: 2rem 0;
}



/* Popular Page Styles */

/* FPS Calculator */
.fps-calculator {
    padding: 4rem 0;
    background-color: var(--bg-color-light);
    border-radius: var(--border-radius);
    margin: 2rem 0;
    box-shadow: var(--box-shadow);
}

.calculator-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.calculator-form, .calculator-result {
    flex: 1;
    min-width: 300px;
}

.calculator-form {
    padding: 2rem;
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--card-border-color);
    border-radius: 8px;
    background-color: var(--bg-color-lighter);
    color: var(--text-color);
    font-size: 1rem;
}

.calculator-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.result-value {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
}

.result-text {
    font-size: 1.1rem;
    color: var(--text-color-muted);
}

.fps-meter {
    width: 100%;
    height: 20px;
    background-color: var(--bg-color-lighter);
    border-radius: 10px;
    margin-top: 2rem;
    overflow: hidden;
}

.fps-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-gradient);
    transition: width 1s ease;
    border-radius: 10px;
}

/* Reviews Section */
.reviews {
    padding: 4rem 0;
}

.reviews-swiper {
    padding-bottom: 60px;
}

.review {
    background: var(--card-bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--card-border-color);
}

.review:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid var(--primary-color);
}

.user-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.stars {
    color: #FFD700;
    margin-top: 0.3rem;
    font-size: 0.9rem;
}

.review p {
    margin-bottom: 1.5rem;
    color: var(--text-color-muted);
    font-style: italic;
    line-height: 1.6;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-color-muted);
}

.review-redux {
    color: var(--primary-color);
    font-weight: 600;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
}

.swiper-pagination-bullet {
    background: var(--primary-color);
}

.add-review {
    text-align: center;
    margin-top: 2rem;
}

/* Discord Section */
.discord-section {
    position: relative;
    padding: 4rem 0;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    text-align: center;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(59, 73, 217, 0.1));
}

.discord-section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-bg-color);
    z-index: -1;
}

.discord-icon {
    font-size: 4rem;
    color: #5865F2;
    margin-bottom: 1rem;
}

.discord-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.discord-section p {
    font-size: 1.2rem;
    color: var(--text-color-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.discord-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.discord-feature {
    background: var(--card-bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border-color);
    transition: transform 0.3s ease;
}

.discord-feature:hover {
    transform: translateY(-5px);
}

.discord-feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.discord-feature h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.discord-feature p {
    font-size: 1rem;
    color: var(--text-color-muted);
    margin: 0;
}
.works-stats {
    margin: 3rem 0;
}

.stats-container .stat-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border-color);
    transition: all var(--transition-speed) ease;
}

.stats-container .stat-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-color-muted);
    margin-bottom: 2rem;
}

/* Popular Page Complete Styles */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.popular-card {
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--card-border-color);
    transition: all var(--transition-speed) ease;
}

.popular-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

/* Download and installation tracking */
.download-progress {
    width: 100%;
    height: 8px;
    background: var(--bg-color-lighter);
    border-radius: 4px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Enhanced accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #00ff00;
        --text-color: #ffffff;
        --bg-color: #000000;
        --card-bg-color: #1a1a1a;
        --card-border-color: #ffffff;
    }
}

/* Print styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a, a:visited {
        text-decoration: underline !important;
    }
    
    .no-print {
        display: none !important;
    }
    
    header, footer, .theme-switcher, #scrollToTop, nav {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* Smooth animations */
@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 191, 174, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 191, 174, 0.6);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slideInUp 0.6s ease-out;
}

.pulse-glow {
    animation: pulseGlow 2s infinite;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Final responsive fixes */
@media (max-width: 320px) {
    .container {
        padding: 0 0.5rem;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    
    .btn-common {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* Ensure all elements are properly sized */
* {
    max-width: 100%;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* CSS Grid fallback for older browsers */
@supports not (display: grid) {
    .info-cards-grid,
    .benefits-grid,
    .support-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .info-card,
    .benefit-card,
    .support-card {
        flex: 1 1 300px;
        max-width: 500px;
    }
    
    .installation-container {
        display: flex;
        flex-direction: column;
    }
    
    .video-container {
        display: flex;
        flex-direction: column;
    }
}

/* Flexbox fallback */
@supports not (display: flex) {
    .hero-stats,
    .hero-actions,
    .progress-steps,
    .support-stats {
        display: block;
    }
    
    .hero-stats .stat-item,
    .progress-step,
    .support-stats .stat {
        display: inline-block;
        margin: 0.5rem;
        vertical-align: top;
    }
}

/* Backdrop-filter fallback */
@supports not (backdrop-filter: blur(10px)) {
    .hero-badge,
    .hero-stats .stat-item {
        background: rgba(0, 191, 174, 0.3);
    }
}

/* ===== ПОКРАЩЕННЯ МОБІЛЬНОЇ НАВІГАЦІЇ ===== */
@media (max-width: 768px) {
    /* Покращена кнопка мобільного меню */
    .mobile-menu-toggle {
        position: relative;
        z-index: 10001 !important;
        width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
        background: var(--primary-color) !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        border: none !important;
        outline: none !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
    }
    
    .mobile-menu-toggle:hover {
        background: var(--primary-color-dark) !important;
        transform: scale(1.05) !important;
    }
    
    .mobile-menu-toggle .bar {
        width: 20px !important;
        height: 2px !important;
        background: white !important;
        transition: all 0.3s ease !important;
        border-radius: 1px !important;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px) !important;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0 !important;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px) !important;
    }
    
    /* Покращена мобільна навігація */
    header nav {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 80% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: var(--bg-color) !important;
        backdrop-filter: blur(20px) !important;
        z-index: 10000 !important;
        transition: left 0.3s ease !important;
        overflow-y: auto !important;
        border-right: 2px solid var(--primary-color) !important;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3) !important;
    }
    
    header nav.active {
        left: 0 !important;
    }
    
    header nav ul {
        flex-direction: column !important;
        padding: 80px 20px 20px !important;
        margin: 0 !important;
        gap: 10px !important;
    }
    
    /* Додаємо перемикач теми в кінець мобільного меню */
    header nav ul::after {
        content: '' !important;
        display: block !important;
        width: 100% !important;
        height: 1px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        margin: 20px 0 !important;
    }
    
    header nav .mobile-theme-switcher {
        order: 999 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 20px !important;
        padding: 15px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 8px !important;
        position: relative !important;
        transform: none !important;
    }
    
    /* Приховуємо desktop перемикач на мобільному */
    @media (max-width: 768px) {
        header .container > .theme-switcher {
            display: none !important;
        }
    }
    
    /* Приховуємо mobile перемикач на desktop */
    @media (min-width: 769px) {
        header nav .mobile-theme-switcher {
            display: none !important;
        }
    }
    
    header nav ul li {
        width: 100% !important;
        margin: 0 !important;
    }
    
    header nav ul li a {
        display: flex !important;
        align-items: center !important;
        padding: 15px 20px !important;
        width: 100% !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: var(--text-color) !important;
        font-size: 16px !important;
        transition: all 0.3s ease !important;
        text-decoration: none !important;
    }
    
    header nav ul li a:hover,
    header nav ul li a.active {
        background: var(--primary-gradient) !important;
        color: white !important;
        transform: translateX(5px) !important;
        box-shadow: 0 4px 15px rgba(0, 191, 174, 0.3) !important;
    }
    
    header nav ul li a i {
        margin-right: 10px !important;
        width: 20px !important;
        text-align: center !important;
    }
    
    /* Блокування скролу коли меню відкрите */
    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }
    
    /* Оверлей для закриття меню */
    header nav.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 80%;
        width: 20%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

/* ===== ПОКРАЩЕННЯ ПЕРЕМИКАЧА ТЕМИ ===== */
.theme-switcher {
    position: relative !important;
    z-index: 1000 !important;
    margin-left: 20px !important;
    display: flex !important;
    align-items: center !important;
}

/* Мобильный переключатель темы */
.theme-switcher-mobile {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 1000 !important;
    display: none !important; /* Скрыт на десктопе */
    background-color: rgba(0, 0, 0, 0.6) !important;
    border-radius: 50% !important;
    padding: 10px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
}

@media (max-width: 768px) {
    .theme-switcher-mobile {
        display: flex !important; /* Показываем на мобильных устройствах */
    }
}

.theme-switcher input[type="checkbox"],
.theme-switcher-mobile input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

.theme-switcher label,
.theme-switcher-mobile label {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 60px !important;
    height: 30px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px !important;
    padding: 3px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    position: relative !important;
}

.theme-switcher label:hover,
.theme-switcher-mobile label:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: var(--primary-color) !important;
    transform: scale(1.05) !important;
}

.theme-switcher label i,
.theme-switcher-mobile label i {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.3s ease !important;
    z-index: 2 !important;
    position: relative !important;
    padding: 2px !important;
}

.theme-switcher label::before,
.theme-switcher-mobile label::before {
    content: '' !important;
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    width: 24px !important;
    height: 24px !important;
    background: var(--primary-gradient) !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.theme-switcher input:checked + label::before,
.theme-switcher-mobile input:checked + label::before {
    transform: translateX(30px) !important;
}

.theme-switcher input:checked + label,
.theme-switcher-mobile input:checked + label {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

.theme-switcher input:checked + label i.fa-sun,
.theme-switcher-mobile input:checked + label i.fa-sun {
    color: #ffa500 !important;
}

.theme-switcher input:checked + label i.fa-moon,
.theme-switcher-mobile input:checked + label i.fa-moon {
    color: rgba(0, 0, 0, 0.3) !important;
}

/* Header layout для перемикача теми */
header .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

header .container .logo {
    flex-shrink: 0 !important;
}

header nav {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
}

header .theme-switcher {
    flex-shrink: 0 !important;
}

@media (min-width: 769px) {
    header .container {
        display: flex !important;
        align-items: center !important;
        gap: 20px !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}

@media (max-width: 768px) {
    header .container {
        position: relative !important;
    }
    
    .theme-switcher {
        position: absolute !important;
        top: 50% !important;
        right: 60px !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
    }
    
    .theme-switcher label {
        width: 50px !important;
        height: 25px !important;
        padding: 2px !important;
    }
    
    .theme-switcher label::before {
        width: 21px !important;
        height: 21px !important;
        top: 2px !important;
        left: 2px !important;
    }
    
    .theme-switcher input:checked + label::before {
        transform: translateX(25px) !important;
    }
    
    .theme-switcher label i {
        font-size: 10px !important;
    }
    
    /* В мобільному меню перемикач буде в кінці списку */
    header nav.active .theme-switcher {
        position: static !important;
        transform: none !important;
        margin: 20px auto 0 !important;
        justify-content: center !important;
    }
}

/* End of CSS file */


