/* Base Styles */
:root {
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --glow: 0 0 10px rgba(225, 29, 72, 0.7);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

ul {
    list-style: none;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 50px;
}

.desktop-nav {
    display: none;
}

.desktop-nav ul {
    display: flex;
    gap: 30px;
}

.desktop-nav a {
    color: var(--foreground);
    font-weight: 500;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-speed);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.register-btn {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition-speed);
    animation: pulse 2s infinite;
}

.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

.register-btn.mobile {
    width: 100%;
    margin-top: 20px;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--foreground);
    transition: all var(--transition-speed);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--background);
    overflow: hidden;
    transition: height var(--transition-speed);
    z-index: 999;
}

.mobile-nav.active {
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

.mobile-nav ul {
    padding: 20px;
}

.mobile-nav li {
    margin-bottom: 20px;
}

.mobile-nav a {
    display: block;
    font-size: 1.2rem;
    color: var(--foreground);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7)), url('https://vsesvit-ai.ams3.cdn.digitaloceanspaces.com/files/6/8/5/6850561ab473d634507072.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--primary-foreground);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    transition: all var(--transition-speed);
    animation: pulse 2s infinite;
    margin-bottom: 30px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow);
}

.hero-text {
    text-align: left;
    margin-top: 30px;
}

.hero-image {
    max-width: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Games Section */
.tabs {
    margin-top: 40px;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 20px;
    background-color: var(--card);
    color: var(--card-foreground);
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all var(--transition-speed);
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.tab-content {
    margin-top: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.game-card {
    background-color: var(--card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed);
    padding-bottom: 20px;
}

.game-card:hover {
    transform: translateY(-10px);
}

.game-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-card h3 {
    padding: 15px 20px 5px;
    font-size: 1.3rem;
}

.game-card p {
    padding: 0 20px;
    margin-bottom: 20px;
    color: var(--muted-foreground);
}

.play-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px;
    padding: 10px;
    background-color: var(--primary);
    color: var(--primary-foreground);
    text-align: center;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition-speed);
}

.play-btn:hover {
    background-color: var(--accent);
    box-shadow: var(--glow);
}

.section-text {
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Payment Methods Section */
.payment-methods {
    margin-top: 40px;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.payment-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 120px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.payment-icon.show {
    opacity: 1;
    transform: translateY(0);
}

.payment-icon img {
    width: 100px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    background-color: white;
    padding: 5px;
    border-radius: var(--border-radius);
}

.payment-icon p {
    font-size: 0.9rem;
    margin-top: 5px;
}

.withdrawal-table {
    margin-top: 40px;
}

.withdrawal-table h3 {
    text-align: center;
    margin-bottom: 20px;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background-color: var(--card);
    font-weight: 600;
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Security Section */
.security-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.security-item {
    background-color: var(--card);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.security-item.show {
    opacity: 1;
    transform: translateY(0);
}

.security-icon {
    margin-bottom: 20px;
    color: var(--primary);
}

.certification-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

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

.cert-logo img {
    max-width: 200px;
    height: auto;
    margin-bottom: 10px;
}

/* Loyalty Program Section */
.loyalty-program {
    margin-top: 40px;
}

.loyalty-levels {
    margin-bottom: 50px;
}

.level-progress {
    max-width: 600px;
    margin: 0 auto 40px;
}

.progress-bar {
    height: 10px;
    background-color: var(--card);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background-color: var(--primary);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

.points-counter {
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

.points-counter span {
    font-weight: 700;
    color: var(--primary);
}

.levels-scheme {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

.level {
    background-color: var(--card);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.level.show {
    opacity: 1;
    transform: translateY(0);
}

.level.active {
    border: 2px solid var(--primary);
    position: relative;
}

.level.active::before {
    content: 'Текущий';
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.level-icon {
    color: var(--primary);
    margin-bottom: 15px;
}

.level h3 {
    margin-bottom: 5px;
}

.level p {
    color: var(--muted-foreground);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.level ul {
    padding-left: 20px;
}

.level li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.level li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.rewards-carousel {
    margin-top: 50px;
}

.rewards-carousel h3 {
    text-align: center;
    margin-bottom: 30px;
}

.carousel-container {
    overflow: hidden;
}

.carousel-slide {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.reward-card {
    flex: 0 0 100%;
    background-color: var(--card);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.reward-icon {
    color: var(--primary);
    margin-bottom: 15px;
}

.reward-card h4 {
    margin-bottom: 10px;
}

/* FAQ Section */
.faq-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto 40px;
}

.faq-search input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    background-color: var(--input);
    color: var(--foreground);
}

.search-btn {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 0 15px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto 50px;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--card);
}

.faq-question {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.accordion-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--foreground);
    transition: all var(--transition-speed);
}

.accordion-icon::before {
    top: 9px;
    left: 0;
    width: 100%;
    height: 2px;
}

.accordion-icon::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 100%;
}

.faq-item.active .accordion-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer div {
    padding: 0 20px 20px;
}

.support-widget {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.support-info {
    text-align: center;
    margin-bottom: 30px;
}

.support-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.support-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: var(--card);
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

.support-method:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.chat-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: var(--card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 100;
    display: none;
}

.chat-bubble.active {
    display: block;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.chat-header h4 {
    margin: 0;
}

.close-chat {
    background: none;
    border: none;
    color: var(--primary-foreground);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
}

.chat-message {
    margin-bottom: 15px;
    max-width: 80%;
}

.chat-message.support {
    background-color: var(--muted);
    color: var(--muted-foreground);
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
}

.chat-message.user {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    margin-left: auto;
}

.chat-message .time {
    display: block;
    font-size: 0.8rem;
    text-align: right;
    margin-top: 5px;
    opacity: 0.7;
}

.chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--border);
}

.chat-footer input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    background-color: var(--input);
    color: var(--foreground);
}

.send-btn {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 0 15px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Jackpot Section */
.jackpot-counter {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background-color: var(--card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.jackpot-counter h3 {
    margin-bottom: 20px;
}

.counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(225, 29, 72, 0.5);
}

.currency {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.jackpot-timer p {
    margin-bottom: 15px;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

.time-unit .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background-color: var(--primary);
    color: var(--primary-foreground);
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: var(--border-radius);
    margin-bottom: 5px;
}

.time-unit .label {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.winners-gallery {
    margin-top: 50px;
}

.winners-gallery h3 {
    text-align: center;
    margin-bottom: 30px;
}

.winners-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.winner-card {
    background-color: var(--card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    padding-bottom: 20px;
}

.winner-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.winner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winner-card h4 {
    margin: 15px 0 5px;
}

.win-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.win-game, .win-date {
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

/* Footer */
footer {
    background-color: var(--card);
    padding: 80px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.about-column {
    grid-column: 1 / -1;
}

.footer-logo {
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--muted);
    border-radius: 50%;
    color: var(--muted-foreground);
    transition: all var(--transition-speed);
}

.social-icons a:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
    transform: translateY(-3px);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.newsletter {
    margin-top: 30px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    background-color: var(--input);
    color: var(--foreground);
}

.subscribe-btn {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 0 15px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

/* Modal Styles */
.privacy-modal, .terms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--card);
    margin: 50px auto;
    max-width: 800px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.modal-header h2 {
    margin: 0;
    text-align: left;
}

.close-modal {
    background: none;
    border: none;
    color: var(--primary-foreground);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(225, 29, 72, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    }
}

/* Media Queries */
@media (min-width: 576px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .winners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .desktop-nav {
        display: block;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .hero-section .container {
        flex-direction: row;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .security-features {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .levels-scheme {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-column {
        grid-column: span 2;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .winners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .levels-scheme {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    }
    
    .about-column {
        grid-column: 1;
    }
}