/* ============================================
   MAIN.CSS - Базовые стили
   ============================================ */

:root {
    --color-bg: #0a0a0a;
    --color-steel: #2a2a2a;
    --color-steel-light: #4a4a4a;
    --color-accent: #00d4ff;
    --color-accent-secondary: #ff6b35;
    --color-text: #ffffff;
    --color-text-muted: #888888;
    --font-main: 'Rajdhani', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-fast: 0.3s;
    --transition-medium: 0.6s;
    --transition-slow: 1s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--color-bg);
    font-family: var(--font-main);
    color: var(--color-text);
}

/* 3D Фон */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* UI Слой */
#ui-layer {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
}

/* Header */
.hud-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.logo {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-accent);
    text-shadow: 0 0 10px rgba(0,212,255,0.5);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-muted);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Основной контент */
#main-content {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Навигация */
.hud-nav {
    position: absolute;
    bottom: 40px;
    left: 40px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-family: var(--font-mono);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-btn:hover:not(:disabled) {
    background: var(--color-accent);
    color: var(--color-bg);
    box-shadow: 0 0 20px rgba(0,212,255,0.5);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: var(--color-text-muted);
    color: var(--color-text-muted);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity var(--transition-slow);
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-accent);
    letter-spacing: 2px;
}

/* Адаптив */
@media (max-width: 768px) {
    .hud-header {
        padding: 15px 20px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .hud-nav {
        bottom: 20px;
        left: 20px;
    }
    
    .nav-btn {
        padding: 12px 20px;
        font-size: 12px;
    }
}

/* Навигация для слайдера брендов */
.brand-slider-nav {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100;
}

.brand-nav-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-accent);
    background: rgba(0,0,0,0.6);
    color: var(--color-accent);
    font-size: 24px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-nav-btn:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    box-shadow: 0 0 20px rgba(0,212,255,0.5);
}

.brand-info {
    position: absolute;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 600px;
    padding: 0 20px;
}

.brand-info h2 {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-accent);
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.brand-info p {
    font-size: 18px;
    color: var(--color-text);
    line-height: 1.5;
}







/* Скрытые элементы */
.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Навигация для слайдера брендов */
.brand-slider-nav {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.brand-slider-nav.hidden {
    opacity: 0;
    pointer-events: none;
}

.brand-nav-btn {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(0, 212, 255, 0.5);
    background: rgba(0, 0, 0, 0.7);
    color: #00d4ff;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

.brand-nav-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    transform: scale(1.1);
}

.brand-nav-btn:active {
    transform: scale(0.95);
}

/* Подсказка для выбора бренда */
.brand-hint {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .brand-slider-nav {
        bottom: 60px;
        gap: 20px;
    }
    
    .brand-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .brand-hint {
        bottom: 120px;
        font-size: 10px;
    }
}



/* Сетка категорий */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    padding: 20px;
}

.category-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(5% 0, 100% 0, 100% 95%, 95% 100%, 0 100%, 0 5%);
}

.category-card:hover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #00d4ff;
}

.category-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.category-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
}

.no-data {
    font-family: 'JetBrains Mono', monospace;
    color: #888;
    font-size: 18px;
}

/* Адаптив для категорий */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-card {
        padding: 30px 20px;
    }
}

/* Логотип бренда в хедере */
.logo-brand-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    color: #00d4ff;
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.5s ease;
}

.logo-brand-name.hidden {
    opacity: 0;
    display: none;
}

