/* Современные стили для онлайн-казино - обновленная версия с изображениями */
/* Темная тема с градиентами и акцентными цветами */
/* Все комментарии на русском языке */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* CSS переменные для темной темы */
:root {
    /* Основные цвета */
    --primary-gold: #FFD700;
    --primary-gold-hover: #FFA500;
    --neon-blue: #00CFFF;
    --neon-blue-hover: #0099CC;
    --accent-red: #FF0055;
    --accent-red-hover: #CC0044;
    
    /* Градиенты */
    --gradient-dark: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --gradient-blue: linear-gradient(135deg, #00CFFF 0%, #0099CC 100%);
    --gradient-red: linear-gradient(135deg, #FF0055 0%, #CC0044 100%);
    --gradient-card: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-offer-day: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF0055 100%);
    
    /* Текстовые цвета */
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --text-gold: #FFD700;
    
    /* Фоновые цвета */
    --bg-primary: #0a0a1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --bg-overlay: rgba(0, 0, 0, 0.8);
    
    /* Тени и эффекты */
    --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.6);
    --border-radius: 12px;
    --border-radius-large: 20px;
    
    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Светлая тема (автоматическое переключение) */
@media (prefers-color-scheme: light) {
    :root {
        --text-primary: #1a1a2e;
        --text-secondary: #333333;
        --text-muted: #666666;
        --bg-primary: #f8f9fa;
        --bg-secondary: #ffffff;
        --bg-card: #ffffff;
        --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.1);
        --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
    }
}

/* Базовые стили */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--gradient-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Контейнеры */
.nav__container,
.hero__container,
.offer-of-day__container,
.offers__container,
.games__container,
.bonuses__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Навигация */
.header {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.nav {
    padding: 1rem 0;
}

.nav__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Логотип в круглом контейнере - загружается из /public/assets/images/casino/logo.png */
.brand-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111; /* fallback если логотип отсутствует */
    border: 2px solid var(--primary-gold);
    box-shadow: var(--shadow-glow);
}

.brand-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nav__logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.nav__menu {
    display: none;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-normal);
    position: relative;
}

.nav__link:hover {
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: var(--transition-normal);
}

.nav__link:hover::after {
    width: 100%;
}

/* Главная секция */
.hero {
    padding: 4rem 0 2rem;
    text-align: center;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero__title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    position: relative;
    z-index: 1;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.hero__btn::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: var(--transition-normal);
}

.hero__btn:hover::before {
    left: 100%;
}

.hero__btn--primary {
    background: linear-gradient(135deg, #FF0055 0%, #FF6B6B 50%, #FFD700 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: hero-glow 3s ease-in-out infinite alternate;
}

.hero__btn--primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 0 30px rgba(255, 0, 85, 0.6),
        0 0 60px rgba(255, 107, 107, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero__btn--secondary {
    background: var(--gradient-gold);
    color: #000;
    border: 2px solid var(--primary-gold);
}

.hero__btn--secondary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.4);
    background: var(--gradient-blue);
    color: white;
}

@keyframes hero-glow {
    0% {
        box-shadow: 
            0 0 20px rgba(255, 0, 85, 0.4),
            0 6px 25px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 
            0 0 40px rgba(255, 0, 85, 0.6),
            0 0 80px rgba(255, 107, 107, 0.4),
            0 6px 25px rgba(0, 0, 0, 0.3);
    }
}

/* Предложение дня - оранжевый градиент с анимациями */
.offer-day {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF0055 100%);
    border-radius: var(--border-radius-large);
    padding: 2.4rem 1.6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(255, 165, 0, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--primary-gold);
    animation: 
        glow-pulse 2s ease-in-out infinite alternate,
        float-effect 6s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    transform: perspective(1000px) rotateX(2deg);
}

/* Яркие анимации для предложения дня */
@keyframes rainbow-flow {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes mega-glow {
    0% {
        box-shadow: 
            0 0 50px rgba(255, 107, 107, 0.6),
            0 0 100px rgba(255, 217, 61, 0.4),
            0 20px 40px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 
            0 0 80px rgba(255, 107, 107, 0.8),
            0 0 150px rgba(255, 217, 61, 0.6),
            0 0 200px rgba(107, 207, 127, 0.4),
            0 20px 40px rgba(0, 0, 0, 0.3);
    }
}

@keyframes float-effect {
    0%, 100% {
        transform: perspective(1000px) rotateX(2deg) translateY(0px);
    }
    50% {
        transform: perspective(1000px) rotateX(2deg) translateY(-10px);
    }
}

@keyframes glow-pulse {
    0% {
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.4),
            0 0 60px rgba(255, 165, 0, 0.3),
            0 20px 40px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 
            0 0 50px rgba(255, 215, 0, 0.6),
            0 0 100px rgba(255, 165, 0, 0.5),
            0 0 150px rgba(255, 0, 85, 0.3),
            0 20px 40px rgba(0, 0, 0, 0.3);
    }
}

