/* =============================================
   REDESIGN 2026 — Homepage overhaul
   - Remove sidebar on homepage
   - Hero section with CTA + bonus
   - Glass/dark cards, hover glow, CTA buttons
   - Real filters, visual hierarchy
   ============================================= */

/* ----- VARIABLES ----- */
:root {
    --bg-dark: #0b0e14;
    --bg-card: #13171e;
    --bg-card-hover: #1a1f2a;
    --accent: #f6a45a;
    --accent-hot: #ff6b2b;
    --accent-glow: rgba(246, 164, 90, 0.35);
    --text-primary: #e8ecf4;
    --text-secondary: #8891a4;
    --text-muted: #555d6f;
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-bg: rgba(19, 23, 30, 0.75);
    --radius: 14px;
    --radius-sm: 8px;
}

/* =====================
   1. HIDE LEFT SIDEBAR
   ===================== */
body.page-home .aside-content {
    display: none !important;
}

body.page-home .main-content {
    padding-left: 0 !important;
    overflow-x: hidden;
}

/* Prevent any hero/filter from causing horizontal scroll */
body.page-home .hero-section,
body.page-home .filter-bar,
body.page-home .top-drops {
    box-sizing: border-box;
    max-width: 100vw;
}

/* =====================
   2. HERO SECTION
   ===================== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(246, 164, 90, 0.09) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 30%, rgba(209, 42, 30, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 95%, rgba(246, 164, 90, 0.14) 0%, transparent 55%),
        linear-gradient(180deg, #0b0e14 0%, #111520 100%);
    padding: 60px 24px 50px;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(246,164,90,0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* 2-col split */
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 48px;
}

.hero-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.hero-badge-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(246, 164, 90, 0.15), rgba(209, 42, 30, 0.15));
    border: 1px solid rgba(246, 164, 90, 0.25);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(246, 164, 90, 0.1); }
    50%       { box-shadow: 0 0 30px rgba(246, 164, 90, 0.28); }
}

.hero-fomo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #ff6b2b;
    letter-spacing: 0.3px;
    animation: fomoPulse 2s ease-in-out infinite;
}

