/* 🌐 СБРОС И БАЗА */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #FFD700;
    --tiger-orange: #FF6B35;
    --royal-purple: #2D1B40;
    --dark-bg: #0F0A15;
    --card-bg: #1A1425;
    --text-light: #FFFFFF;
    --text-muted: #B0A6C6;
    --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.4);
    --transition: all 0.3s ease;
}

body.es-theme {
    background: var(--dark-bg);
    color: var(--text-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 🖼️ ОПТИМИЗАЦИЯ ИЗОБРАЖЕНИЙ */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: var(--transition);
}

img[loading="lazy"] {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* 🎯 HEADER — С БУРГЕР МЕНЮ */
.header-rooster {
    background: rgba(15, 10, 21, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
}

.header-rooster .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

/* 🍔 БУРГЕР МЕНЮ */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--gold);
    border-radius: 2px;
    transition: var(--transition);
}

/* НАВИГАЦИЯ — ПОКАЗ НА ДЕСКТОПЕ */
.main-nav {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
    border-radius: 30px;
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover {
    color: var(--gold);
    background: rgba(255, 107, 53, 0.1);
}

/* 🎨 ГРАДИЕНТНЫЕ КНОПКИ */
.btn-rooster-gold,
.btn-rooster-xl,
.btn-rooster-xxl,
.btn-rooster-sm {
    background: linear-gradient(135deg, var(--gold), var(--tiger-orange));
    color: var(--royal-purple);
    font-weight: 800;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    display: inline-block;
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-rooster-gold { padding: 0.7rem 1.5rem; font-size: 1rem; }
.btn-rooster-xl { padding: 1rem 2.5rem; font-size: 1.2rem; margin: 1.5rem 0; }
.btn-rooster-xxl { padding: 1.2rem 3rem; font-size: 1.4rem; margin: 2rem 0; }
.btn-rooster-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }

.btn-rooster-gold:hover,
.btn-rooster-xl:hover,
.btn-rooster-xxl:hover,
.btn-rooster-sm:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-glow);
    color: #000;
}

/* 🎆 HERO СЕКЦИЯ */
.hero-rooster {
    background: linear-gradient(135deg, var(--royal-purple), #150d22);
    padding: 5rem 5% 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-rooster::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, transparent 20%, var(--dark-bg) 80%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

.hero-rooster h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--gold), var(--tiger-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.trust-badges img {
    height: 40px;
    filter: brightness(1.2);
    transition: var(--transition);
}

.trust-badges img:hover {
    filter: brightness(1.5) saturate(1.3);
    transform: scale(1.05);
}

/* 🎮 КАРТОЧКИ */
.game-grid,
.live-events-grid,
.esports-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.game-card,
.event-card,
.bonus-card,
.guide-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 107, 53, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-card:hover,
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    border-color: var(--tiger-orange);
}

.game-card img,
.event-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.game-card h4,
.event-card h4 {
    font-size: 1.3rem;
    margin: 0.5rem 0;
    color: var(--gold);
}

/* 📊 ТАБЛИЦЫ */
table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

table th {
    background: rgba(255, 107, 53, 0.15);
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* 💬 ЦИТАТЫ */
.rooster-quote {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 215, 0, 0.1));
    border-left: 4px solid var(--tiger-orange);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    border-radius: 0 12px 12px 0;
    position: relative;
}

/* 📰 КОНТЕНТ */
.content-rooster .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

article h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: var(--gold);
    position: relative;
    padding-bottom: 0.5rem;
}

article h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--tiger-orange);
    border-radius: 2px;
}

article h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