.offer-badge {
    position: absolute;
    top: 5px;
    right: 20px;
    background: var(--accent-red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-card);
    animation: bounce 1s ease-in-out infinite alternate;
    z-index: 10;
}

@keyframes super-bounce {
    0% { 
        transform: translateY(0) scale(1);
    }
    100% { 
        transform: translateY(-8px) scale(1.05);
    }
}

@keyframes badge-glow {
    0% {
        box-shadow: 
            0 0 20px rgba(255, 23, 68, 0.6),
            0 0 40px rgba(255, 87, 34, 0.4),
            0 5px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(255, 23, 68, 0.8),
            0 0 60px rgba(255, 87, 34, 0.6),
            0 0 80px rgba(255, 152, 0, 0.4),
            0 5px 15px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 
            0 0 20px rgba(255, 23, 68, 0.6),
            0 0 40px rgba(255, 87, 34, 0.4),
            0 5px 15px rgba(0, 0, 0, 0.3);
    }
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}

/* Стили для элементов предложения дня в новой структуре */
.offer-day .offer-of-day__title {
    font-size: 2rem; /* Уменьшенный размер */
    font-weight: 900;
    color: white;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: text-glow 3s ease-in-out infinite alternate;
}

@keyframes text-glow {
    0% {
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }
    100% {
        text-shadow: 
            0 2px 10px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(255, 255, 255, 0.3);
    }
}

.offer-day .offer-of-day__slogan {
    font-size: 1rem; /* Уменьшенный размер */
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.6rem;
    font-weight: 500;
    animation: text-pulse 2s ease-in-out infinite alternate;
}

.offer-day .offer-of-day__bonus {
    margin-bottom: 1.6rem; /* Уменьшенный отступ */
}

@keyframes text-pulse {
    0% {
        opacity: 0.9;
    }
    100% {
        opacity: 1;
    }
}

.offer-day .bonus-amount {
    display: block;
    font-size: 2.4rem; /* Уменьшенный размер */
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.4rem;
    animation: bonus-glow 2.5s ease-in-out infinite alternate;
}

@keyframes bonus-glow {
    0% {
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }
    100% {
        text-shadow: 
            0 2px 10px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(255, 255, 255, 0.3);
    }
}

.offer-day .bonus-description {
    display: block;
    font-size: 1rem; /* Уменьшенный размер */
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    animation: text-pulse 2s ease-in-out infinite alternate;
}

.offer-day .offer-of-day__details {
    font-size: 0.9rem; /* Уменьшенный размер */
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.6rem; /* Уменьшенный отступ */
    font-weight: 500;
}

/* Секция предложений */
.offers {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.offers__title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 3rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Сетка 16 карт после offer-day ===== */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки на десктопе */
    gap: 16px 20px; /* Отступы между карточками */
    grid-auto-rows: minmax(auto, 1fr); /* Автоматические строки */
}

/* ===== Карточка оффера: компактная высота ===== */
.offer-card, .offer-day {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0e131a, #111827); /* Темный градиент для компактности */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); /* Мягкая тень */
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: var(--transition-normal);
    position: relative;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: var(--transition-slow);
}

.offer-card:hover::before {
    left: 100%;
}

.offer-card:hover {
    transform: translateY(-8px) scale(1.02); /* Легкое масштабирование */
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3), var(--shadow-hover);
}

/* 
Медиа-блок 16:9 с ограничением по высоте: не растягивать плитки
ВАЖНО: Все изображения используют стандартизированные имена файлов:
- Нижний регистр для совместимости с разными ОС
- Дефисы вместо пробелов для корректных URL
- Расположение: /public/assets/images/casino/ для портативности
*/
.offer-media {
    position: relative;
    aspect-ratio: 16/9; /* Фиксированное соотношение сторон 16:9 */
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    height: clamp(140px, 22vw, 220px); /* Ограничение высоты для компактности */
}

.offer-media img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Обрезка с сохранением пропорций */
    display: block;
    transition: transform 0.3s ease; /* Плавная анимация при наведении */
}

/* Эффект увеличения изображения при наведении на карточку */
.offer-card:hover .offer-media img,
.offer-day:hover .offer-media img {
    transform: scale(1.05); /* Легкое увеличение */
}

/* Анимированный градиентный фон для всех карточек */
.animated-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #ff0055, #00cfff, #ffd700, #ff0055);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    position: relative;
}