.logo-brand-name.visible {
    opacity: 1;
    display: inline-block;
    animation: fadeInRight 0.8s ease forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Курсор для кликабельного текста */
.canvas-clickable {
    cursor: pointer !important;
}

/* Подсказка для клика */
.brand-hint {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    text-align: center;
    animation: pulse 2s infinite;
}

.brand-hint.clickable {
    color: #00d4ff;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Подключаем шрифт Orbitron для брендов */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&display=swap');

/* Скрытые элементы */
.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Логотип бренда в хедере */
.logo-brand-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #00d4ff;
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.5s ease;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.logo-brand-name.hidden {
    opacity: 0;
    display: none;
}

.logo-brand-name.visible {
    opacity: 1;
    display: inline-block;
    animation: fadeInRight 0.8s ease forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Навигация для слайдера брендов */
.brand-slider-nav {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.brand-slider-nav.hidden {
    opacity: 0;
    pointer-events: none;
}

.brand-nav-btn {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(0, 212, 255, 0.5);
    background: rgba(0, 0, 0, 0.7);
    color: #00d4ff;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

.brand-nav-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    transform: scale(1.1);
}

/* Подсказка для выбора бренда */
.brand-hint {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    text-align: center;
    animation: pulse 2s infinite;
}

.brand-hint.clickable {
    color: #00d4ff;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Сетка категорий */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    padding: 20px;
}

.category-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(5% 0, 100% 0, 100% 95%, 95% 100%, 0 100%, 0 5%);
}

.category-card:hover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #00d4ff;
}

.category-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.category-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
}

.no-data {
    font-family: 'JetBrains Mono', monospace;
    color: #888;
    font-size: 18px;
}

/* Адаптив */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .brand-slider-nav {
        bottom: 60px;
        gap: 20px;
    }
    
    .brand-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    } 
}

@media (min-width: 768px) {
.logo-text {
    font-size: 15px;
    }
}

/* Подключаем шрифты */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --color-bg: #0a0a0a;
    --color-steel: #2a2a2a;
    --color-steel-light: #4a4a4a;
    --color-accent: #00d4ff;
    --color-accent-secondary: #ff6b35;
    --color-text: #ffffff;
    --color-text-muted: #888888;
    --font-main: 'Rajdhani', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Orbitron', sans-serif;
    --transition-fast: 0.3s;
    --transition-medium: 0.6s;
    --transition-slow: 1s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--color-bg);
    font-family: var(--font-main);
    color: var(--color-text);
}

/* 3D Фон */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* UI Слой */
#ui-layer {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
}

/* Header */
.hud-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 100%);
    transition: opacity 0.5s ease;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-text);
}

.logo-brand-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent);
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.5s ease;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.logo-brand-name.hidden {
    opacity: 0;
    display: none;
}

.logo-brand-name.visible {
    opacity: 1;
    display: inline-block;
    animation: fadeInRight 0.8s ease forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-muted);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Основной контент */
#main-content {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Навигация */
.hud-nav {
    position: absolute;
    bottom: 40px;
    left: 40px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-family: var(--font-mono);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-btn:hover:not(:disabled) {
    background: var(--color-accent);
    color: var(--color-bg);
    box-shadow: 0 0 20px rgba(0,212,255,0.5);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: var(--color-text-muted);
    color: var(--color-text-muted);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity var(--transition-slow);
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-accent);
    letter-spacing: 2px;
}

/* Скрытые элементы */
.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Навигация для слайдера брендов */
.brand-slider-nav {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.brand-slider-nav.hidden {
    opacity: 0;
    pointer-events: none;
}

.brand-nav-btn {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(0, 212, 255, 0.5);
    background: rgba(0, 0, 0, 0.7);
    color: #00d4ff;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

.brand-nav-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    transform: scale(1.1);
}

/* Подсказка для выбора бренда */
.brand-hint {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    text-align: center;
    animation: pulse 2s infinite;
}

.brand-hint.clickable {
    color: #00d4ff;
}

/* Сетка категорий (ДЕСКТОП) */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    padding: 20px;
    width: 100%;
}

.category-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(5% 0, 100% 0, 100% 95%, 95% 100%, 0 100%, 0 5%);
}

.category-card:hover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #00d4ff;
}

.category-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.category-name {
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
}

/* Слайдер категорий (МОБИЛЬНЫЙ) */
.categories-slider-container {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.categories-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 20px;
    width: 100%;
    max-width: 500px;
}

.categories-slider::-webkit-scrollbar {
    display: none;
}

.category-card-mobile {
    flex: 0 0 auto;
    width: 280px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(5% 0, 100% 0, 100% 95%, 95% 100%, 0 100%, 0 5%);
    scroll-snap-align: center;
}

.category-card-mobile:active {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    transform: scale(0.98);
}

.category-card-mobile .category-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.category-card-mobile .category-name {
    font-size: 18px;
    white-space: normal;
    word-wrap: break-word;
}

