* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Цветовая палитра из логотипа */
    --gold-primary: #F7B72A;
    --gold-light: #FFE752;
    --gold-medium: #EDBC44;
    --gold-dark: #D4931E;
    --gold-darker: #A75E06;
    --blue-primary: #155FB3;
    --blue-dark: #0A2877;
    --blue-darker: #113984;
    --dark-bg: #262525;
    --dark-text: #070707;
    --white: #FFFFFF;
    --gray-light: #EEEDED;
    --gray-medium: #888787;
}

html {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #000000;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    height: 60px;
    width: auto;
}

.logo img {
    height: 100%;
    width: auto;
}

.header-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.main-nav a:hover {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--dark-text);
    transform: translateY(-2px);
}

/* Mobile Casinos Link */
.casinos-link-mobile {
    display: none;
    color: var(--white);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--dark-text);
}

.casinos-link-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(247, 183, 42, 0.3);
}

.casinos-link-desktop {
    display: inline-block;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
    width: 30px;
    height: 30px;
    justify-content: center;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--blue-darker) 0%, var(--blue-primary) 50%, var(--gold-primary) 100%);
    padding: 50px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::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"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    color: var(--white);
    font-weight: 600;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 0;
    opacity: 0.85;
    color: var(--gray-light);
}

/* Main Content */
main {
    background: var(--white);
    padding: 60px 0;
}

section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--blue-dark);
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    margin: 30px 0 20px;
    color: var(--blue-primary);
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Casinos Section Wrapper */
.casinos-section-wrapper {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Casino Table */
.casino-table-wrapper {
    margin: 40px 0;
    overflow-x: auto;
}

.casino-table-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.casino-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    min-width: 600px;
}

.casino-table thead {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 100%);
    color: var(--white);
}

.casino-table th {
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.casino-table td {
    padding: 15px 10px;
    border-bottom: 1px solid var(--gray-light);
    vertical-align: middle;
}

.casino-table tbody tr {
    transition: background 0.3s ease;
}

.casino-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(247, 183, 42, 0.1) 0%, rgba(255, 231, 82, 0.1) 100%);
}

/* Top-1 Casino Styling */
.casino-top-1 {
    position: relative;
    background: linear-gradient(135deg, rgba(247, 183, 42, 0.15) 0%, rgba(255, 231, 82, 0.1) 100%) !important;
    border: 2px solid var(--gold-primary) !important;
    border-radius: 10px;
}

.casino-top-1::before {
    content: "🏆 TOP 1";
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(247, 183, 42, 0.4);
    z-index: 10;
}

.casino-card.casino-top-1 {
    border: 2px solid var(--gold-primary);
    background: linear-gradient(135deg, rgba(247, 183, 42, 0.1) 0%, rgba(255, 231, 82, 0.05) 100%);
    position: relative;
    box-shadow: 0 6px 20px rgba(247, 183, 42, 0.3);
}

.casino-card.casino-top-1::before {
    content: "🏆 TOP 1";
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(247, 183, 42, 0.4);
    z-index: 10;
}

.casino-table tbody tr:last-child td {
    border-bottom: none;
}

.casino-table tbody tr.casino-top-1 td {
    border-bottom: 2px solid var(--gold-primary);
    background: linear-gradient(135deg, rgba(247, 183, 42, 0.15) 0%, rgba(255, 231, 82, 0.1) 100%);
}

.casino-table tbody tr.casino-top-1 td:first-child {
    border-left: 3px solid var(--gold-primary);
}

.casino-table tbody tr.casino-top-1:hover {
    background: linear-gradient(135deg, rgba(247, 183, 42, 0.2) 0%, rgba(255, 231, 82, 0.15) 100%) !important;
}

.casino-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.casino-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    max-width: 120px;
}

.payment-logos-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.payment-logos-row img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.casino-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(247, 183, 42, 0.3);
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.casino-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 183, 42, 0.5);
}

/* Mobile Casino Cards */
.casino-cards {
    display: none;
}

.casino-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.casino-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.casino-card-header img {
    height: 50px;
    width: auto;
    object-fit: contain;
    max-width: 150px;
}

.casino-card-bonus {
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 15px;
    text-align: center;
}

.casino-card-payments {
    margin-bottom: 15px;
}