/* Анимация движения градиента - цикл 10 секунд */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Падающие масти - псевдоэлементы с анимацией */
.animated-bg::before {
    content: "♥";
    position: absolute;
    top: -10%;
    left: 20%;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.3);
    animation: floatSuit 12s linear infinite;
    z-index: 1;
}

.animated-bg::after {
    content: "♠";
    position: absolute;
    top: -20%;
    left: 70%;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.3);
    animation: floatSuit 15s linear infinite;
    z-index: 1;
}

/* Анимация падения мастей - 12-15 секунд с задержкой */
@keyframes floatSuit {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(120%);
    }
}

/* Дополнительные масти для разнообразия */
.animated-bg .suit-diamond {
    content: "♦";
    position: absolute;
    top: -15%;
    left: 50%;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.25);
    animation: floatSuit 14s linear infinite;
    z-index: 1;
}

.animated-bg .suit-club {
    content: "♣";
    position: absolute;
    top: -25%;
    left: 30%;
    font-size: 30px;
    color: rgba(255, 255, 255, 0.25);
    animation: floatSuit 13s linear infinite;
    z-index: 1;
}

/* Эффект свечения при наведении на карточки */
.offer-media:hover {
    box-shadow: 0 0 20px 5px rgba(255, 215, 0, 0.6);
    transition: box-shadow 0.6s ease-in-out;
}

/* ===== Отдельная строка для Предложения дня ===== */
.offer-day-row {
    margin-bottom: 24px; /* визуально отделяем от сетки ниже */
    position: relative;
}

/* Убраны лишние эффекты частиц для менее яркого дизайна */

.offer-day {
    border: 2px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    background: linear-gradient(160deg, #1a1f29, #2a2f3a);
    border-radius: 16px;
}

/* -20% вертикали у offer-day */
.offer-day .offer-media {
    height: clamp(120px, 18vw, 180px); /* Уменьшенная высота для предложения дня */
}

.offer-day .offer-body {
    padding-top: 10px; /* Уменьшенные отступы */
    padding-bottom: 10px;
}

.offer-day-media {
    border: 2px solid #ffd700;
    animation: glow 3s ease-in-out infinite;
}

/* Анимация свечения для предложения дня - пульсация золотого свечения */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px #ffd700;
    }
    50% {
        box-shadow: 0 0 20px #ffd700;
    }
    100% {
        box-shadow: 0 0 5px #ffd700;
    }
}

/* Lottie плеер для анимации монеты */
lottie-player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    z-index: 2;
}

/* CSS fallback для вращающейся монеты если Lottie недоступен */
.coin-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: none; /* Скрыт по умолчанию, показывается только если Lottie не работает */
}

.coin {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    border: 3px solid #ffa500;
    animation: coinSpin 2s linear infinite;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Анимация вращения монеты */
@keyframes coinSpin {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

/* Текстовые отступы — компактнее */
.offer-body {
    padding: 12px 14px 6px; /* Компактные отступы */
    flex-grow: 1;
}

.offer-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.offer-benefit {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    font-weight: 500;
    line-height: 1.25; /* Компактная высота строки */
    max-height: 3.2em; /* Ограничение высоты */
    overflow: hidden;
}

/* Панель кнопок прижать вниз, выровнять и сделать одинаковую высоту */
.offer-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    padding: 10px 14px 14px; /* Компактные отступы */
}

.btn {
    height: 42px; /* Фиксированная высота для всех кнопок */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48%; /* Минимальная ширина */
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::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: var(--transition-normal);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%); /* Плавный переход зеленый → темно-зеленый */
}

.btn-secondary {
    background: var(--gradient-gold);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    background: var(--gradient-red); /* Плавный переход золотой → красный */
    color: white;
}

/* CTA кнопка для предложения дня - оранжевый градиент */
.offer-day .cta-button {
    background: var(--gradient-gold);
    color: #000;
    font-size: 1.1rem; /* Уменьшенный размер */
    font-weight: 800;
    padding: 1rem 2.4rem; /* Уменьшенные отступы */
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 48px; /* Уменьшенная высота */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: button-pulse 2s ease-in-out infinite alternate;
}

.cta-button::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: var(--transition-normal);
}

.cta-button:hover::before {
    left: 100%;
}

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

@keyframes button-pulse {
    0% {
        box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
    }
    100% {
        box-shadow: 0 8px 35px rgba(255, 215, 0, 0.6);
    }
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
    background: var(--gradient-red);
    color: white;
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Секция игр */
.games {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.games__title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 3rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.game-card {
    background: var(--gradient-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-gold);
}

.game-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gradient-blue);
}

