/* ==========================================================================
   MIXCHEATS — стили
   Палитра: #9075E1 · #B9A5F5 · #080808 · #FFFFFF · #0F0F0F · #161616
   Шрифты (бесплатные замены): Onder/Halvar → Unbounded, TT Commons → Manrope
   ========================================================================== */

:root {
    --purple: #9075E1;
    --purple-2: #B9A5F5;
    --bg: #080808;
    --card: #0F0F0F;
    --card-2: #161616;
    --line: #1e1e1e;
    --muted: #6f6f6f;
    --red: #ff3d50;
    --green: #3fe08a;
    --gold: #ffc83d;
    --f-display: 'Unbounded', 'Arial Black', sans-serif;
    --f-body: 'Manrope', 'Segoe UI', Arial, sans-serif;
    --f-cond: 'Oswald', 'Impact', sans-serif;
    --container: 1320px;
    --btn-grad: linear-gradient(180deg, #a891f4 0%, #8d72de 55%, #7659cf 100%);
    --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -3px 8px rgba(45, 15, 120, .35), 0 8px 20px -10px rgba(144, 117, 225, .8);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}
body {
    background: var(--bg);
    color: #fff;
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    position: relative;
    min-height: 100vh;
    touch-action: pan-y pinch-zoom;
}
@supports not (overflow-x: clip) {
    body { overflow-x: hidden; }
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button, input { font: inherit; color: inherit; border: 0; background: none; outline: 0; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.icon { flex-shrink: 0; }
.accent { color: var(--purple-2); }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; position: relative; z-index: 1; }

/* фоновые граффити-надписи */
.bg-graffiti { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-graffiti span {
    position: absolute;
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(140px, 18vw, 280px);
    line-height: 1;
    color: #fff;
    opacity: .028;
    transform: rotate(-14deg);
    white-space: nowrap;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 28px;
    border-radius: 14px;
    background: var(--btn-grad);
    box-shadow: var(--btn-shadow);
    font-family: var(--f-display); font-size: 14px; font-weight: 500; letter-spacing: .01em;
    color: #fff; white-space: nowrap;
    transition: filter .2s, transform .15s, box-shadow .2s;
}
.btn:hover { filter: brightness(1.12); box-shadow: var(--btn-shadow), 0 10px 26px -8px rgba(144, 117, 225, .9); }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 40px; padding: 0 22px; font-size: 13px; border-radius: 11px; }
.btn-xs { height: 28px; padding: 0 14px; font-size: 11px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-circle {
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--btn-grad); box-shadow: var(--btn-shadow);
    transition: filter .2s;
}
.btn-circle:hover { filter: brightness(1.12); }

/* ---------- Чип с иконкой в заголовках ---------- */
.chip {
    display: inline-grid; place-items: center; flex-shrink: 0;
    width: 90px; height: 44px; border-radius: 6px;
    background: var(--purple-2); color: #fff;
}
.chip--sm { width: 56px; height: 32px; border-radius: 5px; }

/* ---------- Логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo-mark { width: 36px; height: 41px; filter: drop-shadow(0 0 8px rgba(144, 117, 225, .35)); }
.logo-text {
    font-family: var(--f-display); font-weight: 800; font-size: 17px; line-height: .9;
    letter-spacing: .03em; text-transform: uppercase;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header { display: flex; align-items: center; gap: 24px; padding: 34px 0 34px; }
.nav { display: flex; gap: 32px; margin-left: 48px; }
.nav a {
    position: relative; padding: 6px 0;
    font-family: var(--f-display); font-size: 14px; font-weight: 600; letter-spacing: .04em;
    color: #6a6a6a; transition: color .2s;
}
.nav a:hover { color: #d5d5d5; }
.nav a.active { color: #fff; }
.nav a.active::after {
    content: ''; position: absolute; left: -2px; right: -2px; bottom: -5px; height: 3px;
    border-radius: 3px 1px 3px 1px; background: #fff;
    transform: rotate(-1deg); box-shadow: 0 0 10px rgba(255, 255, 255, .35);
}
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.search {
    display: flex; align-items: center; gap: 8px;
    width: 260px; height: 48px; padding: 0 18px;
    border: 1px solid #3a3a3a; border-radius: 13px;
    color: #8b8b8b; transition: border-color .2s;
}
.search:focus-within { border-color: var(--purple); }
.search input { flex: 1; min-width: 0; font-family: var(--f-display); font-size: 14px; font-weight: 500; color: #ddd; }
.search input::placeholder { color: #8b8b8b; }
.search input::-webkit-search-cancel-button { display: none; }
.search--sm { width: 220px; height: 38px; border-radius: 10px; border-color: #2c2c2c; }
.search--sm input { font-size: 12px; }

.burger { display: none; width: 48px; height: 48px; border-radius: 12px; place-items: center; background: var(--card-2); }

/* ==========================================================================
   HERO (белая карточка)
   ========================================================================== */
.hero {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    min-height: 620px;
    background: #fff; color: #0a0a0a;
    border-radius: 20px;
}
.hero-content { position: relative; z-index: 2; align-self: center; max-width: 600px; padding: 110px 0 80px 76px; }
.display-title {
    font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
    font-size: clamp(38px, 5vw, 68px); line-height: .98; letter-spacing: -.005em;
}
.display-title .line { display: flex; align-items: center; gap: 10px; }
.display-title--md { font-size: clamp(32px, 4vw, 52px); }
.display-title--lined { padding-bottom: 14px; border-bottom: 1px solid #1a1a1a; margin-bottom: 14px; }
.hero-label {
    margin-top: 40px; padding-bottom: 12px; border-bottom: 1px solid #1a1a1a;
    font-family: var(--f-display); font-size: 15px; font-weight: 700;
}
.hero-text { margin-top: 14px; font-size: 13px; font-weight: 600; line-height: 1.4; color: #1a1a1a; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; }
.hero-media { position: relative; overflow: hidden; }
.hero-media img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 70% center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%);
            mask-image: linear-gradient(90deg, transparent 0, #000 18%);
}
.hero-mascot {
    position: absolute;
    inset: -26px 0 -26px 0;
    animation: heroFloat 3.8s ease-in-out infinite;
    will-change: transform;
}
.hero-mascot img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%), linear-gradient(180deg, transparent 0, #000 6%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(90deg, transparent 0, #000 18%), linear-gradient(180deg, transparent 0, #000 6%, #000 90%, transparent 100%);
            mask-composite: intersect;
}
.hero-mascot .hero-img--blink {
    opacity: 0;
    animation: heroBlink 5.2s infinite;
    pointer-events: none;
}
@keyframes heroFloat {
    0%, 100% { transform: translate3d(0, 12px, 0) rotate(0.4deg); }
    50%      { transform: translate3d(0, -18px, 0) rotate(-0.8deg) scale(1.015); }
}
@keyframes heroBlink {
    0%, 41%, 46%, 83%, 86.5%, 90.5%, 100% { opacity: 0; }
    42.5%, 44.5%                          { opacity: 1; }
    84.5%, 85.5%                          { opacity: 1; }
    88%, 89.2%                            { opacity: 1; }
}
.hero--catalog { min-height: 420px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero--catalog .hero-content { padding: 56px 0 56px 76px; max-width: 560px; }
.hero--catalog .hero-text { margin-top: 0; font-size: 12px; }

/* ==========================================================================
   ИГРАЙ С НАМИ + статистика
   ========================================================================== */
.play { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 24px; }
.play-title {
    font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
    font-size: clamp(32px, 4.4vw, 58px); line-height: 1.08;
}
.stats-card {
    position: relative; overflow: hidden;
    display: flex; align-items: center;
    height: 220px; padding: 0 40px;
    border-radius: 16px;
    background: linear-gradient(180deg, #7f60d9 0%, #8a6fdf 60%, #9a82e8 100%);
}
.stats-card::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
    background: linear-gradient(180deg, transparent, rgba(185, 165, 245, .35)); pointer-events: none;
}
.stats-graffiti {
    position: absolute; left: 8%; top: -10px;
    font-family: 'Permanent Marker', cursive; font-size: 92px; line-height: .9;
    color: #fff; opacity: .1; transform: rotate(-8deg); pointer-events: none;
}
.stats-grid { position: relative; z-index: 2; display: grid; grid-template-columns: auto auto; gap: 20px 34px; }
.stat { display: flex; align-items: center; gap: 8px; }
.stat b { font-family: var(--f-display); font-weight: 900; font-size: 34px; line-height: 1; }
.stat span { font-size: 12px; font-weight: 600; line-height: 1.15; }
.stats-mascot {
    position: absolute; right: 0; top: 0; height: 100%; width: 46%;
    object-fit: cover; object-position: 30% 22%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%);
            mask-image: linear-gradient(90deg, transparent 0, #000 30%);
}
.stats-mascot--blink {
    opacity: 0;
    animation: heroBlink 4.6s infinite -1.8s;
    pointer-events: none;
}

/* ==========================================================================
   Секции и сетки
   ========================================================================== */
.section { margin-top: 26px; }
#popular { margin-top: 70px; }
.section-title {
    margin-bottom: 26px; text-align: center;
    font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
    font-size: clamp(26px, 3.2vw, 40px); line-height: 1;
}
.section-title--left { text-align: left; font-size: 20px; margin-bottom: 18px; }
.sub-title { font-family: var(--f-display); font-size: 15px; font-weight: 700; margin: 6px 0 12px; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.found-grid { margin-bottom: 26px; }

.fade-wrap { position: relative; }
.fade-wrap.collapsed .is-extra { display: none; }
.fade-wrap.collapsed::after {
    content: ''; position: absolute; left: -4px; right: -4px; bottom: -4px;
    height: var(--fade-h, 40%);
    background: linear-gradient(180deg, rgba(8, 8, 8, 0) 0%, rgba(8, 8, 8, .82) 55%, #080808 100%);
    pointer-events: none; z-index: 3;
}
.more { position: relative; z-index: 4; display: flex; justify-content: center; margin-top: -16px; }
.more .btn { padding: 0 22px; }
.fade-wrap:not(.collapsed) + .more { display: none; }

/* ---------- Бейджи ---------- */
.badge {
    position: absolute; top: 10px; z-index: 3;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 5px;
    font-family: var(--f-display); font-size: 11px; font-weight: 700; letter-spacing: .03em;
}
.badge-hot { left: 10px; background: rgba(110, 18, 30, .9); color: var(--red); }
.badge-update { right: 10px; background: rgba(14, 62, 34, .92); color: var(--green); }
.badge-update::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.badge-static { position: static; }

/* ---------- Карточка игры ---------- */
.gcard, .ccard {
    position: relative;
    padding: 7px 7px 10px;
    background: linear-gradient(180deg, #121212, #0c0c0c);
    border: 1px solid #1c1c1c; border-radius: 12px;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.gcard:hover, .ccard:hover { transform: translateY(-4px); border-color: #2d2d2d; box-shadow: 0 16px 30px -18px rgba(144, 117, 225, .5); }
.gcard.is-hot, .ccard.is-hot { border-color: #b4283a; box-shadow: 0 0 0 1px rgba(180, 40, 58, .25), 0 0 24px -10px rgba(255, 61, 80, .5); }

.gcard-media { position: relative; display: block; aspect-ratio: 1 / .9; border-radius: 8px; overflow: hidden; }
.gcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gcard:hover .gcard-media img, .ccard:hover .ccard-media img { transform: scale(1.05); }
.gcard-media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(12, 12, 12, .75) 75%, #0d0d0d 100%);
}
.gcard-title {
    position: relative; z-index: 2; margin: -28px 8px 0;
    font-family: var(--f-display); font-size: 21px; font-weight: 800; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gcard-meta { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin: 12px 8px 12px; font-size: 13px; }
.gcard-count, .gcard-price { display: inline-flex; align-items: center; gap: 4px; }
.gcard-meta b { font-family: var(--f-display); font-weight: 700; font-size: 13px; }
.gcard-meta small { color: #6a6a6a; font-size: 11px; }

/* ---------- Карточка чита ---------- */
.ccard-media { position: relative; display: block; aspect-ratio: 1 / .78; border-radius: 8px; overflow: hidden; }
.ccard-media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.65) saturate(.9); transition: transform .5s; }
.ccard-media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(60, 40, 120, .25) 0%, transparent 35%, rgba(12, 12, 12, .8) 78%, #0d0d0d 100%);
}
.cover-logo {
    position: absolute; z-index: 2; top: 18px; left: 0; right: 0;
    text-align: center; text-transform: uppercase;
    font-family: var(--f-cond); font-weight: 700; font-size: clamp(34px, 4vw, 54px); line-height: 1; letter-spacing: -.01em;
    color: #f4f4f4; text-shadow: 0 3px 12px rgba(0, 0, 0, .7);
}
.cover-logo--lg { top: 34px; font-size: clamp(40px, 5vw, 64px); }
.ccard-name {
    position: relative; z-index: 2; margin: -28px 8px 0;
    display: flex; align-items: baseline; gap: 6px;
    font-family: var(--f-display); font-size: 19px; font-weight: 800; line-height: 1.2;
}
.ccard-name small { font-size: 10px; font-weight: 700; color: var(--purple-2); }
.ccard-row { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin: 10px 8px 6px; }
.game-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }
.game-dot {
    width: 15px; height: 15px; border-radius: 50%; flex-shrink: 0;
    background: radial-gradient(circle at 35% 35%, #fff 0 12%, var(--c) 40%, #3b3b3b 100%);
}
.stars { display: inline-flex; gap: 1px; color: #3b3b3b; }
.stars .on { color: var(--gold); }
.ccard-buy { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; margin: 6px 8px 0; }
.price small { display: block; font-size: 11px; color: #777; line-height: 1; margin-bottom: 3px; }
.price b { font-family: var(--f-display); font-size: 15px; font-weight: 800; }
.discount {
    display: inline-block; margin-left: 6px; padding: 2px 5px; border-radius: 3px; vertical-align: 2px;
    background: #133a21; color: var(--green); font-size: 10px; font-weight: 800;
}

/* ==========================================================================
   CTA «Перейти в каталог»
   ========================================================================== */
.cta {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1fr 1fr;
    min-height: 290px; margin-top: 64px;
    background: #fff; color: #0a0a0a; border-radius: 18px;
}
.cta-content { align-self: center; padding: 36px 44px; }
.cta-text { margin: 12px 0 18px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.cta-media { position: relative; }
.cta-media img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center 35%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20%);
            mask-image: linear-gradient(90deg, transparent 0, #000 20%);
}
.float-dot {
    position: absolute; z-index: 2;
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: radial-gradient(circle at 35% 30%, #3a3a3a, #0d0d0d);
    color: var(--purple-2);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .15);
    animation: float 4s ease-in-out infinite;
}
.float-dot--sm { width: 34px; height: 34px; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { margin-top: 50px; padding-bottom: 46px; }
.footer-card { background: var(--card); border-radius: 16px; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; gap: 24px; padding: 26px 32px 0; }
.socials { display: flex; gap: 8px; }
.socials a {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: #fff; color: #0a0a0a;
    transition: background .2s, color .2s, transform .2s;
}
.socials a:hover { background: var(--purple); color: #fff; transform: translateY(-2px); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 20px; }
.footer-col h6 { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; font-size: 12px; font-weight: 500; color: #cfcfcf; }
.footer-col ul { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-col a { font-family: var(--f-display); font-size: 14px; font-weight: 700; transition: color .2s; }
.footer-col a:hover { color: var(--purple-2); }
.footer-copy {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    padding: 22px 32px 22px; font-size: 12px; font-weight: 500; color: #d5d5d5;
}
.footer-copy span { display: inline-flex; align-items: center; gap: 4px; }
.footer-copy a { text-decoration: underline; }
.footer-bottom {
    display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: center; justify-items: center;
    padding: 14px 22px; background: #141414; font-size: 11px; color: #8a8a8a;
}
.fb-contact { display: inline-flex; align-items: center; gap: 6px; }
.fb-contact i { width: 5px; height: 5px; border-radius: 50%; background: #666; }
.fb-contact:hover { color: #fff; }
.logo-mini .logo-mark { width: 18px; height: 21px; }
.logo-mini .logo-text { font-size: 10px; }
.fb-chat {
    width: 30px; height: 30px; border-radius: 6px;
    display: grid; place-items: center;
    background: var(--purple-2); color: #fff;
}

/* ==========================================================================
   КАТАЛОГ
   ========================================================================== */
.catalog { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; margin-top: 36px; scroll-margin-top: 20px; }
.sidebar {
    position: sticky; top: 20px; align-self: start;
    padding: 22px 10px 20px; background: var(--card); border-radius: 14px;
}
.sidebar-title { margin: 0 0 24px; font-family: var(--f-display); font-size: 15px; font-weight: 700; }
.side-label { margin-bottom: 10px; font-size: 12px; color: #5f5f5f; }
.side-label--mt { margin-top: 26px; }
.side-list { display: flex; flex-direction: column; gap: 7px; }
.side-list:not(.expanded) .is-extra { display: none; }
.side-item {
    display: flex; align-items: center; gap: 9px;
    height: 38px; padding: 0 12px;
    background: #0a0a0a; border: 1px solid #222; border-radius: 6px;
    font-family: var(--f-display); font-size: 12px; font-weight: 600; color: #e2e2e2;
    transition: border-color .2s, background .2s;
}
.side-item span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item:hover { border-color: #3a3a3a; }
.side-item.active { background: var(--btn-grad); border-color: transparent; box-shadow: var(--btn-shadow); }
.side-glyph {
    flex-shrink: 0; min-width: 24px;
    font-family: var(--f-cond); font-size: 12px; font-weight: 700; letter-spacing: -.02em; line-height: 1;
}
.side-btn {
    display: flex; align-items: center; justify-content: center;
    width: fit-content; height: 36px; margin: 16px auto 0; padding: 0 26px;
    background: #2a2a2a; border-radius: 7px;
    font-family: var(--f-display); font-size: 12px; font-weight: 600;
    transition: background .2s;
}
.side-btn:hover { background: #363636; }

.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.toolbar .search { margin-left: auto; }
.tab {
    display: inline-flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 18px; border-radius: 12px;
    background: #151515; border: 1px solid #222; color: #9a9a9a;
    font-family: var(--f-display); font-size: 12px; font-weight: 600;
    transition: color .2s, border-color .2s;
}
.tab:hover { color: #fff; border-color: #333; }
.tab.active { background: var(--btn-grad); box-shadow: var(--btn-shadow); border-color: transparent; color: #fff; }
.tip { position: relative; align-self: flex-start; color: #777; cursor: help; }
.tip:hover::after {
    content: attr(data-tip); position: absolute; left: 50%; top: 18px; z-index: 10; transform: translateX(-50%);
    width: 200px; padding: 8px 10px; border-radius: 8px;
    background: #1d1d1d; color: #ddd; font-size: 13px; line-height: 1.3;
}
.empty { display: grid; place-items: center; gap: 12px; padding: 60px 0; color: #777; }

/* ---------- FAQ ---------- */
.faq {
    display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: center;
    margin-top: 60px; padding: 20px 20px 20px 24px;
    background: var(--card); border-radius: 16px;
}
.faq-title { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 34px; font-weight: 900; line-height: 1; }
.faq-intro p { margin-top: 10px; font-size: 12px; font-weight: 600; line-height: 1.35; color: #e0e0e0; }
.accordion { display: flex; flex-direction: column; gap: 8px; }
.acc-item { background: #1a1a1a; border: 3px solid transparent; border-radius: 9px; overflow: hidden; transition: background .25s, border-color .25s; }
.acc-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; min-height: 40px; padding: 8px 14px; text-align: left;
    font-size: 13px; font-weight: 600; color: #777;
}
.acc-num { padding: 3px 6px; border-radius: 4px; background: #242424; color: #fff; font-family: var(--f-display); font-size: 10px; font-weight: 700; }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s; }
.acc-body p { overflow: hidden; padding: 0 10px; font-size: 12px; line-height: 1.4; color: #333; }
.acc-item.open { background: #fff; border-color: #2e2e2e; }
.acc-item.open .acc-head { color: #0a0a0a; font-weight: 800; }
.acc-item.open .acc-num { background: #f0f0f0; color: #0a0a0a; }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-item.open .acc-body p { padding-bottom: 10px; }

/* ==========================================================================
   СТРАНИЦА ТОВАРА
   ========================================================================== */
.product { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; min-width: 0; max-width: 100%; }
.product-main, .product-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 100%; width: 100%; }
.panel { background: var(--card); border: 1px solid #1a1a1a; border-radius: 16px; padding: 16px; min-width: 0; max-width: 100%; }
.panel-title { font-family: var(--f-display); font-size: 15px; font-weight: 700; overflow-wrap: break-word; }
.panel-title--plain { text-transform: none; }

.p-head { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; min-width: 0; max-width: 100%; }
.p-cover { position: relative; aspect-ratio: 1 / 1.13; border-radius: 10px; overflow: hidden; min-width: 0; max-width: 100%; }
.p-cover img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); }
.p-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(90, 60, 170, .35), transparent 40%); }
.p-info { padding: 8px 6px 0 0; min-width: 0; max-width: 100%; }
.p-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #262626; min-width: 0; }
.p-title { font-family: var(--f-display); font-size: 19px; font-weight: 800; text-transform: uppercase; min-width: 0; overflow-wrap: break-word; }
.p-meta { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 18px; min-width: 0; }
.p-rating { display: inline-flex; gap: 10px; font-size: 11px; font-weight: 700; color: #aaa; flex-shrink: 0; }
.p-rating span { display: inline-flex; align-items: center; gap: 3px; }
.p-rating .gold { color: var(--gold); }
.p-subtitle { font-family: var(--f-display); font-size: 15px; font-weight: 700; margin-bottom: 10px; overflow-wrap: break-word; }
.p-desc { font-size: 12px; line-height: 1.5; color: #8a8a8a; overflow-wrap: break-word; }

.gallery { min-width: 0; max-width: 100%; width: 100%; overflow: hidden; }
.gallery-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 20px) / 3); gap: 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    min-width: 0; max-width: 100%; width: 100%;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { width: 100%; aspect-ratio: 16 / 9.4; object-fit: cover; border-radius: 8px; scroll-snap-align: start; }
.dots { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 8px; }
.dots button { width: 4px; height: 4px; border-radius: 50%; background: #555; transition: all .2s; }
.dots button.active { width: 6px; height: 6px; background: #fff; }

.functions { min-height: 270px; min-width: 0; max-width: 100%; overflow: hidden; }
.func-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; min-width: 0; max-width: 100%; }
.func-tabs .tab { height: 38px; border-radius: 19px; }
.func-list { min-width: 0; max-width: 100%; }
.func-list li { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; font-size: 12px; font-weight: 700; min-width: 0; overflow-wrap: break-word; word-break: break-word; }
.func-list li::before { content: ''; width: 8px; height: 1px; margin-top: 6px; background: #666; flex-shrink: 0; }

.reqs { min-width: 0; max-width: 100%; overflow: hidden; }
.req-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; margin-top: 18px; min-width: 0; max-width: 100%; }
.req { display: flex; gap: 8px; min-width: 0; }
.req > div { min-width: 0; flex: 1; }
.req i { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 4px; background: #fff; color: #0a0a0a; }
.req small { display: block; font-size: 10px; color: #7a7a7a; overflow-wrap: break-word; }
.req b { display: block; font-size: 12px; font-weight: 800; line-height: 1.2; overflow-wrap: break-word; word-break: break-word; }

.buy { min-width: 0; max-width: 100%; overflow: hidden; }
.buy-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.buy-how { font-size: 11px; color: #555; flex-shrink: 0; }
.buy-how:hover { color: #aaa; }
.plans { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.plan {
    display: flex; align-items: center; gap: 10px;
    min-height: 40px; padding: 8px 14px; border-radius: 10px; cursor: pointer;
    font-size: 12px; font-weight: 600; color: #8a8a8a; transition: background .2s;
    min-width: 0;
}
.plan:hover { background: #161616; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan .radio { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #555; flex-shrink: 0; transition: border .2s; }
.plan-label { min-width: 0; flex: 1; line-height: 1.25; overflow-wrap: break-word; }
.plan-price { margin-left: auto; font-weight: 700; flex-shrink: 0; white-space: nowrap; }
.plan:has(input:checked) { background: var(--btn-grad); box-shadow: var(--btn-shadow); color: #fff; }
.plan:has(input:checked) .radio { border: 3px solid #fff; background: var(--purple); }
.plan.checked { background: var(--btn-grad); box-shadow: var(--btn-shadow); color: #fff; } /* фолбэк без :has */
.total { margin: 12px 6px 10px; font-family: var(--f-display); font-size: 22px; font-weight: 800; }
.help-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding: 0 4px; font-size: 11px; font-weight: 600; }

.bonus {
    position: relative; overflow: hidden;
    min-height: 130px; padding: 22px 18px;
    background: #fff; color: #0a0a0a; border-radius: 14px;
}
.bonus h3 { font-family: var(--f-display); font-size: 15px; font-weight: 700; }
.bonus p { margin-top: 4px; font-size: 11px; font-weight: 700; line-height: 1.3; }
.bonus-graffiti {
    position: absolute; right: -10px; bottom: -14px;
    font-family: 'Permanent Marker', cursive; font-size: 54px; line-height: .9; color: #000; opacity: .06;
    transform: rotate(-8deg); pointer-events: none;
}

.reviews { min-width: 0; max-width: 100%; overflow: hidden; }
.reviews-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.reviews-note { font-size: 10px; line-height: 1.2; color: #444; text-align: right; }
.rating-box {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    margin: 12px 0 16px; padding: 10px; border-radius: 8px; background: #161616;
}
.rating-box b { display: block; font-family: var(--f-display); font-size: 14px; color: var(--gold); }
.rating-box small { font-size: 9px; color: #aaa; }
.review-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 14px; }
.review-list:not(.expanded) .is-extra { display: none; }
.review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.review-head > div { flex: 1; min-width: 0; }
.review-head b { display: block; font-size: 12px; font-weight: 800; }
.review-head small { display: block; font-size: 10px; color: #777; }
.review-head .stars { align-self: flex-start; }
.avatar {
    display: grid; place-items: center; flex-shrink: 0;
    width: 30px; height: 30px; border-radius: 5px;
    background: linear-gradient(135deg, hsl(var(--h), 60%, 55%), hsl(calc(var(--h) + 60), 60%, 35%));
    font-size: 13px; font-weight: 800;
}
.review p { font-size: 11px; line-height: 1.35; color: #7d7d7d; overflow-wrap: break-word; }

.section--recs { margin-top: 32px; margin-bottom: 32px; }

/* ==========================================================================
   Модалка и тост
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); }
.modal-card {
    position: relative; width: min(380px, 100%);
    display: flex; flex-direction: column; gap: 14px;
    padding: 28px; background: var(--card); border: 1px solid #222; border-radius: 18px;
    animation: pop .25s ease;
}
.modal-close { position: absolute; top: 14px; right: 14px; color: #888; }
.modal-close:hover { color: #fff; }
.modal-title { font-family: var(--f-display); font-size: 20px; font-weight: 800; margin-top: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #999; }
.field input { height: 42px; padding: 0 14px; border: 1px solid #2c2c2c; border-radius: 12px; background: #0a0a0a; color: #fff; }
.field input:focus { border-color: var(--purple); }
.modal-note { font-size: 14px; color: #888; text-align: center; }
.modal-note a { color: var(--purple-2); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

.toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translateX(-50%);
    display: flex; align-items: center; gap: 8px;
    padding: 12px 18px; border-radius: 12px;
    background: var(--btn-grad); box-shadow: var(--btn-shadow), 0 20px 40px -10px rgba(0, 0, 0, .6);
    font-size: 15px; font-weight: 700;
    animation: toast 4s ease forwards;
}
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 20px); } 8%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 20px); visibility: hidden; } }

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */
@media (max-width: 1180px) {
    .nav { gap: 20px; margin-left: 20px; }
    .search { width: 170px; }
}

@media (max-width: 1024px) {
    .header { position: relative; z-index: 60; }
    .burger { display: grid; }
    .nav {
        position: absolute; top: calc(100% - 8px); left: 0; right: 0; z-index: 70;
        flex-direction: column; gap: 4px; margin: 0; padding: 12px;
        background: #111; border: 1px solid #262626; border-radius: 16px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, .85);
        opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .25s;
    }
    .nav.open { opacity: 1; visibility: visible; transform: none; }
    .nav a { padding: 12px 14px; border-radius: 10px; }
    .nav a.active { background: #1b1b1b; }
    .nav a.active::after { display: none; }

    .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .product { grid-template-columns: minmax(0, 1fr); }
    .product-side { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
    .product-side .reviews { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .hero, .hero--catalog { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .hero-content, .hero--catalog .hero-content { padding: 32px 24px 12px; max-width: none; min-width: 0; }
    .hero-media { min-height: 280px; }
    .hero-mascot { inset: 0; }
    .hero-media img,
    .hero-mascot img {
        object-position: center 22%;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%);
                mask-image: linear-gradient(180deg, transparent 0%, #000 18%);
    }
    .play { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .cta { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
    .cta-content { padding: 28px 24px 14px; min-width: 0; }
    .cta-media { min-height: 230px; }
    .cta-media img {
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%);
                mask-image: linear-gradient(180deg, transparent 0%, #000 18%);
    }
    .catalog { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
    .catalog-main { min-width: 0; max-width: 100%; }
    .sidebar { position: static; padding: 18px 14px; min-width: 0; max-width: 100%; }
    .catalog .side-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .faq { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 36px; padding: 20px 16px; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .req-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .p-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .p-cover { aspect-ratio: 16 / 9.5; max-height: 240px; width: 100%; }
}

@media (max-width: 640px) {
    .container { width: calc(100% - 24px); max-width: 100%; }

    /* Шапка на мобильных */
    .header { flex-wrap: nowrap; gap: 10px; padding: 16px 0; }
    .logo-mark { width: 30px; height: 34px; }
    .logo-text { font-size: 14px; }
    .header-actions { gap: 8px; margin-left: auto; }
    .header-actions .search { display: none; }
    .btn-circle, .burger { width: 42px; height: 42px; border-radius: 11px; }

    /* Заголовки и Hero */
    .hero, .hero--catalog { border-radius: 16px; }
    .hero-content, .hero--catalog .hero-content { padding: 24px 18px 10px; }
    .display-title {
        font-size: clamp(23px, 6.8vw, 32px);
        line-height: 1.06;
        word-break: break-word;
    }
    .display-title--md { font-size: clamp(21px, 6.2vw, 28px); }
    .display-title .line { flex-wrap: wrap; gap: 7px; }
    .chip { width: 48px; height: 28px; border-radius: 5px; }
    .chip svg { width: 15px; height: 15px; }
    .chip--sm { width: 40px; height: 24px; }
    .hero-label { margin-top: 18px; padding-bottom: 9px; font-size: 12.5px; }
    .hero-text, .hero--catalog .hero-text { font-size: 12px; line-height: 1.45; margin-top: 10px; }
    .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 16px; }
    .hero-actions .btn { width: 100%; height: 42px; padding: 0 12px; font-size: 12.5px; }
    .hero-media { min-height: 220px; }

    /* Блок «Играй с нами» и статистика */
    .play { margin-top: 20px; gap: 14px; }
    .play-title { font-size: clamp(22px, 6.5vw, 30px); line-height: 1.1; }
    .stats-card { height: auto; min-height: 176px; padding: 18px 16px; border-radius: 14px; }
    .stats-grid { width: 65%; gap: 12px 10px; }
    .stat { flex-direction: column; align-items: flex-start; gap: 2px; }
    .stat b { font-size: 21px; }
    .stat span { font-size: 10.5px; line-height: 1.2; }
    .stats-mascot { width: 40%; object-position: 32% 20%; }

    /* Секции и сетки карточек */
    #popular { margin-top: 38px; }
    .section-title { font-size: clamp(20px, 6vw, 26px); margin-bottom: 18px; line-height: 1.12; }
    .section-title--left { font-size: 17px; margin-bottom: 14px; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .catalog-main .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }

    /* Компактные карточки игр и читов для 2 колонок на телефоне */
    .gcard, .ccard { padding: 6px 6px 8px; border-radius: 11px; min-width: 0; }
    .badge { top: 6px; padding: 3px 6px; font-size: 9px; }
    .badge-hot { left: 6px; }
    .badge-update { right: 6px; }
    .cover-logo { top: 12px; font-size: clamp(20px, 5.5vw, 28px); }
    .cover-logo--lg { top: 14px; font-size: clamp(22px, 6.5vw, 32px); padding: 0 8px; }
    .gcard-title { font-size: 14px; margin: -20px 5px 0; }
    .gcard-meta {
        flex-direction: column; align-items: flex-start; gap: 3px;
        margin: 8px 5px 8px; font-size: 11px;
    }
    .gcard-meta b { font-size: 11.5px; }
    .gcard-meta small { font-size: 10px; }
    .gcard .btn-sm { height: 34px; font-size: 11px; padding: 0 8px; border-radius: 9px; }

    .ccard-name {
        font-size: 13.5px; margin: -20px 5px 0;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .ccard-row {
        flex-direction: column; align-items: flex-start; gap: 4px;
        margin: 8px 5px 5px;
    }
    .game-pill {
        font-size: 10.5px; max-width: 100%;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .game-dot { width: 11px; height: 11px; }
    .stars svg { width: 10px; height: 10px; }
    .ccard-buy {
        flex-direction: column; align-items: stretch; gap: 7px;
        margin: 5px 5px 0;
    }
    .ccard-buy .price {
        display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px;
    }
    .ccard-buy .price small { display: inline; margin-bottom: 0; font-size: 10px; }
    .ccard-buy .price b { font-size: 13px; }
    .ccard-buy .discount { margin-left: auto; font-size: 9px; padding: 2px 4px; }
    .ccard-buy .btn-sm { width: 100%; height: 34px; font-size: 11.5px; padding: 0 10px; border-radius: 9px; }

    /* Карточки блога в 1 колонку — возвращаем просторный вид */
    .blog-card .ccard-name { white-space: normal; margin: 10px 6px 6px !important; font-size: 15px !important; }
    .blog-card .ccard-buy { flex-direction: row; align-items: center; justify-content: space-between; }
    .blog-card .ccard-buy .btn-sm { width: auto; padding: 0 18px; }

    /* Каталог и фильтры */
    .toolbar { flex-wrap: wrap; gap: 6px; }
    .toolbar .tab { height: 34px; padding: 0 13px; font-size: 11px; }
    .toolbar .search { width: 100%; margin-left: 0; height: 40px; }
    .faq-title { font-size: 24px; }

    /* Страница товара — полное вхождение всех блоков в ширину мобильного экрана */
    .product { grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; }
    .product-main, .product-side { gap: 12px; width: 100%; min-width: 0; max-width: 100%; }
    .product-side { grid-template-columns: minmax(0, 1fr); }
    .panel { padding: 14px 12px; border-radius: 14px; width: 100%; min-width: 0; max-width: 100%; overflow: hidden; }
    .panel-title { font-size: 14px; line-height: 1.3; word-break: break-word; }

    .p-head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .p-cover { aspect-ratio: 16 / 9.5; max-height: 200px; width: 100%; }
    .p-info { padding: 0; width: 100%; min-width: 0; }
    .p-title-row { flex-wrap: wrap; gap: 8px; padding-bottom: 10px; }
    .p-title { font-size: 16px; line-height: 1.25; word-break: break-word; }
    .p-meta { flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
    .p-subtitle { font-size: 14px; line-height: 1.3; margin-bottom: 8px; }
    .p-desc { font-size: 12.5px; line-height: 1.5; word-break: break-word; }

    .gallery { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; }
    .gallery-track { grid-auto-columns: 88%; gap: 8px; width: 100%; min-width: 0; max-width: 100%; }

    .functions { min-height: 0; width: 100%; }
    .func-tabs {
        display: flex; flex-wrap: wrap; gap: 6px;
        margin: 12px 0 14px; padding-bottom: 0; overflow: visible;
    }
    .func-tabs .tab {
        flex: 1 1 calc(50% - 6px); justify-content: center;
        min-height: 36px; height: auto; padding: 6px 10px;
        font-size: 11px; line-height: 1.2; border-radius: 10px;
        white-space: normal; text-align: center;
    }
    .func-list li { font-size: 12px; line-height: 1.4; padding: 5px 0; }

    .req-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; margin-top: 12px; }
    .req { gap: 7px; align-items: flex-start; min-width: 0; }
    .req i { width: 30px; height: 30px; }
    .req small { font-size: 9.5px; line-height: 1.2; }
    .req b { font-size: 11px; line-height: 1.25; word-break: break-word; }

    .buy-head { margin-bottom: 10px; }
    .plan { min-height: 40px; height: auto; padding: 8px 11px; gap: 8px; font-size: 11.5px; }
    .total { font-size: 19px; margin: 10px 4px 10px; }
    .help-row { margin-top: 12px; padding: 0; }
    .rating-box { margin: 10px 0 0; padding: 10px; }

    /* Подвал */
    .footer { margin-top: 34px; padding-bottom: 28px; }
    .footer-top { flex-direction: column; padding: 20px 18px 0; gap: 18px; }
    .footer-cols { gap: 14px 24px; margin-top: 14px; }
    .footer-col a { font-size: 12.5px; }
    .footer-copy { padding: 16px 18px; font-size: 11px; }
    .footer-bottom {
        display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
        gap: 10px 14px; padding: 12px 18px;
    }
    .footer-bottom .logo-mini { display: none; }
}

@media (max-width: 390px) {
    .catalog .side-list { grid-template-columns: minmax(0, 1fr); }
    .req-grid { grid-template-columns: minmax(0, 1fr); }
    .func-tabs .tab { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   БЛОГ, СТАТЬИ, КОНТАКТЫ И СТАТУСЫ
   ========================================================================== */
.article-body { line-height: 1.65; color: #cfcfcf; font-size: 15px; }
.article-body h2, .article-body h3, .article-body h4 {
    font-family: var(--f-display); color: #fff; margin: 24px 0 12px; line-height: 1.25;
}
.article-body p { margin-bottom: 14px; }
.article-body ul, .article-body ol { margin: 0 0 16px 20px; list-style: disc; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--purple-2); text-decoration: underline; }
.article-body img { border-radius: 12px; margin: 16px 0; max-height: 420px; object-fit: cover; }

/* ==========================================================================
   ЛУПА И ПОЛНОЭКРАННЫЙ ПРОСМОТР СКРИНШОТОВ (LIGHTBOX)
   ========================================================================== */
[data-zoomable] { position: relative; cursor: zoom-in; }
.gallery-slide {
    position: relative; overflow: hidden; border-radius: 8px;
    scroll-snap-align: start; background: #111;
}
.gallery-slide img {
    width: 100%; aspect-ratio: 16 / 9.4; object-fit: cover; display: block;
    transition: transform .3s ease, filter .3s ease;
}
.gallery-slide:hover img,
.p-cover[data-zoomable]:hover img {
    transform: scale(1.04);
}
.zoom-badge {
    position: absolute; right: 10px; bottom: 10px; z-index: 4;
    width: 34px; height: 34px; border-radius: 9px;
    display: grid; place-items: center;
    background: rgba(12, 12, 16, .78); color: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px);
    opacity: .82; transform: scale(.94);
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
    pointer-events: none;
}
[data-zoomable]:hover .zoom-badge {
    opacity: 1; transform: scale(1.05);
    background: var(--purple); border-color: var(--purple-2);
}

.lightbox {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    background: rgba(5, 5, 8, .92); backdrop-filter: blur(10px);
    user-select: none; animation: lbFade .2s ease;
}
.lightbox[hidden] { display: none !important; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

.lb-toolbar {
    position: absolute; top: 18px; right: 22px; z-index: 5;
    display: flex; align-items: center; gap: 8px;
}
.lb-counter {
    position: absolute; top: 22px; left: 24px; z-index: 5;
    padding: 6px 12px; border-radius: 8px;
    background: rgba(255, 255, 255, .08); color: #ddd;
    font-family: var(--f-display); font-size: 13px; font-weight: 700;
}
.lb-btn {
    width: 42px; height: 42px; border-radius: 10px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .1); color: #fff;
    border: 1px solid rgba(255, 255, 255, .16);
    cursor: pointer; transition: background .2s, transform .15s;
}
.lb-btn:hover { background: var(--purple); border-color: var(--purple-2); transform: translateY(-1px); }
.lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .1); color: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
    cursor: pointer; transition: background .2s, transform .2s;
}
.lb-nav:hover { background: var(--purple); transform: translateY(-50%) scale(1.06); }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }

.lb-stage {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding: 60px 80px;
}
.lb-img {
    max-width: 90vw; max-height: 85vh;
    border-radius: 12px; object-fit: contain;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .75);
    cursor: zoom-in;
    transition: transform .22s ease;
    transform-origin: center center;
}
.lb-img.is-zoomed {
    cursor: zoom-out;
}
.lb-img.is-dragging {
    transition: none;
    cursor: grabbing;
}
@media (max-width: 640px) {
    .lb-stage { padding: 56px 14px; }
    .lb-prev { left: 10px; }
    .lb-next { right: 10px; }
}

/* ---------- Screen-Reader & SEO Blocks ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.acc-q {
    margin: 0;
    font: inherit;
    color: inherit;
    display: inline;
    min-width: 0;
    flex: 1;
    overflow-wrap: break-word;
    word-break: break-word;
}

.seo-block {
    padding: 36px 40px;
    margin-top: 32px;
    margin-bottom: 28px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
.seo-block > h2 {
    font-family: var(--font-head);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 18px;
    line-height: 1.3;
    overflow-wrap: break-word;
}
.seo-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 12px;
    min-width: 0;
}
.seo-col h3,
.seo-article h3,
.seo-links h3 {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 18px 0 8px;
    line-height: 1.35;
    overflow-wrap: break-word;
}
.seo-col h3:first-child {
    margin-top: 0;
}
.seo-col p,
.seo-article p,
.seo-block > p {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 12px;
    overflow-wrap: break-word;
}
.seo-article h2 {
    font-family: var(--font-head);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 800;
    color: #fff;
    margin: 22px 0 12px;
    line-height: 1.3;
    overflow-wrap: break-word;
}
.seo-article h2:first-child {
    margin-top: 0;
}
.seo-article ul,
.seo-article ol {
    margin: 8px 0 16px 20px;
    padding: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.65;
}
.seo-article li {
    margin-bottom: 6px;
    overflow-wrap: break-word;
}
.seo-article a {
    color: var(--purple-light, #B9A5F5);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.seo-links {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.seo-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.seo-pills .pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.seo-pills .pill:hover {
    background: var(--purple, #9075E1);
    border-color: var(--purple, #9075E1);
    color: #fff;
}
@media (max-width: 640px) {
    .seo-block {
        padding: 18px 14px;
    }
    .seo-cols,
    .article-toc-list {
        grid-template-columns: minmax(0, 1fr);
    }
    .seo-pills .game-pill {
        white-space: normal;
        word-break: break-word;
        line-height: 1.3;
    }
}

/* ==========================================================================
   Уникальные анимации появления блоков для каждой страницы (Entrance Animations)
   ========================================================================== */
:root {
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Шапка — плавный спуск сверху при открытии любой страницы */
body.js-anim .header {
    animation: headerDropIn 0.7s var(--ease-out-expo) both;
}
@keyframes headerDropIn {
    0% {
        opacity: 0;
        transform: translateY(-22px);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Базовое состояние анимируемых элементов (только когда JS активен, чтобы не мешать SEO-ботам) */
body.js-anim [data-anim] {
    opacity: 0;
    will-change: transform, opacity, filter;
    transition-property: opacity, transform, filter, box-shadow;
    transition-duration: var(--anim-dur, 0.72s);
    transition-timing-function: var(--anim-ease, var(--ease-out-expo));
    transition-delay: var(--anim-delay, 0ms);
}

/* --- 1. Общие и текстовые пресеты --- */
body.js-anim [data-anim="fade-up"] {
    transform: translate3d(0, 34px, 0);
    filter: blur(5px);
}
body.js-anim [data-anim="line-skew"] {
    transform: translate3d(0, 42px, 0) skewY(4deg) scale(0.96);
    transform-origin: left bottom;
    filter: blur(6px);
}
body.js-anim [data-anim="slide-left"] {
    transform: translate3d(-44px, 0, 0);
    filter: blur(5px);
}
body.js-anim [data-anim="slide-right"] {
    transform: translate3d(44px, 0, 0);
    filter: blur(5px);
}
body.js-anim [data-anim="blur-zoom"] {
    transform: scale(0.88) translate3d(0, 20px, 0);
    filter: blur(10px);
}
body.js-anim [data-anim="rise-scale"] {
    transform: translate3d(0, 40px, 0) scale(0.96);
    filter: blur(4px);
}

/* --- 2. Главная страница (index.php) --- */
body.js-anim [data-anim="mascot-pop"] {
    transform: translate3d(50px, 24px, 0) scale(0.86) rotate(3deg);
    filter: blur(8px);
    --anim-ease: var(--ease-spring);
    --anim-dur: 0.85s;
}
body.js-anim [data-anim="sweep-up"] {
    transform: perspective(1000px) translate3d(0, 52px, 0) rotateX(8deg) scale(0.95);
    filter: blur(6px);
    --anim-dur: 0.82s;
}
body.js-anim [data-anim="stat-pop"] {
    transform: translate3d(0, 26px, 0) scale(0.82);
    filter: blur(4px);
    --anim-ease: var(--ease-spring);
}
body.js-anim [data-anim="card-3d"] {
    transform: perspective(900px) translate3d(0, 46px, -30px) rotateX(12deg) scale(0.94);
    filter: blur(5px);
}
body.js-anim [data-anim="card-glide"] {
    transform: translate3d(28px, 38px, 0) scale(0.93);
    filter: blur(6px);
}
body.js-anim [data-anim="zoom-right"] {
    transform: translate3d(56px, 16px, 0) scale(0.88);
    filter: blur(7px);
    --anim-ease: var(--ease-spring);
}

/* --- 3. Каталог и страница игры (category.php) --- */
body.js-anim [data-anim="curtain-left"] {
    transform: translate3d(-56px, 14px, 0) scale(0.96);
    filter: blur(7px);
}
body.js-anim [data-anim="curtain-right"] {
    transform: translate3d(56px, -10px, 0) scale(0.9);
    filter: blur(8px);
}
body.js-anim [data-anim="rail-left"] {
    transform: translate3d(-48px, 20px, 0);
    filter: blur(5px);
}
body.js-anim [data-anim="list-cascade"] {
    transform: translate3d(-18px, 8px, 0);
    --anim-dur: 0.48s;
}
body.js-anim [data-anim="catalog-card"] {
    transform: translate3d(0, 36px, 0) scale(0.91);
    filter: blur(6px);
    --anim-ease: var(--ease-smooth);
}
body.js-anim [data-anim="acc-slide"] {
    transform: translate3d(38px, 10px, 0);
    filter: blur(4px);
}

/* --- 4. Страница товара / чита (product.php) --- */
body.js-anim [data-anim="cover-3d"] {
    transform: perspective(900px) translate3d(-36px, 18px, 0) rotateY(14deg) scale(0.92);
    filter: blur(6px);
    --anim-dur: 0.8s;
}
body.js-anim [data-anim="filmstrip"] {
    transform: translate3d(48px, 0, 0) scale(0.92);
    filter: blur(6px);
}
body.js-anim [data-anim="func-item"] {
    transform: translate3d(-16px, 10px, 0);
    --anim-dur: 0.42s;
}
body.js-anim [data-anim="req-tile"] {
    transform: translate3d(0, 22px, 0) scale(0.88);
    filter: blur(4px);
    --anim-ease: var(--ease-spring);
    --anim-dur: 0.56s;
}
body.js-anim [data-anim="buy-card"] {
    transform: translate3d(44px, 24px, 0) scale(0.95);
    filter: blur(6px);
    --anim-dur: 0.78s;
}
body.js-anim [data-anim="spring-up"] {
    transform: translate3d(0, 32px, 0) scale(0.93);
    --anim-ease: var(--ease-spring);
}

/* --- 5. Блог и Статья (blog.php / blog-post.php) --- */
body.js-anim [data-anim="magazine-card"] {
    transform: perspective(900px) translate3d(0, 48px, 0) rotateZ(1.5deg) scale(0.93);
    filter: blur(6px);
}
body.js-anim [data-anim="cinematic-reveal"] {
    transform: scale(1.05) translate3d(0, 24px, 0);
    filter: blur(10px);
    --anim-dur: 0.85s;
}
body.js-anim [data-anim="read-flow"] {
    transform: translate3d(0, 24px, 0);
    filter: blur(3px);
    --anim-dur: 0.58s;
}

/* --- 6. Статусы и Драйверы (status.php) --- */
body.js-anim [data-anim="tech-drop"] {
    transform: translate3d(0, -28px, 0) scale(0.92);
    filter: blur(6px);
    --anim-ease: var(--ease-spring);
}
body.js-anim [data-anim="wave-card"] {
    transform: translate3d(-20px, 34px, 0) scale(0.94);
    filter: blur(5px);
}

/* --- 7. Контакты (contacts.php) --- */
body.js-anim [data-anim="fan-left"] {
    transform: perspective(900px) translate3d(-46px, 28px, 0) rotateY(-10deg) rotateZ(-2deg) scale(0.92);
    filter: blur(6px);
}
body.js-anim [data-anim="fan-center"] {
    transform: translate3d(0, 44px, 0) scale(0.88);
    filter: blur(6px);
    --anim-ease: var(--ease-spring);
}
body.js-anim [data-anim="fan-right"] {
    transform: perspective(900px) translate3d(46px, 28px, 0) rotateY(10deg) rotateZ(2deg) scale(0.92);
    filter: blur(6px);
}

/* На мобильных и планшетах отключаем тяжёлый blur и боковые сдвиги за пределы экрана */
@media (max-width: 860px) {
    body.js-anim .header {
        animation: none;
    }
    body.js-anim [data-anim] {
        filter: none !important;
        will-change: opacity, transform;
        transform: translate3d(0, 14px, 0);
        --anim-dur: 0.36s;
    }
}

/* --- Финальное видимое состояние для всех пресетов --- */
body.js-anim [data-anim].is-visible {
    opacity: 1;
    transform: perspective(1000px) translate3d(0, 0, 0) rotateX(0) rotateY(0) rotateZ(0) skewY(0) scale(1);
    filter: blur(0);
}

/* После завершения анимации возвращаем быстрый hover-отклик карточкам и табам */
body.js-anim .gcard.anim-done,
body.js-anim .ccard.anim-done,
body.js-anim .panel.anim-done,
body.js-anim .req.anim-done,
body.js-anim .tab.anim-done,
body.js-anim .func-list li.anim-done {
    transition-delay: 0ms !important;
    transition-duration: 0.25s !important;
    will-change: auto;
}

/* Анимация переключения вкладок функций на странице товара */
@keyframes tabItemCascade {
    0% {
        opacity: 0;
        transform: translate3d(-14px, 8px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.func-list li.tab-anim {
    animation: tabItemCascade 0.38s var(--ease-out-expo) both;
    animation-delay: var(--li-delay, 0ms);
}

/* Уважение системной настройки уменьшения движения */
@media (prefers-reduced-motion: reduce) {
    body.js-anim .header,
    body.js-anim [data-anim],
    .func-list li.tab-anim {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* ==========================================================================
   Блог и статьи (blog.php / blog-post.php)
   ========================================================================== */
.blog-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}
.blog-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border-radius: 999px;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
}
.blog-filter-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}
.blog-filter-pill:hover,
.blog-filter-pill.active {
    background: var(--purple, #9075E1);
    border-color: var(--purple, #9075E1);
    color: #fff;
    box-shadow: 0 6px 20px rgba(144, 117, 225, 0.35);
}
.blog-filter-pill:hover span,
.blog-filter-pill.active span {
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
}

.blog-card .ccard-media {
    position: relative;
}
.blog-sec-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #dcdcdc;
    font-size: 10px;
    font-weight: 700;
}
.blog-card-title {
    margin: 12px 8px 6px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
}
.blog-card-title a:hover {
    color: var(--purple-light, #B9A5F5);
}
.blog-card-excerpt {
    margin: 4px 8px 14px;
    font-size: 12.5px;
    color: #8f8f8f;
    line-height: 1.5;
}

/* Внутренняя страница статьи */
.article-panel {
    padding: 32px 36px;
}
.article-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.article-meta-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.article-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #bdbdbd;
    font-size: 11px;
    font-weight: 600;
}
.article-h1 {
    font-size: clamp(22px, 2.6vw, 30px) !important;
    line-height: 1.25 !important;
    margin: 0 0 22px !important;
}
.article-hero-cover {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: zoom-in;
    max-height: 390px;
}
.article-hero-cover img {
    width: 100%;
    height: 100%;
    max-height: 390px;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.article-hero-cover:hover img {
    transform: scale(1.025);
}

/* Содержание статьи (TOC) */
.article-toc {
    background: rgba(144, 117, 225, 0.07);
    border: 1px solid rgba(144, 117, 225, 0.24);
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 28px;
}
.article-toc-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--purple-light, #B9A5F5);
    margin-bottom: 12px;
}
.article-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 8px 16px;
}
.article-toc-list a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.86);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.article-toc-list a:hover {
    background: rgba(144, 117, 225, 0.18);
    border-color: rgba(144, 117, 225, 0.45);
    color: #fff;
    transform: translateX(3px);
}
.toc-num {
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 800;
    color: var(--purple-light, #B9A5F5);
    background: rgba(144, 117, 225, 0.18);
    padding: 3px 6px;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Разделы и типографика статьи */
.article-intro {
    font-size: 15px;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.85);
    padding-bottom: 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.article-intro p {
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.84) !important;
}
.article-section {
    padding: 22px 24px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    scroll-margin-top: 24px;
}
.article-sec-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-head);
    font-size: clamp(16px, 1.8vw, 20px) !important;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px !important;
    line-height: 1.3;
}
.sec-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    background: var(--purple, #9075E1);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}
.article-sec-content p {
    font-size: 14.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 12px;
}
.article-sec-content strong {
    color: #fff;
    font-weight: 700;
}
.article-sec-content ul,
.article-sec-content ol {
    margin: 10px 0 16px 20px;
    padding: 0;
}
.article-sec-content li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}
.article-cta-btn {
    margin-top: 10px;
    padding: 12px 22px !important;
    font-size: 13px !important;
    text-decoration: none !important;
    color: #fff !important;
}

/* Список читов для игры в сайдбаре статьи */
.side-cheats-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.side-cheat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.2s ease;
}
.side-cheat-item:hover {
    background: rgba(144, 117, 225, 0.14);
    border-color: rgba(144, 117, 225, 0.4);
    transform: translateY(-2px);
}
.side-cheat-item img {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    object-fit: cover;
    flex-shrink: 0;
}
.side-cheat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.side-cheat-info b {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.side-cheat-info small {
    font-size: 11.5px;
    color: var(--purple-light, #B9A5F5);
    font-weight: 700;
}

@media (max-width: 640px) {
    .article-panel {
        padding: 20px 18px;
    }
    .article-section {
        padding: 16px;
    }
}