@keyframes fomoPulse {
    0%, 100% { opacity: 0.82; }
    50%       { opacity: 1; }
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(135deg, #f6a45a, #d12a1e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

.hero-cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

@keyframes heroBtnPulse {
    0%, 100% { box-shadow: 0 4px 24px rgba(246, 164, 90, 0.30); }
    50%       { box-shadow: 0 4px 36px rgba(246, 164, 90, 0.55), 0 0 0 6px rgba(246, 164, 90, 0.08); }
}

.hero-btn-primary {
    background: linear-gradient(135deg, #f6a45a, #d12a1e);
    color: #fff;
    box-shadow: 0 4px 24px rgba(246, 164, 90, 0.3);
    animation: heroBtnPulse 2.5s ease-in-out infinite;
}

.hero-btn-primary:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 40px rgba(246, 164, 90, 0.6);
    animation: none;
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(246, 164, 90, 0.35);
    color: var(--accent);
    box-shadow: 0 4px 20px rgba(246, 164, 90, 0.12);
}

/* ---- Drop showcase ---- */
.hero-drops {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.hero-drops-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-drops-row {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.hero-drop-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 8px 10px;
    border-left: 3px solid transparent;
    flex: 1;
    min-width: 0;
    transition: background 0.2s ease;
}

.hero-drop-item:hover {
    background: rgba(255, 255, 255, 0.07);
}

.hero-drop-item img {
    width: 46px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}

.hero-drop-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hero-drop-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-drop-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    margin-top: 2px;
}

.rarity-covert     { border-left-color: #e4453f; }
.rarity-classified { border-left-color: #d32ee6; }
.rarity-restricted { border-left-color: #4b69ff; }

/* ---- Stats ---- */
.hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.hero-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

/* ==== RIGHT: floating weapon visual ==== */
.hero-visual {
    flex: 0 0 360px;
    height: 340px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(246, 164, 90, 0.16) 0%, rgba(209, 42, 30, 0.08) 50%, transparent 75%);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1);    opacity: 0.8; }
    50%       { transform: scale(1.12); opacity: 1; }
}

.hero-visual-ring {
    position: absolute;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    border: 1px solid rgba(246, 164, 90, 0.13);
    animation: ringRotate 22s linear infinite;
    pointer-events: none;
}

.hero-visual-ring::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.hero-weapon-stack {
    position: relative;
    width: 260px;
    height: 260px;
}

.hero-weapon {
    position: absolute;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(19, 23, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-weapon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hw-1 {
    width: 190px;
    height: 145px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 28px rgba(246, 164, 90, 0.2);
    border-color: rgba(246, 164, 90, 0.22);
    animation: weaponFloat1 4.5s ease-in-out infinite;
}

.hw-2 {
    width: 130px;
    height: 100px;
    top: 6px;
    left: 6px;
    z-index: 2;
    opacity: 0.78;
    animation: weaponFloat2 5.5s ease-in-out infinite;
}

.hw-3 {
    width: 130px;
    height: 100px;
    bottom: 6px;
    right: 6px;
    z-index: 2;
    opacity: 0.72;
    animation: weaponFloat3 6s ease-in-out infinite;
}

.hero-visual:hover .hw-1 {
    box-shadow: 0 12px 45px rgba(0,0,0,0.6), 0 0 50px rgba(246, 164, 90, 0.38);
}

@keyframes weaponFloat1 {
    0%, 100% { transform: translate(-50%, calc(-50% + 0px)); }
    50%       { transform: translate(-50%, calc(-50% - 14px)); }
}

@keyframes weaponFloat2 {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

@keyframes weaponFloat3 {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(10px); }
}

/* =====================
   3. HIDE OLD PROMO BANNER
   ===================== */
body.page-home .promo-first {
    display: none !important;
}

/* =====================
   4. FILTER BAR — Redesigned
   ===================== */
body.page-home .homepage #filter {
    background: transparent;
    height: auto;
    padding: 20px 16px 10px;
    max-width: 1281px;
    margin: 0 auto;
    gap: 10px;
    justify-content: flex-start;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 1281px;
    margin: 0 auto;
    padding: 20px 16px 10px;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.12);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(246, 164, 90, 0.22), rgba(209, 42, 30, 0.15));
    color: var(--accent);
    border-color: rgba(246, 164, 90, 0.55);
    box-shadow: 0 0 14px rgba(246, 164, 90, 0.22), inset 0 0 10px rgba(246, 164, 90, 0.06);
    font-weight: 700;
}

.filter-btn.active:hover {
    box-shadow: 0 0 22px rgba(246, 164, 90, 0.38);
}

.filter-btn .filter-icon {
    font-size: 14px;
}

.filter-search {
    flex: 1;
    min-width: 200px;
    max-width: 320px;
    padding: 9px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    outline: none;
    transition: all 0.2s ease;
}

.filter-search:focus {
    border-color: rgba(246, 164, 90, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.filter-search::placeholder {
    color: var(--text-muted);
}

/* =====================
   5. CASE CARDS — Glass/Dark redesign
   ===================== */

/* Section titles */
.section-title {
    flex: 0 0 100%;
    text-align: left;
    padding: 30px 16px 10px;
    max-width: 1281px;
    margin: 0 auto;
}

.section-title h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title h2 .section-icon {
    font-size: 20px;
}

.section-title p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 4px 0 0;
}

/* Override card layout */
body.page-home .homepage #caseList > a {
    width: 235px;
    margin: 8px;
    padding: 0;
    padding-bottom: 0;
    border-radius: var(--radius);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

/* Remove old pseudo-element borders */
body.page-home .homepage #caseList > a.top-leftStart-burst::before,
body.page-home .homepage #caseList > a.top-leftStart-burst::after,
body.page-home .homepage #caseList > a .ui-border-element::before,
body.page-home .homepage #caseList > a .ui-border-element::after {
    display: none !important;
}

body.page-home .homepage #caseList > a .ui-border-element {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card hover */
body.page-home .homepage #caseList > a:hover {
    background: var(--bg-card-hover);
    border-color: rgba(246, 164, 90, 0.38);
    transform: translateY(-8px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5),
                0 0 55px rgba(246, 164, 90, 0.22),
                0 0 0 1px rgba(246, 164, 90, 0.08);
}