.game-card__title {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-card__benefit {
    padding: 0 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.game-card__actions {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}

/* Секция популярных предложений */
.popular-offers {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.popular-offers__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.popular-offers__title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 3rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Сетка популярных предложений */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки на десктопе */
    gap: 16px; /* Отступы между карточками */
}

/* Мини-карточки популярных предложений */
.popular-card {
    background: var(--gradient-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.popular-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-gold);
}

.popular-media {
    width: 100%;
    aspect-ratio: 16/9; /* Соотношение сторон 16:9 */
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.popular-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popular-body {
    padding: 16px 16px 8px;
    flex-grow: 1;
}

.popular-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popular-benefit {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Ограничение до 2 строк */
    line-clamp: 2; /* Стандартное свойство для совместимости */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-actions {
    padding: 12px 16px 16px;
    margin-top: auto;
}

/* Минималистичный футер сайта */
.site-footer {
    background: #0b0f14; /* Темный фон в стиле сайта */
    color: #eaeef3; /* Высококонтрастный текст */
    text-align: center; /* Центрирование на всех экранах */
    border-top: 1px solid rgba(255, 215, 0, 0.2); /* Тонкая золотая линия сверху */
}

.footer-inner {
    max-width: 1200px; /* Максимальная ширина контента */
    margin: 0 auto; /* Центрирование */
    padding: 28px 16px; /* Отступы для десктопа */
}

.footer-inner p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0; /* Убираем стандартные отступы параграфа */
    font-weight: 500;
    color: #eaeef3;
}

/* Адаптивность футера */
@media (max-width: 768px) {
    .footer-inner {
        padding: 18px 12px; /* Уменьшенные отступы на мобильных */
    }
    
    .footer-inner p {
        font-size: 0.9rem; /* Немного меньший шрифт на мобильных */
    }
}

/* Адаптивность - Планшеты (992px-1200px) */
@media (max-width: 1200px) {
    .nav__menu {
        display: flex;
    }
    
    .hero__title {
        font-size: 4rem;
    }
    
    .hero__subtitle {
        font-size: 1.5rem;
    }
    
    /* Планшет: 2 колонки */
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .popular-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшете */
    }
    
    .games__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Медиа-запросы для адаптивности сетки */
@media (max-width: 1200px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%; /* кнопки в столбик */
    }
    
    .offer-actions {
        flex-direction: column;
    }
}

/* Адаптивность - Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .nav__menu {
        display: none;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    /* Адаптивные кнопки в hero на мобильных */
    .hero__actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero__btn {
        min-width: 100%;
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }
    
    /* Компактный блок предложения дня на мобильных */
    .offer-day {
        padding: 1.5rem 1rem; /* Уменьшенные отступы */
    }
    
    .offer-day .offer-of-day__title {
        font-size: 1.5rem; /* Уменьшенный размер заголовка */
        margin-bottom: 0.5rem;
    }
    
    .offer-day .offer-of-day__slogan {
        font-size: 0.9rem; /* Уменьшенный размер слогана */
        margin-bottom: 1rem;
    }
    
    .offer-day .bonus-amount {
        font-size: 1.8rem; /* Уменьшенный размер бонуса */
        margin-bottom: 0.3rem;
    }
    
    .offer-day .bonus-description {
        font-size: 0.9rem; /* Уменьшенный размер описания */
    }
    
    .offer-day .offer-of-day__details {
        font-size: 0.8rem; /* Уменьшенный размер деталей */
        margin-bottom: 1rem;
    }
    
    .offer-day .cta-button {
        font-size: 1rem; /* Уменьшенный размер кнопки */
        padding: 0.8rem 1.5rem;
        height: 42px; /* Уменьшенная высота кнопки */
    }
    
    /* Мобильная версия: 2 колонки для офферов */
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 16px; /* Уменьшенные отступы */
    }
    
    .popular-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на мобильных */
        gap: 12px;
    }
    
    .games__grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки для игр */
        gap: 12px;
    }
    
    /* Компактные кнопки на мобильных */
    .btn {
        font-size: 0.85rem; /* Уменьшенный размер текста кнопок */
        height: 36px; /* Уменьшенная высота */
        padding: 0.5rem 0.8rem;
    }
    
    .offer-actions {
        gap: 8px; /* Уменьшенный отступ между кнопками */
        padding: 8px 12px 12px;
    }
    
    /* Адаптивность логотипа на мобильных */
    .brand-badge {
        width: 40px;
        height: 40px;
    }
    
    /* Адаптивные анимации для мобильных устройств */
    .animated-bg::before {
        font-size: 24px; /* Уменьшенный размер мастей на мобильных */
    }
    
    .animated-bg::after {
        font-size: 20px; /* Уменьшенный размер мастей на мобильных */
    }
    
    /* Уменьшенные размеры Lottie и fallback монеты на мобильных */
    lottie-player {
        width: 60px;
        height: 60px;
    }
    
    .coin {
        width: 50px;
        height: 50px;
    }
}