article p {
    margin: 1rem 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* 📱 АДАПТИВ — МОБИЛЬНЫЕ УСТРОЙСТВА */
@media (max-width: 1024px) {
    .hero-rooster h1 { font-size: 2.2rem; }
    .hero-rooster .btn-rooster-xl { font-size: 1.1rem; padding: 0.9rem 2rem; }
}

@media (max-width: 768px) {
    /* Активируем бургер */
    .burger-menu {
        display: flex;
    }

    /* Скрываем обычное меню */
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: rgba(15, 10, 21, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem 1rem;
        gap: 1.5rem;
        transition: var(--transition);
        z-index: 1000;
        border-right: 2px solid var(--tiger-orange);
        overflow-y: auto;
    }

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

    .main-nav a {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    /* Адаптируем контент */
    .header-rooster .container {
        padding: 1rem;
    }

    .hero-rooster {
        padding: 3rem 5% 2rem;
    }

    .hero-rooster h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-rooster-xl {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }

    .btn-rooster-xxl {
        padding: 1rem 2.5rem;
        font-size: 1.2rem;
    }

    .game-grid,
    .live-events-grid,
    .esports-events-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .game-card img,
    .event-card img {
        height: 160px;
    }

    .game-card h4,
    .event-card h4 {
        font-size: 1.2rem;
    }

    article h2 {
        font-size: 1.8rem;
    }

    article h3 {
        font-size: 1.3rem;
    }

    article p {
        font-size: 1rem;
    }

    table {
        font-size: 0.85rem;
    }

    table th,
    table td {
        padding: 0.7rem;
    }

    .cta-rooster h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    .hero-rooster h1 {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .btn-rooster-gold {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }

    .btn-rooster-xl {
        padding: 0.7rem 1.8rem;
        font-size: 1rem;
    }

    .btn-rooster-xxl {
        padding: 0.9rem 2.2rem;
        font-size: 1.1rem;
    }

    .game-card img,
    .event-card img {
        height: 140px;
    }

    .game-card h4,
    .event-card h4 {
        font-size: 1.1rem;
    }

    article h2 {
        font-size: 1.6rem;
    }

    article h3 {
        font-size: 1.2rem;
    }

    .rooster-quote {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .trust-badges {
        gap: 1rem;
    }

    .trust-badges img {
        height: 32px;
    }
}

@media (max-width: 320px) {
    .hero-rooster h1 {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn-rooster-xl {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }

    .game-card img,
    .event-card img {
        height: 120px;
    }

    .game-card h4,
    .event-card h4 {
        font-size: 1rem;
    }

    article h2 {
        font-size: 1.4rem;
    }

    .cta-rooster h2 {
        font-size: 1.5rem;
    }
}

/* 🎯 CTA СЕКЦИИ */
.cta-rooster {
    background: linear-gradient(135deg, var(--royal-purple), #1a0f2a);
    padding: 5rem 5% 4rem;
    text-align: center;
    border-top: 2px solid var(--tiger-orange);
    margin: 3rem 0 0;
}

.cta-rooster h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

/* 🖋️ DETAILS / FAQ */
details {
    background: var(--card-bg);
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

summary {
    padding: 1.2rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    outline: none;
    background: rgba(255, 107, 53, 0.05);
    transition: var(--transition);
}

summary:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--gold);
}

details[open] summary {
    background: var(--tiger-orange);
    color: #000;
}

details p {
    padding: 1.5rem;
    margin: 0;
    background: rgba(255, 107, 53, 0.03);
}

/* 🖥️ FOOTER */
.footer-rooster {
    background: #0A0610;
    padding: 3rem 5% 2rem;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
}

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

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-rooster p {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.social-icons img {
    height: 32px;
    filter: grayscale(1) brightness(0.8);
    transition: var(--transition);
}

.social-icons img:hover {
    filter: grayscale(0) brightness(1.2);
    transform: scale(1.1);
}

/* ⚡ АНИМАЦИИ */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

.btn-rooster-gold.new {
    animation: pulse 2s infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 🚫 ДЛЯ СЛАБЫХ УСТРОЙСТВ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* 🧩 ДОПОЛНИТЕЛЬНАЯ АДАПТАЦИЯ КАРТИНОК */
img {
    object-fit: cover;
    aspect-ratio: 16/9;
}

.game-card img,
.event-card img {
    aspect-ratio: 4/3;
}

/* АДАПТАЦИЯ ТЕКСТА ПОД ЭКРАН */
h1 { font-size: clamp(1.5rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 4vw, 2rem); }
h3 { font-size: clamp(1.1rem, 3.5vw, 1.5rem); }
p { font-size: clamp(0.9rem, 2.5vw, 1.05rem); }

/* 📱 БУРГЕР JS — ДОБАВЬ ЭТОТ СКРИПТ В КОНЕЦ <body> */