/* Card image area */
body.page-home .homepage #caseList > a .case-image {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 10px;
}

body.page-home .homepage #caseList > a .case-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--glass-bg));
    pointer-events: none;
}

body.page-home .homepage #caseList > a .case-image .back-image {
    position: absolute;
    right: 10px;
    top: 5px;
    opacity: 0.6;
    transition: all 0.4s ease;
}

body.page-home .homepage #caseList > a .case-image .image {
    position: relative;
    top: auto;
    left: auto;
    transition: all 0.4s ease;
    z-index: 1;
}

body.page-home .homepage #caseList > a:hover .case-image .image {
    transform: scale(1.08) translateY(-5px);
    top: auto;
}

body.page-home .homepage #caseList > a:hover .case-image .back-image {
    opacity: 0.3;
    transform: scale(0.95);
}

/* Title inside card */
body.page-home .homepage #caseList > a .title {
    padding: 0 16px;
    margin-left: 0;
}

body.page-home .homepage #caseList > a .title h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 6px 0 3px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.page-home .homepage #caseList > a .title > span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Badge */
body.page-home .homepage #caseList > a .title img.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
}

/* =====================
   6. PRICE → CTA BUTTON
   ===================== */
body.page-home .homepage #caseList > a .bottom-elements {
    padding: 10px 16px 16px;
}

body.page-home .homepage #caseList > a .bottom-elements .price {
    text-align: center;
    margin-right: 0;
}

body.page-home .homepage #caseList > a .bottom-elements .price .border-box {
    display: block;
    width: 100%;
    background-image: none;
    background: linear-gradient(135deg, #f6a45a, #d12a1e);
    padding: 0;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

body.page-home .homepage #caseList > a .bottom-elements .price .border-box span {
    display: block;
    padding: 10px 14px;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* "Открыть за X ₽" label */
body.page-home .homepage #caseList > a .bottom-elements .price .border-box span::before {
    content: "Открыть за ";
}

body.page-home .homepage #caseList > a:hover .bottom-elements .price .border-box {
    box-shadow: 0 4px 20px rgba(246, 164, 90, 0.4);
    transform: scale(1.02);
}

/* Old price */
body.page-home .homepage #caseList > a .bottom-elements .price .price-old {
    display: block;
    text-align: center;
    margin-bottom: 6px;
    margin-right: 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* =====================
   7. DISABLED CASES — push to bottom, subtle
   ===================== */
body.page-home .homepage #caseList > a.case-disabled {
    filter: none;
    -webkit-filter: none;
    opacity: 0.4;
    order: 99;
}

body.page-home .homepage #caseList > a.case-disabled:hover {
    opacity: 0.7;
    transform: none;
    box-shadow: none;
    background: var(--bg-card);
}

/* =====================
   8. CATEGORY TITLES
   ===================== */
body.page-home .homepage #caseList .category-title {
    background-image: none;
    text-align: left;
    padding: 30px 8px 10px;
}

body.page-home .homepage #caseList .category-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.page-home .homepage #caseList .category-title h2::before {
    content: "🔥";
    font-size: 18px;
}

/* =====================
   9. TOP DROPS SECTION
   ===================== */
.top-drops {
    width: 100%;
    max-width: 1281px;
    margin: 20px auto 0;
    padding: 0 16px 30px;
}

.top-drops h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-drops-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.top-drops-grid::-webkit-scrollbar {
    height: 4px;
}

