/* ===== CSS VARIABLES & RESET ===== */
:root {
    --primary-pink: #FF6B9D;
    --primary-purple: #A855F7;
    --primary-blue: #3B82F6;
    --primary-violet: #7C3AED;
    --primary-rose: #F43F5E;
    --primary-gold: #FBBF24;
    --dark-bg: #0F0A1E;
    --darker-bg: #0A0618;
    --card-bg: rgba(25, 15, 45, 0.85);
    --card-glass: rgba(255, 255, 255, 0.1);
    --text-light: #F8FAFC;
    --text-muted: #CBD5E1;
    --text-secondary: #94A3B8;
    --gradient-primary: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-purple) 50%, var(--primary-blue) 100%);
    --gradient-soft: linear-gradient(135deg, rgba(255, 107, 157, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    --gradient-gold: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    --gradient-dark: linear-gradient(135deg, rgba(15, 10, 30, 0.9) 0%, rgba(25, 15, 45, 0.9) 100%);
    --shadow-glow: 0 20px 60px rgba(255, 107, 157, 0.3), 0 0 100px rgba(168, 85, 247, 0.2);
    --shadow-soft: 0 15px 50px rgba(0, 0, 0, 0.25);
    --shadow-hard: 0 8px 30px rgba(0, 0, 0, 0.3);
    --border-glow: 1px solid rgba(255, 255, 255, 0.15);
    --radius-xl: 30px;
    --radius-lg: 20px;
    --radius-md: 15px;
    --radius-sm: 10px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: url('https://fanty.su/media/l/bg/l/f.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(15, 10, 30, 0.95) 0%,
        rgba(25, 15, 45, 0.9) 50%,
        rgba(40, 25, 60, 0.85) 100%);
    z-index: -1;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 1px;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0; /* Уменьшено с 120px */
    position: relative;
}

/* ===== HEADER & HORIZONTAL SCROLL NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 10, 30, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border-glow);
    padding: 18px 0;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.header.scrolled {
    padding: 12px 0;
    background: rgba(15, 10, 30, 0.98);
    box-shadow: var(--shadow-hard);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    position: relative;
    padding-left: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo::before {
    content: '🔥';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    animation: flame 2s ease-in-out infinite;
}

/* Горизонтальный скролл меню для ПК */
.nav-scroll-container {
    flex: 1;
    max-width: 900px;
    position: relative;
    overflow: hidden;
}

.nav-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-purple) rgba(255, 255, 255, 0.1);
    min-height: 60px;
    align-items: center;
}

/* Минималистичная полоса прокрутки */
.nav-scroll-wrapper::-webkit-scrollbar {
    height: 4px;
}

.nav-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.nav-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.nav-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-purple) 100%);
}

.nav {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    padding: 0 10px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    white-space: nowrap;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 1px solid transparent;
    text-align: center;
    min-width: 140px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-link i {
    margin-right: 8px;
    font-size: 14px;
    min-width: 16px;
}

.nav-link:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 107, 157, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.2);
}

.nav-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.3);
    border-color: transparent;
}

