/* Global Styles */
:root {
    --primary-color: #ff0000;
    --dark-color: #000;
    --text-color: #fff;
    --button-green: #ff0000;
    --button-green-hover: #cc0000;
    --button-overlay: rgba(0,0,0,0.7);
    --header-bg: #000000;
    --accent-green: #ff0000;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

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

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    text-transform: uppercase;
}

p {
    margin-bottom: 15px;
}

/* Header Styles */
header {
    background-color: var(--header-bg);
    padding: 20px 0;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    padding-left: 90px; /* Make room for the absolute positioned logo */
}

.logo {
    display: flex !important;
    align-items: center;
    margin-right: 20px;
    min-width: 100px;
    position: relative;
    z-index: 10;
    opacity: 1 !important;
    visibility: visible !important;
}

.logo a {
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
}

.logo img {
    height: 60px !important;
    width: auto !important;
    display: block !important;
    max-width: none;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Header Logo */
.header-logo {
    position: absolute;
    top: 15px;
    left: 20px;
    z-index: 5;
}

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

/* Navigation Menu */
.main-nav {
    flex-grow: 1;
    padding: 0;
    display: flex;
    justify-content: center;
    margin-right: 0;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding-right: 0;
}

.nav-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    color: #fff;
    font-size: 15px;
    transition: color 0.2s;
    font-weight: bold;
    white-space: nowrap;
}

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

.nav-icon {
    width: 60px;
    height: 60px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(1.5);
    margin-right: 10px;
    opacity: 1;
}

.slots-icon {
    background-image: url('new_img/Игры.svg');
}

.casino-icon {
    background-image: url('new_img/Вход и регистранция.svg');
}

.bingo-icon {
    background-image: url('new_img/Слоты и автоматы.svg');
}

.promo-icon {
    background-image: url('new_img/Бонусы.svg');
}

.mobile-icon {
    background-image: url('new_img/Мобильная версия сайта.svg');
}

.support-icon {
    background-image: url('new_img/Support.svg');
}

.mobile-only-nav-item {
    display: none;
}

.mobile-register-button {
    display: none;
    position: relative;
    z-index: 10;
}

.mobile-register-button .button-register {
    white-space: nowrap;
    font-size: 13px;
    padding: 8px 14px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 0;
    margin-left: 0;
    position: absolute;
    right: 15px;
}

.action-icon {
    width: 24px;
    height: 24px;
    display: block;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.action-icon:hover {
    opacity: 1;
}

.search-icon {
    background-image: url('img/search-custom-icon.svg');
}

.account-icon {
    background-image: url('new_img/Support.svg');
    width: 30px;
    height: 30px;
    display: block;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 65%;
    opacity: 1;
    background-color: #000;
    border-radius: 50%;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    margin-left: 15px;
}

.button-login {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 25px;
    border: 1px solid var(--accent-green);
    background-color: transparent;
    color: var(--accent-green);
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.button-login:hover {
    background-color: rgba(255, 0, 0, 0.1);
}

.button-register {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 25px;
    background-color: var(--accent-green);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.button-register:hover {
    background-color: var(--button-green-hover);
}

.button-green {
    display: inline-block;
    background-color: var(--button-green);
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-green:hover {
    background-color: var(--button-green-hover);
}

.button-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--text-color);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* SEO Text Section */
.seo-text {
    padding: 50px 0;
}

.seo-text h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 24px;
    padding-top: 15px;
}

.seo-text h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 20px;
}

.casino-title {
    text-align: center;
    margin: 40px 0 20px;
}

.joker-casino-btn {
    background-color: var(--button-green);
    font-size: 14px;
    padding: 12px 40px;
}

.casino-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid #222;
}

.casino-info-table tr {
    border-bottom: 1px solid #333;
}

.casino-info-table td {
    padding: 12px 15px;
    border: 1px solid #222;
}

.casino-info-table td:first-child {
    font-weight: bold;
    width: 40%;
    color: var(--accent-green);
}

.payment-methods, .deposit-steps {
    padding-left: 20px;
    margin-bottom: 20px;
    margin-left: 20px;
}

.payment-methods li, .deposit-steps li {
    margin-bottom: 10px;
}