.top-drops-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.top-drop-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.top-drop-card:hover {
    border-color: rgba(246, 164, 90, 0.2);
    background: var(--bg-card-hover);
}

.top-drop-card img {
    width: 80px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.top-drop-card .drop-weapon {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-drop-card .drop-skin {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.top-drop-card .drop-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    margin-top: 6px;
}

/* =====================
   10. HOVER ANIMATIONS & GLOW
   ===================== */
@keyframes caseFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

body.page-home .homepage #caseList > a:hover .case-image .image {
    animation: caseFloat 2s ease-in-out infinite;
    transform: scale(1.08);
}

/* Glow ring on hover */
body.page-home .homepage #caseList > a::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(246, 164, 90, 0.3), rgba(209, 42, 30, 0.2));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.page-home .homepage #caseList > a:hover::after {
    opacity: 1;
}

/* =====================
   11. WHY US / TRUST BAR
   ===================== */
.why-us-bar {
    width: 100%;
    background: rgba(255, 255, 255, 0.025);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 14px 16px;
}

.why-us-inner {
    max-width: 1281px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 40px;
}

.why-us-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.why-icon {
    color: var(--accent);
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.why-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==== HOW TO START BAR ==== */
.how-to-bar {
    width: 100%;
    padding: 18px 16px;
    background: rgba(246, 164, 90, 0.03);
    border-bottom: 1px solid var(--glass-border);
}

.how-to-inner {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-to-step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.step-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(246, 164, 90, 0.2), rgba(209, 42, 30, 0.15));
    border: 1px solid rgba(246, 164, 90, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--accent);
    flex-shrink: 0;
}

.step-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.step-text strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.step-text small {
    font-size: 11px;
    color: var(--text-muted);
    font-style: normal;
}

.step-arrow {
    font-size: 18px;
    color: var(--text-muted);
    padding: 0 8px;
    flex-shrink: 0;
}

/* Top-drop badge — slides up on card hover */
body.page-home .homepage #caseList > a .case-image::before {
    content: "🎯 Топ-дроп";
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    font-size: 10px;
    font-weight: 700;
    color: rgba(246, 164, 90, 0.85);
    background: rgba(5, 7, 12, 0.78);
    border: 1px solid rgba(246, 164, 90, 0.18);
    border-radius: 5px;
    padding: 3px 10px;
    z-index: 3;
    letter-spacing: 0.3px;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

body.page-home .homepage #caseList > a:hover .case-image::before {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    border-color: rgba(246, 164, 90, 0.45);
    color: var(--accent);
}

/* =====================
   12. RESPONSIVE — FULL CHAIN
   ===================== */

/* --- 1300px: slightly narrower cards --- */
@media only screen and (max-width: 1300px) {
    body.page-home .homepage #caseList > a {
        width: 220px;
    }

    .hero-title {
        font-size: 42px;
    }
}

/* --- 1080px: 3-column grid --- */
@media only screen and (max-width: 1080px) {
    body.page-home .homepage #caseList > a {
        width: 210px;
        margin: 6px;
    }

    .hero-section {
        min-height: 380px;
        padding: 50px 20px 40px;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .filter-bar {
        padding: 16px 12px 8px;
    }

    .top-drops-grid {
        gap: 10px;
    }

    .top-drop-card {
        flex: 0 0 180px;
    }

    .hero-visual { flex: 0 0 310px; height: 290px; }
    .hero-weapon-stack { width: 225px; height: 225px; }
    .hw-1 { width: 158px; height: 122px; }
    .hw-2, .hw-3 { width: 108px; height: 84px; }
    .hero-inner { gap: 36px; }
}

/* --- 900px: sidebar is hidden in original too --- */
@media only screen and (max-width: 900px) {
    body.page-home .homepage #caseList > a {
        width: 200px;
    }

    .hero-stats {
        gap: 30px;
    }

    .hero-stat-value {
        font-size: 22px;
    }

    body.page-home .homepage #caseList .category-title h2 {
        font-size: 18px;
    }

    .hero-inner { gap: 32px; }
    .hero-visual { flex: 0 0 265px; height: 265px; }
    .hero-weapon-stack { width: 205px; height: 205px; }
    .hw-1 { width: 142px; height: 110px; }
    .hw-2, .hw-3 { width: 97px; height: 75px; }
}

