@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #181C3A; /* Deep navy for text on light */
    background: linear-gradient(135deg, #F5F6FF 0%, #E8EBF5 50%, #F5F6FF 100%);
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 78, 177, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(24, 28, 58, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Header styles - перероблено з нуля */
.main-header {
    background: linear-gradient(135deg, #181C3A 0%, #23285A 100%);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(24, 28, 58, 0.15);
    backdrop-filter: blur(10px);
}

.header-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
}

/* Фавікон зліва */
.header-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
}

.favicon {
    height: 32px;
    width: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-decoration: none;
    color: #fff;
}

.logo-line1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.logo-line2 {
    font-size: 0.85rem;
    font-weight: 500;
    color: #FF4EB1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Меню по центру (десктоп) */
.desktop-menu {
    display: none;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.desktop-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: nowrap;
}

.desktop-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.desktop-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF4EB1;
    transition: width 0.3s ease;
}

.desktop-menu a:hover {
    color: #FF4EB1;
}

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

/* Кнопка справа */
.header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    z-index: 2;
}

.login-btn {
    background: linear-gradient(135deg, #23285A 0%, #30356D 100%);
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(24,28,58,0.2);
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 78, 177, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-btn:hover::before {
    width: 300px;
    height: 300px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #FF4EB1 0%, #E13B9C 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 78, 177, 0.4);
}

/* Бургер-меню (мобільна версія) */
.burger-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    flex: 0 0 auto;
    z-index: 2;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: 0.3s;
}

/* Мобільне меню */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #181C3A;
    padding: 1rem;
    z-index: 999;
}

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

.mobile-menu ul {
    list-style: none;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: 0.3s;
}

.mobile-menu a:hover {
    color: #FF4EB1;
}

/* Hero section */
.hero {
    background-image: url('images/fortunica-banner.webp');
    background-size: cover;
    background-position: center;
    height: 70vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 1rem;
    border-radius: 1.5rem;
    margin-top: 80px;
    box-shadow: 0 8px 32px rgba(24,28,58,0.15);
    position: relative;
    overflow: hidden;
}

