*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.game-description a {
    color: #19f5d4;
}
:root {
    --bg-color: #111317;
    --surface-color: #1C1F26;
    --primary-color: #EBEB00;
    --accent-color: #19f5d4;
    --text-color: #FFFFFF;
    --text-muted: #8A99A8;
    --border-color: rgba(25, 245, 212, 0.2);
    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Noto Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image:
            radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 20px 20px;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}
h4 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.btn {
    position: relative;
    display: inline-block;
    padding: 10px 24px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    overflow: hidden;
}
.btn span {
    position: relative;
    z-index: 2;
}
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 100%;
    transition: width 0.3s ease;
    z-index: 1;
}
.btn:hover::before {
    width: 102%;
}
.btn-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary::before { background-color: var(--primary-color); }
.btn-primary:hover { color: var(--bg-color); }
.btn-secondary {
    color: var(--accent-color);
    border-color: var(--accent-color);
}
.btn-secondary::before { background-color: var(--accent-color); }
.btn-secondary:hover { color: var(--bg-color); }
.btn-tertiary {
    background-color: #2a2a2a;
    color: var(--primary-color);
    border: 1px solid #444;
    padding: 8px 16px;
    font-size: 0.9rem;
}
.btn-tertiary:hover { background-color: var(--primary-color); color: var(--bg-color); border-color: var(--primary-color); }

.header {
    background-color: rgba(28, 31, 38, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 40px; }
.nav-list { display: flex; list-style: none; gap: 2.5rem; }
.nav-list a { color: var(--primary-color); font-family: var(--font-heading); text-transform: uppercase; text-decoration: none; transition: color 0.3s; }
.nav-list a:hover { color: var(--text-color); }
.header-controls { display: flex; align-items: center; gap: 1.5rem; }

/* Language Selector */
.lang-selector {
    position: relative;
}
.lang-selector-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid #444;
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
}
.lang-selector-btn:hover,
.lang-selector.active .lang-selector-btn {
    border-color: var(--primary-color);
    background: #222;
}
.lang-selector-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.lang-selector-btn .lang-icon {
    color: var(--primary-color);
}
.lang-selector-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    list-style: none;
    padding: 0.5rem;
    margin: 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 10;
}
.lang-selector.active .lang-selector-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-selector-dropdown li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}
.lang-selector-dropdown li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.header-actions { display: flex; gap: 1rem; }
.nav-toggle { display: none; }

.hero { position: relative; padding: 2rem 4rem; margin: 2rem auto; max-width: 1400px; background: linear-gradient(90deg, #1f2e32 0%, #172124 100%); overflow: hidden; }
.hero-frame { position: absolute; inset: 0; border: 2px solid var(--accent-color); pointer-events: none; clip-path: polygon(0 20px, 20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px)); }
.hero-content { display: flex; align-items: center; justify-content: space-between; gap: 2rem; position: relative; z-index: 2; }
.hero-text { flex-basis: 50%; }
.hero-title { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; text-transform: uppercase; color: var(--primary-color); }
.hero-title span { color: var(--text-color); }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--accent-color); font-family: var(--font-heading); margin-top: 1rem; }
.hero-image { flex-basis: 45%; }
.hero-image img { max-width: 100%; }