/* Кнопки навигации для скролла */
.nav-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(25, 15, 45, 0.9);
    border: var(--border-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.nav-scroll-btn:hover {
    background: var(--gradient-primary);
    transform: translateY(-50%) scale(1.1);
}

.nav-scroll-btn.prev {
    left: 0;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}

.nav-scroll-btn.next {
    right: 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.nav-scroll-container:hover .nav-scroll-btn {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    transition: var(--transition-smooth);
    border-radius: 2px;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 70% 20%, rgba(255, 107, 157, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(168, 85, 247, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    z-index: -1;
    animation: pulse 8s ease-in-out infinite alternate;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 68px;
    margin-bottom: 30px;
    line-height: 1.1;
    background: linear-gradient(135deg, #FFD6E7 0%, var(--primary-pink) 25%, var(--primary-purple) 50%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 10px 40px rgba(168, 85, 247, 0.3);
    position: relative;
    padding-bottom: 30px;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-muted);
    margin-bottom: 50px;
    line-height: 1.7;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Inter', sans-serif;
    position: relative;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: var(--border-glow);
    backdrop-filter: blur(10px);
}

/* ===== ЯРКАЯ КНОПКА "НАЧАТЬ ИГРУ БЕСПЛАТНО" ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 22px 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 20px;
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    opacity: 1 !important;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 30px 80px rgba(255, 107, 157, 0.4), 0 0 150px rgba(168, 85, 247, 0.3);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary i {
    font-size: 22px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* ===== STICKY CTA BUTTON ===== */
.sticky-cta {
    position: fixed;
    bottom: 20px; /* Фиксированно внизу экрана */
    left: 50%;
    transform: translateX(-50%) !important;
    z-index: 999;
    width: 90%;
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.sticky-cta.show {
    opacity: 1;
    visibility: visible;
}

.sticky-cta .btn-primary {
    width: 100%;
    padding: 22px 30px;
    font-size: 18px;
}

/* ===== СТАТИСТИКА - ИСПРАВЛЕНО ДЛЯ МОБИЛЬНЫХ ===== */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; /* Уменьшен gap для мобильных */
    margin-top: 80px;
    padding-top: 40px;
    border-top: var(--border-glow);
}

/* Фиксируем ширину элементов статистики */
.stat-item {
    text-align: center;
    padding: 25px 15px; /* Уменьшен padding для мобильных */
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: var(--border-glow);
    transition: var(--transition-smooth);
    min-width: 0; /* Важно для предотвращения расползания */
    overflow: hidden; /* Обрезаем длинный текст */
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    display: block;
    white-space: nowrap; /* Запрещаем перенос чисел */
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-label {
    font-size: 14px; /* Уменьшен размер шрифта */
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px; /* Уменьшен letter-spacing */
    font-weight: 500;
    display: block;
    white-space: nowrap; /* Запрещаем перенос текста */
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* ===== FEATURES SECTION ===== */
.features {
    background: var(--gradient-dark);
    position: relative;
    border-top: var(--border-glow);
    border-bottom: var(--border-glow);
}

.section-header {
    text-align: center;
    margin-bottom: 60px; /* Уменьшено с 80px */
    position: relative;
}

.section-title {
    font-size: 52px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px; /* Уменьшено с 40px */
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 40px 30px; /* Уменьшено */
    border: var(--border-glow);
    transition: var(--transition-bounce);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: var(--shadow-glow);
    border-color: rgba(168, 85, 247, 0.4);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.6s ease;
    transform-origin: left;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px; /* Уменьшено с 90px */
    height: 80px; /* Уменьшено с 90px */
    margin: 0 auto 25px; /* Уменьшено с 30px */
    background: var(--gradient-soft);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--border-glow);
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg) scale(1.1);
    background: var(--gradient-primary);
}

.feature-icon img {
    width: 40px; /* Уменьшено с 48px */
    height: 40px; /* Уменьшено с 48px */
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon img {
    filter: brightness(0) invert(1);
}

.feature-card h3 {
    font-size: 22px; /* Уменьшено с 24px */
    margin-bottom: 15px; /* Уменьшено с 20px */
    color: var(--text-light);
    position: relative;
    padding-bottom: 15px;
}

.feature-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 16px;
}

/* ===== GAMES SELECTION SECTION ===== */
.games-selection {
    background: linear-gradient(180deg, var(--darker-bg) 0%, rgba(10, 6, 24, 0.95) 100%);
    padding: 80px 0; /* Уменьшено с 100px */
    position: relative;
    overflow: hidden;
}

.games-selection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 107, 157, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px; /* Уменьшено с 30px */
    margin-top: 40px; /* Уменьшено с 60px */
}

.game-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: var(--border-glow);
    transition: var(--transition-bounce);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Кликабельная область всей карточки */
.game-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.game-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-glow);
    border-color: rgba(168, 85, 247, 0.4);
}

.game-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(25, 15, 45, 0.9) 0%, rgba(40, 20, 70, 0.9) 100%);
}

