/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #fff;
    line-height: 1.5;
    overflow-x: hidden;
   background: red !important;
}

/* Animated Gradient Background */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(125deg, #0f0c29, #302b63, #24243e);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0,0,0,0.3);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    text-align: center;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 42, 0.8);
    backdrop-filter: blur(12px);
    z-index: 100;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ff7e5e, #feb47b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #feb47b;
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* Main Content */
main {
    padding-top: 80px;
}

section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    text-align: center;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
}

.glow {
    animation: glowPulse 3s infinite alternate;
}

@keyframes glowPulse {
    0% { text-shadow: 0 0 5px rgba(255,126,94,0.5); }
    100% { text-shadow: 0 0 25px rgba(254,180,123,0.8); }
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.btn.primary {
    background: linear-gradient(45deg, #ff7e5e, #feb47b);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255,126,94,0.3);
}

.btn.secondary {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* About Section */
.about {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    border-radius: 2rem;
    margin: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
}

.stat .number {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    background: linear-gradient(45deg, #ff7e5e, #feb47b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat .label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Carousel */
.games-carousel {
    background: transparent;
}

.game-cover {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 1rem;
}

.game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 💥 ключевая строка */
    display: block;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
    padding: 1rem 0;
}

.carousel-slide {
    flex: 0 0 300px;
    scroll-snap-align: start;
}

.game-card {
    display: block;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(4px);
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.game-cover {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #1e2a3a;
}

.game-card h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.2rem;
}

.game-card p {
    padding: 0 1rem 1rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 2;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.9);
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #feb47b;
    width: 20px;
    border-radius: 10px;
}

/* Order Section */
.order {
    text-align: center;
    background: rgba(0,0,0,0.3);
    border-radius: 2rem;
    margin: 2rem;
    padding: 3rem;
}

.order h2 {
    margin-bottom: 1rem;
}

.order-sub {
    margin: 1.5rem 0;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: #1f8ef1;
    color: white;
    padding: 1rem 2rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(31,142,241,0.4);
}

.telegram-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(31,142,241,0.6);
}

.btn-icon {
    font-size: 1.5rem;
}

/* Footer */
footer {
    background: rgba(0,0,0,0.8);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-link {
    color: #fff;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.social-link:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: rgba(10,10,42,0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s;
        gap: 1.5rem;
    }

    .nav-links.active {
        left: 0;
    }

    .burger {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }

    .carousel-slide {
        flex: 0 0 260px;
    }

    section {
        padding: 3rem 1rem;
    }

    /* 🔥 Фикс переполнения текста */
* {
    max-width: 100%;
}

body {
    overflow-x: hidden;
}

/* 📱 Контейнер не должен вылазить */
.container {
    padding: 0 1rem;
}

/* 📱 Текст */
.about-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* 📱 Параграфы */
.about-text p {
    font-size: 1rem;
    line-height: 1.6;
}

/* 📱 Заголовки */
h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
}

h2 {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
}
}

@media (max-width: 768px) {

    /* 💣 ГЛАВНЫЙ ФИКС */
    .about {
        margin: 1rem;
        padding: 2rem 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .stat .number {
        font-size: 1.5rem;
    }

    /* 📱 Кнопки */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* 📱 Карусель */
    .carousel-slide {
        flex: 0 0 220px;
    }

    /* 📱 Навбар отступ */
    header {
        padding: 1rem;
    }
}

/* ✨ Появление блоков */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}