.payment-icon {
    height: 20px;
    vertical-align: middle;
    margin: 0 5px;
}

/* FAQ Section */
.faq-title {
    text-align: center;
    margin: 40px 0;
    font-size: 36px;
    font-weight: bold;
    text-transform: uppercase;
    padding-left: 0; /* Remove padding added by h2 styling */
}

/* Prevent vertical line for FAQ title */
.faq-title:before {
    content: none; /* Remove the vertical line for the FAQ title */
}

.faq-section {
    max-width: 900px;
    margin: 0 auto 60px;
}

.faq-item {
    position: relative;
    margin-bottom: 40px;
}

.faq-question {
    background-color: #0a0a0a;
    padding: 15px;
    cursor: pointer;
    margin-bottom: 1px;
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid #222;
}

.faq-question:hover {
    background-color: #111;
    border-left-color: var(--accent-green);
}

.faq-question h4 {
    font-size: 22px;
    margin: 0;
    padding: 15px 0;
    font-weight: bold;
}

.faq-question:after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: var(--accent-green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
}

.faq-item.active .faq-question:after {
    content: "-";
}

.faq-answer {
    display: none;
    padding: 10px 0 20px;
    max-width: 95%;
}

.faq-answer.show {
    display: block;
}

.faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #ddd;
}

/* Contact Form */
.contact-form {
    padding: 60px 0;
    background-color: #111;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #222;
    border: 1px solid #333;
    border-radius: 4px;
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

#contactForm {
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: black;
    padding: 40px 0 20px;
    color: var(--text-color);
    border-top: 1px solid #222;
    text-align: center;
}

.footer-logo {
    margin-bottom: 30px;
    text-align: center;
}

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

.footer-sections {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 160px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-section h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

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

.footer-section ul li a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: var(--accent-green);
}

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

.social-icon {
    display: block;
    width: 30px;
    height: 30px;
    background-color: #333;
    border-radius: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60%;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: var(--accent-green);
}

.social-icon.facebook {
    background-image: url("img/facebook-icon.svg");
}

.social-icon.twitter {
    background-image: url("img/twitter-icon.svg");
}

.social-icon.instagram {
    background-image: url("img/instagram-icon.svg");
}

.social-icon.telegram {
    background-image: url("img/telegram-icon.svg");
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    margin-top: 20px;
}

.footer-bottom a {
    color: var(--accent-green);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: var(--button-green-hover);
    text-decoration: underline;
}

.age-warning {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.copyright {
    font-size: 14px;
    color: #999;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .footer-sections {
        flex-direction: column;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
}

/* Sticky Footer */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--accent-green);
    z-index: 1000;
    padding: 10px 0;
}

.sticky-footer-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.sticky-button {
    display: inline-block;
    padding: 10px 0;
    width: 180px;
    text-align: center;
    font-weight: bold;
    border-radius: 25px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    color: #000;
    text-decoration: none;
}

.sticky-button {
    background-color: transparent;
    border: 1px solid #000;
}

@media (max-width: 576px) {
    .sticky-footer-buttons {
        padding: 0 15px;
    }
    
    .sticky-button {
        width: 48%;
        font-size: 14px;
    }
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}

