:root {
    --color-primary: #e50539;
    --color-secondary: #28a909;
    --color-nav-bg: #1b1c1d;
    --color-bg: #0e0e0e;
    --color-text: #e8e8e8;
    --color-text-muted: #a0a0a0;
    --color-border: #2a2a2a;
    --color-card-bg: #1a1a1a;
    --transition-speed: 0.3s;
}

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

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

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

.header-main {
    background: var(--color-nav-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    flex-wrap: wrap;
    position: relative;
}

.navbar-brand-section {
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--color-text);
    transition: all var(--transition-speed);
    border-radius: 2px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: color var(--transition-speed);
    font-size: 15px;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-icon {
    width: 18px;
    height: 18px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.online-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    font-size: 14px;
    background: rgba(255,255,255,0.05);
    padding: 8px 14px;
    border-radius: 20px;
}

.online-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.language-dropdown {
    position: relative;
}

.lang-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-size: 14px;
}

.lang-button:hover {
    background: rgba(255,255,255,0.1);
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--color-nav-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    min-width: 160px;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    overflow: hidden;
}

.lang-dropdown-menu.active {
    display: flex;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--color-text);
    text-decoration: none;
    transition: background var(--transition-speed);
    font-size: 14px;
}

.lang-option:hover {
    background: rgba(255,255,255,0.1);
}

.header-buttons-mobile {
    display: none;
    gap: 10px;
    margin-left: auto;
}

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

.btn {
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed);
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-demo, .btn-demo-mobile {
    background: var(--color-primary);
    color: white;
}

.btn-demo:hover, .btn-demo-mobile:hover {
    background: #c70431;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 5, 57, 0.4);
}

.btn-play, .btn-play-mobile {
    background: var(--color-secondary);
    color: white;
}

.btn-play:hover, .btn-play-mobile:hover {
    background: #229607;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 169, 9, 0.4);
}

.hero-banner {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('/banner-aviator.png') center/cover;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(229, 5, 57, 0.1), rgba(40, 169, 9, 0.1));
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    color: #e8e8e8;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease;
}

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

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

.btn-hero {
    padding: 16px 40px;
    font-size: 18px;
}