.game-header {
    padding: 30px 25px 25px; /* Уменьшено */
    position: relative;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    flex-shrink: 0;
}

.game-icon {
    width: 70px; /* Уменьшено с 80px */
    height: 70px; /* Уменьшено с 80px */
    margin: 0 auto 20px; /* Уменьшено с 25px */
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px; /* Уменьшено с 32px */
    color: white;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.game-card h3 {
    font-size: 24px; /* Уменьшено с 28px */
    margin-bottom: 15px;
    color: var(--text-light);
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 15px 0;
}

.game-tag {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    border: var(--border-glow);
}

.game-content {
    padding: 0 25px 25px; /* Уменьшено */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px; /* Уменьшено с 25px */
    flex: 1;
}

.game-features {
    list-style: none;
    margin-bottom: 20px; /* Уменьшено с 25px */
}

.game-features li {
    padding: 8px 0; /* Уменьшено с 10px */
    color: var(--text-secondary);
    position: relative;
    padding-left: 25px;
}

.game-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-purple);
    font-weight: bold;
}

.game-footer {
    padding: 15px 25px; /* Уменьшено */
    background: rgba(0, 0, 0, 0.2);
    border-top: var(--border-glow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.game-price {
    font-size: 22px; /* Уменьшено с 24px */
    font-weight: 700;
    color: #10B981;
    white-space: nowrap;
}

.game-button {
    padding: 12px 28px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.game-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ===== ПРОСТАЯ ГАЛЕРЕЯ ===== */
.gallery-section {
    position: relative;
    padding: 80px 0; /* Уменьшено с 120px */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px; /* Уменьшено с 30px */
}

.gallery-item {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: var(--border-glow);
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.gallery-image {
    position: relative;
    height: 200px; /* Уменьшено с 220px */
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px; /* Уменьшено с 20px */
    background: linear-gradient(transparent, rgba(15, 10, 30, 0.9));
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-caption {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 20px; /* Уменьшено */
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    text-align: center;
    border: var(--border-glow);
}

/* ===== МОДАЛЬНОЕ ОКНО ГАЛЕРЕИ ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 1003;
}

.modal-close:hover {
    color: var(--primary-pink);
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.modal-caption {
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.modal-prev,
.modal-next {
    background: rgba(255, 255, 255, 0.1);
    border: var(--border-glow);
    color: white;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 20px;
}

.modal-prev:hover,
.modal-next:hover {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

/* ===== LEVELS SECTION ===== */
.levels-section {
    background: var(--gradient-dark);
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background: var(--gradient-dark);
    position: relative;
    border-top: var(--border-glow);
    border-bottom: var(--border-glow);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    margin-bottom: 15px;
    border: var(--border-glow);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: rgba(168, 85, 247, 0.4);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.faq-question i {
    transition: var(--transition-smooth);
    color: var(--primary-purple);
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    padding: 0 30px 25px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    font-size: 16px;
}

/* ===== AGE CONFIRMATION MODAL ===== */
.age-confirm-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 6, 24, 0.98);
    backdrop-filter: blur(20px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.age-confirm-content {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 60px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: var(--border-glow);
    box-shadow: var(--shadow-glow);
    animation: slideUp 0.5s ease;
}

.age-confirm-title {
    font-size: 36px;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.age-confirm-text {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.age-confirm-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.age-confirm-yes {
    padding: 20px 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-xl);
    color: white;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-bounce);
    width: 100%;
    max-width: 300px;
    box-shadow: var(--shadow-glow);
}

.age-confirm-yes:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 30px 80px rgba(255, 107, 157, 0.4);
}

.age-confirm-no {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    transition: var(--transition-smooth);
    opacity: 0.5;
}

.age-confirm-no:hover {
    color: var(--text-light);
    opacity: 0.8;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(180deg, #0A0618 0%, #070412 100%);
    padding: 80px 0 40px; /* Уменьшено с 100px */
    border-top: var(--border-glow);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px; /* Уменьшено с 60px */
    margin-bottom: 60px; /* Уменьшено с 80px */
    position: relative;
    z-index: 1;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    text-decoration: none;
}

.footer-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 15px;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 25px; /* Уменьшено с 30px */
    color: var(--text-light);
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px; /* Уменьшено с 18px */
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    position: relative;
    text-decoration: none;
}

.footer-links a i {
    width: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--primary-purple);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--text-light);
    padding-left: 10px;
}

.footer-links a:hover i {
    color: var(--primary-pink);
    transform: scale(1.2);
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    border: var(--border-glow);
    color: var(--text-muted);
    text-decoration: none;
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-5px) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--text-muted);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--primary-pink);
}

