@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Tote Casino CSS Styles */
:root {
    --primary-color: #dc2626;
    --secondary-color: #fbbf24;
    --dark-bg: #F0F1F2;
    --light-text: #1f2937;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --gradient-primary: linear-gradient(135deg, #dc2626 0%, #fbbf24 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --border-radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --card-bg: #ffffff;
    --text-secondary: #4b5563;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--light-text);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    background: var(--primary-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    color: var(--light-text);
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* Header Styles */
.header {
    background: var(--primary-color);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.header-container {
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 24px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    color: var(--card-bg);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
    background: rgba(251, 191, 36, 0.25);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    min-height: 44px;
    line-height: 1.2;
}

header .cta-buttons .btn-primary {
    background: var(--card-bg);
    color: var(--light-text);
}

header .cta-buttons .btn-outline {
    border: 2px solid var(--card-bg);
    color: var(--card-bg);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--card-bg);
    border-radius: 2px;
    transition: var(--transition);
}

/* ИСПРАВЛЕННАЯ HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #9ca3af 100%);
    padding: 0 2rem;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* СОВРЕМЕННОЕ ПОЗИЦИОНИРОВАНИЕ КОНТЕНТА */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    max-width: 28%;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-right: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.5;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
    min-width: 200px;
}

/* Main Content */
.main-content {
    padding-top: 80px;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Card Components */
.card {
    background: var(--card-bg);
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.card img {
    width: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.table th {
    background: #f9fafb;
    color: var(--primary-color);
    font-weight: 600;
}

.table td {
    color: var(--text-secondary);
}

.table tr:hover {
    background: #f9fafb;
}

/* FAQ Section */
.faq {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--card-bg);
    border-top: 1px solid #e5e7eb;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.payment-icon {
    width: 40px;
    height: 25px;
    background: #f3f4f6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    border: 1px solid #e5e7eb;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* СОВРЕМЕННАЯ АДАПТИВНОСТЬ */

/* Очень большие экраны (1440px+) */
@media (min-width: 1440px) {
    .hero-content {
        max-width: 26%;
        padding: 3rem;
        margin-right: 4rem;
    }
    
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

/* Большие экраны (1280px - 1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
    .hero-content {
        max-width: 30%;
        margin-right: 3rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

/* Средние экраны (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .container {
        max-width: 1024px;
    }

    .hero-content {
        max-width: 35%;
        margin-right: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-list {
        gap: 1rem;
    }
    
    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        border-top: 1px solid #e5e7eb;
        box-shadow: var(--shadow-lg);
        padding: 1rem;
    }
    
    .nav.visible {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        color: var(--light-text);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .cta-buttons .btn {
        padding: 0.5rem;
        min-width: 44px;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Планшеты (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 768px;
    }

    .hero {
        justify-content: center;
        align-items: flex-end;
        padding-bottom: 3rem;
    }

    .hero-content {
        max-width: 80%;
        margin: 0 auto;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* Мобильные (до 767px) */
@media (max-width: 767px) {
    .hero {
        min-height: 85vh;
        padding: 2rem 1rem;
        justify-content: center;
        align-items: flex-end;
        padding-bottom: 2rem;
    }
    
    .hero-content {
        max-width: 100%;
        margin: 0;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .grid {
        gap: 1rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .table-container {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .payment-methods {
        gap: 0.5rem;
    }
    
    .payment-icon {
        width: 35px;
        height: 22px;
        font-size: 0.625rem;
    }
}

/* Очень маленькие мобильные (до 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

.cta-buttons .btn i {
    display: none;
}

@media (max-width: 440px) {
    .cta-buttons .btn span {
        display: none;
    }

    .cta-buttons .btn i {
        display: inline;
    }

    .cta-buttons {
        gap: 0.5rem;
    }
}

/* CTA Sections */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ef4444 100%);
    padding: 4rem 0;
    margin: 4rem 0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.cta-section a {
    color: var(--secondary-color);
}

.cta-section a:hover {
    color: #ffe091;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-section .btn {
    font-size: 1.25rem;
    padding: 1rem 2.5rem;
    margin: 0.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.cta-section .btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
}

.cta-section .btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    color: var(--primary-color);
}

.cta-section .btn-outline {
    background: transparent;
    color: white;
    border: 3px solid white;
}

.cta-section .btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
.btn:focus,
.nav-link:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #dc2626;
        --secondary-color: #fbbf24;
        --light-text: #000000;
        --dark-bg: #808080;
        --card-bg: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}