
/* =========================================
   1. Reset & Variables (Modern CSS Setup)
   ========================================= */
:root {
    /* Цветовая палитра (Dark Premium Theme) */
    --bg-body: #0f1115;
    --bg-card: #161b22;
    --bg-header: #121212;
    
    --primary: #ff4b1f; /* Огненный градиент старт */
    --primary-light: #ff9068; /* Огненный градиент конец */
    --accent: #ffd700; /* Золото */
    --secondary: #1f4068;
    
    --text-main: #e0e6ed;
    --text-muted: #94a3b8;
    --text-dark: #0f1115;
    
    --success: #10b981;
    --danger: #ef4444;

    /* Типографика и размеры */
    --font-main: 'Montserrat', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 2rem;
    --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(255, 75, 31, 0.4);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Сброс стилей */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   2. Layout & Grid System
   ========================================= */
.container {
    width: 100%;
    max-width: 75rem; /* 1200px */
    margin: 0 auto;
    padding: 0 1.5rem;
}

.row-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.col-xs-12 {
    width: 100%;
    flex: 0 0 100%;
}

.text-center {
    text-align: center;
}

.pa-0 {
    padding: 0 !important;
}

/* =========================================
   3. Typography
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

h1 span {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    font-size: 1.2em;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    position: relative;
    padding-bottom: 0.5rem;
    margin-top: 3rem;
    color: var(--accent);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 4rem;
    height: 0.25rem;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: var(--radius-sm);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

ul {
    list-style: none;
    margin-bottom: 2rem;
    padding-left: 0;
}

ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

ul li::before {
    content: '🔥'; /* Или SVG иконка */
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-size: 1.2rem;
}

/* =========================================
   4. Header & Hero Section
   ========================================= */
header.bg-casino {
    background: radial-gradient(circle at center, #240b36 0%, #0f1115 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

/* Декоративный фон */
header.bg-casino::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+');
    opacity: 0.3;
    pointer-events: none;
    animation: rotateBackground 100s linear infinite;
}

.table {
    display: table;
    width: 100%;
    height: 100%;
    z-index: 1;
    position: relative;
}

.center {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

/* Анимация появления */
.center > * {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.center > *:nth-child(1) { animation-delay: 0.1s; }
.center > *:nth-child(2) { animation-delay: 0.3s; }
.center > *:nth-child(3) { animation-delay: 0.5s; }

/* =========================================
   5. Interactive Elements (Buttons)
   ========================================= */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin: 1.5rem 0;
    text-decoration: none;
    user-select: none;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 75, 31, 0.6);
}

.button:hover::before {
    opacity: 1;
}

.button:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px rgba(255, 75, 31, 0.4);
}

/* =========================================
   6. Content Styles & Images
   ========================================= */
.content {
    padding: 4rem 0;
    background: var(--bg-body);
}

.img {
    margin: 3rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.img::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    pointer-events: none;
}

img.lazyload, img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.img:hover img {
    transform: scale(1.05);
}

/* =========================================
   7. Tables (Overriding Inline Styles)
   ========================================= */
div[align="center"] {
    width: 100%;
    overflow-x: auto; /* Адаптивность для таблиц */
    margin: 2rem 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0;
    background: var(--bg-card);
    border: none !important;
}

/* Принудительное переопределение инлайн стилей */
table td {
    padding: 1rem 1.5rem !important;
    border: 1px solid #2d3748 !important;
    color: var(--text-muted) !important;
    font-size: 0.95rem;
    transition: background 0.2s;
}

table tr:first-child td {
    border-top: none !important;
}
table tr:last-child td {
    border-bottom: none !important;
}
table tr td:first-child {
    border-left: none !important;
    color: var(--accent) !important;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
    width: 30%;
}
table tr td:last-child {
    border-right: none !important;
}

table tr:hover td {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-main) !important;
}

/* =========================================
   8. Form Elements (Generic - for potential future use)
   ========================================= */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid #2d3748;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

input:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 75, 31, 0.2);
}

/* =========================================
   9. Footer
   ========================================= */
footer {
    background: var(--bg-header);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

footer p {
    margin: 0;
    opacity: 0.7;
}

/* =========================================
   10. Animations
   ========================================= */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* =========================================
   11. Media Queries (Responsive)
   ========================================= */
@media (max-width: 768px) {
    html {
        font-size: 14px; /* Уменьшаем базовый шрифт */
    }

    h1 {
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    header.bg-casino {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .button {
        width: 100%; /* Кнопка на всю ширину на мобильных */
        padding: 1rem;
    }

    /* Таблица превращается в карточки для очень маленьких экранов? 
       Здесь просто обеспечим скролл */
    div[align="center"] {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table td {
        white-space: normal;
        min-width: 120px;
    }
    
    table tr td:first-child {
        width: auto;
        min-width: 100px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
}