/* --- 768px: mobile layout starts --- */
@media only screen and (max-width: 768px) {
    /* Hero: stack to single column */
    .hero-inner { flex-direction: column; gap: 24px; align-items: center; }
    .hero-left  { align-items: center; text-align: center; }
    .hero-cta-group { justify-content: center; }
    .hero-stat  { text-align: center; }
    .hero-drops { align-items: center; }
    .hero-drops-row { justify-content: center; }
    .hero-visual {
        flex: none;
        width: 100%;
        max-width: 320px;
        height: 200px;
    }
    .hero-weapon-stack { width: 200px; height: 200px; }
    .hw-1 { width: 138px; height: 106px; }
    .hw-2, .hw-3 { width: 92px; height: 70px; }
    .how-to-inner { gap: 0; }
    .step-text small { display: none; }

    .hero-section {
        min-height: 320px;
        padding: 36px 16px 30px;
    }

    .hero-title {
        font-size: 30px;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 15px;
        max-width: 400px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 16px;
    }

    .hero-btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 12px;
        width: 100%;
        max-width: 420px;
    }

    .hero-stat {
        text-align: center;
    }

    .hero-stat-value {
        font-size: 19px;
    }

    .hero-stat-label {
        font-size: 10px;
    }

    /* Filter — horizontal scroll */
    .filter-bar {
        padding: 14px 12px 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-bar::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .filter-search {
        min-width: 160px;
        max-width: 200px;
        font-size: 13px;
        flex-shrink: 0;
    }

    /* Cards — 2 per row */
    body.page-home .homepage #caseList > a {
        width: calc(50% - 16px);
        min-width: 155px;
        margin: 6px 8px;
    }

    body.page-home .homepage #caseList > a .case-image {
        height: 145px;
    }

    body.page-home .homepage #caseList > a .title h3 {
        font-size: 13px;
    }

    body.page-home .homepage #caseList > a .bottom-elements {
        padding: 8px 12px 12px;
    }

    body.page-home .homepage #caseList > a .bottom-elements .price .border-box span {
        padding: 8px 10px;
        font-size: 13px;
    }

    /* Category title */
    body.page-home .homepage #caseList .category-title {
        padding: 20px 8px 8px;
    }

    body.page-home .homepage #caseList .category-title h2 {
        font-size: 16px;
        margin: 0;
    }

    /* Top drops */
    .top-drops {
        padding: 0 12px 24px;
    }

    .top-drops h2 {
        font-size: 18px;
    }

    .top-drop-card {
        flex: 0 0 160px;
        padding: 12px;
    }

    .top-drop-card img {
        width: 65px;
        height: 50px;
    }

    .why-us-inner {
        gap: 8px 16px;
        justify-content: flex-start;
        padding: 0 4px;
    }

    .why-us-item {
        white-space: normal;
        min-width: 0;
        flex: 0 1 calc(50% - 8px);
    }

    .why-text {
        font-size: 12px;
        white-space: normal;
        word-break: break-word;
    }
}