.lobby-section, .promo-section, .providers-section, .info-section, .review-section { padding: 3rem 0; }
.lobby-nav { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 3rem; flex-wrap: wrap; }
.lobby-nav-btn { background-color: var(--surface-color); color: var(--text-muted); border: 1px solid #333; padding: 10px 20px; font-family: var(--font-body); cursor: pointer; transition: all 0.3s ease; }
.lobby-nav-btn:hover { color: var(--text-color); border-color: var(--primary-color); }
.lobby-nav-btn.active { color: var(--bg-color); background-color: var(--primary-color); border-color: var(--primary-color); font-weight: bold; }
.lobby-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
.lobby-title { font-size: 1.8rem; margin-bottom: 0; color: var(--text-color); display: flex; align-items: center; gap: 1rem; }
.lobby-title::before { content: ''; display: block; width: 10px; height: 10px; background-color: var(--accent-color); border-radius: 50%; box-shadow: 0 0 10px var(--accent-color); }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.game-card { border-radius: 8px; overflow: hidden; position: relative; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; background-color: var(--surface-color); }
.game-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.game-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 60%); display: flex; align-items: flex-end; padding: 1rem; opacity: 1; }
.card-overlay h3 { color: #fff; margin: 0; font-size: 1.2rem; }

.review-section { background-color: var(--surface-color); }
.review-grid { display: grid;  gap: 3rem; align-items: center; }
.review-content p, .review-content li { color: var(--text-muted); }
.feature-list { list-style: none; padding: 0; margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.feature-list li { display: flex; align-items: center; gap: 0.75rem; }
.feature-list svg { color: var(--accent-color); flex-shrink: 0; }
.review-image img { border-radius: 8px; border: 2px solid var(--border-color); }
.review-table-container { margin-top: 3rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border-color); }
thead th { color: var(--primary-color); font-family: var(--font-heading); font-size: 1.2rem; }
td { color: var(--text-muted); }
td svg { vertical-align: middle; margin-right: 0.5rem; }
td:first-child svg { color: var(--accent-color); }
td:last-child svg { color: #ff5555; }

.faq-section { margin-top: 3rem; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 1.5rem 0; font-size: 1.1rem; font-family: var(--font-heading); color: var(--text-color); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-icon { position: relative; width: 16px; height: 16px; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: var(--accent-color); transition: transform 0.3s ease; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item.active .faq-icon::after { transform: rotate(0deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-answer.active { max-height: 200px; }
.faq-answer p { padding: 0 0 1.5rem 0; margin: 0; color: var(--text-muted); }

.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.promo-card { background: var(--surface-color); padding: 2rem; border-radius: 8px; border: 1px solid var(--border-color); transition: all 0.3s; }
.promo-card:hover { border-color: var(--primary-color); transform: translateY(-5px); }
.promo-card h3 { color: var(--primary-color); }
.promo-card p { color: var(--text-muted); }

.providers-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem; }
.provider-logo { flex: 0 1 150px; }
.provider-logo img { filter: grayscale(1) brightness(1.5); opacity: 0.5; transition: all 0.3s ease; }
.provider-logo img:hover { filter: none; opacity: 1; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.info-card { display: block; text-decoration: none; background: var(--surface-color); padding: 2rem; border-radius: 8px; border: 1px solid var(--border-color); color: var(--text-color); transition: transform 0.3s ease, border-color 0.3s ease; }
.info-card:hover { transform: translateY(-5px); border-color: var(--accent-color); }
.info-card h3 { color: var(--text-color); }
.info-card p { color: var(--text-muted); margin-bottom: 0; }

.footer { background-color: var(--surface-color); color: var(--text-muted); padding-top: 3rem; margin-top: 2rem; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.footer-col { font-size: 0.9rem; }
.footer-col .logo img { height: 30px; margin-bottom: 1rem; }
.footer-col h4 { color: #fff; margin-bottom: 1rem; font-size: 1.1rem; }
.footer-col ul { list-style: none; padding: 0;}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-muted); transition: color 0.3s; }
.footer-col a:hover { color: var(--primary-color); }
.footer-bottom { border-top: 1px solid var(--border-color); text-align: center; padding: 1.5rem 0; margin-top: 2rem; font-size: 0.9rem; }

.hamburger { display: block; width: 25px; height: 3px; background: var(--text-color); position: relative; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 25px; height: 3px; background: var(--text-color); left: 0; transition: transform 0.3s ease, top 0.3s ease; }
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    z-index: 2000;
    transition: transform 0.5s ease-in-out;
}
#cookie-consent-banner.hidden {
    transform: translateY(100%);
}
.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1rem;
}
.cookie-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.cookie-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .nav, .header-controls { display: none; }
    .nav-toggle { display: block; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; }
    .nav.active { display: flex; position: absolute; top: 100%; left: 0; right: 0; background-color: var(--bg-color); border-top: 1px solid var(--border-color); }
    .nav-list { flex-direction: column; align-items: center; padding: 1rem 0; width: 100%; }
    .hero { padding: 2rem; }
    .hero-content { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero { margin: 1rem auto; padding: 1rem; }
    .review-grid { grid-template-columns: 1fr; }
    .review-image { display: none; }
    .cookie-content { flex-direction: column; text-align: center; }
}
/* ... все предыдущие стили остаются без изменений ... */

/* --- Стили для страницы отдельной игры --- */
.game-page-main {
    padding: 3rem 0;
}
.page-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.main-content {
    flex: 1;
    min-width: 0;
}
.main-content h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.game-iframe-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    scroll-margin-top: 120px;
}
.game-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.cta-play-real {
    text-align: center;
    margin: 2rem 0;
}
.cta-play-real .btn-lg {
    padding: 15px 40px;
    font-size: 1.2rem;
}
.game-description h2, .game-description h3 {
    scroll-margin-top: 120px;
}
.game-description h2 {
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.game-description h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* НОВЫЕ СТИЛИ: Списки в контенте */
.game-description section ul {
    list-style: disc;
    padding-left: 20px;
    margin: 1rem 0 1rem 1rem;
}
.game-description section ul li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}
.game-description section ul li strong {
    color: var(--text-color);
}

/* Мета-информация статьи */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.article-meta svg {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
}

/* Оглавление (Table of Contents) */
.table-of-contents {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
    border-radius: 8px;
    width: 33%;
    float: right;
    box-sizing: border-box;
}
.table-of-contents h4 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
    font-size: 1.2rem;
}
.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.table-of-contents ul li a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}
.table-of-contents ul li a:hover {
    color: var(--primary-color);
}