/* Адаптивность - Очень узкие экраны (до 480px) */
@media (max-width: 480px) {
    /* Еще более компактный блок предложения дня */
    .offer-day {
        padding: 1.2rem 0.8rem; /* Еще меньше отступы */
    }
    
    .offer-day .offer-of-day__title {
        font-size: 1.3rem; /* Еще меньше заголовок */
    }
    
    .offer-day .bonus-amount {
        font-size: 1.5rem; /* Еще меньше бонус */
    }
    
    .offer-day .cta-button {
        font-size: 0.9rem; /* Еще меньше кнопка */
        height: 38px;
    }
    
    /* Еще более компактные hero кнопки на узких экранах */
    .hero__btn {
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;
    }
    
    /* На очень узких экранах - 1 колонка */
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .popular-grid {
        grid-template-columns: 1fr; /* 1 колонка на очень узких экранах */
        gap: 10px;
    }
    
    .games__grid {
        grid-template-columns: 1fr; /* 1 колонка на очень узких экранах */
        gap: 10px;
    }
    
    /* Еще более компактные кнопки */
    .btn {
        font-size: 0.8rem;
        height: 32px;
        padding: 0.4rem 0.6rem;
    }
    
    /* Еще больше уменьшаем плотность анимаций на очень узких экранах */
    .animated-bg::before {
        font-size: 20px;
        left: 15%;
    }
    
    .animated-bg::after {
        font-size: 18px;
        left: 75%;
    }
    
    /* Минимальные размеры для очень узких экранов */
    lottie-player {
        width: 50px;
        height: 50px;
    }
    
    .coin {
        width: 40px;
        height: 40px;
    }
}

/* Адаптивность - Большие экраны (1200px+) */
@media (min-width: 1200px) {
    .nav__container,
    .hero__container,
    .offer-of-day__container,
    .offers__container,
    .games__container,
    .bonuses__container {
        padding: 0 2rem;
    }
}

/* Анимации появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.offer-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.offer-card:nth-child(1) { animation-delay: 0.1s; }
.offer-card:nth-child(2) { animation-delay: 0.2s; }
.offer-card:nth-child(3) { animation-delay: 0.3s; }
.offer-card:nth-child(4) { animation-delay: 0.4s; }
.offer-card:nth-child(5) { animation-delay: 0.5s; }
.offer-card:nth-child(6) { animation-delay: 0.6s; }
.offer-card:nth-child(7) { animation-delay: 0.7s; }
.offer-card:nth-child(8) { animation-delay: 0.8s; }
.offer-card:nth-child(9) { animation-delay: 0.9s; }
.offer-card:nth-child(10) { animation-delay: 1.0s; }
.offer-card:nth-child(11) { animation-delay: 1.1s; }
.offer-card:nth-child(12) { animation-delay: 1.2s; }
.offer-card:nth-child(13) { animation-delay: 1.3s; }
.offer-card:nth-child(14) { animation-delay: 1.4s; }
.offer-card:nth-child(15) { animation-delay: 1.5s; }
.offer-card:nth-child(16) { animation-delay: 1.6s; }

/* Доступность - отключение анимаций для пользователей с ограниченными возможностями */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Отключаем все анимации для пользователей с ограниченными возможностями */
    .animated-bg {
        animation: none;
        background: linear-gradient(-45deg, #ff0055, #00cfff, #ffd700);
    }
    
    .animated-bg::before,
    .animated-bg::after {
        animation: none;
        display: none;
    }
    
    .offer-day-media {
        animation: none;
    }
    
    .coin {
        animation: none;
    }
    
    lottie-player {
        display: none;
    }
}

/* Оптимизация производительности - использование GPU ускорения */
.animated-bg,
.offer-media,
.coin,
lottie-player {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Оптимизация для слабых устройств */
@media (max-width: 768px) and (max-height: 600px) {
    .animated-bg::before,
    .animated-bg::after {
        animation-duration: 20s; /* Замедляем анимации на слабых устройствах */
    }
    
    .animated-bg {
        animation-duration: 15s; /* Замедляем градиент на слабых устройствах */
    }
}

/* Фокус для клавиатурной навигации */
button:focus,
a:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Улучшенная типографика */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

/* Стили для скроллбара */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold-hover);
}
