:root {
    --primary-bg: #05141C;
    --header-bg: #1B2C37;
    --search-bg: #293A46;
    --button-color: #1375E1;
    --footer-bg: #1B2C37;
    --accent-yellow: #FFD700;
    --accent-green: #00FF7F;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --card-bg: #0F212E;
    --border-color: #2A3A44;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Шапка */
.header {
    background-color: var(--header-bg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(90deg, #1375E1, #00FF7F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo span {
    color: #FFD700;
}

.search-container {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 30px;
}

.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 50px;
    background-color: var(--search-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--button-color);
    box-shadow: 0 0 0 2px rgba(19, 117, 225, 0.2);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.header-buttons {
    display: flex;
    gap: 15px;
}

.btn-login, .btn-register {
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-login {
    background-color: transparent;
    border: 2px solid var(--button-color);
    color: var(--button-color);
}

.btn-register {
    background-color: var(--button-color);
    border: 2px solid var(--button-color);
    color: white;
}

.btn-login:hover, .btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
}

/* Боковое меню */
.sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 280px;
    height: calc(100vh - 70px);
    background-color: var(--header-bg);
    z-index: 900;
    overflow-y: auto;
    transition: transform 0.3s ease;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
}

.sidebar.closed {
    transform: translateX(-100%);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-menu {
    padding: 25px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.menu-item:hover, .menu-item.active {
    background-color: rgba(19, 117, 225, 0.1);
    border-left-color: var(--button-color);
    color: var(--button-color);
}

.menu-icon {
    margin-right: 15px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Основной контент */
.main-content {
    margin-left: 280px;
    margin-top: 70px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 0;
}

/* Баннеры */
.banner-slider {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.banner-slide {
    height: 400px;
    position: relative;
}

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

.swiper-pagination-bullet {
    background-color: white;
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background-color: var(--button-color);
    opacity: 1;
}

.swiper-button-next, .swiper-button-prev {
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: var(--button-color);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 22px;
}

/* Блоки с играми */
.section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.view-all {
    color: var(--button-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.view-all:hover {
    gap: 10px;
    color: #FFD700;
}

.games-slider {
    overflow: hidden;
}

/* Карточки счастливчиков */
.winners-slide {
    height: auto;
}

.winner-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    height: 100%;
}

.winner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.winner-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.winner-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--button-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-right: 15px;
}

.winner-info {
    flex-grow: 1;
}

.winner-name {
    font-weight: 600;
    font-size: 16px;
    color: white;
}

.winner-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.winner-body {
    padding: 20px;
}

.game-preview {
    width: 100%;
    height: 120px;
    background-color: var(--search-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.game-title {
    color: var(--accent-yellow);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.game-title:hover {
    color: #FFA500;
}

.winner-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.stat-value {
    font-weight: 700;
    font-size: 16px;
}

.multiplier {
    color: var(--accent-green);
}

.bet {
    color: white;
}

.payout {
    color: var(--accent-yellow);
}

/* Карточки игр */
.game-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.relative {
    position: relative;
}

.game-actions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .game-actions {
    opacity: 1;
}

.game-action-btn {
    background-color: var(--button-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.game-action-btn.demo {
    background-color: transparent;
    border: 2px solid white;
}

.game-action-btn:hover {
    transform: scale(1.05);
}

.game-info {
    padding: 15px;
}

.game-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
    color: white;
}

.game-provider {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Текстовый контент */
.text-content {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.text-content h2 {
    color: var(--accent-yellow);
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.text-content h3 {
    color: var(--button-color);
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.text-content p {
    margin-bottom: 15px;
    font-size: 16px;
}

.text-content ul, .text-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.text-content li {
    margin-bottom: 8px;
}

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

.content-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--header-bg);
    border-radius: 8px;
    overflow: hidden;
}

.content-table th {
    background-color: var(--button-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.content-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.content-table tr:last-child td {
    border-bottom: none;
}

.content-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

.warning-box {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.testimonial {
    background-color: rgba(19, 117, 225, 0.1);
    border-left: 4px solid var(--button-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* Подвал */
.footer {
    background-color: var(--footer-bg);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h4 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--button-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--button-color);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .banner-slide {
        height: 350px;
    }
    
    .text-content {
        padding: 30px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .search-container {
        display: none;
    }
    
    .banner-slide {
        height: 300px;
    }
    
    .text-content h2 {
        font-size: 28px;
    }
    
    .text-content h3 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .header-buttons {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-slide {
        height: 250px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .text-content {
        padding: 20px;
    }
    
    .text-content h2 {
        font-size: 24px;
    }
    
    .text-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-slide {
        height: 200px;
    }
    
    .text-content h2 {
        font-size: 22px;
    }
}
.game-preview {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.game-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}