/* Индикаторы слайдера */
.slider-indicators {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #00d4ff;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.no-data {
    font-family: var(--font-mono);
    color: #888;
    font-size: 18px;
}

/* Адаптив для планшетов */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .category-card {
        padding: 30px 15px;
    }
    
    .category-name {
        font-size: 18px;
    }
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .hud-header {
        padding: 15px 20px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .logo-brand-name {
        font-size: 12px;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .system-status {
        font-size: 10px;
    }
    
    #main-content {
        top: 80px;
        bottom: 80px;
    }
    
    .hud-nav {
        bottom: 20px;
        left: 20px;
    }
    
    .nav-btn {
        padding: 12px 20px;
        font-size: 12px;
    }
    
    .brand-slider-nav {
        bottom: 60px;
        gap: 20px;
    }
    
    .brand-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .brand-hint {
        bottom: 120px;
        font-size: 10px;
        padding: 0 20px;
    }
    
    /* Скрываем сетку на мобильном */
    .categories-grid {
        display: none;
    }
}

/* Очень маленькие экраны */
@media (max-width: 400px) {
    .category-card-mobile {
        width: 240px;
        padding: 25px 15px;
    }
    
    .category-card-mobile .category-name {
        font-size: 16px;
    }
    
    .logo {
        font-size: 14px;
    }
}




/* ... (предыдущие стили остаются) ... */

/* Заголовки секций */
.section-title {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.section-title-desktop {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 3px;
    width: 100%;
}

/* Детальная страница товара */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.product-gallery {
    position: relative;
    width: 100%;
    height: 400px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-gallery img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
}

.product-gallery img.active {
    opacity: 1;
}

.no-image {
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 10px;
    grid-column: 1 / -1;
}

.thumbnail {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    transform: scale(1.1);
}

.product-info {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 30px;
    overflow-y: auto;
}

.product-name {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--color-accent);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.product-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 25px;
}

.product-specs,
.product-docs {
    margin-bottom: 25px;
}

.product-specs h3,
.product-docs h3 {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--color-accent);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.product-specs ul,
.product-docs ul {
    list-style: none;
}

.product-specs li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-mono);
    font-size: 14px;
}

.spec-label {
    color: var(--color-text-muted);
}

.spec-value {
    color: var(--color-text);
    font-weight: 600;
}

.doc-link {
    color: var(--color-accent);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 14px;
    transition: all 0.3s ease;
}

.doc-link:hover {
    color: var(--color-text);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Форма захвата */
.lead-form {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.5);
    padding: 25px;
    margin-top: 20px;
}

.lead-form h3 {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--color-accent);
    margin-bottom: 20px;
    text-align: center;
}

.form-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.form-submit {
    width: 100%;
    padding: 15px;
    background: var(--color-accent);
    border: none;
    color: var(--color-bg);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.form-submit:hover {
    background: var(--color-text);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.form-success {
    text-align: center;
    padding: 30px;
}

.success-icon {
    font-size: 48px;
    color: #00ff88;
    margin-bottom: 15px;
}

/* Адаптив для товаров */
@media (max-width: 1024px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-gallery {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 20px;
    }
    
    .section-title-desktop {
        font-size: 22px;
    }
    
    .product-detail {
        padding: 15px;
        max-height: calc(100vh - 180px);
    }
    
    .product-gallery {
        height: 250px;
    }
    
    .product-name {
        font-size: 22px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
}

/* ... (предыдущие стили остаются) ... */

/* Название секции в хедере */
.logo-section-name {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-text-muted);
    transition: all 0.5s ease;
    letter-spacing: 1px;
}

.logo-section-name.hidden {
    opacity: 0;
    display: none;
}

.logo-section-name.visible {
    opacity: 1;
    display: inline-block;
    animation: fadeInLeft 0.8s ease forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Центрированная сетка категорий */
.categories-grid-centered {
    display: grid;
    gap: 30px;
    max-width: 1000px;
    padding: 20px;
    justify-content: center;
    align-items: center;
}

/* Детальная страница товара (ШИРОКАЯ) */
.product-detail-wide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    width: 100%;
    padding: 30px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.product-left-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-right-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-title {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--color-accent);
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    margin-bottom: 10px;
}

.product-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-left: 3px solid var(--color-accent);
}

.product-specs {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 20px;
}

.product-specs h3 {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--color-accent);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.product-specs ul {
    list-style: none;
}

.product-specs li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-mono);
    font-size: 14px;
}

