/* ========================================================================= */
/* 1. БАЗОВЫЕ СТИЛИ И ПЕРЕМЕННЫЕ */
/* ========================================================================= */

:root {
    /* Цветовая палитра Mad Casino */
    --color-bg-dark: #100f1c; /* Основной фон */
    --color-bg-secondary: #1a1827; /* Фон секций */
    --color-accent-red: #ff4d4d; /* Главный акцент - Красный */
    --color-accent-purple: #6e44ff; /* Вторичный акцент - Фиолетовый */
    --color-text-light: #ffffff;
    --color-text-faded: #a0a0a0;
    
    /* Шрифты */
    --font-primary: 'Roboto', sans-serif;
    
    /* Границы и тени */
    --shadow-deep: 0 10px 30px rgba(0, 0, 0, 0.5);
    --border-radius: 8px;
}

/* Сброс стилей и установка шрифта */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden; /* Предотвращение горизонтального скролла */
}

/* Общий контейнер для центрирования контента */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Стили для ссылок по умолчанию */
a {
    color: var(--color-accent-red);
    text-decoration: none;
    transition: color 0.3s, opacity 0.3s;
}

a:hover {
    color: var(--color-text-light);
    opacity: 0.8;
}

/* Стили для заголовков */
h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.5); /* Неоновый эффект */
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--color-accent-purple);
    margin-bottom: 40px;
    border-bottom: 2px solid var(--color-accent-red);
    display: inline-block;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.5rem;
    color: var(--color-text-light);
}

/* Выделение ключевых слов жирным */
p strong, li strong {
    color: var(--color-accent-red);
}

/* ========================================================================= */
/* 2. КНОПКИ (BUTTONS) */
/* ========================================================================= */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    /* Красная кнопка (Регистрация) */
    background-color: var(--color-accent-red);
    color: var(--color-text-light);
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.7);
}

.btn-primary:hover {
    background-color: #ff6666;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 77, 77, 0.9);
}

.btn-login {
    /* Фиолетовая кнопка (Вход) */
    background-color: transparent;
    border: 2px solid var(--color-accent-purple);
    color: var(--color-accent-purple);
}

.btn-login:hover {
    background-color: var(--color-accent-purple);
    color: var(--color-text-light);
}

.btn-cta {
    /* Главный призыв (Очень большая) */
    font-size: 1.2rem;
    padding: 15px 40px;
    background-image: linear-gradient(45deg, var(--color-accent-red), var(--color-accent-purple));
    color: var(--color-text-light);
    box-shadow: 0 0 25px rgba(255, 77, 77, 0.8);
    margin-top: 30px;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(255, 77, 77, 1);
}

.btn-cta-mirror {
    /* Кнопка Зеркала */
    background-color: var(--color-text-light);
    color: var(--color-bg-dark);
    font-size: 1.1rem;
    font-weight: 900;
    margin-top: 20px;
}
.btn-cta-mirror:hover {
    background-color: var(--color-text-faded);
    color: var(--color-bg-dark);
}


/* ========================================================================= */
/* 3. HEADER И НАВИГАЦИЯ */
/* ========================================================================= */

.main-header {
    background-color: var(--color-bg-secondary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-deep);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px; /* Установите высоту вашего логотипа */
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--color-text-light);
    font-weight: 400;
    text-transform: uppercase;
}

.main-nav a:hover {
    color: var(--color-accent-red);
}

.auth-buttons {
    display: flex;
    gap: 15px;
}


/* ========================================================================= */
/* 4. СЕКЦИИ КОНТЕНТА (MAIN) */
/* ========================================================================= */

section {
    padding: 80px 0;
    background-color: var(--color-bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Легкий разделитель */
}

/* Секция Hero (Главный баннер) */
.hero-section {
    padding: 120px 0;
    text-align: center;
    background: url('img/hero-bg.jpg') center center no-repeat; /* Фоновое изображение */
    background-size: cover;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(16, 15, 28, 0.7); /* Темный оверлей для читаемости */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .subtitle {
    font-size: 1.4rem;
    color: var(--color-text-faded);
    margin-bottom: 40px;
}

/* Секция с преимуществами (Инфо) */
.info-section {
    padding-top: 40px;
    padding-bottom: 80px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: var(--color-bg-secondary);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-deep);
    border-left: 5px solid var(--color-accent-purple);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-left: 5px solid var(--color-accent-red);
}

/* Секция Игры */
.games-section {
    text-align: center;
}

.provider-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.provider-logos img {
    height: 40px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.provider-logos img:hover {
    opacity: 1;
}

/* Секция Бонусы */
.bonuses-section {
    background-color: var(--color-bg-secondary);
}

.bonus-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.bonus-item {
    background-color: var(--color-bg-dark);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-accent-red);
    transition: background-color 0.3s;
}

.bonus-item:hover {
    background-color: #1f1d33;
    box-shadow: 0 0 20px rgba(110, 68, 255, 0.5);
}

/* Секция Зеркало */
.mirror-section {
    text-align: center;
    background-image: linear-gradient(135deg, #100f1c, #1f1d33);
}

/* Секция Платежи */
.payments-section {
    text-align: center;
    padding-bottom: 80px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.payment-icons img {
    height: 50px;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: filter 0.3s, opacity 0.3s;
}

.payment-icons img:hover {
    filter: grayscale(0%);
    opacity: 1;
}


/* ========================================================================= */
/* 5. FOOTER */
/* ========================================================================= */

.main-footer {
    background-color: #0d0c18;
    padding: 40px 0;
    font-size: 0.9rem;
    color: var(--color-text-faded);
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-info, .footer-legal {
    flex: 1 1 300px;
}

.footer-info h3, .footer-legal h3 {
    color: var(--color-accent-red);
    margin-bottom: 15px;
    border-bottom: none;
    text-align: left;
}

.copyright {
    flex: 1 1 100%;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-legal a {
    color: var(--color-text-faded);
    margin-right: 15px;
}

.footer-legal a:hover {
    color: var(--color-accent-purple);
}

/* ========================================================================= */
/* 6. АДАПТИВНОСТЬ (MEDIA QUERIES) */
/* ========================================================================= */

@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 2rem;
    }
    
    .main-header .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .main-nav ul {
        gap: 15px;
    }

    .auth-buttons {
        flex-basis: 100%;
        justify-content: center;
    }

    .hero-section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .feature-grid, .bonus-list, .main-footer .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }

    .footer-info, .footer-legal {
        text-align: center;
        flex-basis: 100%;
    }

    .footer-legal a {
        display: block;
        margin: 5px 0;
    }
}