/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f2f4f7;
}

/* CSS Variables for consistent theming */
:root {
    --primary-gradient: linear-gradient(180deg, #1cadfe, #0064e0);
    --secondary-gradient: linear-gradient(180deg, #263f89, #0d243c);
    --bg-light: #f2f4f7;
    --bg-white: #fff;
    --text-dark: #333;
    --text-light: #666;
    --border-radius: 8px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 1.8rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: #1cadfe;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #0064e0;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 0;
}

.col {
    /* Grid автоматически управляет размещением */
}

/* Responsive Grid Templates */
/* Mobile: 1 column */
.row {
    grid-template-columns: 1fr;
}

/* Grid для разных макетов */
.row-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.row-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.row-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Header Styles */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

header .container {
    max-width: unset;
}

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

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

.nav {
    display: none;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav a:hover {
    color: #1cadfe;
    background: rgba(28, 173, 254, 0.1);
}

.nav a.active {
    background: var(--primary-gradient);
    color: white;
}

.nav a.active:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-1px);
}

.header-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    min-height: 44px;
    line-height: 1.2;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 6px 20px rgba(28, 173, 254, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #1cadfe;
    border: 2px solid #1cadfe;
}

.btn-secondary:hover {
    background: #1cadfe;
    color: white;
}

/* New outline button style */
.btn-outline {
    background: transparent;
    color: #1cadfe;
    border: 2px solid #1cadfe;
    padding: 0.75rem 1.5rem;
}

.btn-outline:hover {
    background: #1cadfe;
    color: white;
    transform: translateY(-1px);
}

/* New link button style */
.btn-link {
    background: none;
    border: none;
    color: #1cadfe;
    padding: 0.75rem 1rem;
    font-weight: normal;
    text-decoration: none;
    min-height: auto;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: #0d8ae8;
    text-decoration: underline;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* App Download Banner */
.app-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1cadfe 0%, #0d8ae8 100%);
    color: white;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.app-banner.show {
    transform: translateY(0);
}

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

.app-banner-text {
    flex: 1;
}

.app-banner-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
}

.app-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    color: white;
}

.app-banner-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.app-store-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    color: white;
}

.app-store-btn .icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.banner-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.banner-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile adaptations for banner */
@media (max-width: 768px) {
    .app-banner-content {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .app-banner-text {
        text-align: center;
    }
    
    .app-banner-text h3 {
        font-size: 1rem;
    }
    
    .app-banner-text p {
        font-size: 0.85rem;
    }
    
    .app-banner-buttons {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .app-store-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .banner-close {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .app-banner-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .app-store-btn {
        justify-content: center;
        width: 100%;
        max-width: 200px;
    }
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-white);
    z-index: 9999;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu ul {
    list-style: none;
    margin-top: 2rem;
}

.mobile-menu li {
    margin-bottom: 1rem;
}

.mobile-menu a {
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    display: block;
    transition: var(--transition);
}

.mobile-menu a:hover {
    background: rgba(28, 173, 254, 0.1);
    color: #1cadfe;
}

.mobile-menu a.active {
    background: var(--primary-gradient);
    color: white;
}

.mobile-menu a.active:hover {
    background: var(--primary-gradient);
    color: white;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    padding: 3rem 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--secondary-gradient);
    opacity: 0.8;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-white {
    background: var(--bg-white);
}

.section-light {
    background: var(--bg-light);
}

/* Feature Cards */
.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 0;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    color: #1cadfe;
    margin-bottom: 1rem;
}

.feature-card .btn {
    margin-top: auto;
}

/* Game Cards */
.game-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 0;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.game-card img {
    width: 100%;
    object-fit: cover;
}

.game-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-card-content .btn {
    margin-top: auto;
}

.game-card h3 {
    margin-bottom: 0.5rem;
}

.game-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: var(--primary-gradient);
    color: white;
    font-weight: bold;
}

tr:hover {
    background: #f8f9fa;
}

/* FAQ */
.faq-item {
    background: var(--bg-white);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    background: var(--primary-gradient);
    color: white;
    margin: 0;
}

.faq-answer {
    padding: 1.5rem;
    display: none;
}

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

/* Footer */
.footer {
    background: var(--secondary-gradient);
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    text-align: center;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.payment-method {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.hidden { display: none; }

/* Responsive Design - Tablet */

@media (min-width:1480px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav {
        display: block;
    }
}


@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    /* Grid Templates для планшетов */
    .row {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .row-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .row-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .row-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
    .container {
        padding: 0 3rem;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 5rem 0;
    }
    /* Grid Templates для десктопа */
    .row {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .row-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .row-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .row-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
    
    .row-6 {
        grid-template-columns: repeat(6, 1fr);
        gap: 2rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
.btn:focus,
a:focus,
button:focus {
    outline: 2px solid #1cadfe;
    outline-offset: 2px;
} 


.header-buttons {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

/* Hide login button on narrow screens */
.header-buttons .btn-link {
    display: none;
}

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

@media (min-width:389px) {
    .header-buttons {
        order: 2 !important;
        width: auto;
        margin-top: 0;
    }

    .mobile-menu-toggle {
        order: 3 !important;
    }

    .header-content {
        flex-wrap: nowrap;
    }
}

/* Show login button on wider screens */
@media (min-width: 768px) {
    .header-buttons .btn-link {
        display: inline-block;
    }
}