.product-specs li:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--color-text-muted);
}

.spec-value {
    color: var(--color-text);
    font-weight: 600;
}

/* Сертификаты и лицензии */
.product-docs-section {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 20px;
}

.product-docs-section h3 {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--color-accent);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.docs-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.doc-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.doc-icon:hover {
    background: rgba(0, 212, 255, 0.3);
    border-color: var(--color-accent);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Кнопки товара */
.product-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-more,
.btn-order {
    flex: 1;
    padding: 18px 30px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    clip-path: polygon(5% 0, 100% 0, 100% 95%, 95% 100%, 0 100%, 0 5%);
}

.btn-more {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-text);
}

.btn-more:hover {
    border-color: var(--color-text);
    background: rgba(255, 255, 255, 0.1);
}

.btn-order {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn-order:hover {
    background: var(--color-text);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

/* Галерея товара */
.product-gallery-large {
    position: relative;
    width: 100%;
    height: 400px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-gallery-large img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    cursor: pointer;
}

.product-gallery-large img.active {
    opacity: 1;
}

.product-gallery-large img:hover {
    transform: scale(1.05);
}

.product-thumbnails-horizontal {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 10px;
}

/* Форма заказа */
.lead-form-section {
    grid-column: 1 / -1;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.5);
    padding: 30px;
    margin-top: 20px;
}

.lead-form-section h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--color-accent);
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.form-submit {
    width: 100%;
    padding: 18px;
    background: var(--color-accent);
    border: none;
    color: var(--color-bg);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 3px;
    clip-path: polygon(2% 0, 100% 0, 100% 95%, 98% 100%, 0 100%, 0 5%);
}

.form-submit:hover {
    background: var(--color-text);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
}

.form-success {
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 64px;
    color: #00ff88;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

/* Лайтбокс */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid var(--color-accent);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.3);
}

.lightbox-title {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--color-accent);
    margin-top: 15px;
    letter-spacing: 2px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: var(--color-accent);
    transform: scale(1.2);
}

/* Адаптив для товаров */
@media (max-width: 1024px) {
    .product-detail-wide {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-gallery-large {
        height: 300px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .logo-section-name {
        font-size: 12px;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .product-description {
        font-size: 14px;
        padding: 15px;
    }
    
    .product-buttons {
        flex-direction: column;
    }
    
    .btn-more,
    .btn-order {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .product-gallery-large {
        height: 250px;
    }
    
    .doc-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .lead-form-section {
        padding: 20px;
    }
    
    .categories-grid-centered {
        grid-template-columns: 1fr !important;
    }
}
/* ... (предыдущие стили остаются) ... */

/* Сетка товаров (ДЕСКТОП) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1400px;
    width: 100%;
    padding: 30px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

/* Карточка товара */
.product-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 212, 255, 0.3);
    display: grid;
    grid-template-columns: 300px 1fr;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(2% 0, 100% 0, 100% 97%, 98% 100%, 0 100%, 0 3%);
}

.product-card:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    transform: translateY(-5px);
}

.product-card-image {
    position: relative;
    height: 250px;
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-image .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

.product-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-card-title {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--color-accent);
    letter-spacing: 1px;
    margin: 0;
}

.product-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
}

.product-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.spec-tag {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 5px 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-accent);
    border-radius: 3px;
}

.product-card-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-card-more,
.btn-card-order {
    flex: 1;
    padding: 12px 20px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    clip-path: polygon(5% 0, 100% 0, 100% 95%, 95% 100%, 0 100%, 0 5%);
}

.btn-card-more {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-text);
}

.btn-card-more:hover {
    border-color: var(--color-text);
    background: rgba(255, 255, 255, 0.1);
}

.btn-card-order {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn-card-order:hover {
    background: var(--color-text);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Мобильная версия - полный экран товара */
.product-mobile-fullscreen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: calc(100vh - 180px);
}

.product-mobile-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
}

