/* Hero Section Styles */
:root {
    --gradient-hero: linear-gradient(135deg, #1e40af, #8b5cf6, #ec4899);
    --white: #ffffff;
    --gold: #fbbf24;
    --dark-color: #0f172a;
    --gradient-secondary: linear-gradient(135deg, #fbbf24, #f59e0b);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Дополнительные переменные для полной совместимости */
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary-color: #fbbf24;
    --secondary-dark: #f59e0b;
    --accent-color: #ec4899;
    --accent-dark: #db2777;
    --darker-color: #020617;
    --light-color: #f1f5f9;
    --gray-color: #475569;
    --gray-light: #e2e8f0;
    --gold-dark: #f59e0b;
    --blue-light: #dbeafe;
    --purple: #8b5cf6;
    --purple-dark: #7c3aed;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--purple));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--purple));
    --gradient-card: linear-gradient(135deg, var(--blue-light), var(--white));
}

.hero {
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/s-1.jpg') center/cover;
    opacity: 0.15;
    z-index: 1;
    filter: brightness(0.8) contrast(1.2) hue-rotate(240deg) saturate(1.5);
}

/* Для файлов в подпапках */
.hero[data-subfolder="true"]::before {
    background: url('../assets/s-1.jpg') center/cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }
    to {
        text-shadow: 2px 2px 20px rgba(251, 191, 36, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.3);
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: 20px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    min-width: 120px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.countdown-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    position: relative;
}

.countdown-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.5);
}

.countdown-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.countdown-label::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1px;
}

.cta-button {
    background: var(--gradient-secondary);
    color: var(--dark-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(251, 191, 36, 0.4);
    color: var(--dark-color);
}

.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: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

@media (max-width: 768px) {
    .countdown {
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: 100px;
        padding: 1rem;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .countdown-item {
        min-width: 80px;
        padding: 0.8rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
}

/* ===== КАСТОМНЫЙ СКРОЛЛБАР ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 6px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1e40af 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 6px;
    border: 2px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1e3a8a 0%, #7c3aed 50%, #db2777 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #1e3a8a 0%, #6d28d9 50%, #be185d 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-corner {
    background: #f1f5f9;
    border-radius: 6px;
}

/* Firefox скроллбар */
* {
    scrollbar-width: thin;
    scrollbar-color: #8b5cf6 #e2e8f0;
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    transform-origin: center;
}

body.menu-open {
    overflow: hidden;
}

/* ===== ОСНОВНЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f1f5f9 0%, #dbeafe 100%);
    color: #0f172a;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ХЕДЕР ===== */
.header {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.navbar-nav, .nav-menu {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.nav-link:hover {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

/* ===== МЕДИА ЗАПРОСЫ ДЛЯ МОБИЛЬНОГО МЕНЮ ===== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .navbar-nav, .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--gradient-hero);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        margin: 0;
        padding: 2rem;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .navbar-nav.active, .nav-menu.active {
        left: 0;
    }

    .navbar-nav li, .nav-menu li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .navbar-nav.active li, .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .navbar-nav li:nth-child(1), .nav-menu li:nth-child(1) { transition-delay: 0.1s; }
    .navbar-nav li:nth-child(2), .nav-menu li:nth-child(2) { transition-delay: 0.2s; }
    .navbar-nav li:nth-child(3), .nav-menu li:nth-child(3) { transition-delay: 0.3s; }
    .navbar-nav li:nth-child(4), .nav-menu li:nth-child(4) { transition-delay: 0.4s; }
    .navbar-nav li:nth-child(5), .nav-menu li:nth-child(5) { transition-delay: 0.5s; }
}

/* ===== ФУТЕР ===== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid #475569;
    padding-top: 1rem;
    text-align: center;
    color: #e2e8f0;
}

.responsible-gaming {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.responsible-gaming img {
    height: 40px;
    width: auto;
}

/* ===== КНОПКА SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gradient-hero);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ COOKIE ===== */
.cookie-section {
    background: var(--white);
    border-radius: 1rem;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cookie-title {
    color: #1e40af;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.cookie-subtitle {
    color: #475569;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cookie-card {
    background: #f1f5f9;
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 1.5rem 0;
    border-left: 4px solid #1e40af;
}

.cookie-card h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.cookie-list {
    list-style: none;
    padding: 0;
}

.cookie-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-list li:last-child {
    border-bottom: none;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .cookie-section {
        padding: 2rem;
        margin: 1rem 0;
    }

    .cookie-title {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ===== СТИЛИ ДЛЯ ОСНОВНОГО КОНТЕНТА ===== */
.main-content {
    margin-top: 100px;
    padding: 2rem 0;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦ В ПОДДИРЕКТОРИЯХ ===== */
/* Header для поддиректорий */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

nav ul li a:hover {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

/* Hero для поддиректорий */
.hero[data-subfolder="true"] {
    background: var(--gradient-hero);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero[data-subfolder="true"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/s-1.jpg') center/cover;
    opacity: 0.15;
    z-index: 1;
    filter: brightness(0.8) contrast(1.2) hue-rotate(240deg) saturate(1.5);
}

.hero[data-subfolder="true"] .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.hero[data-subfolder="true"] .hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.hero[data-subfolder="true"] .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Flexbox utilities */
.flex-grow-1 {
    flex-grow: 1;
}

/* Container для поддиректорий */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive для поддиректорий */
@media (max-width: 768px) {
    .hero[data-subfolder="true"] {
        min-height: 50vh;
        margin-top: 70px;
    }
    
    .hero[data-subfolder="true"] .hero-title {
        font-size: 2rem;
    }
    
    .hero[data-subfolder="true"] .hero-subtitle {
        font-size: 1rem;
    }
}

/* ===== СТИЛИ ДЛЯ КОРЗИНЫ ===== */
.ticket-details {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 3px solid var(--primary-color);
}

.ticket-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.ticket-detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.numbers-label {
    font-weight: 600;
    color: var(--gray-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.ticket-numbers {
    background: #f1f5f9;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #e2e8f0;
}

.number-ball {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background: var(--gradient-hero);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 2rem;
    font-weight: 700;
    font-size: 0.8rem;
    margin: 0.2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Адаптивность для корзины */
@media (max-width: 768px) {
    .ticket-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .detail-value {
        align-self: flex-end;
    }
    
    .number-ball {
        width: 1.8rem;
        height: 1.8rem;
        line-height: 1.8rem;
        font-size: 0.7rem;
    }
}

/* ===== СТИЛИ ДЛЯ УВЕДОМЛЕНИЙ ===== */
.success-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--gradient-hero);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-weight: 600;
    max-width: 300px;
}

.success-notification.show {
    transform: translateX(0);
}

/* Адаптивность для уведомлений */
@media (max-width: 768px) {
    .success-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .success-notification.show {
        transform: translateY(0);
    }
}