/* Для екранів до 768px використовуємо tablet зображення */
@media (max-width: 768px) {
    .hero {
        background-image: url('images/fortunica-mobile-banner.webp');
        height: auto;
        min-height: auto;
        padding: 1rem;
        margin-top: 70px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(24,28,58,0.1) 0%, rgba(255,78,177,0.05) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero .hero-content {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 900px;
}

.hero-content {
    color: #12194c;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.4) 100%);
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(24,28,58,0.12), 0 0 0 1px rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    position: relative;
    animation: fadeInUp 0.8s ease-out;
    display: block;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem 1rem;
        max-height: calc(100vh - 150px);
        overflow-y: auto;
    }
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #12194c;
    line-height: 1.2;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    margin-top: 1rem;
    align-items: center;
}

.hero-buttons .cta-button {
    margin-top: 0;
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    text-align: center;
}

.hero-buttons a.cta-button {
    text-decoration: none;
    display: inline-block;
    flex: 1 1 0;
    min-width: 0;
}

.hero-buttons .cta-button:last-child,
.hero-buttons a.cta-button:last-child {
    background: linear-gradient(135deg, #23285A 0%, #30356D 100%);
}

.hero-buttons .cta-button:last-child:hover,
.hero-buttons a.cta-button:last-child:hover {
    background: linear-gradient(135deg, #30356D 0%, #3D4378 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(35, 40, 90, 0.4);
}


.hero-content ul {
    text-align: left;
    max-width: 800px;
    margin: 1rem auto;
    padding-left: 0;
    list-style: none;
}

.hero-content ul li {
    margin-bottom: 1.5rem;
    line-height: 1.25;
    position: relative;
    padding-left: 1.8rem;
}

.hero-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #FF4EB1;
    font-weight: bold;
    font-size: 1.1em;
}

.hero-content ul li strong {
    color: #23285A;
    display: block;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}


.cta-button {
    background: linear-gradient(135deg, #FF4EB1 0%, #E13B9C 100%);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 78, 177, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::after {
    width: 400px;
    height: 400px;
}

.cta-button:hover {
    background: linear-gradient(135deg, #E13B9C 0%, #C92A87 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 78, 177, 0.4);
}

/* Content section */
.content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem 1rem 0 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(24,28,58,0.1), 0 0 0 1px rgba(24,28,58,0.05);
    position: relative;
    z-index: 1;
}



.content h2 {
    color: #181C3A;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #FF4EB1 0%, #23285A 100%);
    border-radius: 2px;
}

.content h3 {
    color: #23285A;
    margin: 2rem 0 1rem;
}

.content p {
    margin-bottom: 1rem;
}

/* Bonus Image */
.bonus-image {
    margin: 2rem 0;
    text-align: center;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(24,28,58,0.1);
    position: relative;
}

.bonus-image img {
    width: 100%;
    height: auto;
    min-height: 400px;
    display: block;
    margin: 0 auto;
    border-radius: 1rem;
    transition: transform 0.3s ease;
    object-fit: cover;
    object-position: center;
}

.bonus-image img:hover {
    transform: scale(1.02);
}

.bonus-image-overlay {
    position: absolute;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    padding: 2rem;
    border-radius: 1rem;
    max-width: 45%;
    box-shadow: 0 4px 20px rgba(24,28,58,0.3);
    z-index: 1;
}

.bonus-image-overlay h3 {
    color: #23285A;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.bonus-image-overlay p {
    color: #23285A;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.promo-code {
    color: #FF4EB1;
    font-weight: bold;
    font-size: 1.1em;
}

.promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, #FF4EB1 0%, #E13B9C 100%);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 78, 177, 0.3);
    position: relative;
    overflow: hidden;
}

.promo-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.promo-btn:hover::after {
    width: 400px;
    height: 400px;
}

.promo-btn:hover {
    background: linear-gradient(135deg, #E13B9C 0%, #C92A87 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 78, 177, 0.4);
    color: #fff;
}

@media (max-width: 768px) {
    .bonus-image-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 1rem;
        max-width: calc(100% - 2rem);
        width: calc(100% - 2rem);
        max-height: calc(100% - 2rem);
        overflow-y: auto;
    }
    
    .bonus-image-overlay h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .bonus-image-overlay p {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }
    
    .promo-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }
    
    .bonus-image {
        overflow: visible;
        margin: 1rem 0;
    }
    
    .bonus-image img {
        min-height: 300px;
        width: 100vw;
        max-width: none;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        border-radius: 0;
    }
}

/* Screenshot Carousel */
.screenshot-carousel {
    position: relative;
    max-width: 100%;
    margin: 2rem 0;
    background: #F5F6FF;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 12px rgba(24,28,58,0.08);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16/9;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0.5rem;
    background: #fff;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(24,28,58,0.9) 0%, rgba(35,40,90,0.9) 100%);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(24,28,58,0.3);
    backdrop-filter: blur(10px);
}

.carousel-button:hover {
    background: linear-gradient(135deg, #FF4EB1 0%, #E13B9C 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 78, 177, 0.4);
}

.carousel-button.prev {
    left: 1rem;
}

.carousel-button.next {
    right: 1rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E0E3F5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    transform: scale(1.2);
    background: #FF4EB1;
}

.carousel-dot.active {
    background: linear-gradient(135deg, #FF4EB1 0%, #E13B9C 100%);
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(255, 78, 177, 0.4);
}

@media (max-width: 768px) {
    .carousel-container {
        max-width: 100%;
        aspect-ratio: 4/3;
    }
    
    .carousel-button {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .carousel-button.prev {
        left: 0.5rem;
    }
    
    .carousel-button.next {
        right: 0.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .carousel-container {
        max-width: 90%;
    }
}

@media (min-width: 1025px) {
    .carousel-container {
        max-width: 800px;
    }
}

/* Content Navigation */
.content-nav {
    background: linear-gradient(135deg, #F5F6FF 0%, #E8EBF5 100%);
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(24,28,58,0.1), inset 0 1px 0 rgba(255,255,255,0.5);
    overflow: visible;
    position: relative;
    border: 1px solid rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-nav::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #FF4EB1, #23285A, #FF4EB1);
    border-radius: 1rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-nav:hover::before {
    opacity: 0.1;
}

.nav-toggle {
    color: #181C3A;
    font-size: 1.2rem;
    margin-bottom: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.nav-toggle.active {
    margin-bottom: 0.75rem;
}

.nav-toggle:hover {
    background: rgba(255,255,255,0.5);
}

.toggle-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.nav-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.nav-content {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s ease-out, gap 0.3s ease-out;
}

.nav-content.active {
    max-height: 1000px;
    padding: 0.5rem 0 0 0;
    gap: 0.8rem;
    opacity: 1;
    visibility: visible;
}

.content-nav a {
    color: #23285A;
    text-decoration: none;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
}

.content-nav a::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.content-nav a:hover::before {
    left: 100%;
}

.content-nav a:hover {
    background: linear-gradient(135deg, #FF4EB1 0%, #E13B9C 100%);
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 78, 177, 0.3);
    border-color: rgba(255,255,255,0.3);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: clamp(1rem, 2rem, 2rem);
    right: clamp(1rem, 2rem, 2rem);
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #FF4EB1 0%, #E13B9C 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255, 78, 177, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: visible;
    contain: layout style paint;
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.back-to-top:hover::before {
    width: 200px;
    height: 200px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #E13B9C 0%, #C92A87 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 78, 177, 0.5);
}

@media (max-width: 768px) {
    .content-nav {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .nav-content {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.2rem;
    }
    
    .back-to-top:hover {
        transform: translateY(-2px) scale(1.05);
    }
}

.content ul {
    padding-bottom: 16px;
    list-style: none;
    padding-left: 0;
}

.content ol {
    margin-left: 0;
    margin-bottom: 2rem;
    padding-left: 0;
    list-style: none;
    counter-reset: step-counter;
}

.content ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #FF4EB1;
    font-weight: bold;
    font-size: 1.1em;
}

.content ol li {
    position: relative;
    margin-left: 0;
    padding-left: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    counter-increment: step-counter;
}

.content ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.8rem;
    height: 1.8rem;
    background: linear-gradient(135deg, #FF4EB1 0%, #E13B9C 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(255, 78, 177, 0.3);
}

/* Table styles */
.games-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(24,28,58,0.08);
}

.games-table th,
.games-table td {
    padding: 1rem 4rem;
    text-align: left;
    border-bottom: 1px solid #E0E3F5;
}

.games-table th:last-child,
.games-table td:last-child {
    padding-right: 10rem;
}

.games-table th {
    background: #23285A;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.games-table td {
    color: #181C3A;
}

.games-table td:first-child {
    font-weight: 600;
    color: #23285A;
}

.games-table tr {
    transition: all 0.3s ease;
    background: #fff;
}

.games-table tr:hover {
    background: #F5F6FF;
}

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

/* Мобільна версія таблиці - для екранів до 768px */
@media (max-width: 768px) {
    .games-table th,
    .games-table td {
        padding: 0.75rem 1rem;
    }
    
    .games-table th:last-child,
    .games-table td:last-child {
        padding-right: 1rem;
    }
    
    .games-table th {
        font-size: 0.9rem;
    }
    
    .games-table td {
        font-size: 0.85rem;
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, #181C3A 0%, #23285A 100%);
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 1rem 1rem 0 0;
    position: relative;
    box-shadow: 0 -4px 20px rgba(24,28,58,0.15);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF4EB1 0%, #23285A 50%, #FF4EB1 100%);
}

/* Responsive design */
/* Мобільна версія - бургер меню */
@media (max-width: 768px) {
    .desktop-menu {
        display: none !important;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .header-wrapper {
        justify-content: space-between;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .hero-buttons {
        flex-direction: row !important;
        justify-content: center;
        flex-wrap: wrap !important;
        gap: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .hero-buttons .cta-button {
        flex: 1 1 auto !important;
        min-width: 0;
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
        text-align: center;
    }
    
    .hero-buttons a.cta-button {
        flex: 1 1 auto !important;
        min-width: 0;
    }
    
    .hero-content ul {
        margin-top: 0;
    }
    
    
    .hero-content ul {
        max-width: 100%;
        margin: 0;
    }
    
    .hero-content ul li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    .games-table {
        display: block;
        overflow-x: auto;
    }
    .content {
        border-radius: 0.5rem;
    }
    .hero {
        border-radius: 0.5rem;
    }
    footer {
        border-radius: 0.5rem 0.5rem 0 0;
    }
}

/* Десктопна версія - меню по центру */
@media (min-width: 769px) {
    .burger-menu {
        display: none !important;
    }
    
    .header-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-left {
        flex: 0 0 auto;
        order: 1;
    }
    
    .desktop-menu {
        display: flex !important;
        flex: 1;
        justify-content: center;
        order: 2;
    }
    
    .desktop-menu ul {
        display: flex !important;
    }
    
    .header-right {
        flex: 0 0 auto;
        order: 3;
    }
    
    .mobile-menu {
        display: none;
    }
}


/* FAQ Section */
.faq-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(24,28,58,0.1), 0 0 0 1px rgba(24,28,58,0.05);
    position: relative;
    z-index: 1;
}


.faq-section h2 {
    color: #181C3A;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #E0E3F5;
    padding-bottom: 1.5rem;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    color: #23285A;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    color: #FF4EB1;
    background: rgba(255, 78, 177, 0.05);
}

.faq-question.active {
    color: #FF4EB1;
    background: rgba(255, 78, 177, 0.1);
}

.faq-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #FF4EB1;
    margin-left: 1rem;
    flex-shrink: 0;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    color: #181C3A;
    line-height: 1.6;
    padding-left: 1rem;
    border-left: 3px solid;
    border-image: linear-gradient(180deg, #FF4EB1 0%, #23285A 100%) 1;
    margin: 0;
    position: relative;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
    padding-top: 0;
    padding-bottom: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 0.5rem;
    }
    
    .faq-section h2 {
        font-size: 1.5rem;
    }
    
    .faq-question {
        font-size: 1rem;
    }
}

/* Bonus Block */
.bonus-block {
    background-image: url('images/fortunica-footer-banner.webp');
    background-size: cover;
    background-position: center;
    padding: 3rem 1rem;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(24,28,58,0.15);
    position: relative;
    overflow: hidden;
}

.bonus-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(24,28,58,0.1) 0%, rgba(255,78,177,0.05) 100%);
    pointer-events: none;
}

.bonus-block .hero-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.4) 100%);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(24,28,58,0.3);
    display: block;
}

.bonus-block h1 {
    color: #12194c;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.bonus-block p {
    color: #23285A;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .bonus-block {
        padding: 2rem 1rem;
        margin: 1rem;
        border-radius: 0.5rem;
        background-image: url('images/fortunica-mobile-banner.webp');
    }
    
    .bonus-block h1 {
        font-size: 1.8rem;
    }
    
    .bonus-block p {
        font-size: 1.1rem;
    }
}

.footer-banner {
    max-width: 1200px;
    margin: 2rem auto 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(24, 28, 58, 0.12);
}

.footer-banner a {
    display: block;
}

.footer-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 10px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #bbb;
}

.enlargeable {
    cursor: pointer;
    transition: transform 0.2s;
}

.enlargeable:hover {
    transform: scale(1.05);
}