.product-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.product-indicator.active {
    background: var(--color-accent);
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.product-mobile-gallery {
    position: relative;
    width: 100%;
    height: 300px;
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(0, 212, 255, 0.3);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-mobile-gallery img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    cursor: pointer;
}

.product-mobile-gallery img.active {
    opacity: 1;
}

.product-mobile-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-mobile-title {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--color-accent);
    letter-spacing: 2px;
    margin: 0;
}

.product-mobile-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-left: 3px solid var(--color-accent);
    margin: 0;
}

.product-mobile-specs,
.product-mobile-docs {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 15px;
}

.product-mobile-specs h3,
.product-mobile-docs h3 {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-accent);
    margin: 0 0 15px 0;
    letter-spacing: 1px;
}

.product-mobile-specs ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-mobile-specs li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-mono);
    font-size: 13px;
}

.product-mobile-specs li:last-child {
    border-bottom: none;
}

.product-mobile-buttons {
    margin-top: 10px;
}

.btn-mobile-order {
    width: 100%;
    padding: 18px;
    background: var(--color-accent);
    border: none;
    color: var(--color-bg);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    clip-path: polygon(2% 0, 100% 0, 100% 95%, 98% 100%, 0 100%, 0 5%);
}

.btn-mobile-order:hover {
    background: var(--color-text);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

/* Мобильная сетка категорий (2 колонки) */
.categories-grid-mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 500px;
    padding: 20px;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

/* Адаптив для карточек товаров */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        grid-template-columns: 250px 1fr;
    }
}

@media (max-width: 768px) {
    .product-card {
        grid-template-columns: 1fr;
    }
    
    .product-card-image {
        height: 200px;
    }
    
    .product-mobile-gallery {
        height: 250px;
    }
    
    .categories-grid-mobile {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .lead-form-section {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
/* ... (предыдущие стили остаются) ... */

/* Мобильная галерея - ИСПРАВЛЕНО */
.product-mobile-gallery {
    position: relative;
    width: 100%;
    height: 300px;
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(0, 212, 255, 0.3);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-mobile-gallery img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: absolute;
    cursor: pointer;
    display: none;
}

.product-mobile-gallery img.active {
    display: block;
    opacity: 1;
}

.product-mobile-gallery .no-image {
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-size: 14px;
}

/* Десктоп галерея */
.product-gallery-large {
    position: relative;
    width: 100%;
    height: 400px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-gallery-large img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    cursor: pointer;
    display: none;
}

.product-gallery-large img.active {
    opacity: 1;
    display: block;
}

/* Адаптив */
@media (max-width: 768px) {
    .product-mobile-gallery {
        height: 250px;
    }
    
    .product-mobile-content {
        padding: 15px;
    }
    
    .product-mobile-title {
        font-size: 20px;
    }
    
    .categories-grid-mobile {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
.form-success {
    text-align: center;
    padding: 5px;
    height: 20px;
}
.category-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 20px 10px;
}
.category-icon {
    font-size: 28px;
    padding: 0px;
}
.category-name {
    font-size: 13px;
}





.category-name {
    height: 32px;
}
/* ============================================
   КАСТОМНЫЙ СКРОЛЛБАР (High-Tech Style)
   ============================================ */

/* 1. Основная настройка ширины (Firefox + Webkit) */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) rgba(0, 0, 0, 0.3);
}

/* 2. Webkit браузеры (Chrome, Safari, Edge, Opera) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

/* 3. Трек (дорожка) скроллбара */
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 4. Ползунок скроллбара */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-accent) 0%, #0088aa 100%);
    border-radius: 4px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

/* 5. Ползунок при наведении */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #33ddff 0%, #00aacc 100%);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

/* 6. Ползунок при нажатии */
::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #00aacc 0%, #006688 100%);
    border-color: rgba(0, 212, 255, 0.8);
}

/* 7. Угловой элемент (пересечение скроллов) */
::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0.3);
}

/* ============================================
   СКРОЛЛБАР ДЛЯ КОНКРЕТНЫХ ЗОН
   ============================================ */

/* Для сетки категорий */
.categories-grid-centered::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

.categories-grid-centered::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-accent) 0%, #0088aa 100%);
}

/* Для списка товаров */
.products-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
}

