:root {
    --bg-main: #0a0d14;
    --bg-card: #121824;
    --bg-accent: #10b981;
    --bg-accent-hover: #059669;
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --header-bg: rgba(10, 13, 20, 0.95);
    --border-color: #1e293b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-light);
    line-height: 1.6;
    padding-top: 85px;
}

a {
    color: var(--bg-accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--bg-accent-hover);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

header.scrolled {
    background-color: rgba(10, 13, 20, 0.75);
    backdrop-filter: blur(10px);
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--bg-accent);
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

nav a.active, nav a:hover {
    color: var(--text-light);
}

.header-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    border: none;
    font-size: 0.9rem;
}

.btn-login {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.btn-login:hover {
    background-color: var(--bg-card);
}

.btn-reg {
    background-color: #f59e0b;
    color: #000;
}

.btn-reg:hover {
    background-color: #d97706;
}

/* Баннерная зона */
.banner-wrapper {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #1e1b4b, #311042);
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.banner-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.banner-content p {
    color: var(--text-muted);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--text-muted);
}

h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 35px 0 15px;
}

p {
    margin-bottom: 15px;
    color: #cbd5e1;
}

ul {
    margin-bottom: 15px;
    padding-left: 20px;
    color: #cbd5e1;
}

li {
    margin-bottom: 8px;
}

/* Сетка карточек игр */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.game-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.game-card-img {
    width: 100%;
    height: 180px;
    background-color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.game-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--bg-accent);
    color: #fff;
    padding: 4px 10px;
    font-weight: 800;
    border-radius: 4px;
    font-size: 0.8rem;
}

.game-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.game-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    background-color: rgba(10, 13, 20, 0.5);
    padding: 10px;
    border-radius: 6px;
}

.metric-label {
    color: var(--text-muted);
}

.metric-val {
    font-weight: 600;
    text-align: right;
}

.game-card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.game-card-actions .btn {
    flex-grow: 1;
    text-align: center;
    padding: 12px 10px;
}

/* Сетка карточек платформ (Где играть) */
.platforms-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.platform-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 20px;
    display: grid;
    grid-template-columns: 1.5fr 3fr 1.5fr;
    align-items: center;
    gap: 20px;
}

.platform-brand {
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-pros {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 0.85rem;
}

.pro-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
}

.pro-item svg {
    flex-shrink: 0;
}

.platform-card .btn {
    width: 100%;
    text-align: center;
}

/* Специфические таблицы для внутренних страниц */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.stats-table th, .stats-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.stats-table th {
    background-color: rgba(24, 32, 46, 0.4);
    text-align: left;
    color: var(--text-muted);
}

/* FAQ блоки */
.faq {
    margin: 50px 0;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.faq h2 {
    margin-top: 0;
}

details {
    background-color: var(--bg-card);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

details summary {
    font-weight: 600;
    cursor: pointer;
    outline: none;
    user-select: none;
}

details p {
    margin-top: 12px;
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

footer {
    background-color: #05070a;
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-nav a:hover {
    color: var(--text-light);
}

.footer-text {
    font-size: 0.8rem;
    color: #4b5563;
}

#btnUp {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    background-color: var(--bg-accent);
    color: white;
    border: none;
    outline: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.2s;
}

#btnUp:hover {
    background-color: var(--bg-accent-hover);
}

@media (max-width: 900px) {
    .platform-card {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    .platform-brand {
        justify-content: center;
    }
    .platform-pros {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 15px;
    }
    nav {
        display: none;
    }
    .banner-wrapper {
        height: 200px;
    }
    .banner-content h2 {
        font-size: 1.4rem;
    }
    h1 {
        font-size: 1.8rem;
    }
}