:root {
    --bg-dark: #121212;
    --bg-sidebar: #1a1a1a;
    --bg-card: #252525;
    --bg-content: #1a1a1a;
    --primary: #fecb0a;
    --primary-hover: #e5b609;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --sidebar-width: 260px;
    --header-height: 80px;
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    display: flex;
    min-height: 100vh;
    line-height: 1.6;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #333;
    z-index: 1000;
}

.sidebar-logo {
    display: block;
    margin-bottom: 30px;
}

.sidebar-logo img {
    max-width: 100%;
    height: auto;
}

.sidebar-menu {
    list-style: none;
    flex-grow: 1;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    color: var(--text-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: rgba(254, 203, 10, 0.1);
    color: var(--primary);
}

.sidebar-menu a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    height: var(--header-height);
    background-color: var(--bg-dark);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.lang-switcher {
    display: flex;
    gap: 5px;
    margin-right: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #333;
}

.lang-btn {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.lang-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background-color: var(--primary);
    color: #000;
    box-shadow: 0 2px 6px rgba(254, 203, 10, 0.3);
}

.btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    text-transform: uppercase;
    display: inline-block;
}

.btn-login {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid #444;
}

.btn-login:hover {
    border-color: var(--text-white);
}

.btn-register {
    background-color: var(--primary);
    color: #000;
    box-shadow: 0 0 15px rgba(254, 203, 10, 0.4);
}

.btn-register:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 480px;
    background: url('../assets/img/promo/promo_invite_friends_1770882820820.png') center/cover no-repeat;
    background-color: #000;
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* Content Section */
.content-section {
    padding: 60px 40px;
    background-color: var(--bg-dark);
}

.content-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    background-color: var(--bg-content);
    border-radius: 16px;
    padding: 60px 80px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.content-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 25px;
    color: var(--text-white);
    line-height: 1.2;
}

.content-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Casino Card */
.casino-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, #2d2d2d 100%);
    border: 2px solid rgba(254, 203, 10, 0.3);
    border-radius: 16px;
    padding: 25px;
    margin: 40px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.casino-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(254, 203, 10, 0.2);
}

.casino-rank {
    background: linear-gradient(135deg, var(--primary) 0%, #ff9a00 100%);
    color: #000;
    font-weight: 900;
    font-size: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(254, 203, 10, 0.5);
}

.casino-left {
    display: flex;
    align-items: center;
    margin-right: 25px;
    flex-shrink: 0;
}

.casino-logo {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.casino-center {
    flex-grow: 1;
    min-width: 0;
}

.casino-code {
    margin-bottom: 15px;
}

.casino-code h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.casino-code h3 a {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s;
}

.casino-code h3 a:hover {
    color: var(--primary);
}

.casino-bonus {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.casino-code p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.casino-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.casino-rating .star {
    color: #ffc107;
    font-size: 18px;
}

.casino-actions {
    margin-left: 30px;
    flex-shrink: 0;
}

.btn-play-now {
    background: linear-gradient(135deg, var(--primary) 0%, #ff9a00 100%);
    color: #000;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(254, 203, 10, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-play-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 203, 10, 0.6);
    background: linear-gradient(135deg, var(--primary-hover) 0%, #e5a500 100%);
}

/* Table Container for Horizontal Scroll */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 40px 0 50px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Table */
.casino-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background-color: var(--bg-card);
}

.casino-table th {
    background-color: rgba(254, 203, 10, 0.15);
    color: var(--text-white);
    font-weight: 700;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 2px solid rgba(254, 203, 10, 0.3);
    white-space: nowrap;
}

.casino-table td {
    padding: 14px 20px;
    color: var(--text-gray);
    border-bottom: 1px solid #333;
    white-space: nowrap;
}

.casino-table tr:last-child td {
    border-bottom: none;
}

.casino-table tr:hover td {
    background-color: rgba(254, 203, 10, 0.05);
    color: var(--text-white);
}

/* Content Headings - ONLY FOR CONTENT, NOT SIDEBAR */
.content-wrapper h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin: 50px 0 25px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(254, 203, 10, 0.2);
}

.content-wrapper h2 i {
    color: var(--primary);
}

.content-wrapper h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-white);
    margin: 35px 0 20px 0;
}

.content-wrapper h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin: 25px 0 15px 0;
}

.content-wrapper p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

/* Lists - ONLY FOR CONTENT, NOT SIDEBAR */
.content-wrapper ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0 25px 0;
}

.content-wrapper ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 12px;
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 15px;
}

.content-wrapper ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 14px;
}

.content-wrapper ol {
    list-style: none;
    counter-reset: custom-counter;
    padding-left: 0;
    margin: 25px 0;
}

.content-wrapper ol li {
    counter-increment: custom-counter;
    position: relative;
    padding-left: 45px;
    margin-bottom: 20px;
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 15px;
    transition: all 0.3s ease;
}

.content-wrapper ol li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff9a00 100%);
    color: #000;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(254, 203, 10, 0.3);
}