/* Для мобильной версии товаров */
.product-mobile-fullscreen::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

/* Для детальной страницы товара */
.product-detail-wide::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
}

/* ============================================
   ГОРИЗОНТАЛЬНЫЙ СКРОЛЛБАР (для слайдеров)
   ============================================ */

.categories-slider::-webkit-scrollbar {
    height: 6px;
}

.categories-slider::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.categories-slider::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--color-accent) 0%, #0088aa 100%);
    border-radius: 3px;
}

.categories-slider::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #33ddff 0%, #00aacc 100%);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* ============================================
   ТОНКИЙ СКРОЛЛБАР (для компактных зон)
   ============================================ */

.scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) rgba(0, 0, 0, 0.2);
}

.scrollbar-thin::-webkit-scrollbar {
    width: 4px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 2px;
}

/* ============================================
   СКРЫТЫЙ СКРОЛЛБАР (скролл есть, полосы нет)
   ============================================ */

.scrollbar-hidden {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.scrollbar-hidden::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

/* ============================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ СКРОЛЛБАРА
   ============================================ */

@keyframes scrollbar-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

::-webkit-scrollbar-thumb {
    animation: scrollbar-fade-in 0.3s ease;
}

/* Миниатюры товаров - СКРОЛЛЯТСЯ С КОНТЕНТОМ */
.product-thumbnails-horizontal {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    position: relative; /* БЫЛО: fixed или sticky */
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) rgba(0, 0, 0, 0.3);
}

.product-thumbnails-horizontal::-webkit-scrollbar {
    height: 6px;
}

.product-thumbnails-horizontal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.product-thumbnails-horizontal::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--color-accent) 0%, #0088aa 100%);
    border-radius: 3px;
}

.thumbnail {
    width: clamp(50px, 6vw, 80px);
    height: clamp(50px, 6vw, 80px);
    border: 2px solid rgba(0, 212, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    flex-shrink: 0; /* Чтобы не сжимались */
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .categories-grid-mobile {
        overflow-x: hidden;
    }
    .category-icon {
    font-size: 25px;
    margin-bottom: 2px;
    }
    .category-name {
    line-height: 13px;
    height: auto;
}
.category-card {
    height: 133px;
    display: grid;
}
}
.category-card {
    height: 133px;
    display: grid;
}




/* Кнопка КАРТА */
.map-btn {
    margin-left: 15px;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    letter-spacing: 1px;
}

.map-btn:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.map-btn:active {
    transform: scale(0.95);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .map-btn {
        padding: 6px 12px;
        font-size: 10px;
        margin-left: 10px;
    }
}
/* Контейнер карты */
.map-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Попап карты */
.map-popup {
    font-family: var(--font-main);
    text-align: center;
}

.map-popup h3 {
    font-family: var(--font-display);
    color: var(--color-accent);
    margin: 0 0 10px 0;
    font-size: 18px;
}

.map-popup p {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: var(--color-text);
}

.map-popup-btn {
    padding: 8px 20px;
    background: var(--color-accent);
    border: none;
    color: var(--color-bg);
    font-family: var(--font-display);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.map-popup-btn:hover {
    background: var(--color-text);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

/* Стили Leaflet popup */
.map-popup-container .leaflet-popup-content-wrapper {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    color: var(--color-text);
}

.map-popup-container .leaflet-popup-tip {
    background: rgba(0, 0, 0, 0.9);
}

.map-popup-container .leaflet-popup-content {
    margin: 15px;
}
.leaflet-control-attribution {
    display:none!important;
}
#main-content {
    top: 76px;
}


/* ============================================
OVERLAY: Карта и Проекты (Cyberpunk Style)
============================================ */
.map-overlay, .project-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.97);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(2px);
}

.map-overlay.active, .project-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Хедер оверлея */
.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(10,10,10,0.8) 100%);
    font-family: var(--font-mono);
    z-index: 1001;
}

.overlay-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    letter-spacing: 2px;
}

.overlay-title-brand {
    color: var(--color-accent);
    font-family: var(--font-display);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.overlay-title-separator {
    color: var(--color-text-muted);
    opacity: 0.6;
}

.overlay-title-section {
    color: var(--color-text);
}

/* Кнопка закрытия (✕) */
.overlay-close {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

.overlay-close:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.1);
}