.footer-telegram {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 136, 204, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 136, 204, 0.3);
}

.footer-telegram a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #0088cc;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition-smooth);
}

.footer-telegram a:hover {
    color: #00acee;
    transform: translateY(-3px);
}

.footer-telegram i {
    font-size: 24px;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 90px; /* Чуть выше кнопки начать игру (20px + 50px + 20px) */
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glow);
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
}

/* ===== ANIMATIONS ===== */
@keyframes flame {
    0%, 100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-50%) scale(1.1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 4s ease-in-out infinite;
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.nav-mobile {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(15, 10, 30, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    padding: 15px; /* Уменьшено с 20px - более узкое меню */
    gap: 5px; /* Уменьшено с 8px */
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 999;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    display: none;
}

.nav-mobile.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    display: flex;
}

/* Активный пункт меню на мобильных */
.nav-mobile .nav-link.active {
    background: var(--gradient-primary);
    color: white !important;
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.3);
    border-color: transparent !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 58px;
    }
    
    .section-title {
        font-size: 46px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        padding: 20px;
    }
    
    .section {
        padding: 60px 0; /* Уменьшено с 80px */
    }
    
    .section-title {
        font-size: 38px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 35px 25px; /* Уменьшено */
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .nav-scroll-container {
        max-width: 600px;
    }
    
    .age-confirm-content {
        padding: 40px;
    }
    
    .age-confirm-title {
        font-size: 30px;
    }
    
    .back-to-top {
        bottom: 90px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        padding: 15px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .sticky-cta {
        width: 95%;
        max-width: 350px;
        bottom: 20px; /* Фиксированно внизу */
    }
    
    .sticky-cta .btn-primary {
        padding: 20px 25px;
        font-size: 16px;
    }
    
    .back-to-top {
        bottom: 80px; /* 20px + 50px + 10px */
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .age-confirm-content {
        padding: 30px;
        width: 95%;
    }
    
    .age-confirm-title {
        font-size: 26px;
    }
    
    .age-confirm-text {
        font-size: 16px;
    }
    
    /* Логотип выравнивается по левому краю на мобильных */
    .header-container {
        justify-content: flex-start; /* Логотип слева */
    }
    
    .logo {
        margin-right: auto;
    }
    
    .mobile-menu-toggle {
        margin-left: auto;
    }
    
    /* Исправление статистики для мобильных */
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-item {
        padding: 20px 10px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 12px;
        letter-spacing: 0.3px;
    }
    
    /* Мобильное меню */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .nav-scroll-container {
        display: none !important;
    }
    
    .nav-mobile {
        display: none; /* Управляется JS */
    }
    
    .nav-mobile .nav-link {
        padding: 14px 18px !important; /* Уменьшено - более узкое меню */
        font-size: 15px !important;
        text-align: center !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        width: 100% !important;
        min-width: auto !important;
        margin-bottom: 4px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        color: var(--text-muted) !important;
    }
    
    .nav-mobile .nav-link:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: var(--text-light) !important;
        transform: translateX(5px) !important;
    }
    
    .nav-mobile .nav-link i {
        width: 20px !important; /* Уменьшено */
        text-align: center !important;
        margin-right: 10px !important;
        font-size: 14px !important; /* Уменьшено */
    }
    
    body.no-scroll {
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        padding: 15px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .sticky-cta {
        bottom: 15px; /* Немного отступ */
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-item {
        padding: 15px 8px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .game-header {
        padding: 25px 20px 20px;
    }
    
    .game-content {
        padding: 0 20px 20px;
    }
    
    .game-footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .age-confirm-content {
        padding: 20px;
    }
    
    .age-confirm-title {
        font-size: 24px;
    }
    
    .age-confirm-yes {
        padding: 18px 40px;
        font-size: 18px;
    }
    
    .back-to-top {
        bottom: 75px; /* 15px + 45px + 15px */
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    /* Убираем иконку плей на очень узких экранах */
    @media (max-width: 360px) {
        .btn-primary i {
            display: none;
        }
        
        .btn-primary {
            padding: 20px 30px;
            font-size: 18px;
            gap: 0;
        }
        
        .sticky-cta .btn-primary i {
            display: none;
        }
        
        .sticky-cta .btn-primary {
            padding: 18px 25px;
            font-size: 16px;
        }
    }
}

@media (max-width: 360px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    .sticky-cta {
        bottom: 10px;
    }
    
    .back-to-top {
        bottom: 65px; /* 10px + 45px + 10px */
        right: 10px;
    }
    
    /* Убираем иконку плей на экранах до 360px */
    .btn-primary i {
        display: none;
    }
    
    .btn-primary {
        padding: 20px 30px;
        font-size: 18px;
        gap: 0;
    }
    
    .sticky-cta .btn-primary i {
        display: none;
    }
    
    .sticky-cta .btn-primary {
        padding: 18px 25px;
        font-size: 16px;
    }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 10, 30, 0.8);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-purple) 100%);
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-right: 15px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: rgba(255, 255, 255, 0.08);
    border: var(--border-glow);
    border-radius: var(--radius-sm);
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
    transition: var(--transition-smooth);
    min-width: 80px;
    border: none;
    outline: none;
    font-family: inherit;
}

.dropbtn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.dropbtn img {
    width: 20px;
    height: 20px;
    border-radius: 2px;
}

.dropbtn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown.active .dropbtn i {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: var(--card-bg);
    min-width: 120px;
    box-shadow: var(--shadow-hard);
    z-index: 1000;
    border-radius: var(--radius-md);
    border: var(--border-glow);
    overflow: hidden;
    margin-top: 5px;
}

.dropdown.active .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-muted);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.dropdown-content a img {
    width: 20px;
    height: 20px;
    border-radius: 2px;
}

/* ===== СКРЫТИЕ ИКОНОК НА МОБИЛЬНЫХ ===== */

/* Для feature-card иконок когда блоки в один ряд (на мобильных) */
@media (max-width: 768px) {
    /* Скрываем иконки в feature-card когда они занимают всю ширину */
    .features-grid .feature-card .feature-icon {
        display: none;
    }
    
    /* Уменьшаем отступы и корректируем размеры */
    .features-grid .feature-card {
        padding: 25px 20px;
    }
    
    .features-grid .feature-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .features-grid .feature-card h3::after {
        width: 30px;
        height: 2px;
    }
}

/* Для game-card иконок когда блоки в один ряд (на мобильных) */
@media (max-width: 768px) {
    /* Скрываем иконки в game-card на мобильных */
    .games-grid .game-card .game-icon {
        display: none;
    }
    
    /* Корректируем отступы */
    .games-grid .game-card .game-header {
        padding: 25px 20px 20px;
    }
    
    .games-grid .game-card h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .games-grid .game-card .game-tags {
        margin: 10px 0;
    }
}

/* На очень маленьких экранах дополнительные правки */
@media (max-width: 480px) {
    .features-grid .feature-card {
        padding: 20px 15px;
    }
    
    .features-grid .feature-card h3 {
        font-size: 18px;
    }
    
    .games-grid .game-card .game-header {
        padding: 20px 15px 15px;
    }
    
    .games-grid .game-card h3 {
        font-size: 20px;
    }
    
    .games-grid .game-card .game-tags {
        gap: 6px;
    }
    
    .games-grid .game-card .game-tag {
        font-size: 11px;
        padding: 5px 10px;
    }
}