.content-wrapper ol li:hover {
    color: var(--text-white);
    transform: translateX(5px);
}

.content-wrapper ol li:hover::before {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(254, 203, 10, 0.5);
}

/* FAQ Section */
.faq-section {
    padding: 60px 40px;
    background-color: var(--bg-dark);
}

.faq-container {
    max-width: 1600px;
    margin: 0 auto;
}

.faq-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 50px;
    color: var(--text-white);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.faq-title i {
    color: var(--primary);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.faq-question {
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    background: rgba(254, 203, 10, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(254, 203, 10, 0.1);
}

.faq-question i {
    color: var(--primary);
    font-size: 18px;
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 20px 25px;
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 15px;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.closed {
    max-height: 0;
    padding: 0 25px;
    padding-top: 0;
    padding-bottom: 0;
}

/* Promotions */
.promo-section {
    padding: 30px 40px;
    background-color: var(--bg-dark);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-white);
}

.section-title i {
    color: var(--primary);
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.promo-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-white);
    display: block;
    transition: transform 0.3s;
    position: relative;
    height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
}

.promo-card:hover {
    transform: translateY(-5px);
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 1;
}

.promo-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.promo-tag {
    background-color: rgba(60, 60, 60, 0.8);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 8px;
}

.promo-title {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

.promo-btn {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(90deg, #ff9a00, #fecb0a);
    color: #000;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
}

/* Author Section */
.author-section {
    padding: 60px 40px;
    background: linear-gradient(135deg, #161616 0%, #1a1a1a 100%);
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.author-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.author-image {
    flex-shrink: 0;
}

.author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px rgba(254, 203, 10, 0.3);
    transition: all 0.3s ease;
}

.author-avatar:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 0 30px rgba(254, 203, 10, 0.5);
}

.author-content {
    flex-grow: 1;
}

.author-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.author-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}

.author-title {
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
}

.author-bio {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.author-specialization {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.specialization-item {
    background: rgba(254, 203, 10, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.author-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
}

.stat-label {
    font-size: 13px;
    color: var(--text-gray);
}

.stat-icon {
    color: var(--primary);
    font-size: 22px;
}

.author-quote {
    font-style: italic;
    color: var(--text-gray);
    margin-top: 15px;
    padding-left: 20px;
    border-left: 3px solid var(--primary);
    font-size: 14px;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background-color: #161616;
    padding: 40px 40px;
    border-top: 1px solid #333;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand p {
    color: var(--text-gray);
    font-size: 13px;
    margin-top: 15px;
    line-height: 1.5;
}

.footer-col h4 {
    color: var(--text-white);
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    color: var(--text-white);
    font-size: 28px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #222;
    flex-wrap: wrap;
}

.footer-copyright {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    flex: 1;
    min-width: 300px;
}

.footer-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: auto;
}

.footer-icons img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

/* Mobile */
.burger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
    margin-right: 20px;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 950;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1024px) {
    .promo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-header {
        justify-content: flex-start;
        padding: 0 15px;
    }

    .burger-btn {
        display: block;
        order: 1;
    }

    .auth-buttons {
        margin-left: auto;
        order: 2;
        gap: 10px;
    }

    .lang-switcher {
        order: 1;
        margin-right: 15px;
        margin-left: 10px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 0 15px;
        height: 320px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    /* Уменьшены отступы на мобильных */
    .content-section,
    .promo-section,
    .author-section,
    .faq-section {
        padding: 25px 15px;
    }

    .content-wrapper {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .content-title {
        font-size: 28px;
    }

    .content-subtitle {
        font-size: 16px;
    }

    /* Casino Card Mobile */
    .casino-card {
        flex-direction: column;
        padding: 20px;
        margin: 30px 0;
    }

    .casino-rank {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .casino-left {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .casino-logo {
        max-width: 100px;
    }

    .casino-actions {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
    }

    .btn-play-now {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    .faq-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }

    .faq-answer {
        padding: 15px 20px;
        font-size: 14px;
    }

    /* Table styles for mobile - HORIZONTAL SCROLL */
    .table-container {
        margin: 25px 0 35px 0;
        border-radius: 8px;
    }

    .casino-table {
        min-width: 650px;
        font-size: 13px;
    }

    .casino-table th,
    .casino-table td {
        padding: 10px 12px;
    }

    .author-container {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .author-header {
        justify-content: center;
    }

    .author-stats {
        justify-content: center;
        gap: 20px;
    }

    .author-quote {
        margin-left: 0;
        border-left: none;
        border-top: 2px solid var(--primary);
        padding-top: 12px;
        padding-left: 0;
        font-size: 13px;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .footer-col {
        border-bottom: 1px solid #222;
        padding-bottom: 15px;
    }

    .footer-col:last-child {
        border-bottom: none;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding-top: 15px;
    }

    .footer-copyright {
        text-align: center;
        min-width: 100%;
        font-size: 12px;
    }

    .footer-icons {
        margin-left: 0;
        justify-content: center;
    }
}