/* --- 550px: compact mobile --- */
@media only screen and (max-width: 550px) {
    .hero-visual { display: none; }
    .hero-drops  { display: none; }
    .how-to-bar  { padding: 14px 12px; }

    .hero-section {
        min-height: 280px;
        padding: 30px 14px 24px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-cta-group {
        gap: 10px;
    }

    .hero-btn {
        padding: 11px 20px;
        font-size: 14px;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat-value {
        font-size: 18px;
    }

    body.page-home .homepage #caseList > a {
        width: calc(50% - 12px);
        margin: 5px 6px;
    }

    body.page-home .homepage #caseList > a .case-image {
        height: 130px;
        padding: 8px;
    }

    body.page-home .homepage #caseList > a .title {
        padding: 0 10px;
    }

    body.page-home .homepage #caseList > a .title h3 {
        font-size: 12px;
        margin: 4px 0 2px;
    }

    body.page-home .homepage #caseList > a .title > span {
        font-size: 10px;
    }

    body.page-home .homepage #caseList > a .bottom-elements {
        padding: 6px 10px 10px;
    }

    body.page-home .homepage #caseList > a .bottom-elements .price .border-box span {
        padding: 7px 8px;
        font-size: 12px;
    }

    /* Shorter "Открыть за" on small screens */
    body.page-home .homepage #caseList > a .bottom-elements .price .border-box span::before {
        content: "";
    }

    body.page-home .homepage #caseList > a .bottom-elements .price .border-box span::after {
        content: " — открыть";
        font-weight: 400;
        font-size: 10px;
        opacity: 0.8;
    }

    .top-drop-card {
        flex: 0 0 140px;
        padding: 10px;
    }

    .top-drop-card .drop-weapon {
        font-size: 11px;
    }

    .top-drop-card .drop-price {
        font-size: 12px;
    }
}

/* --- 440px: very compact --- */
@media only screen and (max-width: 440px) {
    .hero-fomo { font-size: 11px; }
    .how-to-inner {
        align-items: center;
        gap: 6px;
    }
    .step-arrow { transform: rotate(90deg); padding: 2px 0; line-height: 1; }
    .step-text small { display: none; }

    .hero-section {
        min-height: 250px;
        padding: 24px 12px 20px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-subtitle {
        font-size: 13px;
        max-width: 300px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 5px 14px;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .hero-btn {
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-stat-value {
        font-size: 16px;
    }

    .hero-stat-label {
        font-size: 10px;
    }

    body.page-home .homepage #caseList > a {
        width: calc(50% - 10px);
        margin: 4px 5px;
        border-radius: 10px;
    }

    body.page-home .homepage #caseList > a .case-image {
        height: 110px;
        padding: 6px;
    }

    body.page-home .homepage #caseList > a .bottom-elements .price .border-box {
        border-radius: 6px;
    }

    body.page-home .homepage #caseList > a .bottom-elements .price .border-box span {
        padding: 6px;
        font-size: 12px;
    }

    body.page-home .homepage #caseList > a:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3),
                    0 0 20px var(--accent-glow);
    }

    /* Filter scrollable pills */
    .filter-bar {
        padding: 10px 8px 6px;
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .filter-search {
        min-width: 140px;
        font-size: 12px;
        padding: 7px 12px;
    }

    .top-drops {
        padding: 0 8px 20px;
    }

    .top-drops h2 {
        font-size: 16px;
    }

    .top-drop-card {
        flex: 0 0 130px;
        padding: 8px;
    }

    .top-drop-card img {
        width: 55px;
        height: 42px;
    }

    .top-drop-card .drop-weapon {
        font-size: 10px;
    }

    .top-drop-card .drop-skin {
        font-size: 9px;
    }

    .top-drop-card .drop-price {
        font-size: 11px;
    }

    /* Category */
    body.page-home .homepage #caseList .category-title {
        padding: 16px 6px 6px;
    }

    body.page-home .homepage #caseList .category-title h2 {
        font-size: 14px;
    }

    .why-us-item {
        white-space: normal;
    }

    .why-text {
        font-size: 11px;
    }
}

/* --- 400px: smallest phones --- */
@media only screen and (max-width: 400px) {
    .hero-title {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 12px;
    }

    /* Wrap stats so long Cyrillic labels ("КЕЙСОВ ОТКРЫТО") don't overflow
       on 320px screens */
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px 20px;
    }

    .hero-stat {
        min-width: 60px;
    }

    body.page-home .homepage #caseList > a .title h3 {
        font-size: 11px;
    }

    body.page-home .homepage #caseList > a .case-image {
        height: 100px;
    }

    body.page-home .homepage #caseList > a .bottom-elements .price .border-box span {
        padding: 5px;
        font-size: 11px;
    }

    .how-to-bar { display: none; }
}