/* Контент оверлея */
.overlay-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#map-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Кнопка "← К карте" в проекте */
.project-back-to-map {
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    clip-path: polygon(5% 0, 100% 0, 100% 95%, 95% 100%, 0 100%, 0 5%);
}

.project-back-to-map:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Попап карты — стилизуем под общий дизайн */
.map-popup-container .leaflet-popup-content-wrapper {
    background: rgba(0, 0, 0, 0.95) !important;
    border: 1px solid var(--color-accent) !important;
    border-radius: 0 !important;
    clip-path: polygon(5% 0, 100% 0, 100% 95%, 95% 100%, 0 100%, 0 5%) !important;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3) !important;
}

.map-popup-container .leaflet-popup-tip {
    background: rgba(0, 0, 0, 0.95) !important;
    border: 1px solid var(--color-accent) !important;
}

.map-popup {
    text-align: center;
    font-family: var(--font-main);
}

.map-popup h3 {
    font-family: var(--font-display);
    color: var(--color-accent);
    margin: 0 0 10px 0;
    font-size: 18px;
    letter-spacing: 2px;
}

.map-popup p {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.5;
}

.map-popup-btn {
    padding: 10px 24px;
    background: var(--color-accent);
    border: none;
    color: var(--color-bg);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    clip-path: polygon(5% 0, 100% 0, 100% 95%, 95% 100%, 0 100%, 0 5%);
}

.map-popup-btn:hover {
    background: var(--color-text);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.6);
}

/* Адаптив для оверлеев */
@media (max-width: 768px) {
    .overlay-header {
        padding: 12px 20px;
    }
    .overlay-title {
        font-size: 12px;
        gap: 8px;
    }
    .overlay-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    .project-back-to-map {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Скрытие стандартных элементов навигации при открытом оверлее */
body.overlay-active .hud-nav,
body.overlay-active #back-btn {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease;
}
/* ============================================
OVERLAY: Шапка идентична .hud-header
============================================ */


.overlay-header > * {
    pointer-events: auto; /* Включаем клики для детей */
}

.overlay-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-text);
}

.overlay-title-brand {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent);
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(0, 212, 255, 0.3);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.overlay-title-separator {
    color: var(--color-text-muted);
    opacity: 0.6;
}

.overlay-title-section {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

/* ============================================
КНОПКИ ВНИЗУ СЛЕВА (как .nav-btn)
============================================ */
/* ✕ на карте — работает как "К КАТАЛОГУ" */
.overlay-close {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 1002;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-family: var(--font-mono);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: auto;
    height: auto;
    clip-path: none;
}

.overlay-close:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    box-shadow: 0 0 20px rgba(0,212,255,0.5);
}

/* "← К КАРТЕ" на проекте */
.project-back-to-map {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 1002;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-family: var(--font-mono);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-back-to-map:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    box-shadow: 0 0 20px rgba(0,212,255,0.5);
}

