:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #e0e7ff;
    --text-dark: #0f172a;
    --text-slate: #475569;
    --bg-site: #f8fafc;
    --card-bg: #ffffff;
    --accent: #ff007f;
    --success: #10b981;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-site);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Шапка сайта */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

.brand-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-slate);
    font-weight: 700;
    font-size: 14px;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

/* Огромный баннер (лицо открыто) */
.hero-banner {
    width: 100%;
    height: 450px;
    background-image: url('https://mikhailgames.ru/wp/wp-content/themes/flixita/assets/images/page-header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 -40px 60px rgba(0,0,0,0.15);
    position: relative;
}

/* Контентная область */
.main-content {
    max-width: 1100px;
    margin: -50px auto 60px auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.page-title-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
    text-align: center;
    margin-bottom: 50px;
}

.page-title-card h1 {
    font-size: 36px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
}

.games-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 20px;
}

/* Карточки игр */
.game-card {
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 400px 1fr;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.1);
}

.game-media {
    position: relative;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 350px;
}

.game-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--success);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
    z-index: 2;
}

.badge-dev {
    background: var(--accent);
    box-shadow: 0 4px 10px rgba(255, 0, 127, 0.3);
}

.game-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-info h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
}

.game-platforms {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--text-slate);
    font-size: 18px;
}

.game-description {
    font-size: 15px;
    color: var(--text-slate);
    margin: 0 0 25px 0;
    line-height: 1.7;
}

.game-specs {
    background: var(--bg-site);
    padding: 15px 20px;
    border-radius: 14px;
    margin-bottom: 25px;
    display: flex;
    gap: 25px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-slate);
    flex-wrap: wrap;
}

.game-specs span strong {
    color: var(--text-dark);
}

/* Сетка скриншотов */
.screenshots-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin: 20px 0 12px 0;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.screenshot-item {
    background: #e2e8f0;
    border-radius: 10px;
    height: 70px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.screenshot-item img:hover {
    transform: scale(1.05);
}

/* Кнопки */
.game-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: auto;
}

.game-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    background: #ffffff;
    color: var(--text-dark);
    border: 2px solid #e2e8f0;
}

.btn-outline:hover {
    background: var(--bg-site);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.btn-rustore {
    background: #005bff;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 91, 255, 0.2);
    border: none;
}

.btn-rustore:hover {
    background: #0046d2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 91, 255, 0.3);
}

/* Подвал */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-slate);
    font-size: 14px;
    font-weight: 600;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    margin-top: 80px;
}

@media (max-width: 900px) {
    .game-card { grid-template-columns: 1fr; }
    .game-media { min-height: 250px; }
    .header-container { flex-direction: column; gap: 15px; }
}
