/* CSS-fix для скроллбаров на десктопной версии */
@media screen and (min-width: 992px) {
    /* Глобальное правило для секций сайта */
    html:not(.mobile) .section,
    html:not(.mobile) #about,
    html:not(.mobile) #manifesto,
    html:not(.mobile) #partnerships,
    html:not(.mobile) #community,
    html:not(.mobile) .about-content,
    html:not(.mobile) .terminal-content,
    html:not(.mobile) .terminal-container,
    html:not(.mobile) .partnerships-grid,
    html:not(.mobile) .partnership-card,
    html:not(.mobile) .ecosystem-grid,
    html:not(.mobile) .ecosystem-card,
    html:not(.mobile) .community-content,
    html:not(.mobile) .twitter-feed,
    html:not(.mobile) .telegram-feed {
        overflow: hidden !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        -webkit-overflow-scrolling: auto !important;
    }

    /* Правила для элементов, где необходима фиксированная высота */
    html:not(.mobile) .terminal-content {
        max-height: none !important;
    }

    /* Для браузеров на Webkit (Chrome, Safari) */
    html:not(.mobile) #about::-webkit-scrollbar,
    html:not(.mobile) #manifesto::-webkit-scrollbar,
    html:not(.mobile) #partnerships::-webkit-scrollbar,
    html:not(.mobile) #community::-webkit-scrollbar,
    html:not(.mobile) .about-content::-webkit-scrollbar,
    html:not(.mobile) .terminal-content::-webkit-scrollbar,
    html:not(.mobile) .terminal-container::-webkit-scrollbar,
    html:not(.mobile) .partnerships-grid::-webkit-scrollbar,
    html:not(.mobile) .partnership-card::-webkit-scrollbar,
    html:not(.mobile) .ecosystem-grid::-webkit-scrollbar,
    html:not(.mobile) .ecosystem-card::-webkit-scrollbar,
    html:not(.mobile) .community-content::-webkit-scrollbar,
    html:not(.mobile) .twitter-feed::-webkit-scrollbar,
    html:not(.mobile) .telegram-feed::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        background: transparent !important;
    }
    
    /* Специальный фикс для манифеста */
    #manifesto {
        height: auto !important;
        min-height: auto !important;
        display: block !important;
    }
    
    #manifesto .terminal-container {
        height: auto !important;
        max-height: none !important;
        overflow: hidden !important;
    }
    
    #manifesto .terminal-content {
        height: auto !important;
        max-height: none !important;
        overflow-y: hidden !important;
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
    
    /* Скрываем скроллбары полностью в манифесте */
    #manifesto *::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    /* Дополнительные правила для секций partnerships, ecosystem и community */
    #partnerships,
    #ecosystem,
    #community {
        height: auto !important;
        min-height: auto !important;
        display: block !important;
    }
    
    #partnerships .partnership-card,
    #ecosystem .ecosystem-grid,
    #community .community-content,
    #community .twitter-feed,
    #community .telegram-feed {
        height: auto !important;
        max-height: none !important;
        overflow: hidden !important;
    }
    
    /* Allow ecosystem cards to extend beyond bounds during hover */
    #ecosystem .ecosystem-grid {
        overflow: visible !important;
    }
    
    #ecosystem .ecosystem-card {
        height: auto !important;
        max-height: none !important;
        overflow: hidden !important;
    }
    
    /* Allow partnerships cards to extend beyond bounds during hover - desktop only */
    @media (min-width: 992px) {
        #partnerships .partnerships-grid {
            overflow: visible !important;
            overflow-x: visible !important;
            overflow-y: visible !important;
        }
    }
    
    #partnerships .partnership-card {
        height: auto !important;
        max-height: none !important;
        overflow: hidden !important;
    }
    
    /* Скрываем скроллбары полностью в partnerships, ecosystem и community */
    #partnerships *::-webkit-scrollbar,
    #ecosystem *::-webkit-scrollbar,
    #community *::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

/* Хак для Internet Explorer и Edge (устаревшие) */
@media screen and (min-width: 992px) {
    html:not(.mobile) .terminal-content,
    html:not(.mobile) #about,
    html:not(.mobile) #manifesto,
    html:not(.mobile) #partnerships,
    html:not(.mobile) #ecosystem,
    html:not(.mobile) #community,
    html:not(.mobile) .partnerships-grid,
    html:not(.mobile) .partnership-card,
    html:not(.mobile) .ecosystem-grid,
    html:not(.mobile) .ecosystem-card,
    html:not(.mobile) .community-content,
    html:not(.mobile) .twitter-feed,
    html:not(.mobile) .telegram-feed {
        -ms-overflow-style: none;
    }
} 