/* Скрываем стандартную навигацию при оверлее */
body.overlay-active .hud-nav {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* ============================================
АДАПТИВ
============================================ */
@media (max-width: 768px) {
    .overlay-header {
        padding: 15px 20px;
    }
    .overlay-title {
        font-size: 16px;
    }
    .overlay-title-brand {
        font-size: 12px;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .overlay-title-section {
        font-size: 12px;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .overlay-close,
    .project-back-to-map {
        bottom: 20px;
        left: 20px;
        padding: 12px 20px;
        font-size: 12px;
    }
}
.overlay-header {
    padding: 20px 40px;
    height: 75px;
    }
    .overlay-title-section {
    margin-left: -16px;
    margin-bottom: -1px;
    }
    
    
    
    
    
    /* Делаем фон оверлеев прозрачным для показа 3D-фона */
.map-overlay,
.project-overlay {
    background: rgba(0, 0, 0, 0.85); /* чёрный полупрозрачный */
    backdrop-filter: blur(3px);      /* лёгкое размытие фона */
}

/* Убеждаемся, что канвас виден под оверлеем */
#bg-canvas {
    z-index: 1; /* ниже UI, но выше фона */
}

#ui-layer {
    z-index: 10;
}

.map-overlay,
.project-overlay {
    z-index: 100; /* выше UI, но канвас останется снизу */
}

/* Центрирование контента в оверлее проекта */
.project-overlay .overlay-content {
    display: flex;
    align-items: center;      /* вертикальное центрирование */
    justify-content: center;  /* горизонтальное центрирование */
    padding: 20px;
    overflow-y: auto;         /* прокрутка если контент не влезает */
}

/* Ограничение ширины контента проекта */
.project-overlay .product-detail-wide,
.project-overlay .product-mobile-fullscreen {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Навигация по проектам (мобильная) */
.project-nav-mobile {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: none; /* Скрыто по умолчанию, показывается через JS */
    gap: 10px;
    z-index: 1002;
}

.project-nav-btn {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(0, 212, 255, 0.5);
    background: rgba(0, 0, 0, 0.7);
    color: #00d4ff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

.project-nav-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.project-nav-btn:disabled,
.project-nav-btn[style*="opacity: 0.3"] {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .overlay-header {
    padding: 20px 20px;
    height: 60px;
}
    .project-nav-mobile {
        display: flex !important; /* Показываем на мобильном */
        bottom: 100px;
        right: 20px;
    }
    
    .project-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}
    .logo-section-name {
        margin-bottom: -1px;
    }
    .project-nav-mobile {
        display: flex !important;
        bottom: 20px;
    }
    
    
    /* Кнопка закрытия — скрытая версия */
.overlay-close.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0.8);
}

/* Показываем кнопку только на карте (не на проекте) */
.project-overlay .overlay-close {
    opacity: 0;
    pointer-events: none;
}

.project-overlay .overlay-close.force-visible {
    opacity: 1;
    pointer-events: auto;
}

/* На карте кнопка всегда видима */
.map-overlay .overlay-close {
    opacity: 1;
    pointer-events: auto;
}

/* Навигация по товарам (мобильная) */
.product-nav-mobile {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: none; /* Скрыто по умолчанию, показывается через JS */
    gap: 10px;
    z-index: 1002;
}

.project-nav-btn {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(0, 212, 255, 0.5);
    background: rgba(0, 0, 0, 0.7);
    color: #00d4ff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

.project-nav-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.project-nav-btn:disabled,
.project-nav-btn[style*="opacity: 0.3"] {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .logo-section-name.visible {
    max-width: 121px;
    }
    .product-nav-mobile {
        display: flex !important; /* Показываем на мобильном */
        bottom: 100px;
        right: 20px;
    }
    
    .project-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}
    .product-nav-mobile {
        display: flex !important;
        bottom: 20px;
    }
     .project-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    
    /* ============================================
PROJECT BACKGROUND CANVAS (живой фон для проектов)
============================================ */
.project-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99; /* ниже оверлея (100), но выше основного канваса (0) */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-bg-canvas.active {
    opacity: 1;
}

/* Скрываем основной фон когда активен проект */
body.overlay-active #bg-canvas {
    opacity: 0.3; /* приглушаем основной фон */
    filter: blur(1px);
    transition: all 0.5s ease;
}

/* Для карты — не приглушаем основной фон */
body.overlay-active.map-overlay-active #bg-canvas {
    opacity: 1;
    filter: none;
}

/* ============================================
PROJECT BACKGROUND CANVAS (внутри оверлея)
============================================ */
.project-bg-canvas {
    position: absolute; /* ✅ Важно: absolute, не fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* ✅ Ниже карты (50), но выше основного фона (0) */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-bg-canvas.active {
    opacity: 1;
}

/* ✅ Контейнер карты должен быть выше фона */
#map-container {
    position: relative;
    z-index: 50; /* ✅ Выше project-bg-canvas */
    width: 100%;
    height: 100%;
}

/* ✅ Основной фон — самый нижний */
#bg-canvas {
    z-index: 0;
}

/* ✅ Оверлей — выше всего */
.map-overlay, .project-overlay {
    z-index: 100;
}

/* ✅ Контент оверлея — кликабельный */
.overlay-content {
    position: relative;
    z-index: 2; /* Выше project-bg-canvas */
}

.project-overlay .overlay-content {
    background-color: #484848;
    
}