/* НОВЫЕ СТИЛИ: Навигация по статьям */
.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.article-navigation a {
    flex-basis: 48%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.article-navigation a:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    background-color: rgba(255,255,255,0.03);
}
.article-navigation .nav-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.article-navigation .nav-title {
    display: block;
    color: var(--text-color);
    font-weight: 700;
    font-family: var(--font-heading);
}
.article-navigation .next-link {
    text-align: right;
}


/* --- Стили для Сайдбара --- */
.sidebar {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    flex-basis: 320px;
    flex-shrink: 0;
}
.sidebar-block {
    margin-bottom: 2.5rem; /* Отступ между блоками сайдбара */
}
.sidebar-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.5rem;
}
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.sidebar-post a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s;
}
.sidebar-post a:hover {
    color: var(--primary-color);
}
.sidebar-post img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}
.sidebar .btn {
    width: 100%;
    text-align: center;
}

/* НОВЫЕ СТИЛИ: Баннер-изображение в сайдбаре */
.sidebar-banner-img {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.sidebar-banner-img:hover {
    transform: scale(1.03);
}
.sidebar-banner-img img {
    width: 100%;
    display: block;
}

.full-width-section {
    width: 100%;
    padding: 3rem 0;
    background-color: var(--surface-color);
    clear: both; /* Очистка float от оглавления */
}
.full-width-section .container {
    max-width: 1400px;
    margin: 0 auto;
    width: 90%;
}

/* Адаптивность */
@media (max-width: 992px) {
    .page-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        flex-basis: auto;
        order: 2; /* Меняем порядок для мобильных */
    }
    .main-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .table-of-contents {
        width: 100%;
        float: none;
        margin-left: 0;
    }
    .article-navigation {
        flex-direction: column;
    }
}

.widget-post-meta .rating .fa-star,
.widget-post-meta .rating .fa-star-half-alt {
    color: #19f5d4;
    font-size: 0.75rem;
}
.rating .fa-star, .rating .fa-star-half-alt {
    color: #19f5d4;
}

.rating-widget-fa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.rating-display {
    color: #19f5d4;
    font-size: 1.2em;
    white-space: nowrap;
}
.rating-display .fa-regular.fa-star {
    color: #ddd;
}

.rating-interactive-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
}

.rating-interactive-overlay i {
    flex: 1;
    font-size: 1.2em;
    color: transparent;
    cursor: pointer;
    transition: transform 0.1s ease-in-out;
}


.rating-interactive-overlay:hover i {
    color: #c0fcf3
}
.rating-interactive-overlay i:hover,
.rating-interactive-overlay i:hover ~ i {
    color: #19f5d4;
    transform: scale(1.1);
}

.rating-info-text {
    font-size: 0.9em;
    color: #666;
}

.rating-feedback-fa {
    margin-left: 10px;
    font-weight: bold;
    font-size: 0.9em;
}
.rating-feedback-fa.success { color: #28a745; }
.rating-feedback-fa.error { color: #dc3545; }
.img-responsive {
    display:block;margin:0 auto;max-width:100%;height:auto;
}