/* ===== КНОПКА "НАВЕРХ" (МАКСИМАЛЬНАЯ ЗАЩИТА) ===== */
#scrollToTopBtn {
    position: fixed !important; 
    bottom: 30px !important;    
    right: 30px !important;     
    left: auto !important;      
    top: auto !important;
    
    width: 50px !important;
    height: 50px !important;
    background-color: #b22222 !important; /* Запасной цвет */
    background-image: linear-gradient(135deg, #b22222, #ee1d24) !important; /* Градиент */
    color: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(238, 29, 36, 0.3) !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease !important;
    z-index: 99999 !important; 
    margin: 0 !important; /* Сбрасываем возможные отступы от других стилей */
    padding: 0 !important;
}

/* Класс, который добавляет JS при прокрутке */
#scrollToTopBtn.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Эффект при наведении */
#scrollToTopBtn:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(238, 29, 36, 0.5) !important;
    color: #ffffff !important;
}

/* На мобильных чуть меньше */
@media (max-width: 768px) {
    #scrollToTopBtn {
        bottom: 20px !important;
        right: 20px !important;
        width: 40px !important;
        height: 40px !important;
    }
}