/* FAVORIT V6 - Luxury Casino - Index */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
    --gold: #d4af37;
    --gold-light: #f7c948;
    --gold-dark: #b8941e;
    --orange: #f59e0b;
    --red: #dc2626;
    --green: #10b981;
    --navy: #0f172a;
    --navy-light: #1e293b;
    --navy-lighter: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-gold: var(--gold);
    --border: rgba(212, 175, 55, 0.2);
    --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2vw, 1.0625rem);
    line-height: 1.6;
    color: var(--text-primary);
    background: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
    min-height: 100vh;
    padding: clamp(1rem, 3vw, 2rem);
    position: relative;
}

/* Animated stars */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent);
    background-size: 200% 200%;
    opacity: 0.05;
    animation: sparkle 100s linear infinite;
    pointer-events: none;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.03; }
    50% { opacity: 0.08; }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: clamp(1.5rem, 3vw, 2rem);
    border: 2px solid var(--border);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(212, 175, 55, 0.1);
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gold top border */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--orange), var(--gold));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    border-radius: 2rem 2rem 0 0;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    position: relative;
}

h1::before {
    content: '🎰';
    display: block;
    font-size: clamp(3rem, 8vw, 4.5rem);
    margin-bottom: 1rem;
    animation: spin 8s linear infinite;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShine 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

@keyframes goldShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin: clamp(2rem, 5vw, 3rem) 0;
}

.stat {
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-lighter) 100%);
    border: 2px solid var(--border);
    border-radius: 1.25rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

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

.stat-value {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

nav {
    margin-top: clamp(2rem, 5vw, 3rem);
}

ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

li {
    animation: cardSlide 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

li:nth-child(1) { animation-delay: 0.1s; }
li:nth-child(2) { animation-delay: 0.2s; }
li:nth-child(3) { animation-delay: 0.3s; }
li:nth-child(4) { animation-delay: 0.4s; }
li:nth-child(5) { animation-delay: 0.5s; }

@keyframes cardSlide {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

a {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-lighter) 100%);
    border: 2px solid var(--border);
    border-radius: 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.0625rem);
    line-height: 1.5;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    min-height: 85px;
}

/* Gold glow effect */
a::before {
    content: '';
    position: absolute;
    inset: -100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

a:hover::before {
    opacity: 1;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

a:hover,
a:focus-visible {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 
        var(--shadow-gold),
        inset 0 1px 0 rgba(212, 175, 55, 0.1);
}

.number {
    flex-shrink: 0;
    width: clamp(3rem, 6vw, 3.75rem);
    height: clamp(3rem, 6vw, 3.75rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: var(--navy);
    font-weight: 900;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    border-radius: 50%;
    position: relative;
    box-shadow: 
        0 4px 12px rgba(212, 175, 55, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

a:hover .number {
    transform: scale(1.15);
    box-shadow: 
        0 8px 20px rgba(212, 175, 55, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.language-switcher {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--navy-light), var(--navy-lighter));
    padding: 1rem 1.5rem;
    border-radius: 3rem;
    border: 2px solid var(--border);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.language-switcher:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6),
        var(--shadow-gold);
}

.lang-label {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
}

.language-switcher select {
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.language-switcher select:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 0.375rem;
}

footer {
    margin-top: clamp(2rem, 5vw, 3rem);
    padding-top: clamp(1.5rem, 4vw, 2rem);
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 500;
}

@media (max-width: 640px) {
    body {
        padding: 1rem;
    }
    
    .container {
        padding: 1.5rem;
    }
    
    ul {
        grid-template-columns: 1fr;
    }
    
    .language-switcher {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 1.125rem;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 3rem;
    }
}

@media (min-width: 1024px) {
    ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (prefers-contrast: high) {
    a,
    .stat {
        border-width: 3px;
    }
}

@media print {
    body {
        background: white;
        color: black;
    }
    
    body::before {
        display: none;
    }
    
    .container {
        box-shadow: none;
        border-color: black;
    }
    
    .language-switcher {
        display: none;
    }
}

/* ===========================================================================
   CTA SECTION (Call-to-Action Block)
   Стили для кнопки призыва к действию на index страницах
   =========================================================================== */

.cta-section {
    margin: clamp(2rem, 5vw, 3rem) 0;
}

.cta-block {
    background: linear-gradient(135deg, var(--primary, #6366f1) 0%, var(--secondary, #8b5cf6) 100%);
    color: white;
    border-radius: clamp(1rem, 2vw, 1.5rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmerCta 3s infinite;
}

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

.cta-block h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: white;
    position: relative;
    z-index: 1;
}

.cta-block h3::before {
    content: '🎰 ';
}

.cta-description {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: clamp(0.875rem, 2vw, 1.125rem) clamp(1.5rem, 4vw, 2.5rem);
    background: white;
    color: var(--primary, #6366f1);
    font-weight: 800;
    font-size: clamp(1rem, 2vw, 1.125rem);
    border: none;
    border-radius: 3rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 52px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-button::after {
    content: '→';
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.cta-button:hover::after {
    transform: translateX(5px);
}

/* ===========================================================================
   LANGUAGE SWITCHER FOOTER (Переключатель языков в футере)
   =========================================================================== */

.language-switcher-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-secondary, rgba(0, 0, 0, 0.05));
    border-radius: 1rem;
}

.lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    text-decoration: none;
    border-radius: 0.75rem;
    background: var(--bg-primary, white);
    border: 2px solid transparent;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-flag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary, #6366f1);
}

.lang-flag.active {
    border-color: var(--primary, #6366f1);
    background: var(--primary, #6366f1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* ===========================================================================
   RESPONSIVE для CTA и Language Switcher
   =========================================================================== */

@media (max-width: 640px) {
    .cta-block {
        padding: 1.5rem;
        border-radius: 1rem;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .language-switcher-footer {
        padding: 0.75rem;
        gap: 0.375rem;
    }
    
    .lang-flag {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

@media (prefers-color-scheme: dark) {
    .language-switcher-footer {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .lang-flag {
        background: rgba(255, 255, 255, 0.1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .lang-flag:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* FAVORIT: Кастомизация CTA для тёмной темы */
.cta-block {
    background: linear-gradient(135deg, var(--gold, #d4af37) 0%, var(--orange, #f59e0b) 100%);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
}

.cta-button {
    background: var(--navy, #0f172a);
    color: var(--gold-light, #f7c948);
}

.cta-button:hover {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.language-switcher-footer {
    background: var(--navy-light, #1e293b);
}

.lang-flag {
    background: var(--navy-lighter, #334155);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.lang-flag:hover {
    border-color: var(--gold, #d4af37);
}

.lang-flag.active {
    background: var(--gold, #d4af37);
    border-color: var(--gold, #d4af37);
}
