
/* =========================================
   1. Reset & Variables
   ========================================= */
:root {
    /* Colors */
    --color-bg: #0f1219;
    --color-surface: #1a1f2b;
    --color-surface-hover: #252b3b;
    --color-primary: #ff4b1f;
    --color-primary-dark: #cc2b05;
    --color-accent: #ffd700; /* Gold */
    --color-text-main: #ffffff;
    --color-text-muted: #a0aec0;
    --color-success: #2ecc71;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ff4b1f 0%, #ff9068 100%);
    --gradient-gold: linear-gradient(135deg, #fce38a 0%, #f38181 100%);
    --gradient-dark: linear-gradient(to bottom, #0f1219, #1a1f2b);

    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --line-height: 1.6;
    --radius-sm: 0.25rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;

    /* Spacing */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* =========================================
   2. Layout Utilities
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

.row-center {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

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

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

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

/* =========================================
   3. Header / Hero Section
   ========================================= */
header.bg-casino {
    position: relative;
    background: var(--gradient-dark);
    min-height: 80vh; /* Высота первого экрана */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) 0;
    overflow: hidden;
}

/* Эффект свечения на фоне */
header.bg-casino::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 75, 31, 0.15) 0%, rgba(15, 18, 25, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.table {
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 1;
    position: relative;
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
}

/* Typography in Header */
h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-main);
    text-shadow: 0 0 20px rgba(255, 75, 31, 0.5);
    letter-spacing: -0.02em;
}

h1 span {
    display: block;
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.2em;
    margin-bottom: var(--spacing-xs);
    text-shadow: none;
}

.text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   4. Content Section
   ========================================= */
.content {
    padding: var(--spacing-lg) 0;
}

.content h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--color-accent);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--color-primary);
}

.content p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
    text-align: justify;
}

.content p:last-of-type {
    margin-bottom: var(--spacing-md);
}

/* Images styles */
.img {
    margin: var(--spacing-md) 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-smooth);
}

.img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.img:hover {
    transform: translateY(-5px);
}

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

/* =========================================
   5. Buttons (Interactive Elements)
   ========================================= */
.button {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    border: none;
    box-shadow: 0 10px 25px rgba(255, 75, 31, 0.4);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    text-align: center;
    user-select: none;
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

/* Hover State */
.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 75, 31, 0.6);
    filter: brightness(1.1);
}

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

/* Shine Animation effect on Hover */
.button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: none;
}

.button:hover::after {
    animation: shine 0.75s;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Animation: Pulse (Optional for CTA) */
@keyframes pulse-shadow {
    0% { box-shadow: 0 0 0 0 rgba(255, 75, 31, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 75, 31, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 75, 31, 0); }
}

header .button {
    animation: pulse-shadow 2s infinite;
    font-size: 1.25rem;
    padding: 1.2rem 3rem;
}

/* =========================================
   6. Form Elements (Generic Styling)
   ========================================= */
/* Even though explicit forms aren't in the HTML snippet, 
   these are required by the prompt instructions. */

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--color-surface);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--color-text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    outline: none;
    margin-bottom: 1rem;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);
    background-color: var(--color-surface-hover);
    box-shadow: 0 0 0 4px rgba(255, 75, 31, 0.1);
}

/* Checkboxes and Radios Customization */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--color-primary);
    width: 1.2em;
    height: 1.2em;
    cursor: pointer;
}

/* =========================================
   7. Footer
   ========================================= */
footer {
    background-color: #000;
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-lg);
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer p {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.5;
}

/* =========================================
   8. Responsive Design (Mobile First Approach)
   ========================================= */

/* Tablet & Desktop adjustments */
@media (min-width: 768px) {
    .row-center {
        flex-direction: row;
    }
    
    .img {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile specific fixes */
@media (max-width: 767px) {
    :root {
        --spacing-lg: 2.5rem;
    }

    header.bg-casino {
        min-height: auto;
        padding: 4rem 0;
    }

    .content p {
        text-align: left;
    }

    .button {
        width: 100%; /* Full width buttons on mobile */
        max-width: 320px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}