.w5r8t3m {
    padding: 60px 0;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.q9b3m6p, .d7m2k9w, .t6h9v4k, .b8n3k5r, .p3k7m9x {
    background: var(--color-card-bg);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.q9b3m6p:hover, .d7m2k9w:hover, .t6h9v4k:hover, .b8n3k5r:hover, .p3k7m9x:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

h1, h2, h3 {
    color: var(--color-text);
    margin-bottom: 20px;
    font-weight: 700;
}

h1 {
    font-size: 42px;
    line-height: 1.2;
}

h2 {
    font-size: 32px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

h3 {
    font-size: 24px;
}

p {
    margin-bottom: 16px;
    color: var(--color-text);
}

strong {
    color: var(--color-primary);
    font-weight: 600;
}

ul, ol {
    margin-left: 24px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
    color: var(--color-text);
    line-height: 1.6;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.game-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.game-info-table td {
    padding: 14px 20px;
    border: 1px solid var(--color-border);
    text-align: left;
}

.game-info-table td:first-child {
    background: rgba(255,255,255,0.03);
    width: 40%;
    font-weight: 500;
}

.game-info-table td:last-child {
    background: rgba(255,255,255,0.01);
}

.game-info-table tr:hover td {
    background: rgba(229, 5, 57, 0.1);
}

.jackpots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.jackpot-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 2px solid;
    transition: all var(--transition-speed);
}

.jackpot-card:hover {
    transform: scale(1.05);
}

.jackpot-bronze {
    border-color: #cd7f32;
}

.jackpot-silver {
    border-color: #c0c0c0;
}

.jackpot-gold {
    border-color: #ffd700;
}

.jackpot-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.jackpot-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.jackpot-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

.jackpot-winners h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--color-text-muted);
}

.jackpot-winners ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jackpot-winners li {
    padding: 8px;
    background: rgba(255,255,255,0.03);
    margin-bottom: 6px;
    border-radius: 6px;
    font-size: 14px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.leaderboard-table thead tr {
    background: rgba(229, 5, 57, 0.1);
}

.leaderboard-table th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    border: 1px solid var(--color-border);
}

.leaderboard-table td {
    padding: 12px 20px;
    border: 1px solid var(--color-border);
}

.leaderboard-table tbody tr:hover {
    background: rgba(255,255,255,0.05);
}

.leaderboard-table .position-1 {
    background: rgba(255, 215, 0, 0.1);
}

.leaderboard-table .position-2 {
    background: rgba(192, 192, 192, 0.1);
}

.leaderboard-table .position-3 {
    background: rgba(205, 127, 50, 0.1);
}

.demo-container {
    margin-top: 30px;
}

.demo-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.demo-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.demo-actions {
    margin-top: 30px;
    text-align: center;
}

.btn-play-money {
    padding: 16px 50px;
    font-size: 18px;
    background: var(--color-secondary);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    transition: all var(--transition-speed);
}

.btn-play-money:hover {
    background: #229607;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 169, 9, 0.5);
}

.content-block {
    background: var(--color-card-bg);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border: 1px solid var(--color-border);
}

.content-block h1 {
    margin-bottom: 30px;
}

.content-block h2 {
    margin-top: 40px;
}

.content-block ul {
    list-style-position: outside;
    padding-left: 20px;
}

.content-block ul li::marker {
    color: var(--color-primary);
}

.content-block ol li::marker {
    color: var(--color-secondary);
    font-weight: 700;
}

.intro-section, .game-info-section, .features-section, .strategy-section, .tips-section, .bonus-section, .mobile-section, .similar-games-section, .provider-section, .safety-section, .payment-section, .faq-section {
    margin-bottom: 30px;
}

.author-bio {
    margin-top: 50px;
    padding: 30px;
    background: rgba(255,255,255,0.03);
    border-left: 4px solid var(--color-primary);
    border-radius: 8px;
}

.author-bio h3 {
    margin-bottom: 15px;
    color: var(--color-primary);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.review-card {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--color-border);
    transition: all var(--transition-speed);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-color: var(--color-primary);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.review-info {
    flex: 1;
}

.review-author {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 16px;
}

.stars {
    color: #ffd700;
    font-size: 16px;
    letter-spacing: 2px;
}

.review-text {
    line-height: 1.7;
    color: var(--color-text);
}

.review-form-wrapper {
    margin-top: 50px;
    background: rgba(255,255,255,0.03);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.review-form-wrapper h3 {
    margin-bottom: 25px;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(229, 5, 57, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit-review {
    background: var(--color-primary);
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-submit-review:hover {
    background: #c70431;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 5, 57, 0.4);
}

.form-success {
    background: rgba(40, 169, 9, 0.1);
    border: 1px solid var(--color-secondary);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.form-success p {
    color: var(--color-secondary);
    font-weight: 600;
    margin: 0;
}

.footer-main {
    background: var(--color-nav-bg);
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 3px solid var(--color-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 18px;
}

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

.footer-logo img {
    height: 44px;
    width: auto;
}

.footer-description {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.footer-menu a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-menu a:hover {
    color: var(--color-primary);
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: all var(--transition-speed);
}

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

.footer-payments, .footer-providers, .footer-licenses {
    margin-bottom: 30px;
}

.footer-payments h4, .footer-providers h4 {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.payment-logos {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.payment-logos img {
    height: 40px;
    width: auto;
    opacity: 0.7;
    transition: opacity var(--transition-speed);
}

.payment-logos img:hover {
    opacity: 1;
}

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

.provider-logo img {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity var(--transition-speed);
}

.provider-logo img:hover {
    opacity: 1;
}

.license-logos {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.license-logos img {
    height: 60px;
    width: auto;
    opacity: 0.6;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 30px;
    margin-top: 30px;
}

.copyright {
    text-align: center;
}

.copyright p {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.legal-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
}

.disclaimer-text {
    font-size: 12px;
    color: var(--color-text-muted);
}

.floating-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--color-primary), #ff1744);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(229, 5, 57, 0.5);
    z-index: 999;
    max-width: 350px;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.widget-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.widget-icon {
    font-size: 36px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.widget-text {
    flex: 1;
}

.widget-title {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin-bottom: 5px;
}

.widget-bonus {
    font-size: 22px;
    font-weight: 800;
    color: white;
}

.widget-button {
    background: white;
    color: var(--color-primary);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all var(--transition-speed);
    display: inline-block;
    white-space: nowrap;
}

.widget-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.widget-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.3);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.widget-close:hover {
    background: rgba(0,0,0,0.6);
}

.m9k5w3r, .f6x2n8t, .j3h7v4n, .l2t9k6p, .w8m4r7k {
    display: none;
}

@media (max-width: 992px) {
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--color-nav-bg);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 30px 30px;
        transition: right var(--transition-speed);
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
        overflow-y: auto;
    }

    .navbar-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 5px;
    }

    .nav-link {
        padding: 12px;
        width: 100%;
        border-radius: 8px;
    }

    .nav-link:hover {
        background: rgba(255,255,255,0.05);
    }

    .navbar-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        gap: 15px;
    }

    .online-counter {
        width: 100%;
        justify-content: center;
    }

    .lang-button {
        width: 100%;
        justify-content: center;
    }

    .lang-dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 10px;
        box-shadow: none;
    }

    .burger-menu {
        display: flex;
        order: 3;
    }

    .header-buttons-mobile {
        display: flex;
        order: 2;
    }

    .header-buttons-desktop {
        display: none;
    }

    .navbar-brand-section {
        order: 1;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .jackpots-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .floating-widget {
        max-width: calc(100% - 40px);
        left: 20px;
    }

    .widget-content {
        flex-wrap: wrap;
    }

    .widget-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .q9b3m6p, .d7m2k9w, .t6h9v4k, .b8n3k5r, .p3k7m9x, .content-block {
        padding: 25px;
    }

    .btn-hero {
        padding: 14px 30px;
        font-size: 16px;
    }

    .game-info-table td {
        padding: 10px 12px;
        font-size: 14px;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 10px 12px;
        font-size: 14px;
    }
}
/* === FULLSCREEN DEMO НА МОБІЛЦІ === */
@media (max-width: 768px) {
    /* сам блок з грою */
    .demo-game-section {
        margin: 0;
        padding: 0;
    }

    .demo-game-section .demo-container {
        margin: 0;
    }

    /* контейнер під iframe */
    .demo-game-section .demo-wrapper {
        position: relative;
        height: 100vh;           /* на всю висоту екрана */
        padding-bottom: 0;       /* прибрали ratio 16:9 */
        border-radius: 0;        /* за бажанням можна лишити */
    }

    /* сам iframe */
    .demo-game-section .demo-iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;            /* розтягуємо на весь wrapper */
        border: 0;
    }

    /* кнопка під грою на всю ширину */
    .demo-game-section .demo-actions {
        padding: 12px 16px 24px;
    }

    .demo-game-section .btn-play-money {
        width: 100%;
    }
}