.dropdown-toggle:after {
    content: "▼";
    font-size: 10px;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    max-width: 300px;
    background-color: #111;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
    z-index: 1000;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.dropdown-menu:before {
    content: "";
    position: absolute;
    top: -10px;
    left: 20px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #111;
}

.dropdown-menu p {
    margin: 0;
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
}

.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown.active .dropdown-toggle {
    color: var(--primary-color);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    background-color: #000;
    max-height: 500px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 1;
    transform: scale(1.05) translateX(5%);
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    z-index: 2;
    position: relative;
    display: block;
    transform: scale(1) translateX(0);
    visibility: visible;
}

.slide-prev {
    opacity: 0.3;
    z-index: 1;
    transform: scale(1) translateX(-5%);
    visibility: visible;
    transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.slide-next {
    opacity: 0;
    z-index: 1;
    transform: scale(1.05) translateX(5%);
    visibility: visible;
    transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.slide a {
    display: block;
    width: 100%;
}

.slide-content {
    display: flex;
    width: 100%;
    height: 500px;
    background-color: #161825;
    position: relative;
    overflow: hidden;
}

.slide-text {
    width: 50%;
    padding: 80px 0 0 80px;
    position: relative;
    z-index: 2;
}

.slide-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
    text-transform: none;
    text-shadow: none;
}

.slide-subtitle {
    font-size: 28px;
    margin-bottom: 5px;
    color: white;
}

.slide-offer {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    color: white;
}

.play-button-red {
    width: 120px;
}

.slide-button {
    margin-top: 20px;
}

.bonus-button {
    background-color: var(--accent-green);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.bonus-button:hover {
    background-color: var(--button-green-hover);
}

.slide-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
}

.racer-image {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: auto;
    object-fit: contain;
}

.slide.active img {
    animation: ken-burns 10s ease-in-out forwards;
}

@keyframes ken-burns {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1.02);
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 0;
}

.hero h1 {
    font-size: 36px;
    text-transform: uppercase;
}

.hero-content {
    color: #fff;
    padding: 0 40px;
    max-width: 550px;
    text-align: left;
    position: relative;
    z-index: 3;
    margin-left: 80px;
}

.hero-badge {
    display: inline-block;
    background-color: var(--accent-green);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 25px;
    text-transform: none;
    font-weight: 700;
}

.hero-content .accent {
    color: #ffd700;
}

.button-yellow {
    display: inline-block;
    background-color: #ffd700;
    color: #000;
    padding: 12px 40px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
}

.button-yellow:hover {
    background-color: #ffec4e;
}

.slider-navigation {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-dot:hover {
    transform: scale(1.2);
}

.slider-dot.active {
    background-color: var(--accent-green);
    width: 14px;
    height: 14px;
}

/* Responsive slider adjustments */
@media (max-width: 992px) {
    .hero-slider, .slide-content {
        max-height: 400px;
        height: 400px;
    }
    
    .slide-text {
        padding: 50px 0 0 40px;
    }
    
    .slide-title {
        font-size: 36px;
    }
    
    .slide-subtitle {
        font-size: 24px;
    }
    
    .slide-offer {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        max-height: none;
    }
    
    .slide-content {
        max-height: 350px;
        height: 350px;
    }
    
    .slide-text {
        padding: 30px 0 0 30px;
        width: 60%;
    }
    
    .slide-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .slide-subtitle {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .slide-offer {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .bonus-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .slide-image {
        width: 65%;
        position: absolute;
        right: 0;
        bottom: 0;
        height: 100%;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .racer-image {
        height: 100%;
        width: auto;
        max-width: none;
        object-fit: contain;
        object-position: right center;
        transform: translateX(0);
    }
    
    .slider-navigation {
        position: relative;
        margin-top: -25px;
        margin-bottom: 15px;
    }
    
    .slider-dot {
        width: 8px !important;
        height: 8px !important;
        margin: 0 3px;
        min-height: unset !important;
        min-width: unset !important;
        display: inline-block !important;
        flex: none !important;
        padding: 0 !important;
    }
}

@media (max-width: 576px) {
    .hero-slider, .slide-content {
        max-height: 300px;
        height: 300px;
    }
    
    .slide-text {
        padding: 20px 0 0 20px;
        width: 50%;
    }
    
    .slide-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .slide-offer {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .bonus-button {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .slide-image {
        width: 65%;
    }
    
    .racer-image {
        object-position: 85% center;
        transform: scale(1.15);
    }
}

/* Extra small devices optimization */
@media (max-width: 480px) {
    .hero-slider, .slide-content {
        max-height: 250px;
        height: 250px;
    }
    
    .slide-text {
        padding: 15px 0 0 15px;
        width: 45%;
    }
    
    .slide-title {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .slide-subtitle {
        font-size: 16px;
        margin-bottom: 3px;
    }
    
    .slide-offer {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .slide-image {
        width: 70%;
    }
    
    .racer-image {
        object-position: 75% center;
        transform: scale(1.25);
    }
    
    .bonus-button {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Additional optimization for very small screens */
@media (max-width: 375px) {
    .slide-text {
        width: 45%;
    }
    
    .slide-image {
        width: 75%;
    }
    
    .racer-image {
        transform: scale(1.3);
        object-position: 70% center;
    }
}

@media (pointer: coarse) {
    .slider-dot {
        min-height: unset !important;
        min-width: unset !important;
        width: 8px !important;
        height: 8px !important;
        display: inline-block !important;
    }
}

/* Games Grid */
.games {
    padding: 35px 0 60px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    background-color: #000;
    row-gap: 10px;
}

@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

.game-tile {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #222;
}

.game-tile:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
}

.game-tile img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    background-color: #000;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-tile:hover .game-overlay {
    opacity: 1;
    border: none;
}

.demo-tag {
    background-color: var(--dark-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0.7;
    align-self: center;
    margin-bottom: 10px;
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
    font-weight: normal;
}

.play-button {
    display: inline-block;
    background-color: var(--button-green);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    font-size: 12px;
    margin-top: 10px;
}

.game-tile:hover .game-overlay {
    opacity: 1;
    border: none;
}

.joker-button {
    text-align: center;
    margin-top: 40px;
}

.joker-button .button-green {
    font-size: 14px;
    padding: 12px 40px;
    background-color: var(--button-green);
    color: #fff;
    border: none;
}

.joker-button .button-green:hover {
    background-color: var(--button-green-hover);
}

/* Menú móvil hamburguesa */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 100;
    margin-left: auto;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

@media screen and (max-width: 992px) {
    /* Fixed header for mobile */
    header {
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 1000;
        background-color: var(--header-bg);
        padding: 12px 0;
    }
    
    /* Add padding to body to account for fixed header */
    body {
        padding-top: 60px;
    }
    
    .header-container {
        flex-wrap: wrap;
        padding: 0 15px 0 60px;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Fixed logo for mobile */
    .header-logo {
        position: fixed;
        top: 12px;
        left: 15px;
        z-index: 1010;
    }
    
    .header-logo img {
        height: 35px;
    }
    
    /* Mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
        order: 3;
        margin-left: 10px;
        align-items: center;
        z-index: 1005;
    }
    
    /* Registration button */
    .mobile-register-button {
        display: block;
        order: 2;
        margin-left: auto;
        margin-right: 10px;
        z-index: 1005;
    }
    
    /* Hide desktop actions */
    .header-actions {
        display: none;
    }
    
    /* Mobile navigation */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        z-index: 999;
        padding-top: 80px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        opacity: 0;
        visibility: hidden;
        justify-content: center;
    }
    
    .main-nav.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        overflow-y: auto;
    }
    
    /* Remove the duplicate logo in the mobile menu */
    .main-nav::before {
        /* Removing the logo from mobile menu */
        content: none;
        display: none;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 20px;
        padding: 15px 0;
        justify-content: center;
    }
    
    .nav-link {
        padding: 10px 0;
        font-size: 16px;
        white-space: normal;
        align-items: center;
        justify-content: center;
    }
    
    .nav-icon {
        width: 45px;
        height: 45px;
    }
    
    .mobile-only-nav-item {
        display: block;
    }
    
    /* Adjust vertical spacing of menu items in mobile nav */
    .nav-menu {
        padding-top: 5px;
        text-align: center;
    }
    
    .nav-link {
        display: inline-flex;
        padding: 8px 0;
        font-size: 16px;
        justify-content: flex-start;
        width: 240px;
        margin: 0 auto;
    }
    
    /* Ensure icons aligned with text in mobile menu */
    .nav-icon {
        margin-right: 15px;
    }
}

@media screen and (max-width: 768px) {
    .header-container {
        padding-right: 10px;
    }
    
    .header-logo img {
        height: 30px;
    }
    
    .nav-link {
        font-size: 15px;
    }
    
    .nav-icon {
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width: 576px) {
    .header-logo img {
        height: 28px;
    }
    
    .mobile-register-button .button-register {
        padding: 6px 14px;
        font-size: 12px;
    }
}

@media (pointer: coarse) {
    .nav-link,
    .button-register,
    .button-green,
    .play-button,
    .slider-dot {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.faq-item.active .faq-question {
    background-color: rgba(255, 0, 0, 0.1);
    border-left: 4px solid var(--accent-green);
}

h1, h2, h3 {
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
}

h2 {
    position: relative;
    padding-left: 15px;
}

h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    height: 70%;
    width: 5px;
    background-color: var(--accent-green);
}

.casino-info-table tr:nth-child(odd) {
    background-color: #0a0a0a;
}

.casino-info-table tr:nth-child(even) {
    background-color: #050505;
}

.mobile-menu-toggle.active span {
    background-color: var(--accent-green);
}

@media (hover: none) {
    .game-overlay {
        opacity: 0;
        background: rgba(0, 0, 0, 0.7);
        transition: opacity 0.3s ease;
    }
    
    .game-tile:active .game-overlay,
    .game-tile:focus .game-overlay,
    .game-tile.touched .game-overlay {
        opacity: 1;
    }
    
    .play-button {
        font-size: 14px;
        padding: 12px 20px;
        transition: transform 0.2s ease, background-color 0.3s ease;
    }
    
    .play-button:active {
        transform: scale(0.95);
    }
    
    .demo-tag {
        margin-bottom: 15px;
    }
}

/* Optimized animations for mobile */
@media (max-width: 768px) {
    .slide.active img {
        animation: ken-burns-mobile 8s ease-in-out forwards;
    }
    
    @keyframes ken-burns-mobile {
        0% {
            transform: scale(1.05);
        }
        100% {
            transform: scale(1);
        }
    }
}

/* Mobile Navigation Improvements */
@media screen and (max-width: 992px) {
    .header-container {
        justify-content: space-between;
        padding: 0 15px 0 60px;
    }

    .header-actions {
        position: static;
        margin-right: 10px;
        display: none;
    }
    
    .main-nav {
        flex-grow: 1;
        margin-right: 0;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        z-index: 999;
        padding-top: 80px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-link {
        padding: 12px 0;
        display: flex;
        align-items: center;
    }
    
    .nav-icon {
        margin-right: 15px;
    }
    
    /* Improve spacing of section headings for better mobile navigation targets */
    .seo-text h2 {
        margin-top: 60px;
        padding-top: 25px;
    }
    
    /* Adjust for header height in mobile scroll-padding */
    html {
        scroll-padding-top: 100px;
    }
    
    /* Fix vertical line position for h2 headers on mobile */
    h2:before {
        height: 80%;
        width: 5px;
        left: 0;
        top: 13px;
    }
}

@media screen and (max-width: 576px) {
    /* Further adjustments for smaller screens */
    html {
        scroll-padding-top: 80px;
    }
    
    .nav-icon {
        margin-right: 12px;
    }
    
    /* Ensure vertical line is properly positioned on very small screens */
    h2:before {
        height: 80%;
        width: 5px;
        left: 0;
        top: 11px;
    }
    
    /* Extra small screen adjustment for СЛОТЫ И АВТОМАТЫ heading - REMOVED as redundant */
}

/* Mobile-specific fix for СЛОТЫ И АВТОМАТЫ heading vertical line */
@media screen and (max-width: 768px) {
    #slots-section {
        position: relative !important;
        padding-left: 15px !important;
    }
    
    #slots-section:before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        height: 100% !important;
        width: 5px;
        background-color: #ff0000;
        z-index: 1;
    }
}

/* Extra small screen refinements */
@media screen and (max-width: 480px) {
    #slots-section {
        padding-left: 15px !important;
    }
    
    #slots-section:before {
        width: 5px;
    }
}

/* Mobile-specific header adjustments */
@media screen and (max-width: 992px) {
    header {
        padding: 10px 0;
    }
    
    .mobile-register-button .button-register {
        white-space: nowrap;
        font-size: 13px;
        padding: 8px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 36px;
    }
}

@media screen and (max-width: 480px) {
    .header-logo img {
        height: 28px;
    }
    
    .mobile-register-button .button-register {
        font-size: 12px;
        padding: 6px 12px;
        height: 32px;
    }
    
    .header-container {
        padding-left: 45px;
    }
}

/* Main content adjustments for fixed mobile header */
@media screen and (max-width: 992px) {
    main {
        padding-top: 10px;
    }
    
    .hero-slider {
        margin-top: 0;
    }

    /* Adjust anchor scroll positions to account for fixed header */
    html {
        scroll-padding-top: 65px;
    }
} 