.casino-card-payments .payment-label {
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin-bottom: 10px;
    font-weight: 600;
}

.casino-card-payments .payment-logos-row {
    justify-content: center;
}

.casino-card-action {
    text-align: center;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
}

.payment-item {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(247, 183, 42, 0.3);
}

.payment-item img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--gold-primary);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(247, 183, 42, 0.3);
}

.feature-card h3 {
    color: var(--blue-dark);
    margin-top: 0;
}

/* FAQ Section */
.faq-item {
    background: var(--white);
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-dark) 100%);
    color: var(--white);
    padding: 20px;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 100%);
}

.faq-answer {
    padding: 20px;
    color: var(--dark-text);
    line-height: 1.8;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-text) 100%);
    color: var(--white);
    padding: 25px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-about {
    flex: 1;
    min-width: 300px;
}

.footer-about h3 {
    color: var(--gold-primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.footer-about p {
    margin-bottom: 10px;
    opacity: 0.9;
    line-height: 1.5;
    text-align: left;
    font-size: 0.9rem;
}

.footer-nav {
    flex: 0 0 auto;
}

.footer-nav h3 {
    color: var(--gold-primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.footer-nav nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.footer-nav nav a {
    color: var(--white);
    text-decoration: none;
    padding: 3px 0;
    transition: color 0.3s ease;
    opacity: 0.9;
    font-size: 0.9rem;
}

.footer-nav nav a:hover {
    color: var(--gold-primary);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 5px;
    opacity: 0.8;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 35px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.95rem;
        opacity: 0.8;
    }

    .error-hero {
        padding: 50px 0;
    }

    .error-code {
        font-size: 5rem;
    }

    .error-hero h1 {
        font-size: 1.8rem;
    }

    .error-hero p {
        font-size: 1rem;
    }

    .error-card {
        padding: 25px;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-actions .btn {
        width: 100%;
    }

    h2 {
        font-size: 2rem;
    }

    .casino-table-wrapper {
        overflow-x: hidden;
        margin: 0;
    }

    .casino-table {
        display: none;
    }
    
    .container {
        padding: 0 15px;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    .payment-methods {
        padding: 0 10px;
    }
    
    .payment-item {
        max-width: calc(50% - 10px);
    }

    .casino-cards {
        display: block;
    }

    .casino-cards h3 {
        font-size: 1.5rem;
        color: var(--blue-dark);
        margin: 20px 0 10px;
        font-weight: 600;
    }

    .casino-cards h3:first-child {
        margin-top: 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-wrap: nowrap;
    }

    .header-nav-wrapper {
        gap: 10px;
    }

    .casinos-link-mobile {
        display: inline-block;
    }

    .casinos-link-desktop {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: #000000;
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav a {
        padding: 12px 16px;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-about {
        min-width: 100%;
    }

    .footer-nav nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Emoji styling */
.emoji {
    font-size: 1.5rem;
    margin-right: 10px;
}

/* Highlight text */
.highlight {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 183, 42, 0.3);
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(247, 183, 42, 0.5);
}

/* Expandable content */
.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.expandable-content.expanded {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

.expand-btn {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(247, 183, 42, 0.3);
}

.expand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(247, 183, 42, 0.5);
}

/* 404 Error Page Styles */
.error-hero {
    background: linear-gradient(135deg, var(--blue-darker) 0%, var(--blue-primary) 50%, var(--gold-primary) 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.error-content {
    position: relative;
    z-index: 1;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.error-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--white);
    font-weight: 600;
}

.error-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.error-section {
    background: var(--white);
    padding: 60px 0;
}

.error-card {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 4px solid var(--gold-primary);
}

.error-card h2 {
    font-size: 2rem;
    color: var(--blue-dark);
    margin-bottom: 20px;
    padding-bottom: 0;
}

.error-card h2::after {
    display: none;
}

.error-description {
    font-size: 1.1rem;
    color: var(--dark-text);
    margin-bottom: 30px;
    line-height: 1.8;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.error-help {
    text-align: left;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-light);
}

.error-help h3 {
    color: var(--blue-primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.error-list {
    list-style: none;
    padding: 0;
}

.error-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--dark-text);
    line-height: 1.6;
}

.error-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.error-list a {
    color: var(--blue-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.error-list a:hover {
    color: var(--gold-primary);
}