/* =====================
   12. GENERAL TWEAKS
   ===================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Improve the footer inside main-content */
body.page-home .main-content #footer {
    margin-top: auto;
}

/* Category title - second & beyond */
body.page-home .homepage #caseList .category-title ~ .category-title h2::before {
    content: "⚡";
}

/* SEO section — slightly improved */
body.page-home .landing-intro.seo-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

body.page-home .landing-intro.seo-main h2 {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 20px 0 10px;
}

body.page-home .landing-intro.seo-main ul {
    padding-left: 20px;
    margin: 8px 0 14px;
}

body.page-home .landing-intro.seo-main ul li {
    margin-bottom: 5px;
}

body.page-home .landing-intro.seo-main a {
    color: var(--accent);
    text-decoration: none;
}

body.page-home .landing-intro.seo-main a:hover {
    text-decoration: underline;
}

/* Footer SEO tagline */
body.page-home #footer .footer-seo-text {
    font-size: 12px;
    color: var(--text-muted);
    margin: 6px 0 10px;
    line-height: 1.6;
    max-width: 400px;
}

/* Filter SEO heading */
body.page-home .filter-heading-seo {
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin: 0 0 10px;
    letter-spacing: 0.3px;
}

/* =====================
   MOBILE HEADER FIX
   ===================== */
/* Push Войти button left of the burger icon */
@media only screen and (max-width: 768px) {
    header .wrapper .bg-wrap .button-menu {
        right: 8px;
        top: 6px;
        padding: 0;
        z-index: 30;
    }
    header .wrapper .bg-wrap .button-menu .menu-toggle {
        width: 32px;
        height: 26px;
        padding: 0;
        color: #ff6a2c;
    }
    header .wrapper .bg-wrap div#auth-block {
        right: 50px !important;
        display: flex !important;
        height: 54px;
        align-items: center;
        z-index: 20;
    }
    /* Shrink button slightly to fit next to burger */
    header .wrapper .bg-wrap div#auth-block .cb-login-button {
        padding: 7px 14px;
        font-size: 13px;
    }
    /* Filter: ensure parent doesn't clip horizontal scroll */
    body.page-home .filter-heading-seo {
        display: none;
    }
    body.page-home .filter-bar {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
}

@media only screen and (max-width: 440px) {
    header .wrapper .bg-wrap div#auth-block {
        right: 46px !important;
    }
    header .wrapper .bg-wrap .button-menu {
        right: 6px;
    }
    header .wrapper .bg-wrap div#auth-block .cb-login-button {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 8px;
    }
    /* Hide search on very small screens to give buttons room */
    body.page-home .filter-search {
        display: none;
    }
}

/* Case card micro-label */
body.page-home .top-leftStart-burst .bottom-elements::before {
    content: "Кейс батл";
    display: block;
    font-size: 9px;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 3px;
}

/* Top drops subtitle */
body.page-home .top-drops-subtitle {
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin: -8px 0 18px;
}

/* =====================
   UPGRADE INFO SECTION
   ===================== */
.upgrade-info-section {
    width: 100%;
    padding: 40px 16px;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.upgrade-info-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.upgrade-info-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 28px;
    text-align: center;
}

.upgrade-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.upgrade-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(246,164,90,0.15);
    border-radius: 14px;
    padding: 22px 18px;
    transition: border-color .2s, transform .2s;
}

.upgrade-card:hover {
    border-color: rgba(246,164,90,0.5);
    transform: translateY(-3px);
}

.upgrade-card-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.upgrade-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.upgrade-card p {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin: 0;
}

@media only screen and (max-width: 768px) {
    .upgrade-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .upgrade-info-title {
        font-size: 18px;
    }
}

@media only screen and (max-width: 440px) {
    .upgrade-cards {
        grid-template-columns: 1fr;
    }
}
